import ReleaseNoteElement from "@/components/release-note";
import { releaseNotes } from "@/lib/release-notes";
import { Metadata } from "next";

export const metadata: Metadata = {
	title: "Release Notes",
	description: "Stay up to date with the latest changes to Zen Browser",
	keywords: [
		"Zen",
		"Browser",
		"Zen Browser",
		"Web",
		"Internet",
		"Fast",
		"Release",
		"Notes",
	],
};

export default function ReleaseNotes() {
	return (
		<div className="py-42 flex min-h-screen flex-col justify-center px-10 lg:px-10 xl:px-10 2xl:w-3/5">
			<h1 className="mt-48 text-4xl font-bold">Release Notes</h1>
			<p className="mt-8 text-lg text-muted-foreground">
				Stay up to date with the latest changes to Zen Browser! Since the{" "}
				<a className="text-blue-500" href="#1.0.0-a.1">
					first release
				</a>{" "}
				till{" "}
				<a
					className="text-blue-500"
					href={`/release-notes/${releaseNotes[0].version}`}
				>
					{releaseNotes[0].version}
				</a>
				, we've been working hard to make Zen Browser the best it can be.
				<br />
				<br /> Thanks everyone for your feedback! ❤️
			</p>
			{releaseNotes.map((releaseNote) => (
				<ReleaseNoteElement key={releaseNote.version} data={releaseNote} />
			))}
		</div>
	);
}
