Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
371 changes: 221 additions & 150 deletions blocks/header/header.css

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions blocks/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,16 @@ export default async function decorate(block) {
nav.id = 'nav';
while (fragment.firstElementChild) nav.append(fragment.firstElementChild);

const classes = ['brand', 'sections', 'tools'];
// Region classes, in fragment section order:
// 1 brand, 2 sections (primary menu), 3 tools (utility), 4 announcement
const classes = ['brand', 'sections', 'tools', 'announcement'];
classes.forEach((c, i) => {
const section = nav.children[i];
if (section) section.classList.add(`nav-${c}`);
});

const navBrand = nav.querySelector('.nav-brand');
const brandLink = navBrand.querySelector('.button');
const brandLink = navBrand?.querySelector('.button');
if (brandLink) {
brandLink.className = '';
brandLink.closest('.button-container').className = '';
Expand Down
3 changes: 3 additions & 0 deletions head.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
<script nonce="aem" src="/scripts/aem.js" type="module"></script>
<script nonce="aem" src="/scripts/scripts.js" type="module"></script>
<link rel="stylesheet" href="/styles/styles.css"/>
<!-- Adobe Fonts (quasimoda) for the nav -->
<link rel="stylesheet" href="https://use.typekit.net/mvi1kov.css"/>

1 change: 1 addition & 0 deletions icons/chat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/globe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/heart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/user.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
--body-font-family: roboto, roboto-fallback, sans-serif;
--heading-font-family: roboto-condensed, roboto-condensed-fallback, sans-serif;

/* nav font — matches hollandamerica.com; upgrades to quasimoda once the
Adobe Fonts kit <link> is added to head.html (see placeholder there) */
--nav-font: quasimoda, var(--body-font-family);

/* body sizes */
--body-font-size-m: 22px;
--body-font-size-s: 19px;
Expand Down