From e0b7e46c76cc17bf465cef53b8108e726c9bbaf5 Mon Sep 17 00:00:00 2001 From: Wanjohi <71614375+wanjohiryan@users.noreply.github.com> Date: Fri, 30 Aug 2024 17:30:59 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20Add=20a=20makeshift=20`404`?= =?UTF-8?q?=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/www/src/routes/404.tsx | 361 +++++++++++++++++++++++++++++++++++- 1 file changed, 357 insertions(+), 4 deletions(-) diff --git a/apps/www/src/routes/404.tsx b/apps/www/src/routes/404.tsx index ebb2f917..15a8bb3a 100644 --- a/apps/www/src/routes/404.tsx +++ b/apps/www/src/routes/404.tsx @@ -1,13 +1,366 @@ import { component$ } from "@builder.io/qwik"; import { Link } from "@builder.io/qwik-city"; import { buttonVariants, cn } from "@nestri/ui/design"; +//randomly get 20 steam ids like this 2358720 + +// Function to generate random Steam IDs +function generateRandomSteamIds(count: number): number[] { + const steamIds: number[] = []; + for (let i = 0; i < count; i++) { + // Generate a random 7-digit number + steamIds.push(Math.floor(1000000 + Math.random() * 9000000)); + } + return steamIds; +} + +// Generate 20 random Steam IDs +const randomSteamIds = generateRandomSteamIds(20); +console.log(randomSteamIds); export default component$(() => { return ( -
-

404

-

Whoops! The page you are looking for does not exist

- Go home +
+

404

+

Whoops! The page you are looking for does not exist. 
Go home?

+ +
); }); \ No newline at end of file