Skip to content

Commit 9c7f5e9

Browse files
Update markup
1 parent 8303c6a commit 9c7f5e9

3 files changed

Lines changed: 332 additions & 49 deletions

File tree

app/page.tsx

Lines changed: 53 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import {
1414
LegislationList,
1515
LegislationLink,
1616
} from "@arbetsmarknad/components/LegislationList";
17+
import { Footer } from "@arbetsmarknad/components/Footer";
18+
import { Main } from "@arbetsmarknad/components/Main";
1719
import { Page } from "@arbetsmarknad/components/Page";
1820
import { TopLevelHeading } from "@arbetsmarknad/components/TopLevelHeading";
1921

@@ -24,22 +26,27 @@ export default function Home() {
2426
href="https://lagstiftning.github.io"
2527
text="lagstiftning.github.io"
2628
/>
27-
<Breadcrumb className="py-4 w-full flex justify-center">
28-
<Container>
29-
<BreadcrumbList>
30-
<BreadcrumbItem>
31-
<BreadcrumbLink href="http://arbetsmarknad.github.io/">Arbetsmarknad</BreadcrumbLink>
32-
</BreadcrumbItem>
33-
<BreadcrumbSeparator />
34-
<BreadcrumbItem>
35-
<BreadcrumbLink href="http://lagstiftning.github.io/">Lagstiftning</BreadcrumbLink>
36-
</BreadcrumbItem>
37-
</BreadcrumbList>
38-
</Container>
29+
<Breadcrumb>
30+
<BreadcrumbList>
31+
<BreadcrumbItem>
32+
<BreadcrumbLink href="http://arbetsmarknad.github.io/">
33+
Arbetsmarknad
34+
</BreadcrumbLink>
35+
</BreadcrumbItem>
36+
<BreadcrumbSeparator />
37+
<BreadcrumbItem>
38+
<BreadcrumbLink href="http://lagstiftning.github.io/">
39+
Lagstiftning
40+
</BreadcrumbLink>
41+
</BreadcrumbItem>
42+
</BreadcrumbList>
3943
</Breadcrumb>
40-
<main className="flex flex-col items-center w-full py-4">
44+
<Main>
4145
<Container className="flex flex-col items-start gap-y-12 prose">
42-
<TopLevelHeading text="Swedish Legislation" subtext="Translated Into English" />
46+
<TopLevelHeading
47+
text="Swedish Legislation"
48+
subtext="Translated Into English"
49+
/>
4350
<p>{`Here are Sweden's four most important labour laws translated into English so that you can learn about your rights, share links to specific sections with your colleagues, and maybe even pick up a bit of Swedish by having the original text alongside for context.`}</p>
4451
<LegislationList>
4552
<LegislationItem>
@@ -87,8 +94,8 @@ export default function Home() {
8794
</LegislationLink>
8895
<LegislationDescription>
8996
The Co-Determination Act is the basis for the Swedish model of
90-
industrial democracy. It creates legal protections and obligations for
91-
unions and employers.
97+
industrial democracy. It creates legal protections and
98+
obligations for unions and employers.
9299
</LegislationDescription>
93100
</LegislationItem>
94101

@@ -116,30 +123,37 @@ export default function Home() {
116123
</LegislationDescription>
117124
</LegislationItem>
118125

119-
<LegislationItem>
120-
<LegislationIcon>
121-
<svg
122-
className="w-full fill-white text-xl text-white"
123-
aria-hidden="true"
124-
focusable="false"
125-
role="img"
126-
xmlns="http://www.w3.org/2000/svg"
127-
viewBox="0 0 512 512"
128-
>
129-
<path d="M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"></path>
130-
</svg>
131-
</LegislationIcon>
132-
<LegislationLink href="https://lagstiftning.github.io/arbetstidslagen/2022:450/">
133-
The Working Hours Act
134-
</LegislationLink>
135-
<LegislationDescription>
136-
The Swedish Working Hours Act emphasizes flexibility, allowing employees
137-
to have a say in their work schedules and promoting work-life balance.
138-
</LegislationDescription>
139-
</LegislationItem>
140-
</LegislationList>
126+
<LegislationItem>
127+
<LegislationIcon>
128+
<svg
129+
className="w-full fill-white text-xl text-white"
130+
aria-hidden="true"
131+
focusable="false"
132+
role="img"
133+
xmlns="http://www.w3.org/2000/svg"
134+
viewBox="0 0 512 512"
135+
>
136+
<path d="M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"></path>
137+
</svg>
138+
</LegislationIcon>
139+
<LegislationLink href="https://lagstiftning.github.io/arbetstidslagen/2022:450/">
140+
The Working Hours Act
141+
</LegislationLink>
142+
<LegislationDescription>
143+
The Swedish Working Hours Act emphasizes flexibility, allowing
144+
employees to have a say in their work schedules and promoting
145+
work-life balance.
146+
</LegislationDescription>
147+
</LegislationItem>
148+
</LegislationList>
141149
</Container>
142-
</main>
150+
</Main>
151+
<Footer
152+
sourceCode={[
153+
"lagstiftning/lagstiftning.github.io",
154+
"arbetsmarknad/components",
155+
]}
156+
/>
143157
</Page>
144158
);
145159
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"react-dom": "^19.0.0"
66
},
77
"devDependencies": {
8-
"@arbetsmarknad/components": "^0.0.13",
8+
"@arbetsmarknad/components": "^0.0.24",
99
"@eslint/eslintrc": "^3",
1010
"@tailwindcss/postcss": "^4.0.0",
1111
"@types/node": "^20",

0 commit comments

Comments
 (0)