Update readme and add myself page

Signed-off-by: Al Asad Nur Riyad <asadnurriyad@gmail.com>
This commit is contained in:
Al Asad Nur Riyad
2023-05-04 01:50:28 +06:00
parent d72d852552
commit eece29af28
29 changed files with 3515 additions and 1434 deletions

View File

@@ -22,7 +22,7 @@ const color = [
]
// get a random number
const getRandomInt = (min: number, max: number) => {
function getRandomInt(min: number, max: number) {
min = Math.ceil(min)
max = Math.floor(max)
return Math.floor(Math.random() * (max - min + 1)) + min

View File

@@ -2,7 +2,9 @@
<div class="container mx-auto">
<div class="grid grid-cols-1 sm:grid-cols-2 items-center">
<div class="px-6">
<h1 class="text-black font-semibold leading-tight text-4xl md:text-5xl my-5">Categories</h1>
<h1 class="text-black font-semibold leading-tight text-4xl md:text-5xl my-5">
Categories
</h1>
<p>
Blow All the topics are listed on which either I have written a blog or will write a blog
in near future.

View File

@@ -5,10 +5,11 @@ const route = useRoute()
// take category from route params & make first char upper
const category = computed(() => {
let name = route.params.category || ''
const name = route.params.category || ''
let strName = ''
if (name instanceof Array) strName = name.at(0) || ''
if (Array.isArray(name))
strName = name.at(0) || ''
else strName = name
return makeFirstCharUpper(strName)
})