Skip to content

Commit 474f815

Browse files
committed
Reduce layout padding, hide unused meta blocks, tweak blog prose styling
1 parent 6351c13 commit 474f815

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

components/Footer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<footer class="pin-b w-full p-4 text-xs font-bold text-white">
2+
<footer class="pin-b w-full p-3 text-xs font-bold text-white">
33
<div class="flex justify-center space-x-2">
44
<a
55
class="hover:cursor-pointer hover:text-blue-200"

components/Header.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const route = useRoute();
33
</script>
44

55
<template>
6-
<nav class="container mx-auto py-5">
6+
<nav class="container mx-auto py-3">
77
<div class="flex items-center text-gray-700 dark:text-gray-200">
88
<div class="flex-1" />
99
<div class="flex items-center space-x-2">

pages/blog/[...slug].vue

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,17 @@ const { data: page } = await useAsyncData(route.path, () => {
2626
<!-- Meta -->
2727
<div class="">
2828
<div class="flex-row space-x-0 md:flex md:space-x-2">
29-
<NuxtTime
30-
class="text-xs uppercase text-gray-400"
31-
:datetime="page.date"
32-
year="numeric"
33-
month="short"
34-
day="2-digit"
35-
/>
29+
<p class="text-sm text-gray-300 md:text-right">
30+
Published
31+
<NuxtTime
32+
:datetime="page.date"
33+
year="numeric"
34+
month="short"
35+
day="2-digit"
36+
/>
37+
</p>
3638

37-
<div>
39+
<div v-if="false">
3840
<div class="flex flex-row space-x-2 uppercase">
3941
<div class="text-xs uppercase text-gray-400">Categories</div>
4042
<NuxtLink
@@ -48,7 +50,7 @@ const { data: page } = await useAsyncData(route.path, () => {
4850
</div>
4951
</div>
5052

51-
<div>
53+
<div v-if="false">
5254
<div class="flex flex-row space-x-2 text-xs uppercase">
5355
<div class="text-xs uppercase text-gray-400">Tags</div>
5456
<NuxtLink
@@ -69,7 +71,7 @@ const { data: page } = await useAsyncData(route.path, () => {
6971
- Use prose-pre:bg-white to work with @nuxt/content syntax highlighting, otherwise background-color defaults to `.prose:where(pre)`
7072
-->
7173
<article
72-
class="prose max-w-[1024px] text-gray-300 prose-h2:mt-8 prose-a:font-bold prose-a:text-orange-300 prose-a:no-underline hover:prose-a:text-orange-500 prose-blockquote:text-gray-400 prose-code:text-white prose-pre:bg-orange-950/50 prose-li:my-0"
74+
class="prose max-w-[1024px] text-gray-300 prose-h2:mt-8 prose-a:font-bold prose-a:text-orange-400 prose-a:no-underline hover:prose-a:text-orange-200 prose-blockquote:text-gray-400 prose-code:text-white prose-pre:bg-black/70 prose-li:my-0"
7375
>
7476
<ContentRenderer v-if="page" :value="page" />
7577
</article>

0 commit comments

Comments
 (0)