generated from nl-design-system/example
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
203 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Page Footer |
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,32 @@ | ||
/** | ||
* @license EUPL-1.2 | ||
* Copyright (c) 2021 Gemeente Utrecht | ||
* Copyright (c) 2021 Robbert Broersma | ||
*/ | ||
|
||
.utrecht-page-footer { | ||
font-family: var(--utrecht-document-font-family); | ||
font-size: var(--utrecht-document-font-size); | ||
background-color: var(--utrecht-page-footer-background-color); | ||
background-image: var(--utrecht-page-footer-background-image); | ||
color: var(--utrecht-page-footer-color); | ||
padding-block-start: var(--utrecht-page-footer-padding-block-start); | ||
padding-inline-end: var(--utrecht-page-footer-padding-inline-end); | ||
padding-block-end: var(--utrecht-page-footer-padding-block-end); | ||
padding-inline-start: var(--utrecht-page-footer-padding-inline-start); | ||
|
||
--utrecht-document-color: currentColor; | ||
--utrecht-heading-color: currentColor; | ||
--utrecht-link-color: currentColor; | ||
--utrecht-link-focus-color: currentColor; | ||
--utrecht-link-hover-color: currentColor; | ||
--utrecht-link-active-color: currentColor; | ||
--utrecht-link-visited-color: currentColor; | ||
} | ||
|
||
.utrecht-page-footer__address--reset-address { | ||
/* reset <address> */ | ||
font-style: inherit; | ||
margin-block-start: 0; | ||
margin-block-end: 0; | ||
} |
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,71 @@ | ||
<!-- | ||
@license EUPL-1.2 | ||
Copyright (c) 2021 Robbert Broersma | ||
--> | ||
|
||
import { Description, Meta, Story, Canvas, ArgsTable } from "@storybook/addon-docs/blocks"; | ||
|
||
import "./bem.css"; | ||
|
||
import README from "./README.md"; | ||
|
||
export const Template = ({ innerHTML }) => `<footer class="utrecht-page-footer"> | ||
${innerHTML}</header>`; | ||
|
||
<Meta | ||
title="Components/Page Footer" | ||
argTypes={{ | ||
innerHTML: { | ||
description: "HTML content", | ||
control: "text", | ||
defaultValue: "", | ||
}, | ||
}} | ||
parameters={{ | ||
docs: { | ||
transformSource: (_src, { args }) => Template(args), | ||
}, | ||
status: "WORK IN PROGRESS", | ||
}} | ||
/> | ||
|
||
<Description>{README}</Description> | ||
|
||
<Canvas> | ||
<Story | ||
name="Page Footer" | ||
args={{ | ||
innerHTML: `<address class="utrecht-page-footer__address utrecht-page-footer__address--reset-address"> | ||
<h2 class="utrecht-heading-2 utrecht-heading-2--reset-h2">Gemeente Utrecht</h2> | ||
<section> | ||
<h3 class="utrecht-heading-3 utrecht-heading-3--distanced">Telefoon</h3> | ||
<p class="utrecht-paragraph utrecht-paragraph--distanced"> | ||
<a href="tel:+31302860000" class="utrecht-link utrecht-link--telephone">14 030</a> | ||
</p> | ||
</section> | ||
<section> | ||
<h3 class="utrecht-heading-3 utrecht-heading-3--distanced">Adres</h3> | ||
<p class="utrecht-paragraph utrecht-paragraph--distanced"> | ||
<strong>Stadskantoor</strong><br> | ||
Stadsplateau 1<br> | ||
3521AZ | ||
</p> | ||
</section> | ||
</address> | ||
<div class="utrecht-page-footer__navigation"> | ||
<ul class="utrecht-link-list utrecht-link-list--chevron"> | ||
<li class="utrecht-link-list__listitem"> | ||
<a href="/contact/" class="utrecht-link">Meer contactinformatie</a> | ||
</li> | ||
<li class="utrecht-link-list__listitem"> | ||
<a href="/over-deze-website" class="utrecht-link">Over deze website</a> | ||
</li> | ||
</ul> | ||
</div>`, | ||
}} | ||
> | ||
{Template.bind({})} | ||
</Story> | ||
</Canvas> | ||
|
||
<ArgsTable story="Page Footer" /> |
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,13 @@ | ||
{ | ||
"utrecht": { | ||
"page-footer": { | ||
"color": {}, | ||
"background-color": {}, | ||
"background-image": {}, | ||
"padding-inline-end": {}, | ||
"padding-inline-start": {}, | ||
"padding-block-end": {}, | ||
"padding-block-start": {} | ||
} | ||
} | ||
} |
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,43 @@ | ||
<!-- | ||
@license EUPL-1.2 | ||
Copyright (c) 2021 Robbert Broersma | ||
--> | ||
|
||
import { ArgsTable, Meta, Story, Canvas } from "@storybook/addon-docs"; | ||
|
||
<!-- Import Docs --> | ||
|
||
import README from "./README.md"; | ||
|
||
export const Template = ({ content }) => `<utrecht-page-footer>${content}</utrecht-page-footer>`; | ||
|
||
<Meta | ||
title="Web Component/Page Footer" | ||
argTypes={{}} | ||
parameters={{ | ||
docs: { | ||
transformSource: (_src, { args }) => Template(args), | ||
}, | ||
status: { | ||
type: "WORK IN PROGRESS", | ||
}, | ||
notes: { | ||
UX: README, | ||
}, | ||
}} | ||
/> | ||
|
||
# Separator | ||
|
||
<Canvas> | ||
<Story | ||
name="Page Footer" | ||
args={{ | ||
content: "", | ||
}} | ||
> | ||
{Template.bind({})} | ||
</Story> | ||
</Canvas> | ||
|
||
<ArgsTable story="Page Footer" /> |
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,21 @@ | ||
import { Component, h } from "@stencil/core"; | ||
|
||
/** | ||
* @license EUPL-1.2 | ||
* Copyright (c) 2021 Gemeente Utrecht | ||
*/ | ||
|
||
@Component({ | ||
tag: "utrecht-page-footer", | ||
styleUrl: "bem.css", | ||
shadow: true, | ||
}) | ||
export class PageFooter { | ||
render() { | ||
return ( | ||
<footer class="utrecht-page-footer"> | ||
<slot></slot> | ||
</footer> | ||
); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
proprietary/design-tokens/src/component/utrecht/page-footer/_custom.scss
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,6 @@ | ||
.utrecht-page-footer { | ||
--utrecht-heading-2-font-size: 1em; | ||
--utrecht-heading-2-text-transform: uppercase; | ||
--utrecht-heading-3-font-size: 1.125em; | ||
--utrecht-heading-3-font-weight: normal; | ||
} |
15 changes: 15 additions & 0 deletions
15
proprietary/design-tokens/src/component/utrecht/page-footer/block.style-dictionary.json
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,15 @@ | ||
{ | ||
"utrecht": { | ||
"page-footer": { | ||
"color": { "value": "{utrecht.color.white.value}" }, | ||
"background-color": { "value": "{utrecht.color.red.40.value}" }, | ||
"background-image": { | ||
"value": "linear-gradient(45deg, {utrecht.color.red.40.value}, {utrecht.color.red.40.value} 50%, hsl(5 54% 59%) 50%);" | ||
}, | ||
"padding-inline-end": { "value": "1em" }, | ||
"padding-inline-start": { "value": "1em" }, | ||
"padding-block-end": { "value": "1.8em" }, | ||
"padding-block-start": { "value": "1.8em" } | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
@import "./component/utrecht/page-footer/custom"; | ||
@import "./responsive"; |