Skip to content

Commit

Permalink
feat: <utrecht-logo> web component
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Aug 8, 2021
1 parent 11f7ce6 commit 1dde7fa
Show file tree
Hide file tree
Showing 9 changed files with 154 additions and 12 deletions.
2 changes: 1 addition & 1 deletion components/logo/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Logo
# Logo Gemeente Utrecht

## References

Expand Down
16 changes: 16 additions & 0 deletions components/logo/bem.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.utrecht-logo {
max-width: var(--utrecht-logo-max-width);
max-height: var(--utrecht-logo-max-height);
}

.utrecht-logo__decoration-1 {
fill: var(--utrecht-logo-decoration-1-color, #fff);
}

.utrecht-logo__decoration-2 {
fill: var(--utrecht-logo-decoration-2-color, #c00);
}

.utrecht-logo__decoration-3 {
fill: var(--utrecht-logo-decoration-3-color, #ffb70b);
}
18 changes: 18 additions & 0 deletions components/logo/block.style-dictionary.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"utrecht": {
"logo": {
"max-height": {
"css": {
"syntax": "<length>",
"inherits": true
}
},
"max-width": {
"css": {
"syntax": "<length>",
"inherits": true
}
}
}
}
}
30 changes: 30 additions & 0 deletions components/logo/element.style-dictionary.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"utrecht": {
"logo": {
"decoration-1": {
"color": {
"css": {
"syntax": "<color>",
"inherits": true
}
}
},
"decoration-2": {
"color": {
"css": {
"syntax": "<color>",
"inherits": true
}
}
},
"decoration-3": {
"color": {
"css": {
"syntax": "<color>",
"inherits": true
}
}
}
}
}
}
34 changes: 34 additions & 0 deletions components/logo/stencil.stories.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!--
@license EUPL-1.2
Copyright (c) 2021 Robbert Broersma
-->

import { Meta, Story, Canvas } from "@storybook/addon-docs";

<!-- Import Docs -->

import README from "./README.md";

export const Template = () => `<utrecht-logo></utrecht-logo>`;

<Meta
title="Web Component/Logo Gemeente Utrecht"
argTypes={{}}
parameters={{
docs: {
transformSource: (_src, { args }) => Template(args),
},
status: {
type: "WORK IN PROGRESS",
},
notes: {
UX: README,
},
}}
/>

# Logo Gemeente Utrecht

<Canvas>
<Story name="Logo">{Template.bind({})}</Story>
</Canvas>
44 changes: 44 additions & 0 deletions components/logo/stencil.tsx

Large diffs are not rendered by default.

12 changes: 1 addition & 11 deletions components/logo/stories.mdx

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions packages/web-component-library-angular/src/index.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
UtrechtIconLinkedin,
UtrechtIconTwitter,
UtrechtIconWhatsapp,
UtrechtLogo,
UtrechtPageFooter,
UtrechtPagination,
UtrechtParagraph,
Expand Down Expand Up @@ -50,6 +51,7 @@ const components = [
UtrechtIconLinkedin,
UtrechtIconTwitter,
UtrechtIconWhatsapp,
UtrechtLogo,
UtrechtPageFooter,
UtrechtPagination,
UtrechtParagraph,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"utrecht": {
"logo": {
"max-height": { "value": "58.97px" },
"max-width": { "value": "110.57px" }
}
}
}

0 comments on commit 1dde7fa

Please sign in to comment.