From 0d53dab7a835f40cd974c91abb6c17bd593372df Mon Sep 17 00:00:00 2001 From: Zhang Ziqing <69516975+ziqing26@users.noreply.github.com> Date: Mon, 24 Oct 2022 23:18:23 +0800 Subject: [PATCH] [offers][fix] fix landing page description (#424) * [offers][fix] fix landing page width * [offers][fix] fix landing page typo * [offers][chore] fix British English in landing page * [offers][chore] fix description in landing page --- .../src/components/offers/OffersNavigation.ts | 2 +- .../offers/landing/LeftTextCard.tsx | 9 ++-- .../offers/landing/RightTextCard.tsx | 9 ++-- .../offers/profile/ProfileComments.tsx | 31 +------------ apps/portal/src/components/offers/types.ts | 2 + .../src/pages/offers/{home.tsx => browse.tsx} | 0 apps/portal/src/pages/offers/index.tsx | 44 +++++++++---------- .../pages/offers/profile/[offerProfileId].tsx | 5 ++- 8 files changed, 39 insertions(+), 63 deletions(-) rename apps/portal/src/pages/offers/{home.tsx => browse.tsx} (100%) diff --git a/apps/portal/src/components/offers/OffersNavigation.ts b/apps/portal/src/components/offers/OffersNavigation.ts index 9b340cec..0c43c644 100644 --- a/apps/portal/src/components/offers/OffersNavigation.ts +++ b/apps/portal/src/components/offers/OffersNavigation.ts @@ -1,7 +1,7 @@ import type { ProductNavigationItems } from '~/components/global/ProductNavigation'; const navigation: ProductNavigationItems = [ - { href: '/offers/home', name: 'Home' }, + { href: '/offers/browse', name: 'Browse' }, { href: '/offers/submit', name: 'Analyse your offers' }, ]; diff --git a/apps/portal/src/components/offers/landing/LeftTextCard.tsx b/apps/portal/src/components/offers/landing/LeftTextCard.tsx index 27886018..329a58f5 100644 --- a/apps/portal/src/components/offers/landing/LeftTextCard.tsx +++ b/apps/portal/src/components/offers/landing/LeftTextCard.tsx @@ -1,5 +1,7 @@ import type { ReactNode } from 'react'; +import { HOME_URL } from '~/components/offers/types'; + type LeftTextCardProps = Readonly<{ description: string; icon: ReactNode; @@ -8,7 +10,6 @@ type LeftTextCardProps = Readonly<{ title: string; }>; -const baseUrl = '/offers/home'; export default function LeftTextCard({ description, icon, @@ -21,7 +22,7 @@ export default function LeftTextCard({
- + {icon}
@@ -32,8 +33,8 @@ export default function LeftTextCard({

{description}

+ className="to-primary-500 inline-flex rounded-md border border-transparent bg-gradient-to-r from-purple-600 bg-origin-border px-4 py-2 text-base font-medium text-white shadow-sm hover:from-purple-700 hover:to-indigo-700" + href={HOME_URL}> Get started
diff --git a/apps/portal/src/components/offers/landing/RightTextCard.tsx b/apps/portal/src/components/offers/landing/RightTextCard.tsx index 551c246a..9028ad16 100644 --- a/apps/portal/src/components/offers/landing/RightTextCard.tsx +++ b/apps/portal/src/components/offers/landing/RightTextCard.tsx @@ -1,5 +1,7 @@ import type { ReactNode } from 'react'; +import { HOME_URL } from '~/components/offers/types'; + type RightTextCarddProps = Readonly<{ description: string; icon: ReactNode; @@ -8,7 +10,6 @@ type RightTextCarddProps = Readonly<{ title: string; }>; -const baseUrl = '/offers/home'; export default function RightTextCard({ description, icon, @@ -21,7 +22,7 @@ export default function RightTextCard({
- + {icon}
@@ -32,8 +33,8 @@ export default function RightTextCard({

{description}

+ className="to-primary-500 inline-flex rounded-md border border-transparent bg-gradient-to-r from-purple-600 bg-origin-border px-4 py-2 text-base font-medium text-white shadow-sm hover:from-purple-700 hover:to-indigo-700" + href={HOME_URL}> Get started
diff --git a/apps/portal/src/components/offers/profile/ProfileComments.tsx b/apps/portal/src/components/offers/profile/ProfileComments.tsx index ebed5bfd..b26f78ae 100644 --- a/apps/portal/src/components/offers/profile/ProfileComments.tsx +++ b/apps/portal/src/components/offers/profile/ProfileComments.tsx @@ -175,36 +175,7 @@ export default function ProfileComments({ ) : (
Please log in before commenting on this profile.
)} -
-