Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

➕ added denhaag theme #344

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
1 change: 1 addition & 0 deletions packages/next-templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"devDependencies": {
"@fontsource/fira-sans": "5.0.12",
"@fontsource/source-serif-pro": "5.0.8",
"@gemeente-denhaag/design-tokens-components": "0.2.3-alpha.357",
"@next/eslint-plugin-next": "13.4.19",
"@nl-design-system-unstable/voorbeeld-design-tokens": "1.0.0-alpha.98",
"@svgr/webpack": "8.1.0",
Expand Down
24 changes: 11 additions & 13 deletions packages/next-templates/src/components/ExampleFooter/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,7 @@
column-count: 1;
}

.example--footer-heading5 {
display: flex;
justify-content: column;
}

.utrecht-link-list-focus__item {
--utrecht-paragraph-color: white;
}

.utrecht-link-list__item {
--utrecht-paragraph-color: white;

.denhaag-theme .utrecht-link-list__item {
line-height: 2em;
}

Expand All @@ -45,6 +34,15 @@
margin-inline-start: 2.5em;
}

.voorbeeld-footer-block {
.denhaag-theme .voorbeeld-footer-block {
max-width: 50ch;
--utrecht-heading-2-color: var(--denhaag-color-ocher-3);
}

.denhaag-theme .example--footer-logo {
color: var(--denhaag-color-white);
}

.denhaag-theme .utrecht-page-footer__content {
--utrecht-focus-outline-color: var(--denhaag-color-ocher-3);
}
10 changes: 10 additions & 0 deletions packages/next-templates/src/components/ExampleHeader/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
max-inline-size: var(--example-page-header-content-max-inline-size);
}

.denhaag-theme .example-page-header__content {
max-inline-size: calc(670px * 1.5);
}

.example--logo {
text-align: center;
}
Expand All @@ -40,6 +44,11 @@
margin-inline-end: var(--voorbeeld-space-inline-dog);
text-decoration-skip-ink: none;
}

.denhaag-theme .example--header-links {
margin-inline-end: 32px;
}

.example--header-user-icon {
margin-inline-end: var(--voorbeeld-space-inline-ant);
}
Expand All @@ -55,6 +64,7 @@
cursor: pointer;
display: none;
}

.example--header-burger-menu-button:focus-visible {
border-radius: 3px;
box-shadow: 0 0 0 2px var(--voorbeeld-color-white);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,33 @@
.example-nav-bar__item--end {
justify-self: end;
}

.denhaag-theme {
.utrecht-breadcrumb-nav {
background: var(--denhaag-color-warmgrey-1);
}

.example-nav-bar {
display: flex;
justify-content: center;
}

.example-nav-bar__content {
max-inline-size: calc(670px * 1.5);
}

.example-nav-bar__link-list {
--utrecht-link-color: var(--denhaag-color-blue-3);
--utrecht-link-hover-color: var(--denhaag-color-blue-4);
--utrecht-link-focus-color: var(--denhaag-color-blue-4);
}

.example-nav-bar__link {
max-inline-size: 30ch;
margin-block: 16px;
margin-inline: 24px;
--utrecht-link-text-decoration: none;
--utrecht-link-hover-text-decoration: underline;
--utrecht-link-focus-text-decoration: underline;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
margin-block-start: 0;
}

.voorbeeld-navigation-list__item {
.denhaag-theme .voorbeeld-navigation-list__item {
line-height: 2em;
}

.voorbeeld-footer-link {
--utrecht-link-text-decoration-color: var(--voorbeeld-color-white);
--utrecht-link-hover-color: var(--voorbeeld-color-white);
}
7 changes: 7 additions & 0 deletions packages/next-templates/src/components/PageHeader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@
padding-block: var(--voorbeeld-space-block-mouse);
max-inline-size: var(--example-page-header-content-max-inline-size);
}

.denhaag-theme {
.example-page-header__content {
max-inline-size: calc(670px * 1.5);
padding-block: 24px;
}
}
5 changes: 2 additions & 3 deletions packages/next-templates/src/components/VoorbeeldTheme.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { PropsWithChildren } from 'react';
import '@nl-design-system-unstable/voorbeeld-design-tokens/dist/index.css';
import '@gemeente-denhaag/design-tokens-components/dist/theme/index.css';
import '@/app/font';
import './VoorbeeldTheme.scss';
import '../app/globals.css';

export const VoorbeeldTheme = ({ children }: PropsWithChildren<{}>) => (
<div className="voorbeeld-theme">{children}</div>
);
export const VoorbeeldTheme = ({ children }: PropsWithChildren<{}>) => <div className="denhaag-theme">{children}</div>;
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ export const ExampleFooterWmebv = ({ ...props }: ExampleFooterWmebvProps) => (
<Logo className="example--footer-logo" />
</div>
<div className="voorbeeld-footer-block utrecht-link-list__item">
<UtrechtHeading2>Contact</UtrechtHeading2>
<UtrechtHeading2 className="example-footer__heading-3">Contact</UtrechtHeading2>
<Address>
Bel <UtrechtLink href="tel:453453">453 453</UtrechtLink> (maandag tot en met vrijdag van 09.00 tot 17.00
uur) of stuur een e-mail naar{' '}
<UtrechtLink href="mailto:[email protected]">
<UtrechtUrlData>[email protected]</UtrechtUrlData>
</UtrechtLink>
{'.'}
</Address>
</div>
<div className="voorbeeld-footer-block">
Expand Down
7 changes: 7 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading