Skip to content

Commit 9c4c346

Browse files
committed
add banner for newline on homepage
1 parent c46c8af commit 9c4c346

2 files changed

Lines changed: 89 additions & 1 deletion

File tree

public/css/newline-popup.css

Lines changed: 83 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Newline popup — delete this file after Newline 2026 */
1+
/* Newline popup + permanent banner — delete this file after Newline 2026 */
22
@font-face {
33
font-family: "Brother";
44
src: url("/fonts/brother-bold.ttf") format("truetype");
@@ -232,3 +232,85 @@
232232
transition: none !important;
233233
}
234234
}
235+
236+
/* Permanent Newline banner on homepage */
237+
.newline-banner {
238+
display: flex;
239+
align-items: center;
240+
gap: 1.5rem;
241+
padding: 1.25rem 1.75rem;
242+
margin: 1.5rem 0 1rem;
243+
background: linear-gradient(90deg, #ff5a6e 0%, #ff7a58 35%, #ffa048 70%, #ffb640 100%);
244+
border: none !important;
245+
border-radius: 16px;
246+
color: #fff5e6;
247+
text-decoration: none;
248+
box-shadow: 0 4px 20px rgba(255, 90, 110, 0.25);
249+
transition: transform 0.2s ease, box-shadow 0.2s ease;
250+
font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", "Arial", sans-serif;
251+
}
252+
253+
.newline-banner:hover {
254+
transform: translateY(-2px);
255+
box-shadow: 0 6px 25px rgba(255, 90, 110, 0.4);
256+
color: #fff5e6;
257+
}
258+
259+
.newline-banner__logo {
260+
width: clamp(140px, 18vw, 200px);
261+
height: auto;
262+
flex-shrink: 0;
263+
}
264+
265+
.newline-banner__info {
266+
flex: 1;
267+
min-width: 0;
268+
}
269+
270+
.newline-banner__date {
271+
font-family: "Brother", sans-serif;
272+
font-size: clamp(1.1rem, 2.5vw, 1.5rem);
273+
font-weight: bold;
274+
text-transform: uppercase;
275+
color: #fff5e6;
276+
margin: 0;
277+
line-height: 1.1;
278+
}
279+
280+
.newline-banner__location {
281+
font-family: "Brother", sans-serif;
282+
font-size: clamp(0.9rem, 2vw, 1.1rem);
283+
font-weight: bold;
284+
text-transform: uppercase;
285+
color: #fff5e6;
286+
margin: 0.35rem 0 0;
287+
opacity: 0.9;
288+
line-height: 1.1;
289+
}
290+
291+
.newline-banner__cta {
292+
font-family: "Brother", sans-serif;
293+
font-size: clamp(0.95rem, 2vw, 1.1rem);
294+
font-weight: bold;
295+
text-transform: uppercase;
296+
padding: 0.7rem 1.4rem;
297+
background: rgba(255, 255, 255, 0.95);
298+
color: #ff5a6e;
299+
border-radius: 50px;
300+
flex-shrink: 0;
301+
white-space: nowrap;
302+
transition: background 0.2s ease;
303+
}
304+
305+
.newline-banner:hover .newline-banner__cta {
306+
background: #fff5e6;
307+
}
308+
309+
@media (max-width: 600px) {
310+
.newline-banner {
311+
flex-direction: column;
312+
text-align: center;
313+
gap: 0.75rem;
314+
padding: 1.25rem;
315+
}
316+
}

views/index.pug

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ html(lang="en")
2626
.wrapper
2727
include partials/header
2828
.container
29+
a.newline-banner(href="https://newline.gent/" target="_blank" rel="noopener")
30+
img.newline-banner__logo(src="https://newline.gent/img/header.png" alt="Newline 2026")
31+
.newline-banner__info
32+
p.newline-banner__date 29 – 30 – 31 May 2026
33+
p.newline-banner__location Hackerspace Gent, Belgium
34+
span.newline-banner__cta Learn more →
2935
.row
3036
.col-xl-8.col-md-12
3137
h1 A place to call home

0 commit comments

Comments
 (0)