From 24ab3182040fda60bdfef8ccdad7070b9e75c153 Mon Sep 17 00:00:00 2001 From: boutmoun123 Date: Sat, 2 May 2026 23:36:29 +0300 Subject: [PATCH] Unify section spacing rhythm --- app/portfolio.css | 28 +++++++++++++ components/home-page.tsx | 74 +++++++++++++++++----------------- components/project-card.tsx | 24 +++++------ components/section-heading.tsx | 9 +++-- 4 files changed, 83 insertions(+), 52 deletions(-) diff --git a/app/portfolio.css b/app/portfolio.css index 659a893..64d7096 100644 --- a/app/portfolio.css +++ b/app/portfolio.css @@ -234,6 +234,22 @@ line-height: 1.75; } + .content-stack-default > * + * { + margin-top: 1rem; + } + + .content-stack-relaxed > * + * { + margin-top: 1.5rem; + } + + .section-heading-stack > * + * { + margin-top: 1rem; + } + + .hero-copy-stack > * + * { + margin-top: 1rem; + } + .type-brand { font-size: var(--text-brand); line-height: 1; @@ -544,6 +560,14 @@ border-color: var(--meta-border-color); } + .project-card-copy > * + * { + margin-top: 1.5rem; + } + + .project-meta-item > * + * { + margin-top: 0.5rem; + } + .surface-chip { @apply rounded-full border; border-color: var(--color-line); @@ -616,6 +640,10 @@ line-height: 1.55; } + .contact-card-copy > * + * { + margin-top: 0.75rem; + } + .contact-value-ltr { direction: ltr; unicode-bidi: isolate; diff --git a/components/home-page.tsx b/components/home-page.tsx index bf604a2..4d70d44 100644 --- a/components/home-page.tsx +++ b/components/home-page.tsx @@ -66,7 +66,7 @@ export function HomePage({ language }: { language: Language }) { {founderName} -
+

{t.ui.architectureEngineer}

@@ -110,18 +110,18 @@ export function HomePage({ language }: { language: Language }) {
-
+

{t.ui.profile}

-

+

{t.hero.profileBlurb}

-
+

{t.hero.featuredProjectTitle}

-

+

{t.featured.projects[0]?.location ?? address}

-

{t.hero.featuredProjectText}

+

{t.hero.featuredProjectText}

@@ -135,7 +135,7 @@ export function HomePage({ language }: { language: Language }) { description={t.about.description} /> -
+
{t.about.paragraphs.map((paragraph) => (

{paragraph}

))} @@ -145,18 +145,18 @@ export function HomePage({ language }: { language: Language }) {
-
+

{t.ui.designPhilosophy}

-

+

"{t.philosophy.quote}"

-
+

{t.ui.materialsMood}

-

{t.philosophy.body}

+

{t.philosophy.body}

-
+
{t.philosophy.tags.map((item) => ( {t.sectors.categories.map((category, index) => ( -
+

{String(index + 1).padStart(2, "0")}

-

{category}

+

{category}

))}
@@ -224,14 +224,14 @@ export function HomePage({ language }: { language: Language }) { {t.awards.items.map((award, index) => (

{String(index + 1).padStart(2, "0")}

{award.year}

-

{award.title}

-

{award.description}

+

{award.title}

+

{award.description}

))}
@@ -249,9 +249,9 @@ export function HomePage({ language }: { language: Language }) { />
-
+

{t.ui.coreSkills}

-
+
{t.craft.skills.map((skill) => (
-
+

{t.ui.software}

-
+
{t.craft.software.map((tool) => ( {t.craft.additionalProjects.map((project) => ( -
+

{project.year}

-

{project.title}

-

{project.type}

-

+

{project.title}

+

{project.type}

+

{project.location}

@@ -318,26 +318,26 @@ export function HomePage({ language }: { language: Language }) {
- +

{t.ui.onlineResume}

-

+

{t.ui.viewFullResume}

{hasResume ? ( - +

{t.ui.pdfDownload}

-

+

{t.ui.downloadCv}

) : ( -
+

{t.ui.pdfDownload}

-

+

{t.ui.downloadCv}

-

{t.ui.resumeUnavailable}

+

{t.ui.resumeUnavailable}

)}
@@ -346,9 +346,9 @@ export function HomePage({ language }: { language: Language }) {
{t.metrics.map((metric) => ( -
+

{metric.value}

-

+

{metric.label}

@@ -378,17 +378,17 @@ export function HomePage({ language }: { language: Language }) { const isPhoneValue = item.kind === "phone" || item.kind === "whatsapp"; const isLtrValue = isEmail || isPhoneValue; const content = ( - <> +

{item.label}

{item.value}

- +
); const cardClass = `contact-card ${shouldSpan ? "md:col-span-2" : ""}`; diff --git a/components/project-card.tsx b/components/project-card.tsx index 6ff3fd8..9f41167 100644 --- a/components/project-card.tsx +++ b/components/project-card.tsx @@ -49,36 +49,36 @@ export function ProjectCard({
-
+
{project.id} {project.location}
-

+

{project.title}

-

+

{project.description}

-
-
+
+
{labels?.year ?? "Year"}
-
{project.year}
+
{project.year}
-
+
{labels?.area ?? "Area"}
-
{project.area}
+
{project.area}
-
+
{labels?.role ?? "Role"}
-
{project.role}
+
{project.role}
-