Move navbar to top and increase transparency
All checks were successful
publish.yml / publish (push) Successful in 1m7s

This commit is contained in:
2026-04-08 09:59:35 +02:00
parent f10916532e
commit f89bdda3be
2 changed files with 30 additions and 28 deletions

View File

@@ -10,7 +10,7 @@
max-width: 1500px; max-width: 1500px;
min-height: 100svh; min-height: 100svh;
margin: 0 auto; margin: 0 auto;
padding: 1.5rem 1.25rem 3rem; padding: 7.5rem 1.25rem 3rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
box-sizing: border-box; box-sizing: border-box;
@@ -18,17 +18,19 @@
.sidebar { .sidebar {
position: fixed; position: fixed;
top: 1.5rem; top: 1rem;
right: 1.5rem; left: 50%;
width: 280px; transform: translateX(-50%);
width: min(1200px, calc(100% - 3rem));
display: flex; display: flex;
flex-direction: column; align-items: center;
gap: 1rem; justify-content: space-between;
padding: 1.2rem; gap: 1.25rem;
padding: 0.9rem 1.2rem;
border: 1px solid #30363d; border: 1px solid #30363d;
border-radius: 20px; border-radius: 16px;
background: rgba(22, 27, 34, 0.92); background: rgba(22, 27, 34, 0.75);
backdrop-filter: blur(10px); backdrop-filter: blur(9px);
z-index: 3; z-index: 3;
} }
@@ -55,12 +57,14 @@
.nav { .nav {
display: flex; display: flex;
flex-direction: column; flex: 1;
gap: 0.35rem; justify-content: flex-end;
flex-wrap: wrap;
gap: 0.5rem;
} }
.nav a { .nav a {
padding: 0.7rem 0.8rem; padding: 0.55rem 0.8rem;
border: 1px solid transparent; border: 1px solid transparent;
border-radius: 12px; border-radius: 12px;
color: #c9d1d9; color: #c9d1d9;
@@ -113,14 +117,7 @@
} }
.sidebar { .sidebar {
position: static; width: calc(100% - 2rem);
width: auto;
margin: 0 1.25rem 1.5rem;
}
.nav {
flex-direction: row;
flex-wrap: wrap;
} }
} }
@@ -134,9 +131,13 @@
top: 0.75rem; top: 0.75rem;
right: 0.75rem; right: 0.75rem;
left: 0.75rem; left: 0.75rem;
transform: none;
width: auto; width: auto;
margin: 0; margin: 0;
gap: 0.6rem; gap: 0.6rem;
flex-direction: column;
align-items: stretch;
justify-content: flex-start;
border-radius: 16px; border-radius: 16px;
} }
@@ -149,6 +150,7 @@
} }
.nav { .nav {
flex: 0 0 auto;
display: none; display: none;
flex-direction: column; flex-direction: column;
gap: 0.4rem; gap: 0.4rem;

View File

@@ -1,13 +1,6 @@
<div class="shell"> <div class="shell">
<app-interactive-background></app-interactive-background> <app-interactive-background></app-interactive-background>
<main class="content">
<router-outlet></router-outlet>
<footer class="site-footer">
<p>(c) {{ currentYear }} Tim Kainz | +43 677 62678219</p>
</footer>
</main>
<aside class="sidebar"> <aside class="sidebar">
<div class="sidebar-header"> <div class="sidebar-header">
<a class="brand" routerLink="/home" (click)="closeMenu()">Tim Kainz</a> <a class="brand" routerLink="/home" (click)="closeMenu()">Tim Kainz</a>
@@ -33,4 +26,11 @@
<a routerLink="/contact" routerLinkActive="active" (click)="closeMenu()">Contact</a> <a routerLink="/contact" routerLinkActive="active" (click)="closeMenu()">Contact</a>
</nav> </nav>
</aside> </aside>
<main class="content">
<router-outlet></router-outlet>
<footer class="site-footer">
<p>(c) {{ currentYear }} Tim Kainz | +43 677 62678219</p>
</footer>
</main>
</div> </div>