This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
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 #16 from RyanClementsHax/custom-fonts
fix: handle only image file extensions with the next image loader
- Loading branch information
Showing
125 changed files
with
1,608 additions
and
3,527 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Links } from './Links' | ||
|
||
export const Header = () => ( | ||
<header> | ||
<h1>Storybook Addon Next 💓 Next.js v10</h1> | ||
<Links /> | ||
</header> | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Header } from 'components/Header' | ||
import Head from 'next/head' | ||
|
||
export default function Home() { | ||
return ( | ||
<div> | ||
<Head> | ||
<title>Custom Fonts</title> | ||
<link rel="icon" href="/favicon.ico" /> | ||
</Head> | ||
<Header /> | ||
<main> | ||
<p>This uses a custom font 👇</p> | ||
<p className="icons"> </p> | ||
</main> | ||
</div> | ||
) | ||
} |
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
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,15 +1,17 @@ | ||
import { Links } from 'components/Links' | ||
import { Header } from 'components/Header' | ||
import Head from 'next/head' | ||
|
||
export default function Typescript() { | ||
export default function Typescript(): JSX.Element { | ||
return ( | ||
<div> | ||
<Head> | ||
<title>Typescript</title> | ||
<link rel="icon" href="/favicon.ico" /> | ||
</Head> | ||
<Links /> | ||
<main>This is a page using typescript</main> | ||
<Header /> | ||
<main> | ||
<p>This is a page using typescript</p> | ||
</main> | ||
</div> | ||
) | ||
} |
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import CustomFonts from '../../pages/customFonts' | ||
|
||
export default { | ||
title: 'Pages', | ||
component: CustomFonts | ||
} | ||
|
||
export const CustomFontsPage = () => <CustomFonts /> |
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,12 +1,3 @@ | ||
.main { | ||
padding: 4rem 0; | ||
flex: 1; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.main span { | ||
.main p { | ||
color: red; | ||
} |
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,12 +1,5 @@ | ||
.main { | ||
padding: 4rem 0; | ||
flex: 1; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
span { | ||
p { | ||
color: steelblue; | ||
} | ||
} |
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,3 +1,20 @@ | ||
main { | ||
font-size: 1.25rem; | ||
} | ||
|
||
@font-face { | ||
font-family: 'iconfont'; | ||
src: url('../public/font/iconfont.eot?72359833'); | ||
src: url('../public/font/iconfont.eot?72359833#iefix') | ||
format('embedded-opentype'), | ||
url('../public/font/iconfont.woff2?72359833') format('woff2'), | ||
url('../public/font/iconfont.woff?72359833') format('woff'), | ||
url('../public/font/iconfont.ttf?72359833') format('truetype'), | ||
url('../public/font/iconfont.svg?72359833#iconfont') format('svg'); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
|
||
.icons { | ||
font-family: 'iconfont'; | ||
} |
Oops, something went wrong.