Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
.env
# full-size source photos, only the optimized versions are published
assets/images/originals/
6 changes: 6 additions & 0 deletions .htmlvalidate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": ["html-validate:recommended"],
"rules": {
"void-style": ["error", { "style": "selfclose" }]
}
}
27 changes: 27 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Page not found - Tobias Auer</title>
<meta name="robots" content="noindex" />
<!-- absolute paths: this page is served for any unknown URL -->
<link rel="icon" href="/assets/images/favicon.svg" type="image/svg+xml" />
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="stylesheet" href="/assets/css/darkmode.css" />
<link rel="stylesheet" href="/assets/css/legal.css" />
<script src="/assets/js/theme-init.js"></script>
<script defer src="/assets/js/not-found.js"></script>
</head>

<body>
<div class="container">
<div id="background"></div>
<main class="legal not-found">
<h1>404</h1>
<p>This page doesn't exist (anymore).</p>
<p><a href="/">&larr; Back to the homepage</a></p>
</main>
</div>
</body>
</html>
81 changes: 59 additions & 22 deletions assets/css/darkmode.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,38 @@
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 {
margin-left: 30px;
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 {
Expand All @@ -52,46 +53,82 @@ a {
transition: all 1s;
}

.btn-color-2.dark:hover {
/* Dark theme: one class on <html>, 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);
}

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;
}
.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;
}
50 changes: 50 additions & 0 deletions assets/css/legal.css
Original file line number Diff line number Diff line change
@@ -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;
}
12 changes: 12 additions & 0 deletions assets/css/mediaqueries.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions assets/css/noscript.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* Without JavaScript the full images are shown via <noscript>. */
img.lqip {
display: none !important;
}
Loading
Loading