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