Skip to content

Commit c5cdf24

Browse files
committed
fix padding
1 parent 9438e20 commit c5cdf24

8 files changed

Lines changed: 42 additions & 93 deletions

File tree

src/app/contact/page.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ export const metadata: Metadata = {
77

88
export default function ContactPage() {
99
return (
10-
<section className="page">
11-
<div className="container">
12-
<h1>Contact</h1>
13-
<p className="lead">
10+
<section className="pb-20 pt-10 sm:pb-32 sm:pt-12">
11+
<div className="mx-auto w-full max-w-[1120px] px-8 sm:px-10 lg:px-12 xl:px-4">
12+
<h1 className="mb-3 mt-0 text-[clamp(1.8rem,2.5vw,2.4rem)]">
13+
Contact
14+
</h1>
15+
<p className="mb-8 mt-0 text-(--ink-muted)">
1416
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras a sem
1517
sit amet nulla placerat tincidunt in in nunc.
1618
</p>

src/app/globals.scss

Lines changed: 7 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -112,23 +112,17 @@ body {
112112
display: flex;
113113
gap: 1rem;
114114
align-items: center;
115-
justify-content: space-between;
116-
padding: 1.25rem 0;
115+
justify-content: flex-start;
116+
text-align: left;
117+
padding-block: 1.25rem;
117118
color: var(--ink-muted);
118119
}
119120

120-
.container {
121-
width: 100%;
122-
max-width: 1120px;
123-
margin: 0 auto;
124-
padding: 0 1rem;
125-
}
126-
127121
.nav {
128122
display: flex;
129123
align-items: center;
130124
justify-content: space-between;
131-
padding: 0.9rem 0;
125+
padding-block: 1.1rem;
132126
}
133127

134128
.nav-list-container {
@@ -389,17 +383,6 @@ body {
389383
}
390384

391385
/* Utility */
392-
.page {
393-
padding: 3rem 0 8rem;
394-
}
395-
.page h1 {
396-
font-size: clamp(1.8rem, 2.5vw, 2.4rem);
397-
margin: 0 0 0.75rem;
398-
}
399-
.lead {
400-
color: var(--ink-muted);
401-
margin: 0 0 2rem;
402-
}
403386
.grid {
404387
display: grid;
405388
gap: 1rem;
@@ -546,18 +529,6 @@ body {
546529
box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.15);
547530
}
548531

549-
/* Simple full-center layout */
550-
.center {
551-
min-height: 100dvh;
552-
display: flex;
553-
flex-direction: column;
554-
align-items: center;
555-
justify-content: center;
556-
padding: 1rem;
557-
position: relative;
558-
overflow: hidden;
559-
}
560-
561532
.hero-container {
562533
display: flex;
563534
flex-direction: column;
@@ -567,14 +538,6 @@ body {
567538
animation: fadeInUp 1s ease-out;
568539
}
569540

570-
/* Primary hero call-to-actions */
571-
.cta-row {
572-
display: flex;
573-
gap: 0.75rem;
574-
margin-top: 0.6rem;
575-
justify-content: center;
576-
}
577-
578541
.headline {
579542
margin: 0;
580543
font-size: clamp(2.25rem, 6vw, 4rem);
@@ -731,10 +694,6 @@ body {
731694
letter-spacing: 0.2px;
732695
}
733696

734-
.max-700 {
735-
max-width: 700px;
736-
}
737-
738697
.btn.hero {
739698
color: #0b1020;
740699
background: #ffffff;
@@ -751,12 +710,6 @@ body {
751710
.btn-icon {
752711
margin-right: 0.25rem;
753712
}
754-
.hero-note {
755-
margin-top: 0.6rem;
756-
color: var(--ink-muted);
757-
font-size: 0.9rem;
758-
}
759-
760713
/* --- Wind Particles --- */
761714
.wind-particles {
762715
position: absolute;
@@ -922,7 +875,7 @@ body {
922875
.nav {
923876
position: relative;
924877
gap: 0.75rem;
925-
padding: 0.75rem 0;
878+
padding-block: 1rem;
926879
}
927880

928881
.nav-toggle {
@@ -931,12 +884,12 @@ body {
931884

932885
.nav-list-container {
933886
position: absolute;
934-
inset: calc(100% + 0.75rem) 0 auto 0;
887+
inset: calc(100% + 0.75rem) 2rem auto 2rem;
935888
display: none;
936889
flex-direction: column;
937890
align-items: stretch;
938891
gap: 0.75rem;
939-
padding: 1.1rem;
892+
padding: 1.25rem;
940893
background: rgba(12, 22, 52, 0.86);
941894
backdrop-filter: blur(16px) saturate(160%);
942895
-webkit-backdrop-filter: blur(16px) saturate(160%);
@@ -990,20 +943,12 @@ body {
990943
justify-content: center;
991944
}
992945

993-
.cta-row {
994-
flex-wrap: wrap;
995-
}
996-
997946
.footer-inner {
998947
gap: 0.75rem;
999948
}
1000949
}
1001950

1002951
@media (max-width: 640px) {
1003-
.container {
1004-
padding: 0 1.25rem;
1005-
}
1006-
1007952
.logo {
1008953
height: 3.2em;
1009954
}
@@ -1023,15 +968,6 @@ body {
1023968
padding-right: 0;
1024969
}
1025970

1026-
.cta-row {
1027-
flex-direction: column;
1028-
gap: 0.5rem;
1029-
}
1030-
1031-
.page {
1032-
padding: 2.5rem 0 5rem;
1033-
}
1034-
1035971
.grid {
1036972
grid-template-columns: 1fr;
1037973
}

src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default function RootLayout({
3535
<main className="site-main">{children}</main>
3636

3737
<footer className="site-footer">
38-
<div className="container footer-inner">
38+
<div className="footer-inner w-full px-8 text-left sm:px-10 lg:px-12">
3939
<p>Made with ❤️ by Team whIRLwind — University of Amsterdam</p>
4040
</div>
4141
</footer>

src/app/page.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import Image from "next/image";
22

33
export default function Home() {
44
return (
5-
<section className="center hero-like" aria-label="Hero">
5+
<section
6+
className="hero-like relative flex min-h-[100dvh] flex-col items-center justify-center overflow-hidden px-8 sm:px-10 lg:px-12 xl:px-4"
7+
aria-label="Hero"
8+
>
69
<div className="hero-backdrop" aria-hidden />
710

811
<div className="wind-particles" aria-hidden>
@@ -29,16 +32,18 @@ export default function Home() {
2932
<p className="team">
3033
Your local artificially intelligent robotics team
3134
</p>
32-
<p className="tagline max-700">
35+
<p className="tagline max-w-[700px]">
3336
University of Amsterdam · Intelligent Robotics Lab.
3437
</p>
3538

36-
<div className="cta-row">
39+
<div className="mt-[0.6rem] flex justify-center gap-3">
3740
<a className="btn hero" href="/publications">
3841
Explore Publications
3942
</a>
4043
</div>
41-
<div className="hero-note">more coming soon</div>
44+
<div className="mt-[0.6rem] text-[0.9rem] text-(--ink-muted)">
45+
more coming soon
46+
</div>
4247
</div>
4348
</section>
4449
);

src/app/publications/page.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ function formatPublicationType(type?: string): string {
2626

2727
export default function PublicationsPage() {
2828
return (
29-
<section className="page">
30-
<div className="container">
31-
<h1>Publications</h1>
32-
<p className="lead">
29+
<section className="pb-20 pt-10 sm:pb-32 sm:pt-12">
30+
<div className="mx-auto w-full max-w-[1120px] px-8 sm:px-10 lg:px-12 xl:px-4">
31+
<h1 className="mb-3 mt-0 text-[clamp(1.8rem,2.5vw,2.4rem)]">
32+
Publications
33+
</h1>
34+
<p className="mb-8 mt-0 text-(--ink-muted)">
3335
Research papers, technical reports, and theses from Team whIRLwind
3436
members (2021-2025).
3537
</p>

src/app/socials/page.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ const socials = [
1616

1717
export default function SocialsPage() {
1818
return (
19-
<section className="page">
20-
<div className="container">
21-
<h1>Socials</h1>
22-
<p className="lead">
19+
<section className="pb-20 pt-10 sm:pb-32 sm:pt-12">
20+
<div className="mx-auto w-full max-w-[1120px] px-8 sm:px-10 lg:px-12 xl:px-4">
21+
<h1 className="mb-3 mt-0 text-[clamp(1.8rem,2.5vw,2.4rem)]">
22+
Socials
23+
</h1>
24+
<p className="mb-8 mt-0 text-(--ink-muted)">
2325
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer
2426
blandit tristique risus, sed cursus lorem hendrerit at.
2527
</p>

src/app/sponsors/page.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@ const sponsorTiers: SponsorTier[] = [
5757

5858
export default function SponsorsPage() {
5959
return (
60-
<section className="page">
61-
<div className="container">
62-
<h1>Sponsors</h1>
63-
<p className="lead">
60+
<section className="pb-20 pt-10 sm:pb-32 sm:pt-12">
61+
<div className="mx-auto w-full max-w-[1120px] px-8 sm:px-10 lg:px-12 xl:px-4">
62+
<h1 className="mb-3 mt-0 text-[clamp(1.8rem,2.5vw,2.4rem)]">
63+
Sponsors
64+
</h1>
65+
<p className="mb-8 mt-0 text-(--ink-muted)">
6466
These partners keep our robots rolling and make it possible to share
6567
the work beyond the lab.
6668
</p>

src/components/SiteHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default function SiteHeader() {
4040

4141
return (
4242
<header className={`site-header ${open ? "site-header--open" : ""}`}>
43-
<div className="container nav">
43+
<div className="nav w-full px-8 py-4 sm:px-10 lg:px-12 xl:mx-auto xl:max-w-[1120px] xl:px-4">
4444
<Link
4545
href="/"
4646
className="brand"

0 commit comments

Comments
 (0)