From cb2acc0b3991a3c18da087c0e2a6c655a25a9030 Mon Sep 17 00:00:00 2001 From: Ng Wei En Date: Wed, 17 Jul 2024 17:10:31 +0800 Subject: [PATCH 01/13] feat(index): update stats & apply link --- components/Drawer.tsx | 14 ++++++++------ components/Statistics.tsx | 4 +--- pages/index.tsx | 27 ++++++++++++++------------- src/links.tsx | 6 ++++++ 4 files changed, 29 insertions(+), 22 deletions(-) create mode 100644 src/links.tsx diff --git a/components/Drawer.tsx b/components/Drawer.tsx index 41d6a43f..f4d5494a 100644 --- a/components/Drawer.tsx +++ b/components/Drawer.tsx @@ -8,16 +8,18 @@ import ListItem from "@mui/material/ListItem"; import Toolbar from "@mui/material/Toolbar"; import MenuIcon from "@mui/icons-material/Menu"; import CloseIcon from "@mui/icons-material/Close"; + +import { + URL_APPLY, + URL_FAQ, + URL_HOME, + URL_MAIN, + URL_MENTORS, +} from "../src/links"; import { advisoryLogo } from "./assets"; const drawerWidth = 640; -const URL_APPLY = "/apply"; -const URL_HOME = "/"; -const URL_MAIN = "https://advisory.sg/"; -const URL_FAQ = "/faq"; -const URL_MENTORS = "/mentors"; - const desktopLinkStyle = { fontWeight: "700", whiteSpace: "nowrap", diff --git a/components/Statistics.tsx b/components/Statistics.tsx index 2dd73b6f..6b4c8ad3 100644 --- a/components/Statistics.tsx +++ b/components/Statistics.tsx @@ -10,9 +10,7 @@ const Statistics = ({ stats }) => {
-

- {stat.value.toLocaleString()} -

+

{stat.value}

{stat.title}

diff --git a/pages/index.tsx b/pages/index.tsx index ff819e53..a9ac5e45 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -11,10 +11,11 @@ import { advisoryMentorshipLogo } from "../components/assets"; import Canvas from "../components/Canvas"; import Logo from "../components/Logo"; import Statistics from "../components/Statistics"; +import { URL_APPLY } from "../src/links"; import "../styles/Header.css"; import "../styles/App.css"; -const testimonials = [ +const TESTIMONIALS = [ { person: "Mr. Randell Sie", type: "Mentor", @@ -30,7 +31,7 @@ const testimonials = [ }, ]; -const images = [ +const IMAGES = [ { index: "", label1: "Mentor: Randall Sie", @@ -43,25 +44,25 @@ const images = [ }, ]; -const statistics = [ +const STATS = [ { title: "Mentors", - value: 2000, + value: "2,900+", icon: "mdi:account", }, { title: "Mentees", - value: 200, + value: "3,500+", icon: "mdi:school", }, { title: "Industries", - value: 48, + value: "48", icon: "mdi:domain", }, { - title: "Hours of Mentorship", - value: 8000, + title: "Mentorship Hours", + value: "14,000+", icon: "mdi:clock-time-four-outline", }, ]; @@ -175,7 +176,7 @@ const Index = () => {

Our Impact

- +

Our Partner Organisations

Testimonials

@@ -193,7 +194,7 @@ const Index = () => { >