-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add open application listing to jobs that opens mail client
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
import { ButtonNextLink } from 'src/components/button'; | ||
import { and } from 'src/utils/css'; | ||
import style from './index.module.css'; | ||
|
||
const emailSubject = "Åpen søknad - Oslo/Trondheim/Bergen"; | ||
const emailBody = | ||
` | ||
Så hyggelig at du ønsker å jobbe hos oss! | ||
Tips: Husk å oppdatere emnefeltet med hvilken by du ønsker å skrive til, så vet vi hvem som skal svare deg. | ||
`; | ||
const mailtoLink = `mailto:soknad@variant.no?subject=${encodeURIComponent(emailSubject)}&body=${encodeURIComponent(emailBody)}`; | ||
|
||
export default function OpenApplicationListingItem() { | ||
return ( | ||
<section className={style.job__listing__container}> | ||
<div> | ||
<h3 className={and(style.job__title, 'fancy')}>Åpen Søknad</h3> | ||
<span>Finner du ikke en stilling som passer deg?</span> | ||
</div> | ||
<ButtonNextLink href={mailtoLink} aria-label="Send en åpen søknad"> | ||
Send en åpen søknad | ||
</ButtonNextLink> | ||
</section> | ||
); | ||
} |