Compare commits
2 commits
3df404a3cc
...
6cb774c7c0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6cb774c7c0 | ||
|
|
23b53b084f |
|
|
@ -6,11 +6,7 @@
|
|||
"dev": "next dev --turbopack",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
"translations:extract": "lingui extract-template",
|
||||
"translations:compile": "lingui compile",
|
||||
"translations:sync": "lingui extract --overwrite && lingui compile",
|
||||
"translations:sync_and_purge": "lingui extract --overwrite --clean && lingui compile"
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@formatjs/intl-localematcher": "^0.5.10",
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import Head from 'next/head';
|
|||
|
||||
import { ThemeProvider } from "@/components/providers";
|
||||
import { translations } from "@/i18n/translations";
|
||||
import { Oxanium } from "next/font/google";
|
||||
import { headers } from "next/headers";
|
||||
const oxanium = Oxanium({ subsets: ["latin-ext"] })
|
||||
|
||||
import { oxanium } from "@/fonts";
|
||||
import type { Metadata } from 'next';
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ import {
|
|||
FormLabel
|
||||
} from "@/components/ui/form";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { oxanium } from "@/fonts";
|
||||
import { Translations } from "@/i18n/translations";
|
||||
import {
|
||||
NewsletterFormSchema,
|
||||
|
|
@ -32,7 +33,7 @@ export function NewsletterPopup({ t }: { t: Translations }) {
|
|||
return (
|
||||
<Dialog>
|
||||
<DialogTrigger asChild>
|
||||
<Button className="text-xl mt-4 jgs7 uppercase cursor-pointer">{t.newsletter.popupButton}</Button>
|
||||
<Button className={`${oxanium.className} text-xl mt-4 uppercase cursor-pointer`}>{t.newsletter.popupButton}</Button>
|
||||
</DialogTrigger>
|
||||
<DialogContent className="sm:max-w-[425px]">
|
||||
<DialogHeader>
|
||||
|
|
@ -68,7 +69,7 @@ export default function SubscriptionForm({ t }: { t: Translations }) {
|
|||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormControl>
|
||||
<Input placeholder="E-mail" type="email" required {...field} />
|
||||
<Input placeholder={t.newsletter.emailField} type="email" required {...field} />
|
||||
</FormControl>
|
||||
</FormItem>
|
||||
)}
|
||||
|
|
@ -80,7 +81,7 @@ export default function SubscriptionForm({ t }: { t: Translations }) {
|
|||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormControl>
|
||||
<Input placeholder="Name (optional)" {...field} />
|
||||
<Input placeholder={t.newsletter.nameField} {...field} />
|
||||
</FormControl>
|
||||
</FormItem>
|
||||
)}
|
||||
|
|
@ -103,7 +104,7 @@ export default function SubscriptionForm({ t }: { t: Translations }) {
|
|||
<FormLabel htmlFor="uodo">
|
||||
{t.newsletter.policyPrivacyCheckboxTitle}
|
||||
</FormLabel>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
<p className="mt-1 text-sm text-muted-foreground">
|
||||
{t.newsletter.policyPrivacyCheckboxDescription}
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
|||
3
src/fonts.ts
Normal file
3
src/fonts.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { Oxanium } from "next/font/google";
|
||||
|
||||
export const oxanium = Oxanium({ subsets: ["latin-ext"] })
|
||||
|
|
@ -67,6 +67,8 @@ const pl = {
|
|||
},
|
||||
|
||||
newsletter: {
|
||||
emailField: "E-mail",
|
||||
nameField: "Imię/ksywa (opcjonalne)",
|
||||
popupButton: "Zapisz się do newslettera",
|
||||
title: "Newsletter CebulaCamp 2025",
|
||||
description: "Zasubskrybuj aby otrzymywać najnowsze wiadomości",
|
||||
|
|
@ -142,6 +144,8 @@ const en = {
|
|||
},
|
||||
|
||||
newsletter: {
|
||||
emailField: "E-mail",
|
||||
nameField: "Name/nickname (optional)",
|
||||
popupButton: "Subscribe to newsletter",
|
||||
title: "Newsletter CebulaCamp 2025",
|
||||
description: "Subscribe for live news",
|
||||
|
|
|
|||
Loading…
Reference in a new issue