initial commit: project completion with proper gitignore
This commit is contained in:
24
app/works/page.tsx
Normal file
24
app/works/page.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import sql from "@/lib/db";
|
||||
import WorksClient from "@/components/WorksClient";
|
||||
import { Metadata } from "next";
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
return {
|
||||
title: "Çalışmalarımız",
|
||||
description: "Muğla Dijital olarak hayata geçirdiğimiz seçkin projeleri, sosyal medya kampanyalarını ve dijital pazarlama başarı hikayelerini inceleyin.",
|
||||
alternates: {
|
||||
canonical: "/works",
|
||||
},
|
||||
openGraph: {
|
||||
title: "Çalışmalarımız | Muğla Dijital",
|
||||
description: "Markalar için yarattığımız dijital başarı hikayeleri.",
|
||||
url: "https://mugladijitalmedya.com/works",
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export default async function WorksPage() {
|
||||
const projects = await sql`SELECT * FROM projects ORDER BY created_at DESC`;
|
||||
|
||||
return <WorksClient projects={projects || []} />;
|
||||
}
|
||||
Reference in New Issue
Block a user