Skip to content

Commit

Permalink
update VPHome stylE
Browse files Browse the repository at this point in the history
  • Loading branch information
yshrsmz committed Dec 30, 2024
1 parent a3f2f48 commit 49b7c2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/blog/.vitepress/theme/VPLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if (typeof window !== 'undefined') {
<NotFound class="mx-8 flex-grow" />
</div>
<div v-else-if="frontmatter.layout === 'home'" class="max-w-3xl flex-grow">
<VPHome class="mx-8" />
<VPHome />
</div>
<div v-else-if="frontmatter.layout === 'posts'" class="flex-grow sm:max-w-3xl">
<VPPosts class="mx-8" />
Expand Down
8 changes: 4 additions & 4 deletions packages/blog/.vitepress/theme/components/VPHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function updatedAt(scrap: Scrap) {
<div class="VPHome mt-6 flex flex-col items-center">
<h2 class="text-2xl font-bold">RECENT POSTS</h2>
<ul class="mt-6 w-full">
<li v-for="(post, index) in recentPosts" :key="index" class="py-3">
<li v-for="(post, index) in recentPosts" :key="index" class="py-3 px-8">
<a :href="post.url" class="block">
<p class="font-bold underline">{{ post.frontmatter.title }}</p>
<time
Expand All @@ -35,7 +35,7 @@ function updatedAt(scrap: Scrap) {
<!-- eslint-enable -->
</a>
</li>
<li class="mt-4 text-center">
<li class="mt-4 text-center px-8">
<hr />
<a href="/posts/" class="inline-block py-4 text-center underline"
>See all posts -></a
Expand All @@ -47,7 +47,7 @@ function updatedAt(scrap: Scrap) {

<h2 class="mt-6 text-2xl font-bold">RECENT SCRAPS</h2>
<ul class="mt-6 w-full">
<li v-for="(scrap, index) in recentScraps" :key="index" class="py-3">
<li v-for="(scrap, index) in recentScraps" :key="index" class="py-3 px-8">
<a :href="`/scraps/${scrap.number}/`" class="block">
<p class="px-1 font-bold underline">{{ scrap.title }}</p>
<p>
Expand All @@ -59,7 +59,7 @@ function updatedAt(scrap: Scrap) {
</p>
</a>
</li>
<li class="mt-4 text-center">
<li class="mt-4 text-center px-8">
<hr />
<a href="/scraps/" class="inline-block py-4 text-center underline"
>See all scraps -></a
Expand Down

0 comments on commit 49b7c2c

Please sign in to comment.