shitton of changes #2

Closed
NerfedJabolo wants to merge 6 commits from main into main
3 changed files with 51 additions and 55 deletions
Showing only changes of commit 7c2d8ceba3 - Show all commits

View file

@ -1,7 +1,9 @@
import React from "react"; import Sidebar from '@/components/shared/Sidebar';
const Docs = () => { export default function Page() {
return <div>Docs</div>; return (
}; <>
<Sidebar />
export default Docs; </>
);
}

View file

@ -1,4 +1,4 @@
import { Button } from "@/components/ui/button"; import { Button } from '@/components/ui/button';
import { import {
Table, Table,
TableBody, TableBody,
@ -8,38 +8,38 @@ import {
TableHead, TableHead,
TableHeader, TableHeader,
TableRow, TableRow,
} from "@/components/ui/table"; } from '@/components/ui/table';
import { Download } from "lucide-react"; import { Download } from 'lucide-react';
import Link from "next/link"; import Link from 'next/link';
const downloads = [ const downloads = [
{ {
date: "2024-06-01", date: '2024-06-01',
fileName: "SVRJS_v1.0.0.zip", fileName: 'SVRJS_v1.0.0.zip',
version: "1.0.0", version: '1.0.0',
fileSize: "15MB", fileSize: '15MB',
downloadLink: "/downloads/SVRJS_v1.0.0.zip", downloadLink: '/downloads/SVRJS_v1.0.0.zip',
}, },
{ {
date: "2024-06-10", date: '2024-06-10',
fileName: "SVRJS_v1.1.0.zip", fileName: 'SVRJS_v1.1.0.zip',
version: "1.1.0", version: '1.1.0',
fileSize: "18MB", fileSize: '18MB',
downloadLink: "/downloads/SVRJS_v1.1.0.zip", downloadLink: '/downloads/SVRJS_v1.1.0.zip',
}, },
{ {
date: "2024-06-15", date: '2024-06-15',
fileName: "SVRJS_v1.2.0.zip", fileName: 'SVRJS_v1.2.0.zip',
version: "1.2.0", version: '1.2.0',
fileSize: "20MB", fileSize: '20MB',
downloadLink: "/downloads/SVRJS_v1.2.0.zip", downloadLink: '/downloads/SVRJS_v1.2.0.zip',
}, },
{ {
date: "2024-06-20", date: '2024-06-20',
fileName: "SVRJS_v1.3.0.zip", fileName: 'SVRJS_v1.3.0.zip',
version: "1.3.0", version: '1.3.0',
fileSize: "22MB", fileSize: '22MB',
downloadLink: "/downloads/SVRJS_v1.3.0.zip", downloadLink: '/downloads/SVRJS_v1.3.0.zip',
}, },
]; ];
@ -67,22 +67,25 @@ const DownloadPage = () => {
</TableRow> </TableRow>
</TableHeader> </TableHeader>
<TableBody> <TableBody>
{downloads.map((download) => ( {downloads
<TableRow key={download.fileName}> .slice()
<TableCell className="font-medium">{download.date}</TableCell> .reverse()
<TableCell>{download.fileName}</TableCell> .map((download) => (
<TableCell>{download.version}</TableCell> <TableRow key={download.fileName}>
<TableCell className="text-left">{download.fileSize}</TableCell> <TableCell className="font-medium">{download.date}</TableCell>
<TableCell className="flex items-center justify-end"> <TableCell>{download.fileName}</TableCell>
<Link href={download.downloadLink}> <TableCell>{download.version}</TableCell>
<Button variant={"ghost"} className=""> <TableCell className="text-left">{download.fileSize}</TableCell>
<Download className="w-4 h-4 mr-2" /> <TableCell className="flex items-center justify-end">
Download <Link href={download.downloadLink}>
</Button> <Button variant={'ghost'} className="">
</Link> <Download className="w-4 h-4 mr-2" />
</TableCell> Download
</TableRow> </Button>
))} </Link>
</TableCell>
</TableRow>
))}
</TableBody> </TableBody>
</Table> </Table>
</section> </section>

View file

@ -1,9 +0,0 @@
import Sidebar from '@/components/shared/Sidebar';
export default function Page() {
return (
<>
<Sidebar />
</>
);
}