Skip to content

Commit

Permalink
Merge branch 'main' into fagleder-jvm-i-oslo
Browse files Browse the repository at this point in the history
  • Loading branch information
Even Stene committed May 13, 2024
2 parents 56dd834 + 26c6ff3 commit f0d389d
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 25 deletions.
Binary file modified public/og-header-min.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/advanced-calculator/Pension/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default function Pension({
</fieldset>

<a href="https://www.finansportalen.no/pensjon/hva-er-innskuddspensjon/">
Hva er inskuddspensjon?
Hva er innskuddspensjon?
</a>
</div>
</div>
Expand Down
8 changes: 6 additions & 2 deletions src/employees/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import style from './employees.module.css';
import { EmployeeItem } from './types';
import { formatTelephone } from '../utils/phone';

const getSoMeMetadata = (officeName?: Office) => {
const SomeMetadata = ({ officeName }: { officeName?: Office }) => {
let description;
switch (officeName) {
case 'oslo':
Expand Down Expand Up @@ -82,7 +82,7 @@ export default function Employees({

return (
<Layout fullWidth title="Alle varianter – Variant">
{getSoMeMetadata(officeName)}
<SomeMetadata officeName={officeName} />

<div className={style.employeesContainer}>
<header className={style.employees__header}>
Expand Down Expand Up @@ -137,6 +137,10 @@ const blurDataUrl =
export const EmployeeTile = ({
employee: { name, telephone, email, imageUrl, officeName },
}: PropsWithChildren<{ employee: EmployeeItem }>) => {
if (!imageUrl) {
return null;
}

return (
<div
className={style.employee}
Expand Down
2 changes: 1 addition & 1 deletion src/employees/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ export type EmployeeItem = {
name: string;
email: string;
telephone: string | null;
imageUrl: string;
imageUrl: string | null;
officeName: string;
};
22 changes: 12 additions & 10 deletions src/index/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,16 +297,18 @@ const Home = ({ randomEmployee, randomCases, feeds }: HomeProps) => {
<section className={style.employees}>
{randomEmployee ? (
<div className={style.employees__random}>
<div className={style.employees__random__image}>
<Image
width={300}
height={300}
alt={`Bilde av ${randomEmployee.name}`}
src={randomEmployee.imageUrl}
loading="lazy"
decoding="async"
/>
</div>
{randomEmployee.imageUrl && (
<div className={style.employees__random__image}>
<Image
width={300}
height={300}
alt={`Bilde av ${randomEmployee.name}`}
src={randomEmployee.imageUrl}
loading="lazy"
decoding="async"
/>
</div>
)}

<p>Dette er {randomEmployee.name}. En av oss som jobber her.</p>

Expand Down
9 changes: 5 additions & 4 deletions src/jobs/listing/listing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ const Listing: NextPage<InferGetStaticPropsType<typeof getStaticProps>> =
export const ContactTile = ({
contact: { name, email, telephone, imageUrl },
}: PropsWithChildren<{ contact: EmployeeItem }>) => {
if (!imageUrl) {
return null;
}

return (
<div className={style.contact}>
<div className={style.contact__img}>
Expand All @@ -148,10 +152,7 @@ export const ContactTile = ({
📬 {email}
</a>
{telephone && (
<a
href={`tel:${telephone}`}
className={style.contact__type}
>
<a href={`tel:${telephone}`} className={style.contact__type}>
📞 {formatTelephone(telephone)}
</a>
)}
Expand Down
6 changes: 3 additions & 3 deletions src/tjenesteomrader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import Entrance from './components/entrance/entrance';
import { colorPairs } from '@variant/profile/lib/colors';

import style from './tjenesteomrader.module.css';
import { Heading2 } from '@components/heading';
import { Heading1 } from '@components/heading';

const Tjenesteomrader = () => {
return (
<section className={style.tjenesteomrader}>
<Heading2 id="tjenesteomrader" className={style.title}>
<Heading1 id="tjenesteomrader" styleLevel="2">
Våre tjenesteområder
</Heading2>
</Heading1>
<p className={style.tjenesteomrader__ingress}>
I Variant ønsker vi å bidra til størst mulig forandring til det bedre
for kundene våre, for folk og for samfunnet. Derfor har vi rigget oss
Expand Down
4 changes: 0 additions & 4 deletions src/tjenesteomrader/tjenesteomrader.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
font-size: 1.2rem;
}

.title {
text-align: center;
}

.wrapper {
padding-block: 5rem;
}
Expand Down

0 comments on commit f0d389d

Please sign in to comment.