@@ -95,6 +95,8 @@ const links = [
9595 },
9696];
9797
98+ const route = useRoute ();
99+
98100const 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 >
0 commit comments