mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 17:30:01 +02:00
Started working on release notes
This commit is contained in:
parent
12cf6a6153
commit
74d44c9bd6
5 changed files with 48 additions and 3 deletions
14
src/app/release-notes/[version]/page.tsx
Normal file
14
src/app/release-notes/[version]/page.tsx
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
'use client'
|
||||||
|
|
||||||
|
import { useParams } from 'next/navigation'
|
||||||
|
|
||||||
|
export default function() {
|
||||||
|
const params = useParams<{ version: string }>()
|
||||||
|
const { version } = params;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<h1>{version}</h1>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
7
src/app/release-notes/page.tsx
Normal file
7
src/app/release-notes/page.tsx
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import { releaseNotes } from "@/lib/release-notes";
|
||||||
|
import { redirect } from "next/navigation";
|
||||||
|
|
||||||
|
export default function() {
|
||||||
|
// "0" is the latest release
|
||||||
|
redirect(`/release-notes/${releaseNotes[0].version}`);
|
||||||
|
}
|
|
@ -55,14 +55,14 @@ export default function Header() {
|
||||||
className="!text-xl text-muted-foreground !font-medium"
|
className="!text-xl text-muted-foreground !font-medium"
|
||||||
/>
|
/>
|
||||||
<div className="max-w-1/4 mt-10 flex items-center justify-center">
|
<div className="max-w-1/4 mt-10 flex items-center justify-center">
|
||||||
<a href="/docs" className="mr-5">
|
<a href="/release-notes" className="mr-5">
|
||||||
<FadeText
|
<FadeText
|
||||||
className="text-md font-medium text-black dark:text-white"
|
className="text-md font-medium text-black dark:text-white"
|
||||||
direction="up"
|
direction="up"
|
||||||
framerProps={{
|
framerProps={{
|
||||||
show: { transition: { delay: 0.2 } },
|
show: { transition: { delay: 0.2 } },
|
||||||
}}
|
}}
|
||||||
text="Documentation"
|
text="Release Notes"
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
<a href="/download">
|
<a href="/download">
|
||||||
|
|
|
@ -89,7 +89,7 @@ export function Navigation() {
|
||||||
</NavigationMenuContent>
|
</NavigationMenuContent>
|
||||||
</NavigationMenuItem>
|
</NavigationMenuItem>
|
||||||
<NavigationMenuItem>
|
<NavigationMenuItem>
|
||||||
<Link href="/docs" legacyBehavior passHref>
|
<Link href="#" legacyBehavior passHref className="opacity-70 cursor-not-allowed">
|
||||||
<NavigationMenuLink className={navigationMenuTriggerStyle()}>
|
<NavigationMenuLink className={navigationMenuTriggerStyle()}>
|
||||||
Documentation
|
Documentation
|
||||||
</NavigationMenuLink>
|
</NavigationMenuLink>
|
||||||
|
|
24
src/lib/release-notes.ts
Normal file
24
src/lib/release-notes.ts
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
|
||||||
|
export interface ReleaseNote {
|
||||||
|
version: string;
|
||||||
|
date: string;
|
||||||
|
extra?: string;
|
||||||
|
fixes?: string[];
|
||||||
|
features?: string[];
|
||||||
|
breakingChanges?: string[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export const releaseNotes: ReleaseNote[] = [
|
||||||
|
{
|
||||||
|
version: "0.0.0-a.3",
|
||||||
|
date: "11/07/2024",
|
||||||
|
extra: "This is a test release.",
|
||||||
|
features: [
|
||||||
|
"Added a new feature.",
|
||||||
|
],
|
||||||
|
fixes: [
|
||||||
|
"Fixed a bug.",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue