Skip to content

Commit 1562426

Browse files
committed
Ставит шрифты
1 parent 23e7394 commit 1562426

7 files changed

Lines changed: 34 additions & 5 deletions

File tree

src/fonts/NotoSans-Medium.woff2

206 KB
Binary file not shown.

src/fonts/NotoSans-Regular.woff2

195 KB
Binary file not shown.

src/fonts/NotoSans-SemiBold.woff2

208 KB
Binary file not shown.

src/fonts/RobotoMono-Regular.woff2

39.9 KB
Binary file not shown.

src/index.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
<link rel="canonical" href="https://inventoris.github.io/severnee/">
1212
<link rel="stylesheet" type="text/css" href="styles/style.css">
1313
<link rel="icon" href="favicon.svg" type="image/svg+xml">
14-
<link rel="preconnect" href="https://fonts.googleapis.com">
15-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
16-
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600&family=Roboto+Mono:wght@400&display=swap"
17-
rel="stylesheet">
14+
<link rel="preconnect" href="https://services.swpc.noaa.gov" crossorigin>
1815
</head>
1916

2017
<body>
@@ -43,7 +40,7 @@
4340
<div class="intro">
4441
<picture class="intro__picture">
4542
<source srcset="images/intro-abstraction-small.svg" media="(max-width: 1024px)">
46-
<img class="intro__image" src="images/intro-abstraction-large.svg" alt="Абстрактный рисунок северного сияния">
43+
<img class="intro__image" src="images/intro-abstraction-large.svg" alt="Абстрактный рисунок северного сияния" fetchpriority="high">
4744
</picture>
4845
<section class="intro__content">
4946
<hgroup class="intro__header">

src/styles/common/fonts.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
@font-face {
2+
font-family: 'Noto Sans';
3+
src: url('../../fonts/NotoSans-Regular.woff2') format('woff2');
4+
font-weight: 400;
5+
font-style: normal;
6+
font-display: swap;
7+
}
8+
9+
@font-face {
10+
font-family: 'Noto Sans';
11+
src: url('../../fonts/NotoSans-Medium.woff2') format('woff2');
12+
font-weight: 500;
13+
font-style: normal;
14+
font-display: swap;
15+
}
16+
17+
@font-face {
18+
font-family: 'Noto Sans';
19+
src: url('../../fonts/NotoSans-SemiBold.woff2') format('woff2');
20+
font-weight: 600;
21+
font-style: normal;
22+
font-display: swap;
23+
}
24+
25+
@font-face {
26+
font-family: 'Roboto Mono';
27+
src: url('../../fonts/RobotoMono-Regular.woff2') format('woff2');
28+
font-weight: 400;
29+
font-style: normal;
30+
font-display: swap;
31+
}

src/styles/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@import "./common/fonts.css";
12
@import "./common/reset.css";
23
@import "./common/vars.css";
34
@import "./common/base.css";

0 commit comments

Comments
 (0)