Skip to content

Commit

Permalink
Legal Documents (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Resaki1 authored Oct 5, 2023
1 parent 11c2add commit 5bddea7
Show file tree
Hide file tree
Showing 46 changed files with 1,960 additions and 489 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
// ...
"plugin:astro/recommended",
],
ignorePatterns: ["dist/"],
ignorePatterns: ["dist/", "*.config.js"],
// ...
overrides: [
{
Expand Down
9 changes: 6 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { defineConfig } from 'astro/config';
import { defineConfig } from "astro/config";

import react from "@astrojs/react";

// https://astro.build/config
export default defineConfig({
integrations: [react()]
});
integrations: [react()],
redirects: {
"/legal": "/legal/privacy",
},
});
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
"react-dom": "^18.0.0"
},
"devDependencies": {
"@typescript-eslint/parser": "^6.7.3",
"prettier-plugin-astro": "^0.12.0",
"eslint": "^8.50.0",
"eslint-plugin-astro": "^0.29.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
"@typescript-eslint/parser": "^6.7.3",
"sass": "^1.68.0"
}
}
46 changes: 42 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/** @type {import("prettier").Config} */
export default {
plugins: ["prettier-plugin-astro"],
overrides: [
{
files: "*.astro",
options: {
parser: "astro",
},
},
],
};
3 changes: 0 additions & 3 deletions public/icons/facebook.svg

This file was deleted.

3 changes: 0 additions & 3 deletions public/icons/github.svg

This file was deleted.

8 changes: 0 additions & 8 deletions public/icons/inovex.svg

This file was deleted.

3 changes: 0 additions & 3 deletions public/icons/instagram.svg

This file was deleted.

3 changes: 0 additions & 3 deletions public/icons/linkedin.svg

This file was deleted.

3 changes: 0 additions & 3 deletions public/icons/podcast.svg

This file was deleted.

3 changes: 0 additions & 3 deletions public/icons/twitter.svg

This file was deleted.

3 changes: 0 additions & 3 deletions public/icons/xing.svg

This file was deleted.

18 changes: 10 additions & 8 deletions src/components/Choices.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,18 @@
}
}

[theme="dark"] .choices__content {
background-image: url("/assets/backgrounds/bg_cloud_dark.svg");
@media (prefers-color-scheme: dark) {
.choices__content {
background-image: url("/assets/backgrounds/bg_cloud_dark.svg");

.choices__video-button {
background: var(--darkmode-blue);
}
.choices__video-button {
background: var(--darkmode-blue);
}

.choices__video-position-buttons {
button {
background: var(--darkmode-pink);
.choices__video-position-buttons {
button {
background: var(--darkmode-pink);
}
}
}
}
Expand Down
13 changes: 4 additions & 9 deletions src/components/Choices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,15 @@ import Icon from "./Icon";

const Choices = () => {
const [position, setPosition] = useState(0);
const [theme, setTheme] = useState("dark");
const theme = useMediaQuery("(prefers-color-scheme: dark)")
? "dark"
: "light";
const [duration, setDuration] = useState(4000);
const isMobile = useMediaQuery("(max-width: 850px)") ?? true;

const setVideoDuration = (duration: number) =>
isMobile && setDuration(duration * 1000);

useEffect(() => {
const theme = document.documentElement.getAttribute("theme");
if (theme) {
setTheme(theme);
}
}, []);

useEffect(() => {
setPosition(0);
if (isMobile) setDuration(12012);
Expand All @@ -42,7 +37,7 @@ const Choices = () => {
}, [position, duration, isMobile]);

return (
<section className="choices" id="features">
<section className="choices" id="Features">
<h2>Euer Board – Eure Entscheidungen.</h2>
<p>Wählt eine beliebige Retrospektive, die zu eurem Team passt.</p>
<div className="choices__content">
Expand Down
Loading

0 comments on commit 5bddea7

Please sign in to comment.