Skip to content

Commit

Permalink
frontend: fix preload tag for font
Browse files Browse the repository at this point in the history
  • Loading branch information
hynseok committed Nov 4, 2024
1 parent 32c5b29 commit 36c82e2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
10 changes: 6 additions & 4 deletions frontend/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, width=device-width" key="viewport" />
<title>SCG Ask</title>

<link rel="shortcut icon" href="/favicon.ico" />
<link rel="preload" as="script" href="/wasm.js" crossorigin="anonymous" />
<link rel="preload" as="image" href="/images/logo.png" crossorigin="anonymous" />
<link rel="stylesheet" type="text/css" href="/styles.css" />

<script type="module">
import init from "/wasm.js";
init();
</script>
<link rel="shortcut icon" href="/favicon.ico" crossorigin="anonymous" />
<link rel="stylesheet" type="text/css" href="/styles.css" crossorigin="anonymous"/>
<link rel="preload" as="script" href="/wasm.js" crossorigin="anonymous" />
<link rel="preload" as="style" href="/styles.css" crossorigin="anonymous" />
</head>
<body>
</body>
Expand Down
18 changes: 9 additions & 9 deletions frontend/static/styles.css
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
@font-face {
font-family: 'Montserrat';
font-weight: 100;
src: url('./fonts/Montserrat/Montserrat100.woff2') format('woff2');
src: url('/fonts/Montserrat/Montserrat100.woff2') format('woff2');
font-display: swap;
}

@font-face {
font-family: 'Montserrat';
font-weight: 200;
src: url('./fonts/Montserrat/Montserrat200.woff2') format('woff2');
src: url('/fonts/Montserrat/Montserrat200.woff2') format('woff2');
font-display: swap;
}

@font-face {
font-family: 'Montserrat';
font-weight: 400;
src: url('./fonts/Montserrat/Montserrat400.woff2') format('woff2');
src: url('/fonts/Montserrat/Montserrat400.woff2') format('woff2');
font-display: swap;
}

@font-face {
font-family: 'Montserrat';
font-weight: 600;
src: url('./fonts/Montserrat/Montserrat600.woff2') format('woff2');
src: url('/fonts/Montserrat/Montserrat600.woff2') format('woff2');
font-display: swap;
}

@font-face {
font-family: 'Montserrat';
font-weight: 800;
src: url('./fonts/Montserrat/Montserrat800.woff2') format('woff2');
src: url('/fonts/Montserrat/Montserrat800.woff2') format('woff2');
font-display: swap;
}

@font-face {
font-family: 'Montserrat';
font-weight: 900;
src: url('./fonts/Montserrat/Montserrat900.woff2') format('woff2');
src: url('/fonts/Montserrat/Montserrat900.woff2') format('woff2');
font-display: swap;
}

@font-face {
font-family: 'Pretendard';
font-weight: 400;
src: url('./fonts/Pretendard/Pretendard-Regular.woff2') format('woff2');
src: url('/fonts/Pretendard/Pretendard-Regular.woff2') format('woff2');
font-display: swap;
}

@font-face {
font-family: 'Pretendard';
font-weight: 700;
src: url('./fonts/Pretendard/Pretendard-Bold.woff2') format('woff2');
src: url('/fonts/Pretendard/Pretendard-Bold.woff2') format('woff2');
font-display: swap;
}

@font-face {
font-family: 'Pretendard';
font-weight: 900;
src: url('./fonts/Pretendard/Pretendard-Black.woff2') format('woff2');
src: url('/fonts/Pretendard/Pretendard-Black.woff2') format('woff2');
font-display: swap;
}

Expand Down

0 comments on commit 36c82e2

Please sign in to comment.