Skip to content

Commit

Permalink
add fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel-Lubliner committed Mar 30, 2024
1 parent 20927ab commit 14f6d7f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/layout.tsx
@@ -1,4 +1,5 @@
import '@/app/ui/global.css';
import { inter } from '@/app/ui/fonts';

export default function RootLayout({
children,
Expand All @@ -7,7 +8,7 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<body>{children}</body>
<body className={`${inter.className} antialiased`}>{children}</body>
</html>
);
}
}
7 changes: 5 additions & 2 deletions app/page.tsx
@@ -1,19 +1,22 @@
import AcmeLogo from '@/app/ui/acme-logo';
import { ArrowRightIcon } from '@heroicons/react/24/outline';
import Link from 'next/link';
import { lusitana } from '@/app/ui/fonts';

export default function Page() {
return (
<main className="flex min-h-screen flex-col p-6">
<div className="flex h-20 shrink-0 items-end rounded-lg bg-blue-500 p-4 md:h-52">
{/* <AcmeLogo /> */}
{<AcmeLogo />}
</div>
<div className="mt-4 flex grow flex-col gap-4 md:flex-row">
<div className="flex flex-col justify-center gap-6 rounded-lg bg-gray-50 px-6 py-10 md:w-2/5 md:px-20">
<div
className="h-0 w-0 border-b-[30px] border-l-[20px] border-r-[20px] border-b-black border-l-transparent border-r-transparent"
/>
<p className={`text-xl text-gray-800 md:text-3xl md:leading-normal`}>
<p
className={`${lusitana.className} text-xl text-gray-800 md:text-3xl md:leading-normal`}
>
<strong>Welcome to Acme.</strong> This is the example for the{' '}
<a href="https://nextjs.org/learn/" className="text-blue-500">
Next.js Learn Course
Expand Down
8 changes: 8 additions & 0 deletions app/ui/fonts.ts
@@ -0,0 +1,8 @@
import { Inter, Lusitana } from 'next/font/google';

export const inter = Inter({ subsets: ['latin'] });

export const lusitana = Lusitana({
weight: ['400', '700'],
subsets: ['latin'],
});

0 comments on commit 14f6d7f

Please sign in to comment.