[offers][feat] Update feature page (#512)

pull/519/head
Ai Ling 2 years ago committed by GitHub
parent 8e15d49ad0
commit 9815d125ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,5 @@
export const HOME_URL = '/offers'; export const HOME_URL = '/offers';
export const OFFERS_SUBMIT_URL = '/offers/submit';
export const JobTypeLabel = { export const JobTypeLabel = {
FULLTIME: 'Full-time', FULLTIME: 'Full-time',
@ -37,4 +38,4 @@ export const profileDetailTabs = [
label: ProfileDetailTab.ANALYSIS, label: ProfileDetailTab.ANALYSIS,
value: ProfileDetailTab.ANALYSIS, value: ProfileDetailTab.ANALYSIS,
}, },
]; ];

@ -2,14 +2,14 @@ import type { StaticImageData } from 'next/image';
import Image from 'next/image'; import Image from 'next/image';
import type { ReactNode } from 'react'; import type { ReactNode } from 'react';
import { HOME_URL } from '../constants';
type LeftTextCardProps = Readonly<{ type LeftTextCardProps = Readonly<{
buttonLabel: string;
description: string; description: string;
icon: ReactNode; icon: ReactNode;
imageAlt: string; imageAlt: string;
imageSrc: StaticImageData; imageSrc: StaticImageData;
title: string; title: string;
url: string;
}>; }>;
export default function LeftTextCard({ export default function LeftTextCard({
@ -18,6 +18,8 @@ export default function LeftTextCard({
imageAlt, imageAlt,
imageSrc, imageSrc,
title, title,
buttonLabel,
url,
}: LeftTextCardProps) { }: LeftTextCardProps) {
return ( return (
<div className="items-center lg:mx-auto lg:grid lg:max-w-7xl lg:grid-flow-col-dense lg:grid-cols-2 lg:gap-24 lg:px-8"> <div className="items-center lg:mx-auto lg:grid lg:max-w-7xl lg:grid-flow-col-dense lg:grid-cols-2 lg:gap-24 lg:px-8">
@ -36,8 +38,8 @@ export default function LeftTextCard({
<div className="mt-6"> <div className="mt-6">
<a <a
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" 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}> href={url}>
Get started {buttonLabel}
</a> </a>
</div> </div>
</div> </div>

@ -2,14 +2,14 @@ import type { StaticImageData } from 'next/image';
import Image from 'next/image'; import Image from 'next/image';
import type { ReactNode } from 'react'; import type { ReactNode } from 'react';
import { HOME_URL } from '../constants';
type RightTextCarddProps = Readonly<{ type RightTextCarddProps = Readonly<{
buttonLabel: string;
description: string; description: string;
icon: ReactNode; icon: ReactNode;
imageAlt: string; imageAlt: string;
imageSrc: StaticImageData; imageSrc: StaticImageData;
title: string; title: string;
url: string;
}>; }>;
export default function RightTextCard({ export default function RightTextCard({
@ -18,6 +18,8 @@ export default function RightTextCard({
imageAlt, imageAlt,
imageSrc, imageSrc,
title, title,
url,
buttonLabel,
}: RightTextCarddProps) { }: RightTextCarddProps) {
return ( return (
<div className="items-center lg:mx-auto lg:grid lg:max-w-7xl lg:grid-flow-col-dense lg:grid-cols-2 lg:gap-24 lg:px-8"> <div className="items-center lg:mx-auto lg:grid lg:max-w-7xl lg:grid-flow-col-dense lg:grid-cols-2 lg:gap-24 lg:px-8">
@ -36,8 +38,8 @@ export default function RightTextCard({
<div className="mt-6"> <div className="mt-6">
<a <a
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" 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}> href={url}>
Get started {buttonLabel}
</a> </a>
</div> </div>
</div> </div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 358 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 994 KiB

After

Width:  |  Height:  |  Size: 366 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 923 KiB

After

Width:  |  Height:  |  Size: 277 KiB

@ -275,7 +275,7 @@ export default function OffersTable({
{!offers || {!offers ||
(offers.length === 0 && ( (offers.length === 0 && (
<div className="py-16 text-lg"> <div className="py-16 text-lg">
<div className="flex justify-center">No data yet🥺</div> <div className="flex justify-center">No data yet 🥺</div>
</div> </div>
))} ))}
</div> </div>
@ -290,4 +290,4 @@ export default function OffersTable({
/> />
</div> </div>
); );
} }

@ -8,7 +8,7 @@ import {
UsersIcon, UsersIcon,
} from '@heroicons/react/24/outline'; } from '@heroicons/react/24/outline';
import { HOME_URL } from '~/components/offers/constants'; import { HOME_URL, OFFERS_SUBMIT_URL } from '~/components/offers/constants';
import offersAnalysis from '~/components/offers/features/images/offers-analysis.png'; import offersAnalysis from '~/components/offers/features/images/offers-analysis.png';
import offersBrowse from '~/components/offers/features/images/offers-browse.png'; import offersBrowse from '~/components/offers/features/images/offers-browse.png';
import offersProfile from '~/components/offers/features/images/offers-profile.png'; import offersProfile from '~/components/offers/features/images/offers-profile.png';
@ -126,6 +126,7 @@ export default function LandingPage() {
/> />
<div className="relative"> <div className="relative">
<LeftTextCard <LeftTextCard
buttonLabel="View offers"
description="Filter relevant offers by job title, company, submission date, salary and more." description="Filter relevant offers by job title, company, submission date, salary and more."
icon={ icon={
<TableCellsIcon <TableCellsIcon
@ -133,27 +134,31 @@ export default function LandingPage() {
className="h-6 w-6 text-white" className="h-6 w-6 text-white"
/> />
} }
imageAlt="Offer table page" imageAlt="Browse page"
imageSrc={offersBrowse} imageSrc={offersBrowse}
title="Stay informed of recent offers" title="Stay informed of recent offers"
url={HOME_URL}
/> />
</div> </div>
<div className="mt-36"> <div className="mt-36">
<RightTextCard <RightTextCard
description="With our offer engine analysis, you can compare your offers with other offers on the market and make an informed decision." buttonLabel="Analyse offers"
description="With our offer engine analysis, you can benchmark your offers against other offers on the market and make an informed decision."
icon={ icon={
<ChartBarSquareIcon <ChartBarSquareIcon
aria-hidden="true" aria-hidden="true"
className="h-6 w-6 text-white" className="h-6 w-6 text-white"
/> />
} }
imageAlt="Customer profile user interface" imageAlt="Offers analysis page"
imageSrc={offersAnalysis} imageSrc={offersAnalysis}
title="Better understand your offers" title="Better understand your offers"
url={OFFERS_SUBMIT_URL}
/> />
</div> </div>
<div className="mt-36"> <div className="mt-36">
<LeftTextCard <LeftTextCard
buttonLabel="View offer profiles"
description="An offer profile includes not only offers that a person received in their application cycle, but also background information such as education and work experience. Use offer profiles to help you better contextualize offers." description="An offer profile includes not only offers that a person received in their application cycle, but also background information such as education and work experience. Use offer profiles to help you better contextualize offers."
icon={ icon={
<InformationCircleIcon <InformationCircleIcon
@ -161,9 +166,10 @@ export default function LandingPage() {
className="h-6 w-6 text-white" className="h-6 w-6 text-white"
/> />
} }
imageAlt="Offer table page" imageAlt="Offer profile page"
imageSrc={offersProfile} imageSrc={offersProfile}
title="Choosing an offer needs context" title="Choosing an offer needs context"
url={HOME_URL}
/> />
</div> </div>
</div> </div>
@ -215,7 +221,7 @@ export default function LandingPage() {
<div className="mt-6 space-y-4 sm:flex sm:space-y-0 sm:space-x-5"> <div className="mt-6 space-y-4 sm:flex sm:space-y-0 sm:space-x-5">
<a <a
className="to-primary-500 flex items-center justify-center rounded-md border border-transparent bg-gradient-to-r from-purple-600 bg-origin-border px-4 py-3 text-base font-medium text-white shadow-sm hover:from-purple-700 hover:to-indigo-700" className="to-primary-500 flex items-center justify-center rounded-md border border-transparent bg-gradient-to-r from-purple-600 bg-origin-border px-4 py-3 text-base font-medium text-white shadow-sm hover:from-purple-700 hover:to-indigo-700"
href={HOME_URL}> href={OFFERS_SUBMIT_URL}>
Get Started Get Started
</a> </a>
</div> </div>

Loading…
Cancel
Save