From de011cb35140399f0c0f1d4250fb4737f648d99f Mon Sep 17 00:00:00 2001 From: Proxyy587 Date: Sun, 16 Jun 2024 16:43:09 +0530 Subject: [PATCH] added downloads --- app/(root)/downloads/page.tsx | 93 +++++++++++++++++++++++++++ app/globals.css | 8 ++- components/shared/FAQ.tsx | 2 +- components/ui/table.tsx | 117 ++++++++++++++++++++++++++++++++++ 4 files changed, 217 insertions(+), 3 deletions(-) create mode 100644 app/(root)/downloads/page.tsx create mode 100644 components/ui/table.tsx diff --git a/app/(root)/downloads/page.tsx b/app/(root)/downloads/page.tsx new file mode 100644 index 0000000..4191e6b --- /dev/null +++ b/app/(root)/downloads/page.tsx @@ -0,0 +1,93 @@ +import { Button } from "@/components/ui/button"; +import { + Table, + TableBody, + TableCaption, + TableCell, + TableFooter, + TableHead, + TableHeader, + TableRow, +} from "@/components/ui/table"; +import { Download } from "lucide-react"; +import Link from "next/link"; + +const downloads = [ + { + date: "2024-06-01", + fileName: "SVRJS_v1.0.0.zip", + version: "1.0.0", + fileSize: "15MB", + downloadLink: "/downloads/SVRJS_v1.0.0.zip", + }, + { + date: "2024-06-10", + fileName: "SVRJS_v1.1.0.zip", + version: "1.1.0", + fileSize: "18MB", + downloadLink: "/downloads/SVRJS_v1.1.0.zip", + }, + { + date: "2024-06-15", + fileName: "SVRJS_v1.2.0.zip", + version: "1.2.0", + fileSize: "20MB", + downloadLink: "/downloads/SVRJS_v1.2.0.zip", + }, + { + date: "2024-06-20", + fileName: "SVRJS_v1.3.0.zip", + version: "1.3.0", + fileSize: "22MB", + downloadLink: "/downloads/SVRJS_v1.3.0.zip", + }, +]; + +const DownloadPage = () => { + return ( +
+

+ Downloads +

+

+ Get all the latest version of SVRJS download and compiled Files here! +

+ + A list of available downloads. + + + Date + File Name + Version + Download Link + File Size + + + + {downloads.map((download) => ( + + {download.date} + {download.fileName} + {download.version} + + + + + + {download.fileSize} + + ))} + +
+
+ ); +}; + +export default DownloadPage; diff --git a/app/globals.css b/app/globals.css index 62dccdb..35de23b 100644 --- a/app/globals.css +++ b/app/globals.css @@ -60,10 +60,14 @@ scroll-behavior: smooth; } +html { + overflow-x: hidden; +} + body { font-family: var(--font-poppins); user-select: text; - overflow-x: hidden; + overflow-x: clip; } @layer base { @@ -71,7 +75,7 @@ body { @apply border-border; } body { - @apply bg-background text-foreground; + @apply bg-background text-foreground w-full h-full; } } diff --git a/components/shared/FAQ.tsx b/components/shared/FAQ.tsx index a282715..719be6c 100644 --- a/components/shared/FAQ.tsx +++ b/components/shared/FAQ.tsx @@ -13,7 +13,7 @@ const Faq = () => {

Frequently Asked Question

-

+

Find answers to common questions about SVRJS

+>(({ className, ...props }, ref) => ( +
+ + +)) +Table.displayName = "Table" + +const TableHeader = React.forwardRef< + HTMLTableSectionElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( + +)) +TableHeader.displayName = "TableHeader" + +const TableBody = React.forwardRef< + HTMLTableSectionElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( + +)) +TableBody.displayName = "TableBody" + +const TableFooter = React.forwardRef< + HTMLTableSectionElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( + tr]:last:border-b-0", + className + )} + {...props} + /> +)) +TableFooter.displayName = "TableFooter" + +const TableRow = React.forwardRef< + HTMLTableRowElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( + +)) +TableRow.displayName = "TableRow" + +const TableHead = React.forwardRef< + HTMLTableCellElement, + React.ThHTMLAttributes +>(({ className, ...props }, ref) => ( +
+)) +TableHead.displayName = "TableHead" + +const TableCell = React.forwardRef< + HTMLTableCellElement, + React.TdHTMLAttributes +>(({ className, ...props }, ref) => ( + +)) +TableCell.displayName = "TableCell" + +const TableCaption = React.forwardRef< + HTMLTableCaptionElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +
+)) +TableCaption.displayName = "TableCaption" + +export { + Table, + TableHeader, + TableBody, + TableFooter, + TableHead, + TableRow, + TableCell, + TableCaption, +}