feat: add contact section and home footer with Ataturk quote widget
This commit is contained in:
+3
-1
@@ -1,16 +1,18 @@
|
|||||||
import { HomeHero } from "@/components/home-hero";
|
import { HomeHero } from "@/components/home-hero";
|
||||||
import { HomeVideosSection } from "@/components/home-videos-section";
|
import { HomeVideosSection } from "@/components/home-videos-section";
|
||||||
import { ReferencesSection } from "@/components/references-section";
|
import { ReferencesSection } from "@/components/references-section";
|
||||||
|
import { HomeFooterSection } from "@/components/home-footer-section";
|
||||||
import { getHomeBlogNews } from "@/data/blog";
|
import { getHomeBlogNews } from "@/data/blog";
|
||||||
|
|
||||||
export default async function Home() {
|
export default async function Home() {
|
||||||
const homeNews = await getHomeBlogNews(3);
|
const homeNews = await getHomeBlogNews(3);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="flex h-full flex-col gap-4 overflow-hidden">
|
<section className="flex h-full flex-col gap-4 overflow-y-auto overflow-x-hidden">
|
||||||
<HomeHero news={homeNews} />
|
<HomeHero news={homeNews} />
|
||||||
<ReferencesSection />
|
<ReferencesSection />
|
||||||
<HomeVideosSection />
|
<HomeVideosSection />
|
||||||
|
<HomeFooterSection />
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { Icon } from "@iconify/react";
|
import { Icon } from "@iconify/react";
|
||||||
import { Card, Typography } from "poyraz-ui/atoms";
|
import { Card, Typography } from "poyraz-ui/atoms";
|
||||||
|
|
||||||
const CONTACT_LINKS = [
|
export const CONTACT_LINKS = [
|
||||||
{
|
{
|
||||||
id: "email",
|
id: "email",
|
||||||
label: "E-posta",
|
label: "E-posta",
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import Script from "next/script";
|
||||||
|
|
||||||
|
export function HomeFooterSection() {
|
||||||
|
return (
|
||||||
|
<div className="mt-auto flex w-full flex-col items-center justify-center pt-4">
|
||||||
|
<div data-ataturk-quote-widget data-language="tr" data-theme="light"></div>
|
||||||
|
<Script
|
||||||
|
src="https://ataturk-kronolojisi.org/widget/quote.js"
|
||||||
|
strategy="lazyOnload"
|
||||||
|
data-language="tr"
|
||||||
|
data-theme="light"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user