Component cleanup

This commit is contained in:
adilallo
2026-04-29 07:20:16 -06:00
parent 252848eba9
commit e6127f1a3f
267 changed files with 2087 additions and 2196 deletions
+19 -17
View File
@@ -14,15 +14,12 @@ const LogoWall = dynamic(() => import("../components/sections/LogoWall"), {
ssr: true,
});
const NumberedCards = dynamic(
() => import("../components/sections/NumberedCards"),
{
loading: () => (
<section className="py-[var(--spacing-scale-032)] min-h-[300px]" />
),
ssr: true,
},
);
const CardSteps = dynamic(() => import("../components/sections/CardSteps"), {
loading: () => (
<section className="py-[var(--spacing-scale-032)] min-h-[300px]" />
),
ssr: true,
});
const FeatureGrid = dynamic(
() => import("../components/sections/FeatureGrid"),
@@ -54,22 +51,27 @@ export default function Page() {
ctaHref: t("pages.home.heroBanner.ctaHref"),
};
const numberedCardsData = {
title: t("pages.home.numberedCards.title"),
subtitle: t("pages.home.numberedCards.subtitle"),
cards: [
const cardStepsData = {
title: t("pages.home.cardSteps.title"),
subtitle: t("pages.home.cardSteps.subtitle"),
headingDesktopLines: [
t("pages.home.cardSteps.headingDesktopLine1"),
t("pages.home.cardSteps.headingDesktopLine2"),
t("pages.home.cardSteps.headingDesktopLine3"),
] as const,
steps: [
{
text: t("pages.home.numberedCards.cards.card1.text"),
text: t("pages.home.cardSteps.cards.card1.text"),
iconShape: "blob",
iconColor: "green",
},
{
text: t("pages.home.numberedCards.cards.card2.text"),
text: t("pages.home.cardSteps.cards.card2.text"),
iconShape: "gear",
iconColor: "purple",
},
{
text: t("pages.home.numberedCards.cards.card3.text"),
text: t("pages.home.cardSteps.cards.card3.text"),
iconShape: "star",
iconColor: "orange",
},
@@ -92,7 +94,7 @@ export default function Page() {
<div>
<HeroBanner {...heroBannerData} />
<LogoWall />
<NumberedCards {...numberedCardsData} />
<CardSteps {...cardStepsData} />
<Suspense
fallback={
<section className="py-[var(--spacing-scale-032)] min-h-[400px]" />
+2 -2
View File
@@ -2,7 +2,7 @@ import type { Metadata } from "next";
import { notFound } from "next/navigation";
import { getPublicPublishedRuleById } from "../../../../lib/server/publishedRules";
import { parseDocumentSectionsForDisplay } from "../../../../lib/create/buildPublishPayload";
import CommunityRuleDocument from "../../../components/sections/CommunityRuleDocument";
import CommunityRule from "../../../components/type/CommunityRule";
import HeaderLockup from "../../../components/type/HeaderLockup";
interface PageProps {
@@ -65,7 +65,7 @@ export default async function PublicRuleDetailPage({ params }: PageProps) {
size="L"
palette="inverse"
/>
<CommunityRuleDocument sections={sections} />
<CommunityRule sections={sections} />
</div>
</div>
);