From 24a15848926e4a73f5188e7e618f1d2ef1b41252 Mon Sep 17 00:00:00 2001 From: macbook Date: Sat, 22 Mar 2025 21:46:44 +0400 Subject: [PATCH 1/2] modified the UI of about page, I have added better and more modern design, main priority still was to keep it simply readable by users --- packages/app/src/app/about/age.tsx | 70 ++++++++++++++++++++ packages/app/src/app/about/page.tsx | 77 +++++++++++++--------- packages/app/src/components/ui/heading.tsx | 2 +- 3 files changed, 117 insertions(+), 32 deletions(-) create mode 100644 packages/app/src/app/about/age.tsx diff --git a/packages/app/src/app/about/age.tsx b/packages/app/src/app/about/age.tsx new file mode 100644 index 00000000..0562ba0f --- /dev/null +++ b/packages/app/src/app/about/age.tsx @@ -0,0 +1,70 @@ +import { Heading } from "@/components/ui/heading"; +import Link from "next/link"; + +const page = () => { + return ( +
+ +

+ Welcome to Code Racer, an exciting open-source game that aims to provide + a fun and challenging platform for developers of all skill levels to + improve their coding abilities and compete with fellow developers in + real-time coding races. +

+

+ Whether you're a beginner looking to enhance your coding skills or + an experienced developer seeking a new challenge, Code Racer is for you. +

+
+

How It Works

+

+ Playing Code Racer is simple. Here's how you can get started +

+ +

Join a Race:

+

+ Choose a race that suits your skill level or create a new one. You can + invite friends or compete against random players from the community. +

+ +

Get Ready:

+

+ Once the race starts, you will be presented with code snippets in your + chosen programming language. +

+ +

Type Like the Wind:

+

+ Your mission is to type out the presented code snippet as quickly and + accurately as you can. Watch out for tricky syntax and special + characters! +

+ +

Climb the Leaderboard:

+

+ Each completed code snippet adds to your score. Compete against other + racers to climb the leaderboard and prove your typing supremacy. +

+
+
+

Get Involved

+

+ As an open-source project, Code Racer thrives on the support of its + community. If you're enthusiastic about enhancing the game or + adding new features, we invite you to contribute to the project. Check + out our GitHub repository{" "} + + here + {" "} + to get started. +

+
+
+ ); +}; + +export default page; diff --git a/packages/app/src/app/about/page.tsx b/packages/app/src/app/about/page.tsx index 0562ba0f..0f4b0277 100644 --- a/packages/app/src/app/about/page.tsx +++ b/packages/app/src/app/about/page.tsx @@ -4,57 +4,72 @@ import Link from "next/link"; const page = () => { return (
- -

+

+ +

Welcome to Code Racer, an exciting open-source game that aims to provide a fun and challenging platform for developers of all skill levels to improve their coding abilities and compete with fellow developers in real-time coding races.

-

+

Whether you're a beginner looking to enhance your coding skills or an experienced developer seeking a new challenge, Code Racer is for you. -

-
-

How It Works

-

- Playing Code Racer is simple. Here's how you can get started -

+

+
-

Join a Race:

-

- Choose a race that suits your skill level or create a new one. You can - invite friends or compete against random players from the community. -

+ {/* Stylish Separator */} +
+ +
+ +
+

How It Works

-

Get Ready:

-

- Once the race starts, you will be presented with code snippets in your - chosen programming language. +

+

Join a Race:

+

+ Choose a race that suits your skill level or create a new one. You can invite friends or compete against random players from the community.

+
-

Type Like the Wind:

-

- Your mission is to type out the presented code snippet as quickly and - accurately as you can. Watch out for tricky syntax and special - characters! +

+

Get Ready:

+

+ Once the race starts, you will be presented with code snippets in your chosen programming language.

+
+ +
+

Type Like the Wind:

+

+ Your mission is to type out the presented code snippet as quickly and + accurately as you can. Watch out for tricky syntax and special + characters!

+
-

Climb the Leaderboard:

-

- Each completed code snippet adds to your score. Compete against other - racers to climb the leaderboard and prove your typing supremacy. +

+

Climb the Leaderboard:

+

+ Each completed code snippet adds to your score. Compete against other + racers to climb the leaderboard and prove your typing supremacy.

+
-
-

Get Involved

-

+ +

+ +
+ +
+

Get Involved

+

As an open-source project, Code Racer thrives on the support of its community. If you're enthusiastic about enhancing the game or adding new features, we invite you to contribute to the project. Check out our GitHub repository{" "} diff --git a/packages/app/src/components/ui/heading.tsx b/packages/app/src/components/ui/heading.tsx index ab2a0706..fd1883a0 100644 --- a/packages/app/src/components/ui/heading.tsx +++ b/packages/app/src/components/ui/heading.tsx @@ -20,7 +20,7 @@ export const Heading: React.FC = ({ return (

{title && ( -

+

{title}

)} From 66c2c2a06b6b97dd0b4899eb870eb97efa4b8b2a Mon Sep 17 00:00:00 2001 From: macbook Date: Sat, 22 Mar 2025 22:12:51 +0400 Subject: [PATCH 2/2] removed unnecesary file --- packages/app/src/app/about/age.tsx | 70 ------------------------------ 1 file changed, 70 deletions(-) delete mode 100644 packages/app/src/app/about/age.tsx diff --git a/packages/app/src/app/about/age.tsx b/packages/app/src/app/about/age.tsx deleted file mode 100644 index 0562ba0f..00000000 --- a/packages/app/src/app/about/age.tsx +++ /dev/null @@ -1,70 +0,0 @@ -import { Heading } from "@/components/ui/heading"; -import Link from "next/link"; - -const page = () => { - return ( -
- -

- Welcome to Code Racer, an exciting open-source game that aims to provide - a fun and challenging platform for developers of all skill levels to - improve their coding abilities and compete with fellow developers in - real-time coding races. -

-

- Whether you're a beginner looking to enhance your coding skills or - an experienced developer seeking a new challenge, Code Racer is for you. -

-
-

How It Works

-

- Playing Code Racer is simple. Here's how you can get started -

- -

Join a Race:

-

- Choose a race that suits your skill level or create a new one. You can - invite friends or compete against random players from the community. -

- -

Get Ready:

-

- Once the race starts, you will be presented with code snippets in your - chosen programming language. -

- -

Type Like the Wind:

-

- Your mission is to type out the presented code snippet as quickly and - accurately as you can. Watch out for tricky syntax and special - characters! -

- -

Climb the Leaderboard:

-

- Each completed code snippet adds to your score. Compete against other - racers to climb the leaderboard and prove your typing supremacy. -

-
-
-

Get Involved

-

- As an open-source project, Code Racer thrives on the support of its - community. If you're enthusiastic about enhancing the game or - adding new features, we invite you to contribute to the project. Check - out our GitHub repository{" "} - - here - {" "} - to get started. -

-
-
- ); -}; - -export default page;