Skip to content

Commit c5e5086

Browse files
committed
Remove rounding
1 parent e6ef918 commit c5e5086

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

components/section/BlogPosts.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const props = defineProps({
1111
<div v-for="(article, ix) of articles" :key="ix">
1212
<NuxtLink :to="article.path">
1313
<div
14-
class="h-full space-y-2 rounded-lg bg-orange-500/50 p-4 text-white drop-shadow-lg hover:ring-1 hover:ring-white"
14+
class="h-full space-y-2 bg-orange-500/50 p-4 text-white drop-shadow-lg hover:ring-1 hover:ring-white"
1515
>
1616
<div>
1717
<div

components/section/Playground.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ const links = [
9595
},
9696
];
9797
98+
const route = useRoute();
99+
98100
const filtered_links = computed(() => {
99101
if (props.limit === null || props.limit <= 0) {
100102
return links;
@@ -111,20 +113,23 @@ const filtered_links = computed(() => {
111113
<div class="container mx-auto py-8 text-white">
112114
<div class="mb-2 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4">
113115
<nuxt-link
114-
class="relative rounded-lg hover:ring-1 hover:ring-white"
116+
class="relative text-orange-500 ring-2 hover:text-white hover:ring-white"
115117
v-for="link in filtered_links"
116118
:key="link.title"
117119
:to="link.link"
118120
>
121+
<svg class="absolute right-0 top-0 size-8" viewBox="0 0 100 100">
122+
<polygon points="0,0 0,100 100,100" fill="currentColor" />
123+
</svg>
119124
<img
120-
class="grayscale-1 h-64 w-full rounded-lg bg-gray-800 object-cover"
125+
class="h-64 w-full bg-gray-800 object-cover grayscale hover:grayscale-0"
121126
:src="link.img || 'images/placeholder.png'"
122127
/>
123128
<div
124129
class="absolute bottom-2 flex w-full items-center justify-center px-2"
125130
>
126131
<div
127-
class="w-full rounded-lg bg-black bg-[url('/images/noise.svg')] px-6 py-2"
132+
class="w-full bg-black bg-[url('/images/noise.svg')] px-6 py-2"
128133
>
129134
<h3 class="text-xl font-bold text-white">
130135
{{ link.title }}
@@ -137,7 +142,7 @@ const filtered_links = computed(() => {
137142
</div>
138143
</nuxt-link>
139144
</div>
140-
<MoreLink to="/playground" />
145+
<MoreLink to="/playground" v-if="route.path !== '/playground'" />
141146
</div>
142147
</section>
143148
</template>

layouts/default.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
22
<div class="bg-gradient-to-b from-orange-500 to-red-500">
3-
<div class="p-[10px]">
3+
<div class="p-[8px]">
44
<main
5-
class="flex h-[calc(100vh-20px)] flex-col rounded-3xl bg-background font-display"
5+
class="flex h-[calc(100vh-16px)] flex-col bg-background font-display"
66
>
77
<Header />
88
<main class="no-scrollbar flex-1 overflow-scroll">

0 commit comments

Comments
 (0)