Skip to content

Commit

Permalink
fetch subscribe title from cms
Browse files Browse the repository at this point in the history
  • Loading branch information
PixeledCode committed Jun 20, 2024
1 parent eea5422 commit 58542cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export default async function Home() {
{/* Subscribe */}
<section>
<div className="container py-16">
<Heading>Subscribe to our Newsletter</Heading>
<Heading>{data.subscribe_title}</Heading>

<SubscribeForm />
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/Subscribe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const SubscribeForm = () => {
className="mt-8 flex gap-4 flex-col sm:flex-row sm:items-end"
onSubmit={subscribeUser}
>
<div className="flex flex-col gap-1 basis-80">
<div className="flex flex-col gap-1 sm:basis-80">
<label htmlFor="sub_name">Name</label>
<input
ref={nameRef}
Expand Down
1 change: 1 addition & 0 deletions types/homepage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,5 @@ interface Attributes {
}
team_title: string
team_items: { data: Image[] }
subscribe_title: string
}

0 comments on commit 58542cb

Please sign in to comment.