# Job Detail Page

> A React job posting page template: the role, benefits, interview steps, team, a sticky apply card, an application form and similar roles.

- Type: React template (Templates)
- Access: Pro (the source needs a Wingo UI Pro plan, see https://wingo-ui.com/pricing)
- Version: 1.1.1
- Install: `npx wingo-ui@latest add job-detail-page`
- Docs: https://wingo-ui.com/templates/job-detail-page

## Interaction

The breadcrumb leads back to Careers (one back link on phones). Copy link copies the page address and confirms with a check; the LinkedIn, X and email buttons open a share. On desktop the apply card sticks beside the description, and Apply now glides to the form and puts the caret in the first field; below 1024px a bottom bar with the title, the salary and Apply now rides above the safe area while the form is out of view. The form checks name, email, an optional LinkedIn URL, the resume (drop or pick a PDF or Word file) and the consent box, focusing the first problem; Submit application spins while onApply runs, then turns into a confirmation with a link back to all roles. Similar roles at the end link to their own pages. The hero rises in once on mount; reduced motion keeps it still.

## Installation

```bash
npx wingo-ui@latest add job-detail-page
```

Pro item: run `npx wingo-ui@latest login` once with a Pro account. The CLI adds the files, their dependencies and a version record for updates.

With shadcn: `npx shadcn@latest add @wingo-ui/job-detail-page` (needs the @wingo-ui registry with your API key in components.json)

Files:

- `components/templates/job-detail-page.tsx`
- `components/templates/job-detail-page-data.ts`

npm dependencies: `npm i motion lucide-react`

Wingo UI dependencies (installed automatically):

- [Marketing Section](https://wingo-ui.com/components/marketing-section) ([Markdown](https://wingo-ui.com/components/marketing-section.md))
- [Marketing Header](https://wingo-ui.com/components/marketing-header) ([Markdown](https://wingo-ui.com/components/marketing-header.md))
- [Marketing Footer](https://wingo-ui.com/components/marketing-footer) ([Markdown](https://wingo-ui.com/components/marketing-footer.md))
- [Steps Section](https://wingo-ui.com/components/steps-section) ([Markdown](https://wingo-ui.com/components/steps-section.md))
- [Avatar](https://wingo-ui.com/components/avatar) ([Markdown](https://wingo-ui.com/components/avatar.md))
- [Badge](https://wingo-ui.com/components/badge) ([Markdown](https://wingo-ui.com/components/badge.md))
- [Breadcrumb](https://wingo-ui.com/components/breadcrumb) ([Markdown](https://wingo-ui.com/components/breadcrumb.md))
- [Button](https://wingo-ui.com/components/button) ([Markdown](https://wingo-ui.com/components/button.md))
- [Checkbox](https://wingo-ui.com/components/checkbox) ([Markdown](https://wingo-ui.com/components/checkbox.md))
- [Copy Button](https://wingo-ui.com/components/copy-button) ([Markdown](https://wingo-ui.com/components/copy-button.md))
- [File Upload](https://wingo-ui.com/components/file-upload) ([Markdown](https://wingo-ui.com/components/file-upload.md))
- [Input](https://wingo-ui.com/components/input) ([Markdown](https://wingo-ui.com/components/input.md))
- [Sticky CTA Bar](https://wingo-ui.com/components/sticky-cta-bar) ([Markdown](https://wingo-ui.com/components/sticky-cta-bar.md))
- [Textarea](https://wingo-ui.com/components/textarea) ([Markdown](https://wingo-ui.com/components/textarea.md))
- [Navigation](https://wingo-ui.com/components/navigation) ([Markdown](https://wingo-ui.com/components/navigation.md))
- [Motion presets](https://wingo-ui.com/components/motion) ([Markdown](https://wingo-ui.com/components/motion.md))
- [Tones](https://wingo-ui.com/components/tones) ([Markdown](https://wingo-ui.com/components/tones.md))
- [UIProvider](https://wingo-ui.com/components/ui-config) ([Markdown](https://wingo-ui.com/components/ui-config.md))

## Usage

```tsx
// app/(marketing)/careers/[slug]/page.tsx
"use client"

import Link from "next/link"
import { JobDetailPage } from "@/components/templates/job-detail-page"

export default function JobRoute() {
  return (
    <JobDetailPage
      linkComponent={Link}
      onApply={async (application) => {
        const body = new FormData()
        body.set("role", application.role.slug)
        body.set("name", application.name)
        body.set("email", application.email)
        body.set("linkedin", application.linkedin)
        body.set("note", application.note)
        if (application.resume) body.set("resume", application.resume)
        const response = await fetch("/api/applications", { method: "POST", body })
        if (!response.ok) throw new Error("Could not apply")
      }}
    />
  )
}
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `design?` | `"classic" \| "minimal" \| "editorial"` | `"classic"` | The whole page's look. classic: raised apply card and form, benefit tiles, team chips and similar roles as cards on a tinted band; minimal: a transparent header, a smaller title, a hairline apply card, benefits as ruled rows, outline step numbers, a flat form, similar roles as rows and a simple footer; editorial: a centered header, a large display title over a heavy rule, numbered sections under heavy rules, a ruled apply card, ruled rows and a centered footer. headerProps and footerProps still win. |
| `role?` | `JobDetail` | `"JOB_DETAIL_ROLE"` | { slug, title, department, location, workplace, type, salaryMin?, salaryMax?, salaryCurrency?, postedAt?, isNew?, summary, about, responsibilities, requirements, niceToHave?, hiringManager? }; the sample is a Senior Frontend Engineer, Remote US. |
| `similarRoles?` | `JobRole[]` | `"JOB_DETAIL_SIMILAR"` | The roles under Similar roles, each linking to roleHref(role). |
| `benefits?` | `JobBenefit[]` | `"JOB_DETAIL_BENEFITS"` | { icon?, title, description } of the benefits grid. |
| `steps?` | `StepsSectionItem[]` | `"JOB_DETAIL_STEPS"` | The interview steps ({ icon?, title, description, meta? }), drawn by StepsSection. |
| `team?` | `JobTeamMember[]` | `"JOB_DETAIL_TEAM"` | { name, role, avatar? } of Who you'll work with; the hiring manager reads as such. |
| `labels?` | `Partial<JobDetailPageLabels>` | `"DEFAULT_JOB_DETAIL_PAGE_LABELS"` | Every visible string, including the form's messages. |
| `careersHref?` | `string` | `"/careers"` | Where Careers in the breadcrumb, All open roles and the success link go. |
| `roleHref?` | `(role: JobRole) => string` | `` "(role) => `/careers/${role.slug}`" `` | Where each similar role links to. |
| `url?` | `string` | `""` | The address Copy link and the share buttons use; default the page's own. |
| `onApply?` | `(application: JobApplication) => (void \| Promise<unknown>)` |  | Sends { role, name, email, linkedin, resume?, note, consent }; a promise keeps the button loading, a rejection shows labels.failed. Without it the page waits 900 ms and confirms. |
| `processLayout?` | `"vertical" \| "cards"` | `"vertical"` | Classic design: the interview steps as a timeline rail or as numbered cards. |
| `benefitsLayout?` | `"tiles" \| "list"` | `"tiles"` | Classic design: benefits as soft tiles or as ruled rows. |
| `similarLayout?` | `"cards" \| "rows"` | `"cards"` | Classic design: similar roles as raised cards or as ruled rows. |
| `background?` | `"plain" \| "soft" \| "glow" \| "aurora" \| "grid" \| "dots"` | `"glow"` | The main background: plain is the bare page color; the others tint the page and add a glow, an aurora, a grid or dots over the first screen. A design picks its own unless you set one (classic glow, minimal plain, editorial soft). |
| `backgroundColor?` | `string` | `"oklch(0.62 0.14 275)"` | The tint and glow color of the main background. |
| `bandBackground?` | `"muted" \| "tinted" \| "gradient" \| "dots"` | `"tinted"` | The secondary background of the bands. Cards, fields and tiles inside a band are lifted one step above it, so they never share its color. |
| `bandColor?` | `string` | `"oklch(0.62 0.14 275)"` | The tint of tinted and gradient bands; defaults to backgroundColor. |
| `tone?` | `"neutral" \| "brand" \| "success" \| "warning" \| "danger" \| "info"` | `"neutral"` | The step numbers, the New badge and the success panel (success while neutral). |
| `ctaTone?` | `"neutral" \| "brand" \| "success" \| "warning" \| "danger" \| "info"` | `"neutral"` | Apply now, the bottom bar, the consent box and Submit application; brand is the marketing orange. |
| `showShare?` | `boolean` | `true` | Copy link and the share buttons under the title. |
| `showBenefits?` | `boolean` | `true` | The benefits grid. |
| `showProcess?` | `boolean` | `true` | The interview steps. |
| `showTeam?` | `boolean` | `true` | Who you'll work with. |
| `showSimilar?` | `boolean` | `true` | The similar roles at the end. |
| `applyBar?` | `boolean` | `true` | The bottom Apply now bar below 1024px, shown while the form is out of view. |
| `stepsProps?` | `Partial<StepsSectionProps>` |  | Passed to the interview StepsSection (marker, layout, radius...). |
| `header?` | `boolean` | `true` | The marketing header; off inside a site layout. |
| `footer?` | `boolean` | `true` | The marketing footer. |
| `headerProps?` | `Partial<MarketingHeaderProps>` |  | Passed to MarketingHeader. |
| `footerProps?` | `Partial<MarketingFooterProps>` |  | Passed to MarketingFooter. |
| `animateIn?` | `boolean` | `true` | The hero rises in once on mount; off in thumbnails and under reduced motion. |
| `locale?` | `string` | `"en-US"` | Intl locale for the salary range and the posted date. |
| `linkComponent?` | `(props: LinkComponentProps) => ReactNode` | `"<a>"` | The router link for the header, breadcrumb, footer and role links (next/link in an app). |
| `className?` | `string` |  | Classes for the root. |
| `classNames?` | `Partial<Record<JobDetailPageSlot, string>>` |  | Classes for header, hero, breadcrumb, title, meta, share, body, content, aside, benefits, process, team, apply, form, similar, bar and footer. |

## Parts

### JOB_DETAIL_PAGE_DESIGNS (constant)

The design names, classic first: ["classic", "minimal", "editorial"].

### JobDetailPageDesign (type)

"classic" | "minimal" | "editorial".

### formatJobSalary (function)

formatJobSalary(role, locale?): the yearly range in its currency, from the minimum to the maximum.

### JOB_DETAIL_PAGE_SAMPLE (constant)

All the sample content in one object: role, similarRoles, benefits, steps and team.

### JOB_DETAIL_ROLE (constant)

The sample role: Senior Frontend Engineer, Remote US, $160,000 to $190,000.

### JOB_DETAIL_SIMILAR (constant)

Three sample similar roles.

### JOB_DETAIL_BENEFITS (constant)

Eight sample benefits with lucide icons.

### JOB_DETAIL_STEPS (constant)

The four interview steps: Intro call, Pairing session, Meet the team, Offer.

### JOB_DETAIL_TEAM (constant)

Six sample teammates, the hiring manager first.

### DEFAULT_JOB_DETAIL_PAGE_LABELS (constant)

The English strings.

### JobDetailPageLabels (type)

Every string of the page; successDescription(name, role) is a function so the sentence can be reordered.

### JobDetailPageSlot (type)

The keys of classNames: header, hero, breadcrumb, title, meta, share, body, content, aside, benefits, process, team, apply, form, similar, bar, footer.

### JobDetailProcessLayout (type)

"vertical" | "cards".

### JobDetailBenefitsLayout (type)

The values of benefitsLayout: "tiles" | "list".

### JobDetailSimilarLayout (type)

The values of similarLayout: "cards" | "rows".

### JobDetailPageProps (type)

Props of JobDetailPage.

### JobDetail (type)

The role with its long description.

### JobRole (type)

A role as a list row: slug, title, team, location, type, salary and summary.

### JobWorkplace (type)

"Remote" | "Hybrid" | "On-site".

### JobEmployment (type)

"Full-time" | "Part-time" | "Contract".

### JobBenefit (type)

{ icon?, title, description }: one benefit.

### JobTeamMember (type)

{ name, role, avatar? }: one teammate.

### JobApplication (type)

{ role, name, email, linkedin, resume?, note, consent }: what onApply receives.

## Examples

- **Minimal design**: design="minimal": a transparent header, a hairline apply card, ruled benefits, outline step numbers, a flat form and similar roles as rows.
- **Editorial design**: design="editorial": a large display title over a heavy rule, numbered sections, a ruled apply card and a centered footer.
- **Brand actions**: tone and ctaTone brand: orange Apply now, step numbers, consent box and Submit application.
- **Inside a careers site**: No header or footer, interview steps as cards and similar roles as rows.

## See also

- [Careers Page](https://wingo-ui.com/templates/careers-page) ([Markdown](https://wingo-ui.com/templates/careers-page.md))
- [Steps Section](https://wingo-ui.com/components/steps-section) ([Markdown](https://wingo-ui.com/components/steps-section.md))
- [Sticky CTA Bar](https://wingo-ui.com/components/sticky-cta-bar) ([Markdown](https://wingo-ui.com/components/sticky-cta-bar.md))
- [File Upload](https://wingo-ui.com/components/file-upload) ([Markdown](https://wingo-ui.com/components/file-upload.md))
- [Copy Button](https://wingo-ui.com/components/copy-button) ([Markdown](https://wingo-ui.com/components/copy-button.md))

---

Canonical: https://wingo-ui.com/templates/job-detail-page
More components: https://wingo-ui.com/components · Index for agents: https://wingo-ui.com/llms.txt
