Skip to content

Commit d768064

Browse files
committed
reafctor: folder & components
1 parent 8848568 commit d768064

45 files changed

Lines changed: 94 additions & 139 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/app/(landing)/[locale]/[...rest]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PageBlocks } from "@/components/PageBlockRenderer"
1+
import { PageBlocks } from "@/components/ui/PageBlockRenderer"
22
import { LandingContainer } from "@/components/ui/LandingContainer"
33
import { getCustomLandingPage } from "@/lib/cms"
44
import { isSupportedLocale } from "@/lib/i18n"

src/app/(landing)/[locale]/actions/[slug]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PageBlocks } from "@/components/PageBlockRenderer"
1+
import { PageBlocks } from "@/components/ui/PageBlockRenderer"
22
import { LandingContainer } from "@/components/ui/LandingContainer"
33
import { fetchMediaJson } from "@/lib/actionExtraction"
44
import { getPageLocaleAndSlug, type LocaleSlugPageParams } from "@/lib/appRoute"
@@ -20,7 +20,7 @@ export default async function ActionDetailPage({ params }: { params: LocaleSlugP
2020

2121
return (
2222
<LandingContainer className="pt-16">
23-
<PageBlocks blocks={actionsPage?.layout} locale={locale} action={action} actionModuleJson={moduleJson} actionReferences={references as (typeof action)[]} />
23+
<PageBlocks blocks={actionsPage?.layout} locale={locale} action={action} actionModuleJson={moduleJson} actionReferences={references as (typeof action)[]} />
2424
</LandingContainer>
2525
)
2626
}

src/app/(landing)/[locale]/actions/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { LandingContainer } from "@/components/ui/LandingContainer"
2-
import { PageBlocks } from "@/components/PageBlockRenderer"
2+
import { PageBlocks } from "@/components/ui/PageBlockRenderer"
33
import { createLandingMetadata, getPageLocale, type LocalePageParams } from "@/lib/appRoute"
44
import { getActions, getLandingPage } from "@/lib/cms"
55

@@ -11,8 +11,8 @@ export default async function ActionsPage({ params }: { params: LocalePageParams
1111

1212
return (
1313
<LandingContainer>
14-
<div className="h-12 lg:h-16" aria-hidden="true" />
15-
<PageBlocks blocks={actionsPage?.layout} actions={actions} locale={locale} />
14+
<div className="h-12 lg:h-16" aria-hidden="true" />
15+
<PageBlocks blocks={actionsPage?.layout} actions={actions} locale={locale} />
1616
</LandingContainer>
1717
)
1818
}

src/app/(landing)/[locale]/blog/[slug]/page.tsx

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { BlogPost } from "@/components/blog/BlogPost"
22
import { BlogSkeleton } from "@/components/blog/BlogSkeleton"
3-
import { InteractiveGridPattern } from "@/components/InteractiveGridPattern"
3+
import { InteractiveGridPattern } from "@/components/ui/InteractiveGridPattern"
44
import { Card } from "@/components/ui/Card"
55
import { HapticButtonLink } from "@/components/ui/HapticButtonLink"
66
import { LandingContainer } from "@/components/ui/LandingContainer"
@@ -28,39 +28,39 @@ export default async function Page({ params }: { params: LocaleSlugPageParams })
2828

2929
return (
3030
<LandingContainer>
31-
<div className={"pt-32 w-full max-w-5xl mx-auto"}>
32-
<Suspense fallback={<BlogSkeleton />}>
33-
<BlogPost slug={slug} locale={locale} />
31+
<div className={"pt-32 w-full max-w-5xl mx-auto"}>
32+
<Suspense fallback={<BlogSkeleton />}>
33+
<BlogPost slug={slug} locale={locale} />
3434

35-
<Card size="lg" className={"mt-32 w-full p-0 overflow-hidden bg-[linear-gradient(180deg,rgba(255,255,255,0.05),rgba(255,255,255,0.02))]"}>
36-
<div className={"relative flex w-full flex-col items-center justify-center overflow-hidden rounded-3xl px-6 py-10 sm:px-10 sm:py-12"}>
37-
<InteractiveGridPattern className="opacity-60 mask-[radial-gradient(600px_circle_at_center,white,transparent)] rounded-3xl" width={40} height={40} squares={[35, 15]} />
38-
<div
39-
className={
40-
"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_50%_20%,rgba(255,255,255,0.14),transparent_24%),radial-gradient(circle_at_50%_22%,rgba(191,90,242,0.18),transparent_34%),radial-gradient(circle_at_50%_18%,rgba(255,255,255,0.08),transparent_20%)] md:bg-[radial-gradient(circle_at_top,rgba(255,255,255,0.14),transparent_32%),radial-gradient(circle_at_20%_50%,rgba(191,90,242,0.14),transparent_38%),radial-gradient(circle_at_78%_48%,rgba(255,255,255,0.08),transparent_28%)]"
41-
}
42-
/>
35+
<Card size="lg" className={"mt-32 w-full p-0 overflow-hidden bg-[linear-gradient(180deg,rgba(255,255,255,0.05),rgba(255,255,255,0.02))]"}>
36+
<div className={"relative flex w-full flex-col items-center justify-center overflow-hidden rounded-3xl px-6 py-10 sm:px-10 sm:py-12"}>
37+
<InteractiveGridPattern className="opacity-60 mask-[radial-gradient(600px_circle_at_center,white,transparent)] rounded-3xl" width={40} height={40} squares={[35, 15]} />
38+
<div
39+
className={
40+
"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_50%_20%,rgba(255,255,255,0.14),transparent_24%),radial-gradient(circle_at_50%_22%,rgba(191,90,242,0.18),transparent_34%),radial-gradient(circle_at_50%_18%,rgba(255,255,255,0.08),transparent_20%)] md:bg-[radial-gradient(circle_at_top,rgba(255,255,255,0.14),transparent_32%),radial-gradient(circle_at_20%_50%,rgba(191,90,242,0.14),transparent_38%),radial-gradient(circle_at_78%_48%,rgba(255,255,255,0.08),transparent_28%)]"
41+
}
42+
/>
4343

44-
<div className={"relative z-20 flex w-full max-w-4xl flex-col items-center gap-8 text-center md:flex-row md:items-center md:text-left"}>
45-
<div className={"relative flex size-32 shrink-0 items-center justify-center rounded-3xl border border-white/10 bg-light md:size-40"}>
46-
<div className={"relative isolate flex items-center justify-center rounded-3xl ring ring-white/10 px-4 py-4"}>
47-
<div aria-hidden="true" className="pointer-events-none absolute inset-0 rounded-[1.25rem] bg-linear-to-br from-primary via-primary to-slate-900" />
48-
<Image src={"/code0_logo_white.png"} width={"120"} height={"120"} alt={"Code0 Logo"} className={"z-20"} />
49-
</div>
44+
<div className={"relative z-20 flex w-full max-w-4xl flex-col items-center gap-8 text-center md:flex-row md:items-center md:text-left"}>
45+
<div className={"relative flex size-32 shrink-0 items-center justify-center rounded-3xl border border-white/10 bg-light md:size-40"}>
46+
<div className={"relative isolate flex items-center justify-center rounded-3xl ring ring-white/10 px-4 py-4"}>
47+
<div aria-hidden="true" className="pointer-events-none absolute inset-0 rounded-[1.25rem] bg-linear-to-br from-primary via-primary to-slate-900" />
48+
<Image src={"/code0_logo_white.png"} width={"120"} height={"120"} alt={"Code0 Logo"} className={"z-20"} />
5049
</div>
50+
</div>
5151

52-
<div className={"z-20 flex max-w-2xl flex-col items-center text-center md:items-start md:text-left"}>
53-
<p className={"max-w-xl text-3xl font-semibold leading-tight text-white"}>{ctaBlock?.heading ?? "Contact us"}</p>
54-
<p className={"mb-4 max-w-xl text-base leading-7 text-secondary"}>{ctaBlock?.subheading ?? ""}</p>
55-
<HapticButtonLink href={"/contact"} variant="normal" className={"h-11 rounded-xl px-8! bg-white/90! text-primary! hover:bg-white!"}>
56-
Contact us
57-
</HapticButtonLink>
58-
</div>
52+
<div className={"z-20 flex max-w-2xl flex-col items-center text-center md:items-start md:text-left"}>
53+
<p className={"max-w-xl text-3xl font-semibold leading-tight text-white"}>{ctaBlock?.heading ?? "Contact us"}</p>
54+
<p className={"mb-4 max-w-xl text-base leading-7 text-secondary"}>{ctaBlock?.subheading ?? ""}</p>
55+
<HapticButtonLink href={"/contact"} variant="normal" className={"h-11 rounded-xl px-8! bg-white/90! text-primary! hover:bg-white!"}>
56+
Contact us
57+
</HapticButtonLink>
5958
</div>
6059
</div>
61-
</Card>
62-
</Suspense>
63-
</div>
60+
</div>
61+
</Card>
62+
</Suspense>
63+
</div>
6464
</LandingContainer>
6565
)
6666
}

src/app/(landing)/[locale]/community-edition/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PageBlocks } from "@/components/PageBlockRenderer"
1+
import { PageBlocks } from "@/components/ui/PageBlockRenderer"
22
import { LandingContainer } from "@/components/ui/LandingContainer"
33
import { createLandingMetadata, getPageLocale, type LocalePageParams } from "@/lib/appRoute"
44
import { getLandingPage } from "@/lib/cms"

src/app/(landing)/[locale]/enterprise-edition/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PageBlocks } from "@/components/PageBlockRenderer"
1+
import { PageBlocks } from "@/components/ui/PageBlockRenderer"
22
import { LandingContainer } from "@/components/ui/LandingContainer"
33
import { createLandingMetadata, getPageLocale, type LocalePageParams } from "@/lib/appRoute"
44
import { getLandingPage } from "@/lib/cms"

src/app/(landing)/[locale]/jobs/[slug]/page.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { JobDetailContent } from "@/components/JobDetailContent"
1+
import { JobDetailContent } from "@/components/jobs/JobDetailContent"
22
import { LandingContainer } from "@/components/ui/LandingContainer"
33
import { getPageLocaleAndSlug, type LocaleSlugPageParams } from "@/lib/appRoute"
44
import { createMetadata } from "@/lib/siteConfig"
@@ -24,9 +24,9 @@ export default async function JobDetailPage({ params }: { params: LocaleSlugPage
2424

2525
return (
2626
<LandingContainer className="pt-32">
27-
<div className="mx-auto w-full max-w-5xl">
28-
<JobDetailContent contentHtml={contentHtml} jobSlug={job.slug} jobsBlock={jobsBlock} locale={locale} />
29-
</div>
27+
<div className="mx-auto w-full max-w-5xl">
28+
<JobDetailContent contentHtml={contentHtml} jobSlug={job.slug} jobsBlock={jobsBlock} locale={locale} />
29+
</div>
3030
</LandingContainer>
3131
)
3232
}
@@ -44,4 +44,3 @@ export async function generateMetadata({ params }: { params: LocaleSlugPageParam
4444
description: job.description ?? undefined,
4545
})
4646
}
47-
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { JobsPageClient } from "@/components/JobsPageClient"
1+
import { JobsPageClient } from "@/components/jobs/JobsPageClient"
22
import { LandingContainer } from "@/components/ui/LandingContainer"
33
import { createLandingMetadata, getPageLocale, type LocalePageParams } from "@/lib/appRoute"
44
import { getLandingPage } from "@/lib/cms"
@@ -9,15 +9,12 @@ export const generateMetadata = createLandingMetadata("jobs")
99

1010
export default async function JobPage({ params }: { params: LocalePageParams }) {
1111
const locale = await getPageLocale(params)
12-
const [jobs, jobsPage] = await Promise.all([
13-
getJobs(locale),
14-
getLandingPage("jobs", locale),
15-
])
12+
const [jobs, jobsPage] = await Promise.all([getJobs(locale), getLandingPage("jobs", locale)])
1613
const jobsBlock = findPageBlock(jobsPage, "jobs")
1714

1815
return (
1916
<LandingContainer className="pt-32">
20-
<JobsPageClient jobs={jobs} locale={locale} content={jobsBlock} />
17+
<JobsPageClient jobs={jobs} locale={locale} content={jobsBlock} />
2118
</LandingContainer>
2219
)
2320
}

src/app/(landing)/[locale]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { DeploymentImage } from "@/components/DeploymentImage"
2-
import { PageBlocks } from "@/components/PageBlockRenderer"
1+
import { DeploymentImage } from "@/components/ui/DeploymentImage"
2+
import { PageBlocks } from "@/components/ui/PageBlockRenderer"
33
import { LandingContainer } from "@/components/ui/LandingContainer"
44
import { createLandingMetadata, getPageLocale, type LocalePageParams } from "@/lib/appRoute"
55
import { getLandingPage } from "@/lib/cms"

src/app/(landing)/[locale]/pricing/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PageBlocks } from "@/components/PageBlockRenderer"
1+
import { PageBlocks } from "@/components/ui/PageBlockRenderer"
22
import { LandingContainer } from "@/components/ui/LandingContainer"
33
import { createLandingMetadata, getPageLocale, type LocalePageParams } from "@/lib/appRoute"
44
import { getLandingPage, getSubscriptionConfig } from "@/lib/cms"

0 commit comments

Comments
 (0)