This commit is contained in:
6
app/utils/clipboard.ts
Normal file
6
app/utils/clipboard.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export function copyToClipboard(toCopy: string, message: string = 'Copied to clipboard') {
|
||||
const toast = useToast()
|
||||
navigator.clipboard.writeText(toCopy).then(() => {
|
||||
toast.add({ title: message, color: 'success', icon: 'i-lucide-check-circle' })
|
||||
})
|
||||
}
|
||||
41
app/utils/links.ts
Normal file
41
app/utils/links.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
import type { NavigationMenuItem } from '@nuxt/ui'
|
||||
|
||||
export const navLinks: NavigationMenuItem[] = [{
|
||||
label: 'Home',
|
||||
icon: 'i-lucide-home',
|
||||
to: '/'
|
||||
}, {
|
||||
label: 'Projects',
|
||||
icon: 'i-lucide-folder',
|
||||
to: '/projects'
|
||||
// }, {
|
||||
// label: 'Blog',
|
||||
// icon: 'i-lucide-file-text',
|
||||
// to: '/blog'
|
||||
// }, {
|
||||
// label: 'Speaking',
|
||||
// icon: 'i-lucide-mic',
|
||||
// to: '/speaking'
|
||||
}, {
|
||||
label: 'About',
|
||||
icon: 'i-lucide-user',
|
||||
to: '/about'
|
||||
}, {
|
||||
label: 'Git',
|
||||
icon: 'i-simple-icons-gitea',
|
||||
to: 'https://git.kalar.codes/NickKalar',
|
||||
target: '_blank',
|
||||
rel: 'noopener noreferrer'
|
||||
}, {
|
||||
label: 'Resume',
|
||||
icon: 'i-lucide-file',
|
||||
onSelect: () => { const fileUrl = '/2025_Kalar_Resume.pdf';
|
||||
const fileName = '2025_Kalar_Resume.pdf';
|
||||
const link = document.createElement('a');
|
||||
link.href = fileUrl;
|
||||
link.download = fileName;
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
}
|
||||
}]
|
||||
Reference in New Issue
Block a user