Update readme and add myself page
Signed-off-by: Al Asad Nur Riyad <asadnurriyad@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user