add category topic page

Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
This commit is contained in:
nurRiyad
2023-01-08 22:12:33 +06:00
parent 306a0e001f
commit acac2aff61
3 changed files with 31 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ const randbgcolor = ref(`${color.at(getRandomInt(0, 8))}`)
<template>
<div class="text-white px-5 py-3 rounded hover:underline randbgcolor">
<NuxtLink to="/" class="text-xl font-extrabold">
<NuxtLink :to="`/categories/${title}`" class="text-xl font-extrabold">
<h1>#{{ title }}</h1>
</NuxtLink>
</div>

View File

@@ -0,0 +1,9 @@
<template>
<div class="container mx-auto">
<div class="p-6 my-4 mx-3 rounded-md bg-gray-200">
<h1 class="text-black font-semibold leading-tight text-4xl md:text-5xl my-5">
#{{ $route.params.category }}
</h1>
</div>
</div>
</template>