* Change primary colour

* Change fonts

* font options

* font selection confirmed

---------

Co-authored-by: Timothy Armes <tim@timothyarmes.com>
This commit is contained in:
Owen Rees
2023-07-17 20:10:06 +02:00
committed by GitHub
parent d8b9a0ced4
commit 1f0077b1a8
14 changed files with 81 additions and 31 deletions
+9 -4
View File
@@ -1,5 +1,5 @@
import { Analytics } from "@vercel/analytics/react";
import { Inter } from "next/font/google";
import { Inter, Julius_Sans_One } from "next/font/google";
import { useLocale } from "next-intl";
import { getTranslator } from "next-intl/server";
import { notFound } from "next/navigation";
@@ -10,7 +10,12 @@ import "@/css/globals.css";
import Providers from "./providers";
import TestableLayout from "./components/TestableLayout";
const inter = Inter({ subsets: ["latin"] });
const inter = Inter({ subsets: ["latin"], variable: "--font-inter" });
const title = Julius_Sans_One({
subsets: ["latin"],
weight: "400",
variable: "--font-title",
});
export async function generateMetadata({
params: { locale },
@@ -50,8 +55,8 @@ export default async function RootLayout({
}
return (
<html lang={locale}>
<body className={inter.className}>
<html lang={locale} className={`${inter.variable} ${title.variable}`}>
<body>
<Providers>
<TestableLayout locale={locale} messages={messages}>
{children}