Skip to content

Commit a0fc7ab

Browse files
committed
fix: using open sans font for landing page
1 parent d1f8dc1 commit a0fc7ab

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

nuxt.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ export default {
4747
{ rel: "apple-touch-icon", sizes: "144x144", href: "/apple-touch-icon-144x144.png" },
4848
{ rel: "apple-touch-icon", sizes: "152x152", href: "/apple-touch-icon-152x152.png" },
4949
{ rel: "apple-touch-icon", sizes: "180x180", href: "/apple-touch-icon-180x180.png" },
50+
{ rel: "preconnect", href: "https://fonts.googleapis.com" },
51+
{ rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin: true },
52+
{ href: "https://fonts.googleapis.com/css2?family=Open+Sans&display=swap", rel: "stylesheet" },
5053
...canonicalLinks
5154
]
5255
},

pages/diff/_diff.vue

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,21 @@
4949
</template>
5050
</Navbar>
5151
<main>
52-
<div class="flex items-start w-full gap-4">
52+
<div class="flex items-start w-full gap-4 font-mono">
5353
<div
5454
class="relative flex-1 px-4 py-2 overflow-y-auto border-2 rounded-sm max-h-screen--nav line-number-gutter min-h-80"
5555
>
5656
<RTStickyCopyButton :clickHandler="copyTextToClipboard" />
5757
<div v-for="(lineDiff, index) in lhsDiff" :key="index">
58-
<p
59-
class="font-mono break-all whitespace-pre-wrap"
60-
v-html="lineDiff"
61-
></p>
58+
<p class="break-all whitespace-pre-wrap" v-html="lineDiff"></p>
6259
</div>
6360
</div>
6461
<div
6562
class="relative flex-1 px-4 py-2 overflow-y-auto border-2 rounded-sm min-h-80 line-number-gutter max-h-screen--nav"
6663
>
6764
<RTStickyCopyButton :clickHandler="copyTextToClipboard" />
6865
<div v-for="(lineDiff, index) in rhsDiff" :key="index">
69-
<p
70-
class="font-mono break-all whitespace-pre-wrap"
71-
v-html="lineDiff"
72-
></p>
66+
<p class="break-all whitespace-pre-wrap" v-html="lineDiff"></p>
7367
</div>
7468
</div>
7569
</div>
@@ -91,7 +85,7 @@ export default {
9185
const hunkState = item[0]
9286
if (hunkState === -1 || hunkState === 0) {
9387
const className = hunkState === -1 ? 'bg-red-400' : ''
94-
return `<span class="font-mono break-all inline p-0 m-0 ${className}">${item[1]}</span>`
88+
return `<span class="break-all inline p-0 m-0 ${className}">${item[1]}</span>`
9589
}
9690
return false
9791
})
@@ -103,7 +97,7 @@ export default {
10397
const hunkState = item[0]
10498
if (hunkState === 1 || hunkState === 0) {
10599
const className = hunkState === 1 ? 'bg-green-400' : ''
106-
return `<span class="font-mono break-all inline p-0 m-0 ${className}">${item[1]}</span>`
100+
return `<span class="break-all inline p-0 m-0 ${className}">${item[1]}</span>`
107101
}
108102
return false
109103
})

static/global.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ main {
88
@apply h-full;
99
}
1010

11+
body {
12+
font-family: 'Open Sans', sans-serif;
13+
}
14+
1115
.page-root {
1216
@apply flow-root w-full;
1317
}

0 commit comments

Comments
 (0)