next-seo#JobPostingJsonLd JavaScript Examples
The following examples show how to use
next-seo#JobPostingJsonLd.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.js From remotebond-remote-jobs with Creative Commons Zero v1.0 Universal | 4 votes |
JobsPage = ({ job, slug }) => {
const salarayAmount = randomInt(40000, 80000)
const router = useRouter()
if (router.isFallback) {
return (
<div className="max-w-screen-xl mx-auto py-10 px-4 sm:px-6">
<h1>Loading...</h1>
</div>
)
}
let newDate = new Date(job.pub_date)
newDate.setMonth(newDate.getMonth() + 1)
const jobExpireDate = new Date(newDate).toISOString()
const saniztizedAndStripped = sanitizeHtml(strip_tags(job.description))
const isEmail = validateEmail(job.apply_url)
return (
<>
<NextSeo
title={`Remote ${job.title} job at ${job.company_name}`}
description={`${saniztizedAndStripped.substr(0, 140)}...`}
canonical={`https://remotebond.com/remote-jobs/${slug}`}
openGraph={{
url: `https://remotebond.com/remote-jobs/${slug}`,
title: `Remote ${job.title} job at ${job.company_name}`,
description: `${saniztizedAndStripped.substr(0, 140)}...`,
}}
/>
<BreadcrumbJsonLd
itemListElements={[
{
position: 1,
name: "remotebond.com",
item: "https://remotebond.com",
},
{
position: 2,
name: "Remote Jobs",
item: "https://remotebond.com/remote-jobs",
},
{
position: 3,
name: `Remote ${job.title} job at ${job.company_name}`,
},
]}
/>
<JobPostingJsonLd
datePosted={job.pub_date}
description={strip_tags(job.description)}
hiringOrganization={{
name: job.company_name,
sameAs: null,
}}
jobLocation={{
streetAddress: "Anywhere",
addressLocality: "Anywhere",
addressRegion: "Anywhere",
postalCode: "Anywhere",
addressCountry: "Anywhere",
}}
title={job.title}
baseSalary={{
currency: "USD",
value: salarayAmount,
unitText: "YEAR",
}}
employmentType="FULL_TIME"
jobLocationType="TELECOMMUTE"
validThrough={jobExpireDate}
/>
<JobHeader
title={job.title}
company={job.company_name}
applyUrl={job.apply_url}
location={job.location}
isEmail={isEmail}
/>
<Breadcrumbs jobTitle={job.title} category={job.primary_category} />
<div className="max-w-screen-xl mx-auto py-10 px-4 sm:px-6">
<div className="w-full md:w-3/4">
<div
className="prose prose-sm sm:prose lg:prose-lg xl:prose-xl jobDescription__container py-6"
dangerouslySetInnerHTML={{ __html: job.description }}
></div>
<div className="flex justify-center mb-8">
<span className="inline-flex rounded-md shadow-sm">
{!isEmail ? (
<a
href={`${job.apply_url}?utm_source=remotebond.com&ref=remotebond.com`}
target="_blank"
className="inline-flex items-center px-6 py-3 border border-transparent text-base leading-6 font-bold rounded-md text-white bg-rb-green-6 hover:bg-rb-green-5 hover:text-white focus:outline-none focus:border-rb-green-7 focus:shadow-outline-blue active:bg-rb-green-7 transition ease-in-out duration-150"
>
Apply for this job
</a>
) : (
<a
href={`mailto:${job.apply_url}?subject=Application for ${job.title} via Remotebond`}
target="_blank"
className="inline-flex items-center px-6 py-3 border border-transparent text-base leading-6 font-bold rounded-md text-white bg-rb-green-6 hover:bg-rb-green-5 hover:text-white focus:outline-none focus:border-rb-green-7 focus:shadow-outline-blue active:bg-rb-green-7 transition ease-in-out duration-150"
>
Apply for this job
</a>
)}
</span>
</div>
{/* Notification */}
<div className="rounded-md bg-blue-50 p-4">
<div className="flex">
<div className="flex-shrink-0">
<svg
className="h-5 w-5 text-blue-400"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
fillRule="evenodd"
d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"
clipRule="evenodd"
/>
</svg>
</div>
<div className="ml-3">
<p className="text-xs leading-5 text-blue-700">
Keep in mind you never have to pay to apply. Never pay for
equipment or training. The basic rule is; NEVER pay for
anything when applying. When talking to the job poster, make
sure you're talking to someone from the actual company. By
clicking the apply button you will leave Remotebond to the
external application website.
</p>
<br />
<p className="text-xs leading-5 text-blue-700">
Remotebond accepts no liability or responsibility as a
consequence of any reliance upon information on there
(external sites) or here.
</p>
</div>
</div>
</div>
</div>
</div>
</>
)
}