From c10aa15347bf1f72b95f16ef39a3abe376ee5200 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Sun, 6 Nov 2022 17:17:50 +0800 Subject: [PATCH] [portal][feat] add homepage --- apps/portal/public/{ => logos}/bank-logo.png | Bin .../portal/public/{ => logos}/offers-logo.svg | 0 .../public/{ => logos}/resumes-logo.svg | 0 .../portal/src/components/global/AppShell.tsx | 2 +- .../components/global/ProductNavigation.tsx | 15 ++-- .../components/offers/OffersNavigation.tsx | 6 +- .../components/questions/LandingComponent.tsx | 4 +- .../questions/QuestionsNavigation.tsx | 6 +- .../components/resumes/ResumesNavigation.tsx | 2 +- apps/portal/src/pages/index.tsx | 76 ++++++++++++++++-- apps/portal/src/pages/offers/features.tsx | 2 +- 11 files changed, 91 insertions(+), 22 deletions(-) rename apps/portal/public/{ => logos}/bank-logo.png (100%) rename apps/portal/public/{ => logos}/offers-logo.svg (100%) rename apps/portal/public/{ => logos}/resumes-logo.svg (100%) diff --git a/apps/portal/public/bank-logo.png b/apps/portal/public/logos/bank-logo.png similarity index 100% rename from apps/portal/public/bank-logo.png rename to apps/portal/public/logos/bank-logo.png diff --git a/apps/portal/public/offers-logo.svg b/apps/portal/public/logos/offers-logo.svg similarity index 100% rename from apps/portal/public/offers-logo.svg rename to apps/portal/public/logos/offers-logo.svg diff --git a/apps/portal/public/resumes-logo.svg b/apps/portal/public/logos/resumes-logo.svg similarity index 100% rename from apps/portal/public/resumes-logo.svg rename to apps/portal/public/logos/resumes-logo.svg diff --git a/apps/portal/src/components/global/AppShell.tsx b/apps/portal/src/components/global/AppShell.tsx index 1f1979da..aa98eca6 100644 --- a/apps/portal/src/components/global/AppShell.tsx +++ b/apps/portal/src/components/global/AppShell.tsx @@ -44,7 +44,7 @@ function ProfileJewel() { } const userNavigation = [ - { href: '/profile', name: 'Profile' }, + // { href: '/profile', name: 'Profile' }, { href: '/api/auth/signout', name: 'Log out', diff --git a/apps/portal/src/components/global/ProductNavigation.tsx b/apps/portal/src/components/global/ProductNavigation.tsx index bdd8efd6..60f8c328 100644 --- a/apps/portal/src/components/global/ProductNavigation.tsx +++ b/apps/portal/src/components/global/ProductNavigation.tsx @@ -36,14 +36,13 @@ export default function ProductNavigation({ className="hover:text-primary-700 flex items-center gap-2 text-base font-medium" href={titleHref}>
- {titleHref !== '/' && - (logo ?? ( - Tech Interview Handbook - ))} + {logo ?? ( + Tech Interview Handbook + )}
{title} diff --git a/apps/portal/src/components/offers/OffersNavigation.tsx b/apps/portal/src/components/offers/OffersNavigation.tsx index cf4b8e1f..11bc1856 100644 --- a/apps/portal/src/components/offers/OffersNavigation.tsx +++ b/apps/portal/src/components/offers/OffersNavigation.tsx @@ -16,7 +16,11 @@ const navigationAuthenticated: ProductNavigationItems = [ const config = { googleAnalyticsMeasurementID: 'G-34XRGLEVCF', logo: ( - Tech Offers Repo + Tech Offers Repo ), navigation, showGlobalNav: false, diff --git a/apps/portal/src/components/questions/LandingComponent.tsx b/apps/portal/src/components/questions/LandingComponent.tsx index 6972f22a..7996a036 100644 --- a/apps/portal/src/components/questions/LandingComponent.tsx +++ b/apps/portal/src/components/questions/LandingComponent.tsx @@ -70,9 +70,9 @@ export default function LandingComponent({ onLanded }: LandingComponentProps) {
Questions Bank

Tech Interview Question Bank diff --git a/apps/portal/src/components/questions/QuestionsNavigation.tsx b/apps/portal/src/components/questions/QuestionsNavigation.tsx index dfbd97b3..116b1474 100644 --- a/apps/portal/src/components/questions/QuestionsNavigation.tsx +++ b/apps/portal/src/components/questions/QuestionsNavigation.tsx @@ -11,7 +11,11 @@ const navigation: ProductNavigationItems = [ const config = { googleAnalyticsMeasurementID: 'G-0T4LYWMK8L', logo: ( - Questions Bank + Questions Bank ), navigation, showGlobalNav: false, diff --git a/apps/portal/src/components/resumes/ResumesNavigation.tsx b/apps/portal/src/components/resumes/ResumesNavigation.tsx index ba39547c..c73299c4 100644 --- a/apps/portal/src/components/resumes/ResumesNavigation.tsx +++ b/apps/portal/src/components/resumes/ResumesNavigation.tsx @@ -26,7 +26,7 @@ const config = { Tech Resume Review ), navigation, diff --git a/apps/portal/src/pages/index.tsx b/apps/portal/src/pages/index.tsx index 51f58469..a16a0ec8 100644 --- a/apps/portal/src/pages/index.tsx +++ b/apps/portal/src/pages/index.tsx @@ -1,13 +1,75 @@ +import { Button } from '@tih/ui'; + +import Container from '~/components/shared/Container'; + +const features = [ + { + description: + 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, iste dolor cupiditate blanditiis ratione.', + href: '/resumes', + img: '/logos/resumes-logo.svg', + name: 'Resume Review', + }, + { + description: + 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, iste dolor cupiditate blanditiis ratione.', + href: '/offers', + img: '/logos/offers-logo.svg', + name: 'Tech Offers', + }, + { + description: + 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, iste dolor cupiditate blanditiis ratione.', + href: '/questions', + img: '/logos/bank-logo.png', + name: 'Question Bank', + }, +]; + export default function HomePage() { return ( -
-
-
-

- Tech Interview Handbook Portal +
+ +
+

+ Tech Interview Handbook + Portal

+

+ Suite of products to help you get better at technical interviews. +

-
-

+
+

Products.

+
+ {features.map((feature) => ( +
+
+
+ {feature.name} +
+

+ {feature.name} +

+
+
+ {feature.description} +
+
+ ))} +
+
+ +

); } diff --git a/apps/portal/src/pages/offers/features.tsx b/apps/portal/src/pages/offers/features.tsx index cfe04a35..6457070e 100644 --- a/apps/portal/src/pages/offers/features.tsx +++ b/apps/portal/src/pages/offers/features.tsx @@ -90,7 +90,7 @@ export default function LandingPage() { Tech Offers Repo

Choosing offers