diff --git a/src/components/JobCard.astro b/src/components/JobCard.astro index cd4135134..3fedcc1b9 100644 --- a/src/components/JobCard.astro +++ b/src/components/JobCard.astro @@ -1,5 +1,6 @@ --- import { getEntry } from "astro:content"; +import Markdown from "@ui/Markdown.astro"; const { job:jobId, sponsor:sponsorId } = Astro.props; const job = await getEntry("jobs", jobId); @@ -14,25 +15,22 @@ if (!sponsor) { } // TODO: add tags -const { title, location, type, level, salary, description, responsibilities, requirements, benefits, apply_link, draft } = job.data; +const { title, location, type, level, salary, description, responsibilities, min_requirements, requirements, preffered, benefits, apply_link, draft } = job.data; ---
+

+ {sponsor.data.name} +

{title}

- - {sponsor.data.name} - - - { location &&

{([level, type, location].filter(Boolean)).join(" • ")}

- }

{salary}

-

{description}

+ { responsibilities &&

Responsibilities

@@ -41,6 +39,12 @@ const { title, location, type, level, salary, description, responsibilities, req } + { min_requirements && +

Minimum requirements

+
    + {min_requirements.map((item:string) =>
  • {item}
  • )} +
+ } { requirements &&

Requirements

    @@ -48,6 +52,13 @@ const { title, location, type, level, salary, description, responsibilities, req
} + { preffered && +

Preferred job requirements

+
    + {preffered.map((item:string) =>
  • {item}
  • )} +
+ } + { benefits &&

Benefits