Skip to content

Commit 908af59

Browse files
change font to Spectral
1 parent 0934cb9 commit 908af59

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

priv/layout.html.eex

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<link rel="preconnect" href="https://fonts.googleapis.com">
1414
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
15-
<link href="https://fonts.googleapis.com/css2?family=Libertinus+Serif+Display&family=Mona+Sans:ital,wght@0,200..900;1,200..900&display=swap" rel="stylesheet">
15+
<link href="https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap" rel="stylesheet">
1616

1717
<link href="/public/styles.css" rel="stylesheet">
1818
</head>
@@ -36,8 +36,10 @@
3636

3737
</header>
3838

39-
<article class="markdown-body">
40-
<%= article.html %>
41-
</article>
39+
<main>
40+
<article class="markdown-body">
41+
<%= article.html %>
42+
</article>
43+
</main>
4244
</body>
4345
</html>

priv/static/layout.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
5151
}
5252

53+
html {
54+
font-family: "Spectral", "Times New Roman", serif;
55+
}
56+
5357
body {
5458
background-color: var(--bg-primary);
5559
color: var(--text-primary);
@@ -61,7 +65,7 @@ body {
6165
flex-direction: column;
6266
max-width: 800px;
6367
margin: 0 auto;
64-
padding: 0 1.5rem;
68+
padding: 0 1.5rem 2rem 1.5rem;
6569
}
6670

6771
.masthead {
@@ -81,7 +85,6 @@ body {
8185
}
8286

8387
.header-nav a {
84-
font-family: "Libertinus Serif Display", "Times New Roman", serif;
8588
font-size: 0.8rem;
8689
font-weight: 400;
8790
color: var(--text-secondary);
@@ -106,7 +109,6 @@ body {
106109
}
107110

108111
.nameplate h1 {
109-
font-family: "Libertinus Serif Display", "Times New Roman", serif;
110112
font-size: 3.5rem;
111113
font-weight: 400;
112114
color: var(--text-primary);
@@ -126,7 +128,6 @@ body {
126128
}
127129

128130
.nameplate h2 {
129-
font-family: "Libertinus Serif Display", "Times New Roman", serif;
130131
font-size: 0.9rem;
131132
font-weight: 400;
132133
color: var(--text-secondary);

0 commit comments

Comments
 (0)