diff --git a/app/[locale]/page.tsx b/app/[locale]/page.tsx index 9b2bd08..42b1378 100644 --- a/app/[locale]/page.tsx +++ b/app/[locale]/page.tsx @@ -1,4 +1,5 @@ import { HomeHero } from "@/components/home-hero"; +import { HomeProjectsSection } from "@/components/home-projects-section"; import { HomeVideosSection } from "@/components/home-videos-section"; import { ReferencesSection } from "@/components/references-section"; import { SponsorsSection } from "@/components/sponsors-section"; @@ -13,8 +14,9 @@ export default async function Home({ const homeNews = await getHomeBlogNews(locale, 6); return ( -
+
+ diff --git a/components/home-projects-section.tsx b/components/home-projects-section.tsx new file mode 100644 index 0000000..d6c4ac8 --- /dev/null +++ b/components/home-projects-section.tsx @@ -0,0 +1,69 @@ +"use client"; + +import { Icon } from "@iconify/react"; +import { useLocale, useTranslations } from "next-intl"; +import { Button, ButtonIcon, ButtonLabel, Typography } from "poyraz-ui/atoms"; +import { ImageCard } from "poyraz-ui/molecules"; +import { useRouter } from "@/i18n/routing"; +import { WEB_APPS } from "@/data/projects"; +import { getLocalizedValue } from "@/lib/locale"; + +export function HomeProjectsSection() { + const t = useTranslations("Home"); + const locale = useLocale(); + const router = useRouter(); + const projects = WEB_APPS.slice(0, 4); + + return ( +
+
+ + {t("projectsTitle")} + + + +
+ +
+
+ {projects.map((project) => ( + + ))} +
+ + +
+ ); +} diff --git a/components/home-videos-section.tsx b/components/home-videos-section.tsx index bbd6145..77216a9 100644 --- a/components/home-videos-section.tsx +++ b/components/home-videos-section.tsx @@ -1,4 +1,7 @@ -import { Card } from "poyraz-ui/atoms"; +"use client"; + +import { Icon } from "@iconify/react"; +import { Button, ButtonIcon, ButtonLabel, Card, Typography } from "poyraz-ui/atoms"; import { YOUTUBE_VIDEO_LINKS } from "@/data/youtube-videos"; import { YoutubeLiteEmbed } from "@/components/youtube-lite-embed"; import { useTranslations } from "next-intl"; @@ -7,7 +10,37 @@ export function HomeVideosSection() { const t = useTranslations("Content"); return ( -
+
+
+ + {t("youtubeTitle")} + + + +
+
{YOUTUBE_VIDEO_LINKS.map((link) => ( ); diff --git a/components/references-section.tsx b/components/references-section.tsx index c8f68ea..d4be871 100644 --- a/components/references-section.tsx +++ b/components/references-section.tsx @@ -11,7 +11,7 @@ export function ReferencesSection() { const router = useRouter(); return ( -
+