Skip to content

Commit 9246c68

Browse files
committed
feat: use Sono font
1 parent 8c88935 commit 9246c68

File tree

3 files changed

+34
-16
lines changed

3 files changed

+34
-16
lines changed

src/base.html.jinja2

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
<title>{% block title %}blog.mtib.dev{% endblock %}</title>
88
<link rel="preconnect" href="https://fonts.googleapis.com">
99
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10-
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@500&display=swap" rel="preload" as="style"
11-
onload="this.onload=null;this.rel='stylesheet'">
12-
<noscript>
13-
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@500&display=swap" rel="stylesheet">
14-
</noscript>
10+
<link href="https://fonts.googleapis.com/css2?family=Sono:wght@500&display=swap" rel="stylesheet">
11+
<link href="https://fonts.googleapis.com/css2?family=Sono:wght,MONO@500,0&display=swap" rel="stylesheet">
12+
<link href="https://fonts.googleapis.com/css2?family=Sono:wght,MONO@700,0&display=swap" rel="stylesheet">
1513
<link rel="stylesheet" href="/main.css">
1614
<link rel="icon" href="/assets/m.png">
1715
<meta name="application-name" content="blog.mtib.dev">
@@ -31,7 +29,7 @@
3129

3230
<body>
3331

34-
<div class="noto-sans-default">
32+
<div class="sono-body">
3533
<div style="
3634
display: flex;
3735
flex-direction: column;
@@ -40,7 +38,7 @@
4038
padding: 10px 0 50px 0;">
4139
<div class="item">
4240
{% block heading %}
43-
<h1>blog.mtib.dev</h1>
41+
<h1 class="sono-mono">blog.mtib.dev</h1>
4442
{% endblock %}
4543
</div>
4644
{% block content %}
@@ -69,5 +67,4 @@
6967

7068
</body>
7169

72-
7370
</html>

src/index.html.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% block content %}
33
{% for part in index.parts %}
44
<div class="item">
5-
<h2>{{part.title}}</h2>
5+
<h2 class="sono-mono">{{part.title}}</h2>
66
{% if part.description %}
77
<p>{{part.description}}</p>
88
{% endif %}

src/main.css.jinja2

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,33 @@ h6 {
5050
color: #fdf;
5151
}
5252

53+
.sono-body {
54+
font-family: "Sono", monospace;
55+
font-optical-sizing: auto;
56+
font-weight: 500;
57+
font-style: normal;
58+
font-variation-settings:
59+
"MONO" 0;
60+
}
5361

54-
.noto-sans-default {
55-
font-family: "Noto Sans", sans-serif;
56-
font-optical-sizing: auto;
57-
font-weight: 500;
58-
font-style: normal;
59-
font-variation-settings:
60-
"wdth" 100;
62+
.sono-mono {
63+
font-family: "Sono", monospace;
64+
font-optical-sizing: auto;
65+
font-weight: 500;
66+
font-style: normal;
67+
font-variation-settings:
68+
"MONO" 1;
6169
}
6270

6371
a {
6472
text-decoration: none;
6573
font-weight: 700;
6674
color: #f4f;
75+
font-family: "Sono", monospace;
76+
font-optical-sizing: auto;
77+
font-style: normal;
78+
font-variation-settings:
79+
"MONO" 1;
6780
}
6881

6982
a:hover {
@@ -74,6 +87,14 @@ a:visited {
7487
color: #f8f;
7588
}
7689

90+
h1 {
91+
font-size: 4rem;
92+
}
93+
94+
h2 {
95+
font-size: 2.5rem;
96+
}
97+
7798
ul {
7899
list-style: none;
79100
padding-left: 20px;

0 commit comments

Comments
 (0)