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({
{description}
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({{description}
diff --git a/apps/portal/src/components/offers/types.ts b/apps/portal/src/components/offers/types.ts index 53b2c36e..b790bd40 100644 --- a/apps/portal/src/components/offers/types.ts +++ b/apps/portal/src/components/offers/types.ts @@ -2,6 +2,8 @@ import type { JobType } from '@prisma/client'; import type { MonthYear } from '~/components/shared/MonthYearPicker'; +export const HOME_URL = '/offers/browse'; + /* * Offer Profile */ diff --git a/apps/portal/src/pages/offers/home.tsx b/apps/portal/src/pages/offers/browse.tsx similarity index 100% rename from apps/portal/src/pages/offers/home.tsx rename to apps/portal/src/pages/offers/browse.tsx diff --git a/apps/portal/src/pages/offers/index.tsx b/apps/portal/src/pages/offers/index.tsx index 49ab59db..a82b5808 100644 --- a/apps/portal/src/pages/offers/index.tsx +++ b/apps/portal/src/pages/offers/index.tsx @@ -10,7 +10,7 @@ import { import LeftTextCard from '~/components/offers/landing/LeftTextCard'; import RightTextCard from '~/components/offers/landing/RightTextCard'; -const baseUrl = '/offers/home'; +import { HOME_URL } from '~/components/offers/types'; const features = [ { @@ -21,15 +21,15 @@ const features = [ }, { description: - ' Only people with the edit link can edit that profile. Share profiles to others using public link without giving edit permission.', + 'Only users with the edit link can edit that profile. Share profiles to others using a public link without giving edit permission.', icon: ShareIcon, name: 'Edit Link v.s. Public Link', }, { description: - "Offer profiles will not be automatically saved under creator's account in database unless explicit permission is given.", + "Offer profiles will not be automatically saved under the creator's account in our database unless explicit permission is given.", icon: BookmarkSquareIcon, - name: 'No Auto-Save to User Account', + name: 'Save with permission', }, ]; @@ -85,23 +85,23 @@ export default function LandingPage() {+
Analyse your offers using profiles from fellow software engineers.