yintai-company-home/src/components/layout/JobPage/index.tsx

38 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import styles from "./index.module.css";
type Data = {
title: string;
jobType: string;
businessArea: string;
businessPlate: string;
recruitNumber: string;
jobLocation: string;
content: string;
}
export default function JobPage({ data }: { data: Data }) {
return (
<div className={styles.jobPage}>
<div className={styles.jobPageHeaderLine}>
<div className={styles.jobPageHeaderLineBack} onClick={() => window.history.back()}>
<img src="/images/icon-arrowleft.png" alt="arrowleft" style={{ width: "20px", height: "20px" }} />
<span></span>
</div>
</div>
<div className={styles.jobPageHeader}>
<div className={styles.jobPageHeaderTitle}>{data.title}</div>
<div className={styles.jobPageHeaderTimeLine}>
<span>{data.jobType}</span>
<span>{data.businessArea}</span>
<span>{data.businessPlate}</span>
<span>{data.recruitNumber}</span>
<span>{data.jobLocation}</span>
</div>
</div>
<div className={styles.jobPageContent}>
<div className={styles.jobPageContentText} dangerouslySetInnerHTML={{ __html: data.content }}></div>
</div>
</div>
)
}