import { notFound } from "next/navigation" import { Navbar } from "@/components/navbar" import { Footer } from "@/components/footer" import { Badge } from "@/components/ui/badge" import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" import { ArrowLeft, Calendar, Clock } from "lucide-react" import Image from "next/image" import Link from "next/link" import { Button } from "@/components/ui/button" import type { Metadata } from "next" import { MDXRemote } from "next-mdx-remote/rsc" import rehypePrism from "rehype-prism-plus" import projects from "@/data/portfolio" interface BlogPostPageProps { params: { slug: string } } export async function generateMetadata({ params }: BlogPostPageProps): Promise { const p = await params; const post = projects.find((post) => post._meta.path === p.slug) if (!post) { return { title: "Progetto non trovato", } } return { title: `${post.title} | TECHTONIC FAULT Blog`, description: post.description, } } export default async function BlogPostPage({ params }: BlogPostPageProps) { const p = await params; const post = projects.find((post) => post._meta.path === p.slug) if (!post) { notFound() } return (
{/* Hero Section */}

{post.title}

{post.year}
{post.tags.map((tag, index) => ( {tag} ))}

{post.description}

{/* Featured Image */}
{post.title}
{/* Content */}
{!!post.links && Object.values(post.links).some(v => !!v) &&

Scarica ora

{!!post.links.apple && Download on the App Store Download on the App Store } {!!post.links.play && Download on Google Play Store}
}
) }