-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lenke til artikkel om rekruttering (#196)
* Lenke til artikkel om rekruttering * Deploy til dev * Oppdater lenke til artikkel mht miljø * Oppdater thumbnail/preview bilde til artikkel Co-authored-by: Christian Klem <[email protected]> --------- Co-authored-by: Christian Klem <[email protected]>
- Loading branch information
1 parent
44ef966
commit 2b11c81
Showing
5 changed files
with
68 additions
and
1 deletion.
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,24 @@ | ||
@use "../styles/screensize"; | ||
|
||
.lenkeflis { | ||
display: flex; | ||
flex-direction: column; | ||
padding: var(--a-spacing-6); | ||
background-color: var(--a-green-100); | ||
} | ||
|
||
.lenkeflisInnhold{ | ||
display: flex; | ||
flex-direction: row; | ||
} | ||
|
||
.lenkeflisBilde{ | ||
border-radius: 4px; | ||
max-height: 80px; | ||
max-width: 100px; | ||
margin-right: 2rem; | ||
} | ||
.lenkeflisInnholdTittelOgTekst{ | ||
align-content: center; | ||
flex-direction: column; | ||
} |
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,41 @@ | ||
import styles from "./Artikkel.module.scss"; | ||
import {BodyLong, Heading, Link} from "@navikt/ds-react"; | ||
import Image from "next/image"; | ||
import artikkelBilde from "./artikkelBilde.png" | ||
import {ExternalLinkIcon} from '@navikt/aksel-icons'; | ||
|
||
|
||
import React from "react"; | ||
|
||
export function Artikkel() { | ||
|
||
const erIDev = [ | ||
"localhost", | ||
"forebygge-fravar.intern.dev.nav.no", | ||
].includes(window.location.hostname); | ||
const lenkeTilArtikkel = erIDev? | ||
"https://arbeidsgiver.intern.dev.nav.no/min-side-arbeidsgiver/artikkel/saferoad_ansetter_ved_hjelp_av_nav" : | ||
"https://arbeidsgiver.nav.no/min-side-arbeidsgiver/artikkel/saferoad_ansetter_ved_hjelp_av_nav" | ||
|
||
return ( | ||
<div className={styles.lenkeflis}> | ||
<div className={styles.lenkeflisInnhold}> | ||
<Image | ||
className={styles.lenkeflisBilde} | ||
src={artikkelBilde} | ||
width={50} | ||
height={50} | ||
alt="illustrasjon" | ||
layout="responsive" | ||
/> | ||
<div className={styles.lenkeflisInnholdTittelOgTekst}> | ||
<Heading level="3" size="medium">Ønsker du hjelp til å rekruttere?</Heading> | ||
<BodyLong> | ||
<Link href={lenkeTilArtikkel}>Les om hvordan NAV bidrar til at Saferoad kan ansette over 100 nye folk | ||
hvert år. <ExternalLinkIcon title="Lenke til artikkel i ny side" fontSize="1.5rem"/> </Link> | ||
</BodyLong> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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