Skip to content

Commit

Permalink
added metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnasirulhaque committed Apr 4, 2024
1 parent d7865f9 commit 7c71977
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import localFont from 'next/font/local';
import "./globals.css";

const inter = Inter({ subsets: ["latin"] });
const googleSans = localFont({
src: [
{
path: '../public/fonts/GoogleSans-Regular_0.ttf',
weight: '400'
},
{
path: '../public/fonts/GoogleSans-Bold-v1.27.ttf',
weight: '700'
}
],
variable: '--font-google'
})

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: "GDG Cloud Kolkata Chapter Website",
description: "Chapter Website of GDG Cloud Kolkata",
icons: './favicon.ico'
};

export default function RootLayout({
Expand All @@ -16,7 +29,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
<body className={`${googleSans.className}`}>{children}</body>
</html>
);
}
Binary file added public/fonts/GoogleSans-Bold-v1.27.ttf
Binary file not shown.
Binary file added public/fonts/GoogleSans-Regular_0.ttf
Binary file not shown.

0 comments on commit 7c71977

Please sign in to comment.