File tree Expand file tree Collapse file tree 5 files changed +48
-23
lines changed Expand file tree Collapse file tree 5 files changed +48
-23
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const props = defineProps({
15
15
:to =" props.to"
16
16
class =" flex items-center text-sm font-bold text-gray-700 dark:text-white hover:text-orange-500"
17
17
>
18
- <span class =" translate-y-0.5" >See More</span >
18
+ <span class =" translate-y-0.5" >More</span >
19
19
<CursorArrowRaysIcon class =" ml-1 h-5 w-5" aria-hidden =" true" />
20
20
</NuxtLink >
21
21
</div >
Original file line number Diff line number Diff line change @@ -6,30 +6,34 @@ const props = defineProps({
6
6
</script >
7
7
8
8
<template >
9
- <section class =" bg-gradient-to-b from-background dark:from-background-dark to-transparent py-2" >
9
+ <section class =" py-2" >
10
10
<div class =" container mx-auto space-y-4" >
11
11
12
- <div class =" mb-4 grid grid-cols-1 gap-4 md:grid-cols-2 " >
12
+ <div class =" mb-4 grid grid-cols-1 gap-4 md:grid-cols-3 " >
13
13
<div v-for =" (article, ix) of articles" :key =" ix" >
14
14
<NuxtLink :to =" article.path" >
15
15
<div
16
- class =" h-full space-y-4 rounded-lg bg-white/80 dark:bg-white/20 p-4 text-gray-700 dark:text-white drop-shadow-lg hover:ring-1 hover:ring-gray-300 dark:hover:ring-white"
16
+ class =" h-full space-y-4 dark:bg-orange-400/50 p-4 text-gray-700 dark:text-white drop-shadow-lg hover:ring-1 hover:ring-gray-300 dark:hover:ring-white"
17
17
>
18
18
<div >
19
- <div class =" flex-1 text-lg font-bold md:text-xl" >
20
- {{ article.title }}
19
+ <div class =" line-clamp-2 flex-1 text-lg font-bold md:text-xl" >
20
+ {{ article.title }}
21
+ </div >
22
+ <div class =" space-x-2" >
23
+ <NuxtTime
24
+ v-if =" show_dates"
25
+ :datetime =" article.date"
26
+ class =" text-sm text-gray-600 dark:text-gray-200"
27
+ year =" numeric"
28
+ month =" short"
29
+ day =" 2-digit"
30
+ />
31
+ <span v-if =" ix === 0" class =" bg-orange-400 text-sm px-2" >Latest!</span >
21
32
</div >
22
- <NuxtTime
23
- v-if =" show_dates"
24
- :datetime =" article.date"
25
- class =" text-sm font-light text-gray-600 dark:text-gray-400"
26
- year =" numeric"
27
- month =" short"
28
- day =" 2-digit"
29
- />
30
33
</div >
31
- <div class =" line-clamp-3 text-sm text-gray-700 dark:text-gray-300 " >
34
+ <div class =" line-clamp-3 text-sm text-gray-700 dark:text-gray-100 " >
32
35
{{ article.description }}
36
+
33
37
</div >
34
38
</div >
35
39
</NuxtLink >
Original file line number Diff line number Diff line change @@ -101,27 +101,26 @@ const filtered_links = computed(() => {
101
101
<template >
102
102
<section class =" bg-gradient-to-b from-transparent to-background dark:to-background-dark text-gray-700 dark:text-white" >
103
103
<div class =" container mx-auto space-y-4 py-8 text-gray-700 dark:text-white" >
104
-
105
- <div class =" mb-4 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3" >
104
+ <div class =" mb-4 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4" >
106
105
<nuxt-link
107
- class =" relative rounded-lg drop-shadow-lg hover:ring-1 hover:ring-gray-300 dark:hover:ring-white"
106
+ class =" relative drop-shadow-lg hover:ring-1 hover:ring-gray-300 dark:hover:ring-white"
108
107
v-for =" link in filtered_links"
109
108
:key =" link.title"
110
109
:to =" link.link"
111
110
>
112
111
<img
113
- class =" grayscale-1 h-64 w-full rounded-lg bg-gray-800 object-cover"
112
+ class =" grayscale-1 h-64 w-full bg-gray-800 object-cover"
114
113
:src =" link.img || 'images/placeholder.png'"
115
114
/>
116
115
<div
117
116
class =" absolute bottom-0 flex w-full items-center justify-center"
118
117
>
119
- <div class =" min-h-24 w-full rounded-b-lg bg-white/90 dark:bg-gray-800 /80 px-6 py-2" >
118
+ <div class =" w-full bg-white/90 dark:bg-black /80 px-6 py-2" >
120
119
<h3 class =" text-xl font-bold text-gray-700 dark:text-white" >
121
120
{{ link.title }}
122
121
</h3 >
123
122
<div
124
- class =" line-clamp-2 text-sm text-gray-700 dark:text-gray-300"
123
+ class =" line-clamp-1 text-sm text-gray-700 dark:text-gray-300"
125
124
v-html =" link.description"
126
125
></div >
127
126
</div >
Original file line number Diff line number Diff line change 1
1
<script setup>
2
2
const data = await queryCollection (" content" )
3
3
.order (" date" , " DESC" )
4
- .limit (4 )
4
+ .limit (6 )
5
5
.all ();
6
6
</script >
7
7
8
8
<template >
9
9
<div >
10
10
<div class =" bg-orange-400 dark:bg-emerald-950 bg-[url('/images/noise.svg')]" >
11
+ <section class =" bg-gradient-to-b from-background dark:from-background-dark to-transparent py-2" >
12
+ <div class =" container mx-auto my-12" >
13
+ <img src =" /images/blog_and_experiments.svg" class =" max-h-24 mx-auto" />
14
+ </div >
15
+ </section >
11
16
<SectionBlogPosts :articles =" data" :show_dates =" true" />
12
- <SectionPlayground :limit =" 9 " showImages linkToPlayground />
17
+ <SectionPlayground :limit =" 8 " showImages linkToPlayground />
13
18
</div >
14
19
</div >
15
20
</template >
You can’t perform that action at this time.
0 commit comments