Update links data source
This commit is contained in:
1 parent
70cd01019d
commit
6cfce40e54
4 files changed
+165
-122
No files matched your search
@@ -11,7 +11,8 @@
|
||||
// ============================================================================
|
||||
|
||||
// User profile and skills
|
||||
export { user, skills } from './user';
|
||||
export type { LinkItem } from './user';
|
||||
export { user, skills, links } from './user';
|
||||
|
||||
// Layout, breakpoints, fonts, navbar, scrollbar
|
||||
export { layout, breakpoints, fonts, navbar, scrollbar } from './layout';
|
||||
|
||||
@@ -26,6 +26,25 @@ export const user = {
|
||||
]
|
||||
};
|
||||
|
||||
// ============================================================================
|
||||
// LINKS PAGE
|
||||
// ============================================================================
|
||||
|
||||
export interface LinkItem {
|
||||
name: string;
|
||||
icon: string;
|
||||
link: string;
|
||||
}
|
||||
|
||||
export const links: LinkItem[] = [
|
||||
{ name: 'GitHub', icon: 'mdi:github', link: 'https://github.com/SirBlobby' },
|
||||
{ name: 'LinkedIn', icon: 'mdi:linkedin', link: 'https://www.linkedin.com/in/gmanjunatha/' },
|
||||
{ name: 'Devpost', icon: 'simple-icons:devpost', link: 'https://devpost.com/Sir_Blob_' },
|
||||
{ name: 'Discord', icon: 'ic:baseline-discord', link: 'https://discord.com/users/sir_blob_' },
|
||||
{ name: 'Email', icon: 'mdi:email', link: `mailto:${user.email}` },
|
||||
// { name: 'Blog', icon: 'mdi:rss', link: 'https://blog.sirblob.co' }
|
||||
];
|
||||
|
||||
// ============================================================================
|
||||
// SKILLS
|
||||
// ============================================================================
|
||||
|
||||
@@ -1,27 +1,13 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from "svelte";
|
||||
import Icon from "@iconify/svelte";
|
||||
import { user, navigation, pageMeta } from "$lib/config";
|
||||
import { user, links, pageMeta, type LinkItem } from "$lib/config";
|
||||
import { themeColors } from "$lib/stores/theme";
|
||||
import TuiHeader from "$lib/components/tui/TuiHeader.svelte";
|
||||
import TuiFooter from "$lib/components/tui/TuiFooter.svelte";
|
||||
import "$lib/assets/css/terminal-tui.css";
|
||||
import "$lib/assets/css/tui-body.css";
|
||||
|
||||
interface LinkItem {
|
||||
name: string;
|
||||
icon: string;
|
||||
link: string;
|
||||
}
|
||||
|
||||
const blogLink = navigation.find((item) => item.name === "blog")?.path;
|
||||
|
||||
const links: LinkItem[] = [
|
||||
...user.socials,
|
||||
{ name: "Email", icon: "mdi:email", link: `mailto:${user.email}` },
|
||||
...(blogLink ? [{ name: "Blog", icon: "mdi:rss", link: blogLink }] : []),
|
||||
];
|
||||
|
||||
let selected = $state<LinkItem | null>(null);
|
||||
let QrCode = $state<any>(null);
|
||||
let detailEl = $state<HTMLDivElement>();
|
||||
|
||||
Reference in new issue
Block a user