style(web): simplify section component class names by removing redundant padding

This commit is contained in:
jinhojang6
2026-06-04 18:46:39 +09:00
parent 97589cb5c5
commit 54a550dd9f
7 changed files with 7 additions and 16 deletions
@@ -17,10 +17,7 @@ export function SectionFrame({
children: ReactNode
}) {
return (
<section
id={id}
className="border-t border-brand-dark-green/10 px-3 pt-6 pb-25"
>
<section id={id} className="border-t border-brand-dark-green/10 pt-6 pb-25">
<ContentWidth>
<h2 className="flex items-baseline gap-3 text-[24px] leading-[1.1] tracking-[-0.24px] whitespace-nowrap">
<span className="font-display text-brand-dark-green/50">{index}</span>
@@ -13,7 +13,7 @@ export function DocumentationSection({
return (
<section
id="resources"
className="border-t border-brand-dark-green/10 bg-brand-off-white px-3 pt-[39px] pb-25 text-brand-dark-green"
className="border-t border-brand-dark-green/10 bg-brand-off-white pt-[39px] pb-25 text-brand-dark-green"
>
<ContentWidth>
<div className="md:grid md:grid-cols-[1fr_1fr] md:gap-3">
@@ -13,7 +13,7 @@ export function BuildersHubHero({ hero }: { hero: BuilderHubSettings['hero'] })
)
return (
<section className="relative h-[483px] px-3 pt-6 md:h-[487px]">
<section className="relative h-[483px] pt-6 md:h-[487px]">
<ContentWidth className="relative h-full">
<div className="absolute top-6 left-3 h-[75px] w-[107px] overflow-hidden">
<Image
@@ -10,7 +10,7 @@ export function JourneySection({
data: NonNullable<BuilderHubSettings['journey']>
}) {
return (
<section className="px-3 pb-25 md:pb-25">
<section className="pb-25 md:pb-25">
<ContentWidth>
<h2 className="font-sans text-[24px] leading-[1.1] tracking-[-0.24px] text-brand-dark-green">
{data.title}
@@ -37,7 +37,7 @@ function TagIcon({ icon }: { icon?: BuilderHubTagIcon }) {
export function BuildersHubAppInstall({ data }: Props) {
return (
<section id="app-install" className="py-10">
<ContentWidth>
<ContentWidth className="!px-0">
<GiantSwitch
accent={data.accent}
imagePosition={data.imagePosition}
@@ -85,10 +85,7 @@ export function BasecampInstallSection({
cards,
}: BasecampInstallSectionProps) {
return (
<section
id={id}
className="border-t border-brand-dark-green/10 px-3 pt-6 pb-25"
>
<section id={id} className="border-t border-brand-dark-green/10 pt-6 pb-25">
<ContentWidth>
<h2 className="flex items-baseline gap-3 text-[24px] leading-[1.1] tracking-[-0.24px] whitespace-nowrap">
<span className="font-display text-brand-dark-green/50">{index}</span>
@@ -24,10 +24,7 @@ export function DeveloperProgramsSection({
const previewRfps = rfps.filter((rfp) => !rfp.featured).slice(0, 4)
return (
<section
id={id}
className="border-t border-brand-dark-green/10 px-3 pt-6 pb-25"
>
<section id={id} className="border-t border-brand-dark-green/10 pt-6 pb-25">
<ContentWidth>
<h2 className="flex items-baseline gap-3 text-[24px] leading-[1.1] tracking-[-0.24px] whitespace-nowrap">
<span className="font-display text-brand-dark-green/50">{index}</span>