File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1
1
import '@/app/ui/global.css' ;
2
+ import { inter } from '@/app/ui/fonts' ;
2
3
3
4
export default function RootLayout ( {
4
5
children,
@@ -7,7 +8,7 @@ export default function RootLayout({
7
8
} ) {
8
9
return (
9
10
< html lang = "en" >
10
- < body > { children } </ body >
11
+ < body className = { ` ${ inter . className } antialiased` } > { children } </ body >
11
12
</ html >
12
13
) ;
13
14
}
Original file line number Diff line number Diff line change @@ -2,23 +2,26 @@ import styles from '@/app/ui/home.module.css';
2
2
import AcmeLogo from '@/app/ui/acme-logo' ;
3
3
import { ArrowRightIcon } from '@heroicons/react/24/outline' ;
4
4
import Link from 'next/link' ;
5
+ import { lusitana } from '@/app/ui/fonts' ;
5
6
6
7
export default function Page ( ) {
7
8
return (
8
9
< main className = "flex min-h-screen flex-col p-6" >
9
10
< div className = "flex h-20 shrink-0 items-end rounded-lg bg-blue-500 p-4 md:h-52" >
10
- { /* <AcmeLogo /> */ }
11
+ < AcmeLogo />
11
12
</ div >
12
13
< div className = "mt-4 flex grow flex-col gap-4 md:flex-row" >
13
14
< 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" >
14
- < p className = { `text-xl text-gray-800 md:text-3xl md:leading-normal` } >
15
- < div className = { styles . shape } > </ div >
15
+ < p
16
+ className = { `${ lusitana . className } text-xl text-gray-800 md:text-3xl md:leading-normal` }
17
+ >
16
18
< strong > Welcome to Acme.</ strong > This is the example for the{ ' ' }
17
19
< a href = "https://nextjs.org/learn/" className = "text-blue-500" >
18
20
Next.js Learn Course
19
21
</ a >
20
22
, brought to you by Vercel.
21
23
</ p >
24
+ < div className = { styles . shape } > </ div >
22
25
< Link
23
26
href = "/login"
24
27
className = "flex items-center gap-5 self-start rounded-lg bg-blue-500 px-6 py-3 text-sm font-medium text-white transition-colors hover:bg-blue-400 md:text-base"
Original file line number Diff line number Diff line change
1
+ import { Inter , Lusitana } from 'next/font/google' ;
2
+
3
+ export const inter = Inter ( { subsets : [ 'latin' ] } ) ;
4
+ export const lusitana = Lusitana ( {
5
+ weight : [ '400' , '700' ] ,
6
+ subsets : [ 'latin' ] ,
7
+ } ) ;
You can’t perform that action at this time.
0 commit comments