Skip to content

Commit

Permalink
feat: adds products to strategy page (#426)
Browse files Browse the repository at this point in the history
* feat: adds products to strategy page

* fix: å / ø

* fix: Magnus Olderø Sæther

* fix: i -> j

* drop the dash
  • Loading branch information
mikaelbr authored Nov 14, 2023
1 parent ff93a1b commit 1d23de4
Show file tree
Hide file tree
Showing 10 changed files with 173 additions and 7 deletions.
Binary file added public/Variant_Fjellmodellen.pdf
Binary file not shown.
Binary file added public/Variant_Fjellmodellen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion src/tjenesteomrader/areas/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ import style from 'src/tjenesteomrader/shared/bottomText.module.css';
import Divider from '../images/divider/divider';
import Footer from '../images/footer/footer';
import DigitalTjeneste from './DigitalTjeneste';
import Strategi from './strategi';
import Strategi, { StrategyExtras } from './strategi';
import Datadriv from './datadriv';
import Kultur from './kultur';
import {
tjenesteomradePath,
TjenesteomradeProps,
} from '../utils/tjenesteomradeTypes';
import { and } from 'src/utils/css';

const Areas = (prop: TjenesteomradeProps) => {
return (
Expand All @@ -22,6 +23,17 @@ const Areas = (prop: TjenesteomradeProps) => {
className={style.bottomText__content}
dangerouslySetInnerHTML={{ __html: prop.fileContents }}
/>

{prop.name == 'strategi' && (
<div
className={and(
style.bottomText__content,
style['bottomText__content--large'],
)}
>
<StrategyExtras />
</div>
)}
</div>
<Footer color={`#${prop.color}`} />
</div>
Expand Down
6 changes: 6 additions & 0 deletions src/tjenesteomrader/areas/strategi/download.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
112 changes: 106 additions & 6 deletions src/tjenesteomrader/areas/strategi/index.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
import { allColors, colorPairs } from '@variant/profile/lib/colors';
import Head from 'next/head';
import style from 'src/tjenesteomrader/shared/index.module.css';
import BlobText from '../../components/blobText/blobText';
import EmojiList from '../../components/emojiList/emojiList';
import TwoRows from '../../components/twoRows/twoRows';
import HeaderBackground from '../../images/headerBackground/headerBackground';
import style from 'src/tjenesteomrader/shared/index.module.css';
import { allColors, colorPairs } from '@variant/profile/lib/colors';
import Head from 'next/head';

// Arrows
import { useState } from 'react';
import down1 from 'src/tjenesteomrader/images/arrows/down1.svg';
import down2 from 'src/tjenesteomrader/images/arrows/down2.svg';
import down3 from 'src/tjenesteomrader/images/arrows/down3.svg';
import down4 from 'src/tjenesteomrader/images/arrows/down4.svg';
import right1 from 'src/tjenesteomrader/images/arrows/right1.svg';
import right2 from 'src/tjenesteomrader/images/arrows/right2.svg';
import left1 from 'src/tjenesteomrader/images/arrows/left1.svg';
import left2 from 'src/tjenesteomrader/images/arrows/left2.svg';
import { useState } from 'react';
import right1 from 'src/tjenesteomrader/images/arrows/right1.svg';
import right2 from 'src/tjenesteomrader/images/arrows/right2.svg';
import download from './download.svg';

const Strategi = () => {
const blobColor = allColors.secondary1__shade2;
Expand Down Expand Up @@ -133,4 +134,103 @@ const Strategi = () => {
);
};

import { ButtonLink } from '@components/button';
import { PropsWithChildren } from 'react';
import ThreeColumn from 'src/tjenesteomrader/components/three-column';

export type StrategyExtrasProps = PropsWithChildren<{}>;
export function StrategyExtras({}: StrategyExtrasProps) {
return (
<ThreeColumn>
<div>
<h3 className="fancy">Strateginettverk</h3>

<p>
Variant arrangerer meetups med faglig program og mingling med andre
strateger. Meld deg på nettverket ved å sende mail til
strategiansvarlig{' '}
<a href="mailto:[email protected]">
Magnus Olderø Sæther ([email protected])
</a>
</p>

<p>
<strong>
Neste meetup: 12. januar kl. 18. Hvor: Varianthuset i Trondheim
</strong>
</p>

<div className={style.buttonRow}>
<ButtonLink href="mailto:[email protected]">Meld deg på</ButtonLink>
</div>
</div>

<div>
<h3 className="fancy">Strategisprint</h3>

<p>
Mange virksomheter sliter med jobbe helhetlig og strategisk med
verdiskaping og kulturbygging. Variant har dette som ekspertisefelt,
og tilbyr Strategi-sprint som en lavterskel starthjelp. Ta kontakt med
oss om dette høres interessant ut for deg og din virksomhet.
</p>
<div className={style.buttonRow}>
<ButtonLink href="mailto:[email protected]">Send forespørsel</ButtonLink>
</div>
</div>

<div>
<h3 className="fancy">Designressurser</h3>

<p>
I strategisk arbeid er det få verktøy som kobler strategiske
målsettinger med kulturbygging, aktiviteter og tiltak. Variant har
utviklet modellen{' '}
<strong>© Strategic Mountain Map / Fjellmodellen</strong> for å løse
dette behovet. Denne modellen er orientert rundt at arbeidet skal være
samarbeidende og at resultatet (strategiproduktet) skal være visuelt
og enkelt. Modellen er et levende rammeverk og egner seg godt i
kontinuerlig strategiarbeid.
</p>

<p>
Ta kontakt for å få råd og opplæring i hvordan denne modellen kan
brukes effektivt. Last den ned her for å ta en titt:
</p>

<div className={style.buttonRow}>
<ButtonLink
href="/Variant_Fjellmodellen.pdf"
download
colorPair={colorPairs.secondary2}
title="Last ned PDF-versjon av fjellkart"
>
PDF
<img
className={style.downloadIcon}
src={download}
alt=""
role="none"
/>
</ButtonLink>
<ButtonLink
href="/Variant_Fjellmodellen.png"
download
colorPair={colorPairs.secondary2}
title="Last ned PNG-versjon av fjellkart"
>
PNG
<img
className={style.downloadIcon}
src={download}
alt=""
role="none"
/>
</ButtonLink>
</div>
</div>
</ThreeColumn>
);
}

export default Strategi;
8 changes: 8 additions & 0 deletions src/tjenesteomrader/components/three-column/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import style from './three-column.module.css';

import { PropsWithChildren } from 'react';

export type ThreeColumnProps = PropsWithChildren<{}>;
export default function ThreeColumn({ children }: ThreeColumnProps) {
return <div className={style.container}>{children}</div>;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
}

@media screen and (max-width: 768px) {
.container {
grid-template-columns: repeat(1, 1fr);
}
}
5 changes: 5 additions & 0 deletions src/tjenesteomrader/shared/bottomText.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
gap: 3rem;
}

.bottomText__content--large {
padding-inline: 6rem;
margin: 7rem 0;
}

.bottomText__content :global(.bigText) p {
font-size: 1.875rem;
}
Expand Down
12 changes: 12 additions & 0 deletions src/tjenesteomrader/shared/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@
bottom: 2rem;
}

.buttonRow {
display: flex;
gap: 1rem;
margin: 1rem 0;
}

.downloadIcon {
display: inline-block;
height: 1rem;
margin-left: 0.5rem;
}

.threeRows {
display: flex;
gap: 1rem;
Expand Down
12 changes: 12 additions & 0 deletions src/tjenesteomrader/tjenesteomrader.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,15 @@
font-size: 3rem;
}
}

:global(.three-column-strategy) {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
}

@media screen and (max-width: 768px) {
:global(.three-column-strategy) {
grid-template-columns: repeat(2, 1fr);
}
}

1 comment on commit 1d23de4

@vercel
Copy link

@vercel vercel bot commented on 1d23de4 Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

variant-no – ./

variant-no-git-main-variant1.vercel.app
variant-no-variant1.vercel.app
www.variant.no

Please sign in to comment.