Skip to content

Commit e6ef918

Browse files
committed
Format
1 parent 0c97f4b commit e6ef918

5 files changed

Lines changed: 25 additions & 27 deletions

File tree

layouts/default.vue

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<template>
2-
<div class="bg-gradient-to-b from-orange-500 to-red-500">
3-
<div class="p-[10px]">
4-
<main class="flex h-[calc(100vh-20px)] flex-col rounded-3xl bg-background font-display">
5-
<Header />
6-
<main class="flex-1 overflow-scroll no-scrollbar">
7-
<slot />
8-
</main>
9-
<Footer />
10-
</main>
11-
</div>
2+
<div class="bg-gradient-to-b from-orange-500 to-red-500">
3+
<div class="p-[10px]">
4+
<main
5+
class="flex h-[calc(100vh-20px)] flex-col rounded-3xl bg-background font-display"
6+
>
7+
<Header />
8+
<main class="no-scrollbar flex-1 overflow-scroll">
9+
<slot />
10+
</main>
11+
<Footer />
12+
</main>
1213
</div>
14+
</div>
1315
</template>

layouts/light.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<template>
22
<main>
33
<Header />
4-
<div
5-
class="container mx-auto h-screen bg-background font-display"
6-
>
4+
<div class="container mx-auto h-screen bg-background font-display">
75
<div class="flex flex-col border-2 bg-white">
86
<slot />
97
</div>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"generate": "nuxt generate",
88
"preview": "nuxt preview",
99
"postinstall": "nuxt prepare",
10-
"format": "prettier --parser vue components/ pages/ --write"
10+
"format": "prettier --parser vue components/ pages/ layouts/ --write"
1111
},
1212
"devDependencies": {
1313
"@heroicons/vue": "^2.2.0",

pages/articles/[...slug].vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const { data: page } = await useAsyncData(route.path, () => {
3939
<div class="mb-2 text-xs uppercase text-gray-400">Category</div>
4040
<div class="flex flex-row space-x-2">
4141
<NuxtLink
42-
class="mr-2 w-min rounded-md bg-background text-sm font-bold hover:cursor-pointer hover:text-orange-500"
42+
class="mr-2 w-min rounded-md bg-background text-xs font-bold uppercase hover:cursor-pointer hover:text-orange-500"
4343
v-for="(category, ix) in page.categories"
4444
:key="ix"
4545
:to="`/articles?category=${category}`"
@@ -53,9 +53,9 @@ const { data: page } = await useAsyncData(route.path, () => {
5353

5454
<div>
5555
<div class="mb-2 text-xs uppercase text-gray-400">Tags</div>
56-
<div class="flex flex-row md:space-x-2">
56+
<div class="flex flex-row text-xs uppercase">
5757
<NuxtLink
58-
class="mr-2 w-min rounded-md bg-background text-sm font-bold hover:cursor-pointer hover:text-orange-500"
58+
class="mr-2 w-min rounded-md bg-background font-bold hover:cursor-pointer hover:text-orange-500"
5959
v-for="(tag, ix) in page.tags"
6060
:key="ix"
6161
:to="`/articles?tag=${tag}`"

pages/index.vue

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@ const data = await queryCollection("content")
77

88
<template>
99
<div class="min-h-screen bg-emerald-950 bg-[url('/images/noise.svg')]">
10-
<div>
11-
<section class="bg-gradient-to-b from-background to-transparent py-2">
12-
<div class="container mx-auto my-12">
13-
<div class="text-orange-500">
14-
<Logo />
15-
</div>
10+
<section class="bg-gradient-to-b from-background to-transparent py-2">
11+
<div class="container mx-auto my-12">
12+
<div class="text-orange-500">
13+
<Logo />
1614
</div>
17-
</section>
18-
<SectionBlogPosts :articles="data" :show_dates="true" />
19-
<SectionPlayground :limit="8" showImages linkToPlayground />
20-
</div>
15+
</div>
16+
</section>
17+
<SectionBlogPosts :articles="data" :show_dates="true" />
18+
<SectionPlayground :limit="8" showImages linkToPlayground />
2119
</div>
2220
</template>

0 commit comments

Comments
 (0)