-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from princemuel:patch-02
- Loading branch information
Showing
23 changed files
with
740 additions
and
555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
import { cn } from '@/helpers'; | ||
import { Nunito_Sans } from 'next/font/google'; | ||
import localFont from 'next/font/local'; | ||
|
||
const FontSans = localFont({ | ||
const isProduction = process.env.NODE_ENV === 'production'; | ||
|
||
const FontSans_DEV = localFont({ | ||
display: 'swap', | ||
variable: '--font-sans', | ||
src: './nunito-sans.ttf', | ||
}); | ||
|
||
export const fonts = cn(FontSans.variable); | ||
const FontSans_PROD = Nunito_Sans({ | ||
display: 'swap', | ||
variable: '--font-sans', | ||
subsets: ['latin'], | ||
}); | ||
|
||
export const fonts = cn( | ||
isProduction ? [FontSans_PROD.variable] : [FontSans_DEV.variable] | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
a1dde2a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
rest-countries – ./
rest-countries-mocha.vercel.app
rest-countries-git-main-princemuel.vercel.app
rest-countries-princemuel.vercel.app