Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Commit 7eb2bc7

Browse files
authored
Merge pull request #38 from onetimesecret/post/testing-roast
Post/testing roast
2 parents 18595a6 + 78fd01a commit 7eb2bc7

File tree

7 files changed

+705
-125
lines changed

7 files changed

+705
-125
lines changed

app/assets/css/main.css

Lines changed: 8 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,23 @@
1-
2-
31
@tailwind base;
42
@tailwind components;
53
@tailwind utilities;
64

75
@layer base {
86
html {
9-
font-family: theme('fontFamily.serif');
10-
}
11-
12-
.font-zilla-slab {
13-
font-weight: 500; /* Or another appropriate weight */
14-
font-size-adjust: 0.55; /* Adjust this value as needed */
15-
}
16-
17-
h1,h2,h3,h4,h5 {
18-
font-family: theme('fontFamily.brand');
19-
20-
}
21-
22-
button, a.block {
23-
font-family: theme('fontFamily.brand');
24-
@apply font-zilla-slab;
25-
}
26-
h1 {
27-
@apply text-4xl font-bold text-gray-900 mb-3;
28-
}
29-
h2 {
30-
@apply text-3xl font-bold text-gray-800 mb-3;
31-
}
32-
33-
h3 {
34-
@apply text-2xl font-semibold text-gray-700 mb-2;
35-
}
36-
37-
h4 {
38-
@apply text-xl font-medium text-gray-600 mb-1;
7+
font-family: theme("fontFamily.serif");
398
}
409

41-
h5 {
42-
@apply text-lg font-semibold text-gray-700 mb-2;
10+
/* Apply brand font to headings and buttons */
11+
h1,
12+
h2,
13+
button,
14+
a.block {
15+
font-family: theme("fontFamily.brand");
4316
}
4417
}
4518

4619
.onetime-logo-icon {
47-
background-image: url('~/assets/img/onetime-logo-v3-xl.svg');
20+
background-image: url("~/assets/img/onetime-logo-v3-xl.svg");
4821
background-size: contain;
4922
background-repeat: no-repeat;
5023
background-position: center;

app/pages/posts/[slug].vue

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import type { BlogPost } from '~/types';
44
import { format } from 'date-fns'
55
import { enUS } from 'date-fns/locale'
66
7-
8-
97
const route = useRoute()
108
119
const { data: post } = await useAsyncData(route.path, () => queryContent<BlogPost>(route.path).findOne())
@@ -82,8 +80,19 @@ if (post.value.image?.src) {
8280
Back to Blog
8381
</NuxtLink>
8482
</div>
85-
<article class="max-w-3xl mx-auto">
83+
84+
<article class="max-w-3xl mx-auto prose">
8685
<header class="mb-12">
86+
87+
<div v-if="post.image?.src" class="mb-6">
88+
<img
89+
:src="post.image.src"
90+
:alt="post.title"
91+
class="w-full rounded-lg shadow-sm object-cover max-h-80 mx-auto"
92+
loading="lazy"
93+
/>
94+
</div>
95+
8796
<UBadge
8897
v-bind="post.badge"
8998
variant="subtle"
@@ -137,5 +146,6 @@ if (post.value.image?.src) {
137146
</aside>
138147
</UPage>
139148
</article>
149+
140150
</UContainer>
141151
</template>

components/content/ImageModal.vue

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)