22
components/blog/card.vue
Normal file
22
components/blog/card.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<script lang="ts" setup>
|
||||
defineProps<{
|
||||
title: string;
|
||||
excerpt?: string;
|
||||
image?: string;
|
||||
slug?: string;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
class="grid shadow-xl group overflow-hidden rounded max-w-md p-5 m-5 bg-slate-700 text-white"
|
||||
>
|
||||
<h1 class="text-xl">
|
||||
Riyad ipsum dolor sit amet, consectetur adipisicing elit. Saepe, commodi?
|
||||
</h1>
|
||||
<p class="text-sm">
|
||||
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Repellat autem
|
||||
sit ratione vitae dolores porro in fuga quae corporis quis?
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
@@ -1,3 +1,15 @@
|
||||
<template>
|
||||
<div>This is a page footer</div>
|
||||
</template>
|
||||
<nav class="bg-gray-900 text-white py-5 border-b border-gray-700">
|
||||
<div class="container flex justify-between mx-auto">
|
||||
<NuxtLink to="/" class="text-2xl font-medium">Elon's Blog</NuxtLink>
|
||||
<ul class="nav flex space-x-5">
|
||||
<li>
|
||||
<NuxtLink to="/categories">Categories</NuxtLink>
|
||||
</li>
|
||||
<li>
|
||||
<NuxtLink to="/blogs">Blogs</NuxtLink>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</template>
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
<template>
|
||||
<div>This is a page header</div>
|
||||
</template>
|
||||
<nav class="bg-gray-900 text-white py-5 border-b border-gray-700">
|
||||
<div class="container flex justify-between mx-auto">
|
||||
<NuxtLink to="/" class="text-2xl font-medium">Elon's Blog</NuxtLink>
|
||||
<ul class="nav flex space-x-5">
|
||||
<li>
|
||||
<NuxtLink to="/categories">Categories</NuxtLink>
|
||||
</li>
|
||||
<li>
|
||||
<NuxtLink to="/blogs">Blogs</NuxtLink>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user