Refactor sitemap and project components; remove snippets page; update project data structure and command palette links

This commit is contained in:
Poyraz Avsever
2026-04-03 11:53:22 +03:00
parent 7b95ca43b7
commit ed5f3b0900
8 changed files with 684 additions and 130 deletions
+87 -16
View File
@@ -1,7 +1,12 @@
import { certificates } from "@/data/certificates";
import { EDUCATION } from "@/data/education";
import { EXPERIENCE } from "@/data/experience";
import { FIGMA_TEMPLATES, MOBILE_APPS, WEB_APPS } from "@/data/projects";
import {
EXTENSIONS,
FIGMA_TEMPLATES,
MOBILE_APPS,
WEB_APPS,
} from "@/data/projects";
import { REFERENCES } from "@/data/references";
import { VOLUNTEER_COMMUNITY_ITEMS } from "@/data/volunteer-community";
import { YOUTUBE_VIDEO_LINKS } from "@/data/youtube-videos";
@@ -27,7 +32,14 @@ const navigationItems: CommandPaletteItem[] = NAV_LINKS.map((item) => ({
label: item.label,
href: item.href,
icon: "mdi:compass-outline",
keywords: [item.label, item.href, "sayfa", "navigasyon", "page", "navigation"],
keywords: [
item.label,
item.href,
"sayfa",
"navigasyon",
"page",
"navigation",
],
}));
const socialItems: CommandPaletteItem[] = SOCIAL_LINKS.map((item) => ({
@@ -62,7 +74,14 @@ const aboutItems: CommandPaletteItem[] = [
label: item.title,
href: "/about",
icon: "mdi:school-outline",
keywords: [item.institution, item.period, item.description, "eğitim", "education", "about"],
keywords: [
item.institution,
item.period,
item.description,
"eğitim",
"education",
"about",
],
})),
...EXPERIENCE.map((item) => ({
id: `experience-${item.id}`,
@@ -76,21 +95,43 @@ const aboutItems: CommandPaletteItem[] = [
label: item.name,
href: "/about",
icon: "mdi:certificate-outline",
keywords: [item.organization, item.date, item.category, item.description, "sertifika", "certificate"],
keywords: [
item.organization,
item.date,
item.category,
item.description,
"sertifika",
"certificate",
],
})),
...REFERENCES.map((item) => ({
id: `reference-${item.id}`,
label: `Referans: ${item.author}`,
href: "/about/references",
icon: "mdi:account-voice-outline",
keywords: [item.role, item.quote, "referans", "yorum", "reference", "testimonial"],
keywords: [
item.role,
item.quote,
"referans",
"yorum",
"reference",
"testimonial",
],
})),
...VOLUNTEER_COMMUNITY_ITEMS.map((item) => ({
id: `volunteer-${item.id}`,
label: item.title,
href: "/about/volunteer-community",
icon: "mdi:hand-heart-outline",
keywords: [item.timeline, item.focus, item.link ?? "", "gönüllülük", "topluluk", "volunteer", "community"],
keywords: [
item.timeline,
item.focus,
item.link ?? "",
"gönüllülük",
"topluluk",
"volunteer",
"community",
],
})),
];
@@ -100,7 +141,14 @@ const projectItems: CommandPaletteItem[] = [
label: item.title,
href: "/projects",
icon: "mdi:cellphone",
keywords: [item.description, item.badge ?? "", "mobil", "proje", "mobile", "project"],
keywords: [
item.description,
item.badge ?? "",
"mobil",
"proje",
"mobile",
"project",
],
})),
...WEB_APPS.map((item) => ({
id: `web-project-${item.id}`,
@@ -110,24 +158,47 @@ const projectItems: CommandPaletteItem[] = [
external: Boolean(item.href),
keywords: [item.description, item.badge ?? "", "web", "proje", "project"],
})),
...EXTENSIONS.map((item) => ({
id: `extension-project-${item.id}`,
label: item.title,
href: item.href ?? "/projects",
icon: "mdi:puzzle-outline",
external: Boolean(item.href),
keywords: [
item.description,
item.badge ?? "",
"extension",
"eklenti",
"proje",
"project",
],
})),
...FIGMA_TEMPLATES.map((item) => ({
id: `figma-project-${item.id}`,
label: item.title,
href: item.href ?? "/projects",
icon: "mdi:figma",
external: Boolean(item.href),
keywords: [item.description, item.badge ?? "", "figma", "şablon", "template"],
keywords: [
item.description,
item.badge ?? "",
"figma",
"şablon",
"template",
],
})),
];
const contentItems: CommandPaletteItem[] = YOUTUBE_VIDEO_LINKS.map((item, index) => ({
id: `youtube-video-${index + 1}`,
label: `YouTube Videosu ${index + 1}`,
href: item,
icon: "mdi:youtube",
external: true,
keywords: [item, "youtube", "video", "içerik", "content"],
}));
const contentItems: CommandPaletteItem[] = YOUTUBE_VIDEO_LINKS.map(
(item, index) => ({
id: `youtube-video-${index + 1}`,
label: `YouTube Videosu ${index + 1}`,
href: item,
icon: "mdi:youtube",
external: true,
keywords: [item, "youtube", "video", "içerik", "content"],
}),
);
export const COMMAND_PALETTE_GROUPS: CommandPaletteGroup[] = [
{
-1
View File
@@ -3,7 +3,6 @@ export const NAV_LINKS = [
{ id: "blog", label: "Blog", href: "/blog" },
{ id: "content", label: "İçerikler", href: "/content" },
{ id: "projects", label: "Projeler", href: "/projects" },
{ id: "snippets", label: "Snippets", href: "/snippets" },
{ id: "contact", label: "İletişim", href: "/contact" },
] as const;