File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed
public/fonts/MuseoModerno Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ import Layout from "../components/layout" ;
2
+
3
+ export default function Page ( ) {
4
+ return (
5
+ < Layout >
6
+ < article >
7
+ < h1 > Font — CSS Font</ h1 >
8
+ < p > < b > Test 1:</ b > </ p >
9
+ < p > This uses default font.</ p >
10
+ < p style = { { fontFamily : 'MuseoModerno' } } > This uses MuseoModerno font.</ p >
11
+ </ article >
12
+ </ Layout >
13
+ ) ;
14
+ }
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ export default function Home({}) {
39
39
< Link href = { `/image-optimization-imported` } > Image Optimization — imported image</ Link > < br />
40
40
< Link href = { `/image-optimization-remote` } > Image Optimization — remote image</ Link > < br />
41
41
< Link href = { `/image-html-tag` } > Image using html image tag</ Link > < br />
42
+ < Link href = { `/font-css-front` } > Font — CSS Font</ Link > < br />
42
43
< Link href = { `/page-does-not-exist` } > 404 Page not found</ Link > < br />
43
44
</ section >
44
45
</ Layout >
Original file line number Diff line number Diff line change 25
25
max-width : 100% ;
26
26
display : block;
27
27
}
28
+
29
+ @font-face {
30
+ font-family : 'MuseoModerno' ;
31
+ src : url ('/fonts/MuseoModerno/MuseoModerno-Regular.ttf' ) format ('truetype' );
32
+ }
You can’t perform that action at this time.
0 commit comments