2 changed files with 180 additions and 28 deletions

No files matched your search

+18 -18
View File
@@ -4,20 +4,16 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Social Cooking Wireframe</title>
<link rel="stylesheet" href="stylesheet.css" />
</head>
<link rel="stylesheet" href="stylesheet.css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" integrity="sha512-dU7ZrF1pFq5kVnPzlV9+04YhARzNjCX5Q5P1shgMpuN4s5I8mI8QD4981h7kYtV7sSgNldR0z5pZW5bS2ZpY3Q==" crossorigin="anonymous" referrerpolicy="no-referrer" /></head>
<body>
<div class="page-wrapper">
<header class="header">
<div class="header__brand">LOGO</div>
<div class="header__actions">
<nav class="nav">
<a class="nav__link btn btn--outline" href="#">Event finden</a>
</nav>
<button class="btn btn--outline" type="button">Login</button>
</div>
</header>
<div class="header__brand">Invité</div>
<div class="header__actions">
<a class="nav__link" href="#">Event finden</a>
<button class="btn btn--outline" type="button">Login</button>
</div>
</header>
<main class="main-content">
<section class="hero">
@@ -40,11 +36,6 @@
</section>
<section class="gallery">
<div class="gallery__controls">
<button class="arrow">&lt;</button>
<button class="arrow">&gt;</button>
</div>
<div class="gallery__track">
<article class="gallery__item">
<div class="placeholder"></div>
@@ -57,12 +48,21 @@
</article>
</div>
<div class="gallery__dots">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
<div class="gallery__info">
<div class="profile-badge"></div>
<div class="gallery__handle">@social_cooking</div>
<div class="gallery__handle"><i class="fab fa-instagram gallery__icon" aria-hidden="true"></i><span class="gallery__at">@</span><span class="gallery__brand">Invité</span></div>
</div>
</section>
</main>
<footer class="footer">
<a href="#" class="footer__link">Impressum</a>
</footer>
</div>
</body>
</html>
+162 -10
View File
@@ -19,11 +19,117 @@ body {
border: 1px solid var(--black);
}
/* Layout logic */
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.gallery__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* --- 1. Basic Layout Logic --- */
.header {
display: flex;
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 */
}
.header__brand {
display: flex;
align-items: center;
gap: 10px;
font-weight: 700;
font-size: 1.2rem;
}
.brand__logo {
height: 34px;
width: auto;
object-fit: contain;
}
/* 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 */
.image-card__placeholder, .placeholder {
width: 100%;
@@ -52,12 +158,11 @@ body {
/* Badges and Buttons */
.social-badge {
position: absolute;
bottom: 10px; right: 10px;
background: var(--white);
border: 1px solid var(--black);
padding: 5px;
display: flex; gap: 5px;
display: flex;
justify-content: center; /* This centers the dots */
gap: 10px;
margin-top: 20px; /* This creates space between the photos and the dots */
/* REMOVE any line that says "position: absolute" or "bottom: 16px" */
}
.social-badge__dot { width: 12px; height: 12px; background: var(--black); border-radius: 50%; }
@@ -67,4 +172,51 @@ body {
border-radius: 50%;
border: 1px solid var(--black);
margin-top: 20px;
}
.gallery__info {
display: flex;
align-items: center;
gap: 10px;
}
.gallery__handle {
display: flex;
align-items: center;
font-size: 1.1rem;
font-weight: 700;
color: var(--black);
gap: 6px;
}
.gallery__icon {
font-size: 1.15rem;
color: #DD541A;
}
.gallery__at {
font-size: 1.1rem;
color: #222;
}
.gallery__brand {
font-family: 'Inter', sans-serif;
color: #DD541A;
}
/* Footer */
.footer {
display: flex;
justify-content: center;
align-items: center;
padding: 16px 24px;
border: none;
margin-top: 40px;
}
.footer__link {
color: var(--black);
text-decoration: underline;
font-size: 0.8rem;
font-weight: 400;
}