Skip to content

Commit 29fe3fe

Browse files
committed
feat: add Cardo font
1 parent 5a46262 commit 29fe3fe

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

2025/src/layouts/Layout.astro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
---
2+
import { GoogleFontsOptimizer } from "astro-google-fonts-optimizer";
3+
---
14
<!DOCTYPE html>
25
<html lang="ja">
36
<head>
47
<meta charset="utf-8">
58
<meta name="viewport" content="width=device-width, initial-scale=1">
69
<meta name="description" content="VimConf2025">
710
<meta name="author" content="VimConf2025">
11+
12+
<GoogleFontsOptimizer url="https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&display=swap">
13+
</GoogleFontsOptimizer>
14+
815
<title>VimConf2025</title>
916
</head>
1017
<body>

2025/src/pages/index.astro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ img {
115115
.hero h1 {
116116
font-size: 2.5rem;
117117
margin-bottom: 20px;
118+
font-family: "Cardo", serif;
119+
font-weight: 400;
120+
font-style: italic;
118121
}
119122

120123
.hero p {

0 commit comments

Comments
 (0)