feat: improve spacing overall
This commit is contained in:
@@ -9,7 +9,7 @@ const icons = [CalendarDays, MapPin, Clock3]
|
||||
|
||||
export function IntroductionSection({ content }: { content: InvitePageContent["introduction"] }) {
|
||||
return (
|
||||
<section id="introduction" className="bg-wedding-ivory py-wedding-section">
|
||||
<section id="introduction" className="bg-wedding-ivory pt-wedding-section">
|
||||
<WeddingContainer>
|
||||
<Monogram />
|
||||
<div className="mt-10 grid gap-10 wedding-lg:grid-cols-2 wedding-lg:items-center">
|
||||
@@ -26,9 +26,13 @@ export function IntroductionSection({ content }: { content: InvitePageContent["i
|
||||
<div className="mt-14 grid border-y border-wedding-line wedding-md:grid-cols-3 wedding-md:border-y-0">
|
||||
{content.facts.map((fact, index) => {
|
||||
const Icon = icons[index]
|
||||
return <div className={`flex gap-4 px-0 py-7 wedding-md:px-6 wedding-md:py-0 ${index < content.facts.length - 1 ? "wedding-md:border-r wedding-md:border-wedding-line" : ""}`} key={fact.label}>
|
||||
return <div className={`flex gap-4 px-0 py-4 wedding-md:px-6 wedding-md:py-0 ${index < content.facts.length - 1 ? "wedding-md:border-r wedding-md:border-wedding-line" : ""}`} key={fact.label}>
|
||||
<Icon className="mt-1 size-5 text-wedding-terracotta" aria-hidden="true" />
|
||||
<div><p className="wedding-section-label">{fact.label}</p><p className="mt-2 font-wedding-display text-wedding-medium">{fact.value}</p>{fact.description ? <p className="mt-1 font-wedding-ui text-sm">{fact.description}</p> : null}</div>
|
||||
<div className="flex flex-col" >
|
||||
<p className="wedding-section-label">{fact.label}</p>
|
||||
<p className="mt-2 wedding-md:h-24 flex items-center justify-center wedding-md:text-center wedding-lg:text-left font-wedding-display text-wedding-medium">{fact.value}</p>
|
||||
{fact.description ? <p className="mt-1 font-wedding-ui wedding-md:text-center wedding-lg:text-left text-sm mt-auto">{fact.description}</p> : null}
|
||||
</div>
|
||||
</div>
|
||||
})}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user