Skip to content

Commit 31c3262

Browse files
committed
Adds hero image, minor color adjustments
1 parent aedfda6 commit 31c3262

File tree

5 files changed

+48
-23
lines changed

5 files changed

+48
-23
lines changed

components/MoreLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const props = defineProps({
1515
:to="props.to"
1616
class="flex items-center text-sm font-bold text-gray-700 dark:text-white hover:text-orange-500"
1717
>
18-
<span class="translate-y-0.5">See More</span>
18+
<span class="translate-y-0.5">More</span>
1919
<CursorArrowRaysIcon class="ml-1 h-5 w-5" aria-hidden="true" />
2020
</NuxtLink>
2121
</div>

components/section/BlogPosts.vue

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,34 @@ const props = defineProps({
66
</script>
77

88
<template>
9-
<section class="bg-gradient-to-b from-background dark:from-background-dark to-transparent py-2">
9+
<section class="py-2">
1010
<div class="container mx-auto space-y-4">
1111

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">
1313
<div v-for="(article, ix) of articles" :key="ix">
1414
<NuxtLink :to="article.path">
1515
<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"
1717
>
1818
<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>
2132
</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-
/>
3033
</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">
3235
{{ article.description }}
36+
3337
</div>
3438
</div>
3539
</NuxtLink>

components/section/Playground.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,27 +101,26 @@ const filtered_links = computed(() => {
101101
<template>
102102
<section class="bg-gradient-to-b from-transparent to-background dark:to-background-dark text-gray-700 dark:text-white">
103103
<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">
106105
<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"
108107
v-for="link in filtered_links"
109108
:key="link.title"
110109
:to="link.link"
111110
>
112111
<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"
114113
:src="link.img || 'images/placeholder.png'"
115114
/>
116115
<div
117116
class="absolute bottom-0 flex w-full items-center justify-center"
118117
>
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">
120119
<h3 class="text-xl font-bold text-gray-700 dark:text-white">
121120
{{ link.title }}
122121
</h3>
123122
<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"
125124
v-html="link.description"
126125
></div>
127126
</div>

pages/index.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
<script setup>
22
const data = await queryCollection("content")
33
.order("date", "DESC")
4-
.limit(4)
4+
.limit(6)
55
.all();
66
</script>
77

88
<template>
99
<div>
1010
<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>
1116
<SectionBlogPosts :articles="data" :show_dates="true" />
12-
<SectionPlayground :limit="9" showImages linkToPlayground />
17+
<SectionPlayground :limit="8" showImages linkToPlayground />
1318
</div>
1419
</div>
1520
</template>

public/images/blog_and_experiments.svg

Lines changed: 17 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)