Skip to content

Commit 50f226f

Browse files
committed
feat: stats
1 parent e250340 commit 50f226f

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/frontend/src/pages/blog/[article].vue

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,49 @@
2020
<div class="max-w-none border-b border-neutral-700 p-4 md:p-6">
2121
<ContentRenderer :value="post" class="prose-content space-y-3" />
2222
</div>
23+
24+
<div class="flex justify-center border-b border-neutral-700">
25+
<div
26+
class="inline-flex flex-col divide-y divide-neutral-700 border-x border-neutral-700 md:flex-row md:divide-x md:divide-y-0"
27+
>
28+
<div
29+
class="inline-flex items-center justify-center gap-1 px-5 py-3 max-md:w-[90vw] md:gap-3"
30+
>
31+
<Icon name="memory:account" :size="36" class="max-md:size-5!" />
32+
<div class="hidden md:block">
33+
<p class="text-default-font/60">Post author</p>
34+
<p class="h2">{{ post.author }}</p>
35+
</div>
36+
<div class="md:hidden">
37+
<p class="text-default-font/60">
38+
Post written by
39+
<span class="text-default-font">
40+
{{ post.author }}
41+
</span>
42+
</p>
43+
</div>
44+
</div>
45+
<div
46+
class="inline-flex items-center justify-center gap-1.5 px-5 py-3 max-md:w-[90vw] md:gap-3"
47+
>
48+
<Icon name="memory:clock" :size="34" class="max-md:size-5!" />
49+
<div class="hidden md:block">
50+
<p class="text-default-font/60">Published on</p>
51+
<p class="h2">
52+
<NuxtTime :datetime="post?.date" />
53+
</p>
54+
</div>
55+
<div class="md:hidden">
56+
<p class="text-default-font/60">
57+
Published on
58+
<span class="text-default-font">
59+
<NuxtTime :datetime="post?.date" />
60+
</span>
61+
</p>
62+
</div>
63+
</div>
64+
</div>
65+
</div>
2366
</template>
2467
</template>
2568

0 commit comments

Comments
 (0)