diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index dfe0770..0000000 --- a/.gitattributes +++ /dev/null @@ -1,2 +0,0 @@ -# Auto detect text files and perform LF normalization -* text=auto diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3d6b65b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + html: + name: Validate HTML + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + - run: npx --yes html-validate@9 index.html impressum.html datenschutz.html 404.html + + links: + name: Check links + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: lycheeverse/lychee-action@v2 + with: + # LinkedIn blocks automated requests (status 999). + # t-auer.com is this site itself; new files only exist there after deploy. + args: >- + --no-progress + --root-dir ${{ github.workspace }} + --exclude linkedin.com + --exclude '^https://t-auer\.com' + --exclude-path assets/vendor + './*.html' + fail: true diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..acbfe65 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.DS_Store +.env +# full-size source photos, only the optimized versions are published +assets/images/originals/ diff --git a/.htmlvalidate.json b/.htmlvalidate.json new file mode 100644 index 0000000..8f6bd53 --- /dev/null +++ b/.htmlvalidate.json @@ -0,0 +1,6 @@ +{ + "extends": ["html-validate:recommended"], + "rules": { + "void-style": ["error", { "style": "selfclose" }] + } +} diff --git a/404.html b/404.html new file mode 100644 index 0000000..675e2ba --- /dev/null +++ b/404.html @@ -0,0 +1,27 @@ + + + + + + Page not found - Tobias Auer + + + + + + + + + + + +
+
+
+

404

+

This page doesn't exist (anymore).

+

← Back to the homepage

+
+
+ + diff --git a/assets/css/darkmode.css b/assets/css/darkmode.css index b6e44a6..58f7cb6 100644 --- a/assets/css/darkmode.css +++ b/assets/css/darkmode.css @@ -3,22 +3,23 @@ align-items: center; } -svg { +.theme-toggle-graphic { z-index: 2; pointer-events: none; margin-left: -74px; } -#day, -#night { +.theme-toggle { width: 70px; height: 35px; - background: white; z-index: 1; cursor: pointer; border-radius: 100px; background: #9cd6ef; border: 3px solid #65c0e7; + display: block; + padding: 0; + box-sizing: content-box; } .dayNight { @@ -26,14 +27,14 @@ svg { position: relative; } -#day, -#night { - top: 0; - left: 0; +.hamburger-actions { + display: flex; + align-items: center; + gap: 1.5rem; } -#night { - pointer-events: none; +.hamburger-actions .dayNight { + margin-left: 0; } #background { @@ -52,34 +53,49 @@ a { transition: all 1s; } -.btn-color-2.dark:hover { +/* Dark theme: one class on , set before the first paint by theme-init.js */ + +.theme-dark { + color-scheme: light dark; +} + +.theme-dark #background { + background: #0d1f2b; +} + +.theme-dark .theme-toggle { + background: #224f6d; + border-color: #cad4d8; +} + +.theme-dark .btn-color-2:hover { background-color: rgb(192, 192, 192); color: black; border: 0; } -.btn-color-2.dark { +.theme-dark .btn-color-2 { color: #e9e9e9; border: solid 1px #e9e9e9 !important; } -.btn-color-1.dark:hover { +.theme-dark .btn-color-1:hover { background-color: white; color: black; } -p.dark { +.theme-dark p { color: rgb(204, 204, 204); } -.details-container.dark { +.theme-dark .details-container { background-color: rgb(53, 53, 53); } -h2.dark { +.theme-dark h2, +.theme-dark .experience-sub-title { color: white; } -/* Default styles for images */ -img.icon.dark { +.theme-dark img.icon { filter: invert(1); } @@ -87,11 +103,32 @@ img.icon { transition: all 1s; } -.menu-links.dark { +.theme-dark .menu-links { color: white; background-color: rgb(53, 53, 53); } -.hamburger-icon.dark span { -background-color: white; -} \ No newline at end of file +.theme-dark .hamburger-icon span { + background-color: white; +} + +.theme-dark a { + color: white; +} + +.theme-dark .legal-links a { + color: rgb(170, 170, 170); +} + +@media (prefers-reduced-motion: reduce) { + *, + :root { + transition: none !important; + } +} + +/* No fade animations while the page is loading */ +.no-transition, +.no-transition * { + transition: none !important; +} diff --git a/assets/css/legal.css b/assets/css/legal.css new file mode 100644 index 0000000..aa59da3 --- /dev/null +++ b/assets/css/legal.css @@ -0,0 +1,50 @@ +/* Impressum / Datenschutz */ + +.legal { + max-width: 48rem; + margin: 0 auto; + padding: 2rem 1rem 4rem; +} + +.legal .back-link { + display: inline-block; + margin-bottom: 2rem; +} + +.legal h1 { + font-size: 2.5rem; + margin-bottom: 1.5rem; +} + +.legal h2 { + font-size: 1.25rem; + margin: 2rem 0 0.5rem; +} + +.legal p, +.legal li { + line-height: 1.6; + margin-bottom: 0.75rem; +} + +.legal ul { + padding-left: 1.5rem; +} + +.legal a { + color: inherit; + text-decoration: underline; + text-underline-offset: 3px; +} + +/* 404 page */ + +.not-found { + text-align: center; + padding-top: 25vh; +} + +.not-found h1 { + font-size: 6rem; + margin-bottom: 0.5rem; +} diff --git a/assets/css/mediaqueries.css b/assets/css/mediaqueries.css index 651fafa..8647ade 100644 --- a/assets/css/mediaqueries.css +++ b/assets/css/mediaqueries.css @@ -15,6 +15,18 @@ } } + @media screen and (max-width: 1400px) { + #projects .about-containers { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + } + + @media screen and (max-width: 600px) { + #projects .about-containers { + grid-template-columns: 1fr; + } + } + @media screen and (max-width: 1200px) { #desktop-nav { display: none; diff --git a/assets/css/noscript.css b/assets/css/noscript.css new file mode 100644 index 0000000..e853143 --- /dev/null +++ b/assets/css/noscript.css @@ -0,0 +1,4 @@ +/* Without JavaScript the full images are shown via