Split into subpages, move menu to sidebar, restrict hero image size
This commit is contained in:
65
styles.css
65
styles.css
@@ -73,10 +73,23 @@ body {
|
||||
}
|
||||
|
||||
/* Layout */
|
||||
.page-layout {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
padding: 2rem;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
@media(min-width: 900px) {
|
||||
.page-layout {
|
||||
flex-direction: row;
|
||||
}
|
||||
}
|
||||
|
||||
.container {
|
||||
flex: 1;
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
padding: 4rem 1.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2.5rem;
|
||||
@@ -273,34 +286,57 @@ p {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
/* Neue CSS-Klassen für Navbar, Hero-Image, Events, Impressum */
|
||||
.navbar {
|
||||
/* Neue CSS-Klassen für Sidebar, Hero-Image, Events, Impressum */
|
||||
.sidebar {
|
||||
position: sticky;
|
||||
top: 20px;
|
||||
top: 2rem;
|
||||
height: fit-content;
|
||||
width: 100%;
|
||||
z-index: 100;
|
||||
margin: 0 auto;
|
||||
max-width: 900px;
|
||||
padding: 1rem;
|
||||
border-radius: 50px;
|
||||
padding: 2rem;
|
||||
border-radius: 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
@media(min-width: 900px) {
|
||||
.sidebar {
|
||||
width: 300px;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-logo {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.logo-small {
|
||||
width: 150px;
|
||||
height: auto;
|
||||
filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 2rem;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.nav-links a {
|
||||
text-decoration: none;
|
||||
color: var(--text-primary);
|
||||
font-weight: 500;
|
||||
font-size: 1.2rem;
|
||||
transition: color 0.3s ease;
|
||||
display: block;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.nav-links a:hover {
|
||||
.nav-links a:hover, .nav-links a.active {
|
||||
color: var(--accent-green);
|
||||
background: rgba(255,255,255,0.3);
|
||||
}
|
||||
|
||||
.hero-image-container {
|
||||
@@ -308,6 +344,9 @@ p {
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
|
||||
max-height: 400px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.hero-image {
|
||||
|
||||
Reference in New Issue
Block a user