Update to Nuxt 3.14 and Replace npm with pnpm (#72)
Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
This commit is contained in:
committed by
GitHub
parent
32e4f6fe44
commit
9db5ae8103
@@ -25,7 +25,9 @@ withDefaults(defineProps<Props>(), {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<article class="group border dark:border-gray-800 m-2 rounded-2xl overflow-hidden shadow-sm text-zinc-700 dark:text-zinc-300 ">
|
||||
<article
|
||||
class="group border dark:border-gray-800 m-2 rounded-2xl overflow-hidden shadow-sm text-zinc-700 dark:text-zinc-300"
|
||||
>
|
||||
<NuxtLink :to="path" class="grid grid-cols-1 sm:grid-cols-10 gap-1">
|
||||
<div class="sm:col-span-3">
|
||||
<NuxtImg
|
||||
@@ -36,20 +38,26 @@ withDefaults(defineProps<Props>(), {
|
||||
/>
|
||||
</div>
|
||||
<div class="sm:col-span-7 p-5">
|
||||
<h2 class="text-xl font-semibold text-black dark:text-zinc-300 pb-1 group-hover:text-sky-700 dark:group-hover:text-sky-400">
|
||||
<h2
|
||||
class="text-xl font-semibold text-black dark:text-zinc-300 pb-1 group-hover:text-sky-700 dark:group-hover:text-sky-400"
|
||||
>
|
||||
{{ title }}
|
||||
</h2>
|
||||
<p class="text-ellipsis line-clamp-2">
|
||||
{{ description }}
|
||||
</p>
|
||||
<div class="text-black dark:text-zinc-300 text-sm mt-2 mb-1 md:flex md:space-x-6">
|
||||
<div class="text-black dark:text-zinc-300 text-sm mt-2 mb-1 md:flex md:space-x-6">
|
||||
<div class="flex items-center">
|
||||
<LogoDate />
|
||||
<p> {{ date }}</p>
|
||||
<p>{{ date }}</p>
|
||||
</div>
|
||||
<div class="flex items-center gap-1 flex-wrap">
|
||||
<LogoTag />
|
||||
<p v-for="tag in tags" :key="tag" class="bg-gray-200 dark:bg-slate-900 rounded-md px-2 py-1 font-semibold">
|
||||
<p
|
||||
v-for="tag in tags"
|
||||
:key="tag"
|
||||
class="bg-gray-200 dark:bg-slate-900 rounded-md px-2 py-1 font-semibold"
|
||||
>
|
||||
{{ tag }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,9 @@ import { blogsPage } from '~/data'
|
||||
<div class="container mx-auto mb-5">
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 items-center">
|
||||
<div class="px-6">
|
||||
<h1 class="text-black dark:text-zinc-300 font-semibold leading-tight text-4xl md:text-5xl my-5">
|
||||
<h1
|
||||
class="text-black dark:text-zinc-300 font-semibold leading-tight text-4xl md:text-5xl my-5"
|
||||
>
|
||||
{{ blogsPage.title }}
|
||||
</h1>
|
||||
<p class="dark:text-zinc-300">
|
||||
|
||||
Reference in New Issue
Block a user