diff --git a/app/layout.tsx b/app/layout.tsx index 8bf8a21..0cc9229 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -2,6 +2,7 @@ import type { Metadata } from "next"; import "./globals.css"; import { SiteNavbar } from "@/components/site-navbar"; +import { ANNOUNCEMENT_ITEMS } from "@/data/site-settings"; import { Icon } from "@iconify/react"; import Link from "next/link"; import { AnnouncementBar } from "poyraz-ui/organisms"; @@ -10,7 +11,7 @@ export const metadata: Metadata = { title: "Poyraz Avsever | Portfolyo | Freelancer | Full-stack Geliştirici | Web Geliştirici", description: - "Poyraz Avsever'in projelerini, yetkinliklerini ve hizmetlerini sergilediği kişisel portfolyo sitesi. Yazılıma ve teknolojiye tutkuyla bağlı genç bir geliştirici.", + "Poyraz Avsever'in projelerini, yetkinliklerini ve hizmetlerini sergilediği kişisel portfolyo sitesi.", icons: { icon: "/favicon.ico", }, @@ -46,28 +47,34 @@ export default function RootLayout({ }: Readonly<{ children: React.ReactNode; }>) { + const announcement = ANNOUNCEMENT_ITEMS[0]; + return (
- } - action={ - - İncele -> - - } - > - Bu hafta yeni bileşenler eklendi! - + {announcement ? ( + } + action={ + announcement.actionLabel && announcement.actionHref ? ( + + {announcement.actionLabel} + + ) : null + } + > + {announcement.text} + + ) : null}
{children}
diff --git a/data/site-settings.ts b/data/site-settings.ts new file mode 100644 index 0000000..bc1229b --- /dev/null +++ b/data/site-settings.ts @@ -0,0 +1,15 @@ +export type AnnouncementItem = { + id: string; + text: string; + actionLabel: string; + actionHref: string; +}; + +export const ANNOUNCEMENT_ITEMS: AnnouncementItem[] = [ + { + id: "main-announcement", + text: "Bu hafta yeni bileşenler eklendi!", + actionLabel: "İncele ->", + actionHref: "https://ui.poyrazavsever.com", + }, +];