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

This commit is contained in:
Ai Ling
2022-11-05 21:41:14 +08:00
committed by GitHub
parent 8e15d49ad0
commit 9815d125ff
8 changed files with 28 additions and 17 deletions

View File

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

View File

@@ -2,14 +2,14 @@ import type { StaticImageData } from 'next/image';
import Image from 'next/image';
import type { ReactNode } from 'react';
import { HOME_URL } from '../constants';
type LeftTextCardProps = Readonly<{
buttonLabel: string;
description: string;
icon: ReactNode;
imageAlt: string;
imageSrc: StaticImageData;
title: string;
url: string;
}>;
export default function LeftTextCard({
@@ -18,6 +18,8 @@ export default function LeftTextCard({
imageAlt,
imageSrc,
title,
buttonLabel,
url,
}: LeftTextCardProps) {
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">
@@ -36,8 +38,8 @@ export default function LeftTextCard({
<div className="mt-6">
<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"
href={HOME_URL}>
Get started
href={url}>
{buttonLabel}
</a>
</div>
</div>

View File

@@ -2,14 +2,14 @@ import type { StaticImageData } from 'next/image';
import Image from 'next/image';
import type { ReactNode } from 'react';
import { HOME_URL } from '../constants';
type RightTextCarddProps = Readonly<{
buttonLabel: string;
description: string;
icon: ReactNode;
imageAlt: string;
imageSrc: StaticImageData;
title: string;
url: string;
}>;
export default function RightTextCard({
@@ -18,6 +18,8 @@ export default function RightTextCard({
imageAlt,
imageSrc,
title,
url,
buttonLabel,
}: RightTextCarddProps) {
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">
@@ -36,8 +38,8 @@ export default function RightTextCard({
<div className="mt-6">
<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"
href={HOME_URL}>
Get started
href={url}>
{buttonLabel}
</a>
</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

View File

@@ -275,7 +275,7 @@ export default function OffersTable({
{!offers ||
(offers.length === 0 && (
<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>
@@ -290,4 +290,4 @@ export default function OffersTable({
/>
</div>
);
}
}