This commit is contained in:
viiivo 2026-03-27 10:16:03 +01:00
commit b15707e855
2 changed files with 122 additions and 37 deletions

View File

@ -19,11 +19,103 @@ body {
border: 1px solid var(--black); border: 1px solid var(--black);
} }
/* Layout logic */ /* --- 1. Basic Layout Logic --- */
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; } .header {
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; } display: flex;
.gallery__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; } justify-content: space-between;
align-items: center;
padding: 16px 24px;
border: 1px solid var(--black);
margin-bottom: 40px; /* Using your 40px margin from the first block */
}
/* Grouping container for 'Event finden' and 'Login' */
.header__actions {
display: flex;
align-items: center;
gap: 16px;
}
.hero {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
margin-bottom: 60px;
}
/* Container for the 3 photos */
.gallery__track {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-bottom: 30px; /* Space between photos and dots */
}
/* Container for the dots to keep them in the middle */
.gallery__dots {
display: flex;
justify-content: center; /* This is the "magic" line that centers them */
gap: 12px; /* Space between the dots */
width: 100%;
}
/* The actual black dots */
.dot {
width: 12px;
height: 12px;
background-color: #000; /* Solid black */
border-radius: 50%; /* Makes them round */
display: inline-block;
}
/* --- 2. Button & Link Styling --- */
.btn {
border: 2px solid var(--black);
background: var(--white);
color: var(--black);
padding: 10px 18px;
font-weight: 700;
cursor: pointer;
text-decoration: none; /* Keeps the link from having an underline */
display: inline-flex;
align-items: center;
font-size: 0.9rem;
transition: background-color 0.2s ease;
}
.btn:hover {
background-color: #f0f0f0;
}
.nav__link {
color: var(--black); /* Fixes the purple link issue */
}
/* --- 3. The "X" Box Logic --- */
.image-card__placeholder, .placeholder {
width: 100%;
height: 100%;
min-height: 250px;
position: relative;
border: 1px solid var(--black);
background: var(--white);
}
.image-card__placeholder::before, .image-card__placeholder::after,
.placeholder::before, .placeholder::after {
content: "";
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
}
/* Drawing the diagonal lines for the wireframe look */
.image-card__placeholder::before, .placeholder::before {
background: linear-gradient(to top left, transparent 49.5%, var(--black) 49.5%, var(--black) 50.5%, transparent 50.5%);
}
.image-card__placeholder::after, .placeholder::after {
background: linear-gradient(to top right, transparent 49.5%, var(--black) 49.5%, var(--black) 50.5%, transparent 50.5%);
}
/* The "X" Box Logic - IMPORTANT */ /* The "X" Box Logic - IMPORTANT */
.image-card__placeholder, .placeholder { .image-card__placeholder, .placeholder {
width: 100%; width: 100%;
@ -52,12 +144,11 @@ body {
/* Badges and Buttons */ /* Badges and Buttons */
.social-badge { .social-badge {
position: absolute; display: flex;
bottom: 10px; right: 10px; justify-content: center; /* This centers the dots */
background: var(--white); gap: 10px;
border: 1px solid var(--black); margin-top: 20px; /* This creates space between the photos and the dots */
padding: 5px; /* REMOVE any line that says "position: absolute" or "bottom: 16px" */
display: flex; gap: 5px;
} }
.social-badge__dot { width: 12px; height: 12px; background: var(--black); border-radius: 50%; } .social-badge__dot { width: 12px; height: 12px; background: var(--black); border-radius: 50%; }

View File

@ -10,11 +10,14 @@
<div class="page-wrapper"> <div class="page-wrapper">
<header class="header"> <header class="header">
<div class="header__brand">LOGO</div> <div class="header__brand">LOGO</div>
<div class="header__actions">
<nav class="nav"> <nav class="nav">
<a class="nav__link" href="#">Event finden</a> <a class="nav__link btn btn--outline" href="#">Event finden</a>
</nav> </nav>
<button class="btn btn--outline" type="button">Login</button> <button class="btn btn--outline" type="button">Login</button>
</header> </div>
</header>
<main class="main-content"> <main class="main-content">
<section class="hero"> <section class="hero">
@ -36,29 +39,20 @@
</div> </div>
</section> </section>
<section class="gallery"> <section class="gallery">
<div class="gallery__controls">
<button class="arrow">&lt;</button>
<button class="arrow">&gt;</button>
</div>
<div class="gallery__track"> <div class="gallery__track">
<article class="gallery__item"> <article class="gallery__item"><div class="placeholder"></div></article>
<div class="placeholder"></div> <article class="gallery__item"><div class="placeholder"></div></article>
</article> <article class="gallery__item"><div class="placeholder"></div></article>
<article class="gallery__item">
<div class="placeholder"></div>
</article>
<article class="gallery__item">
<div class="placeholder"></div>
</article>
</div> </div>
<div class="gallery__info"> <div class="gallery__dots">
<div class="profile-badge"></div> <span class="dot"></span>
<div class="gallery__handle">@social_cooking</div> <span class="dot"></span>
<span class="dot"></span>
</div> </div>
</section> </section>
</main> </main>
</div> </div>
<script src="js/landingpage.js"></script> <script src="js/landingpage.js"></script>