-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from helsingborg-stad/staging
Staging
- Loading branch information
Showing
44 changed files
with
633 additions
and
87 deletions.
There are no files selected for viewing
Binary file not shown.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,17 @@ | ||
import { FC } from 'react'; | ||
import { RadioButtonChecked, RadioButtonUnchecked } from '@mui/icons-material'; | ||
import * as Styled from './styled'; | ||
|
||
type RadioButtonProps = { | ||
label: string; | ||
checked: boolean; | ||
onClick: () => void; | ||
}; | ||
|
||
export const RadioButton: FC<RadioButtonProps> = ({ checked, onClick, label }) => ( | ||
<Styled.Container onClick={onClick}> | ||
{checked ? <RadioButtonChecked /> : <RadioButtonUnchecked />} | ||
<Styled.Input type="radio" /> | ||
<Styled.Label checked={checked}>{label}</Styled.Label> | ||
</Styled.Container> | ||
); |
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 @@ | ||
export * from './RadioButton'; |
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,30 @@ | ||
import styled, { css } from 'styled-components'; | ||
|
||
export const Container = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
gap: 8px; | ||
align-items: center; | ||
cursor: pointer; | ||
`; | ||
|
||
type LabelProps = { | ||
checked: boolean; | ||
}; | ||
|
||
export const Label = styled.p<LabelProps>` | ||
color: var(--color-gray-10); | ||
font-size: var(--font-size-body-xs); | ||
line-height: var(--line-height-xxxs); | ||
${({ checked }) => checked | ||
&& css` | ||
color: var(--color-black); | ||
`} | ||
`; | ||
|
||
export const Input = styled.input` | ||
position: absolute; | ||
opacity: 0; | ||
cursor: pointer; | ||
`; |
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
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,73 @@ | ||
import { SideBar } from 'components/SideBar'; | ||
import { Link } from 'components/Link'; | ||
import * as Styled from './styled'; | ||
|
||
export const About = () => ( | ||
<Styled.ContentContainer> | ||
<SideBar /> | ||
<Styled.InfoContainer> | ||
<Styled.Header>Om Sam</Styled.Header> | ||
<Styled.Text> | ||
Sam samlar in transportdata för att kunna dela | ||
datan mellan olika aktörer i transportkedjan. | ||
Genom tillgänglig data kan beställaren få bättre förståelse för hur | ||
transporterna inom olika områden går och kan använda datan för | ||
att bli smartare beställare. Leverantörer och transportörer kan använda datan för att | ||
hitta samarbeten och samlastning. Målet med Sam är smartare | ||
logistik kring transporter och minskade | ||
körningar för klimatets skull. | ||
<br /> | ||
<br /> | ||
<Link label="Läs mer om Sam" href="https://helsingborg.se/trafik-och-stadsplanering/planering-och-utveckling/trafikplanering/godstransporter/sam-ett-steg-pa-vagen-for-hallbara-transporter/" /> | ||
|
||
</Styled.Text> | ||
<h2 style={{ marginBottom: '10px', marginTop: '60px' }}>Så här fungerar Sam</h2> | ||
<Styled.Text> | ||
Tjänsten Sam består av en mobilapp som används av förare, | ||
och den här webbsidan där alla spårade leveranser samlas. | ||
Just nu är tjänsten så pass utvecklad att vi kan beskriva transporter | ||
som går till och från olika verksamheter i staden, via geofencing*. | ||
Det betyder att endast leveranser till geofencade adresser registreras - andra stopp | ||
på vägen kommer inte registreras på webbsidan. | ||
|
||
</Styled.Text> | ||
<br /> | ||
<Styled.Text> | ||
<i> | ||
*Geofence är en internationell fackterm. | ||
Den kan översättas med ”geostaket” | ||
och är ett geografiskt avgränsat eller definierat område som bestämts | ||
och som ”inhägnats” med en programvara | ||
</i> | ||
</Styled.Text> | ||
<h2 style={{ marginBottom: '10px', marginTop: '60px' }}>Leverera transportdata till Sam</h2> | ||
<Styled.Text style={{ marginBottom: '8px' }}> | ||
Det finns två sätt att leverera data till Sam. | ||
</Styled.Text> | ||
<ol style={{ paddingLeft: '20px' }}> | ||
<li> | ||
<Styled.Text> | ||
Använd appen Sam | ||
<br /> | ||
Föraren laddar ner appen till sin telefon. | ||
Föraren startar spårningen i appen vid start av en körning. | ||
Varje gång transporten befinner sig inom ett geofencat område blir det en | ||
datapunkt som sparas och blir synlig på webbsidan. | ||
</Styled.Text> | ||
</li> | ||
<li> | ||
<Styled.Text> | ||
Leverera en rapport | ||
<br /> | ||
Istället för att använda appen Sam kan | ||
leverantör eller transportör hämta motsvarande data från sitt | ||
logistiksystem/TMS (Transport Management System) och skicka | ||
rapport till kontaktperson enligt överenskommet intervall | ||
{' '} | ||
<Link href="/Template.xlsx" download="mall.xlsx" label="[Mall för rapport]" /> | ||
</Styled.Text> | ||
</li> | ||
</ol> | ||
</Styled.InfoContainer> | ||
</Styled.ContentContainer> | ||
); |
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,3 @@ | ||
import { About } from './About'; | ||
|
||
export default About; |
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,29 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const ContentContainer = styled.div` | ||
padding: 36px 32px; | ||
padding-bottom: 64px; | ||
`; | ||
|
||
export const InfoContainer = styled.div` | ||
width: 600px; | ||
margin: 24px auto 32px; | ||
@media (max-width: 768px) { | ||
width: 450px; | ||
} | ||
`; | ||
|
||
export const Header = styled.h1` | ||
font-size: var(--font-size-heading-lg); | ||
font-weight: var(--font-weight-800); | ||
line-height: var(--line-height-xxxl); | ||
margin-bottom: var(--spacing-md); | ||
font-family: var(--font-family); | ||
`; | ||
|
||
export const Text = styled.p` | ||
font-size: 16px; | ||
line-height: 150%; | ||
letter-spacing: 0.25%; | ||
font-weight: 500; | ||
`; |
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
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
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
Oops, something went wrong.