Improve search functionality with Fuse.js for better accuracy and UX (#76)
* Improve search functionality with Fuse.js * Centralized social media links in `data/index.ts` * Fix formatting Signed-off-by: nurRiyad <asadnurriyad@gmail.com> * Update dependency Signed-off-by: nurRiyad <asadnurriyad@gmail.com> * Fix formatting Signed-off-by: nurRiyad <asadnurriyad@gmail.com> --------- Signed-off-by: nurRiyad <asadnurriyad@gmail.com> Co-authored-by: nurRiyad <asadnurriyad@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { aboutPage, footerData, navbarData } from '~/data'
|
||||
import { aboutPage, footerData, navbarData, socialLinks } from '~/data'
|
||||
|
||||
useHead({
|
||||
title: 'About',
|
||||
@@ -31,7 +31,7 @@ defineOgImageComponent('About', {
|
||||
|
||||
<div class="my-3 space-x-2 md:space-x-3 pb-10">
|
||||
<NuxtLink
|
||||
to="https://github.com/nurRiyad"
|
||||
:to="socialLinks.githubLink"
|
||||
target="_blank"
|
||||
class="px-2 py-1 lg:px-3 lg:py-2 bg-gray-300 text-gray-800 rounded-md dark:bg-slate-700 dark:text-[#F1F2F4]"
|
||||
aria-label="Github"
|
||||
@@ -39,7 +39,7 @@ defineOgImageComponent('About', {
|
||||
<Icon name="fa:github" size="1em" />
|
||||
</NuxtLink>
|
||||
<NuxtLink
|
||||
to="https://www.linkedin.com/in/nur-riyad/"
|
||||
:to="socialLinks.linkedinLink"
|
||||
target="_blank"
|
||||
class="px-2 py-1 lg:px-3 lg:py-2 bg-gray-300 text-gray-800 rounded-md dark:bg-slate-700 dark:text-[#F1F2F4]"
|
||||
aria-label="LinkedIn"
|
||||
@@ -47,7 +47,7 @@ defineOgImageComponent('About', {
|
||||
<Icon name="fa:linkedin-square" size="1em" />
|
||||
</NuxtLink>
|
||||
<NuxtLink
|
||||
to="https://twitter.com/qdnvubp"
|
||||
:to="socialLinks.twitterLink"
|
||||
target="_blank"
|
||||
class="px-2 py-1 lg:px-3 lg:py-2 bg-gray-300 text-gray-800 rounded-md dark:bg-slate-700 dark:text-[#F1F2F4]"
|
||||
aria-label="Twitter"
|
||||
@@ -55,7 +55,7 @@ defineOgImageComponent('About', {
|
||||
<Icon name="fa:twitter-square" size="1em" />
|
||||
</NuxtLink>
|
||||
<NuxtLink
|
||||
to="https://stackoverflow.com/users/16781395/nur-riyad"
|
||||
:to="socialLinks.stackoverflowLink"
|
||||
target="_blank"
|
||||
class="px-2 py-1 lg:px-3 lg:py-2 bg-gray-300 text-gray-800 rounded-md dark:bg-slate-700 dark:text-[#F1F2F4]"
|
||||
aria-label="StackOverflow"
|
||||
|
||||
Reference in New Issue
Block a user