Compare commits
19 Commits
455f9c355f
..
v1.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
| 9267fece60 | |||
| b9c5316dd4 | |||
| 2af76dc992 | |||
| 1c7f7d9642 | |||
| a6c7b063ca | |||
| 85edb8ae02 | |||
| 25ec79a4ae | |||
| dc93f8c6cc | |||
| 7f7357a835 | |||
| 9e1233ce7a | |||
| d663e33c87 | |||
| 4811d687a0 | |||
| ac65e19f57 | |||
| 6e58ef2df5 | |||
| bc7972b997 | |||
| 13def608ed | |||
| 43b3defae6 | |||
| 6ed8664089 | |||
| 017ade069d |
@@ -59,13 +59,6 @@
|
||||
<span class="visually-hidden">Home page</span>
|
||||
</a>
|
||||
|
||||
<nav class="desktop-nav" aria-label="Primary navigation">
|
||||
<ul>
|
||||
<li><a href="/" class="menu-button">Work</a></li>
|
||||
<li><a href="/about.html" class="menu-button">About</a></li>
|
||||
<li><a href="/privacy.html" class="menu-button">Blog</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="menu-right">
|
||||
@@ -81,45 +74,10 @@
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<button
|
||||
class="menu-toggle"
|
||||
id="menuToggle"
|
||||
type="button"
|
||||
aria-expanded="false"
|
||||
aria-controls="mobileMenu"
|
||||
aria-haspopup="true"
|
||||
aria-label="Open menu"
|
||||
>
|
||||
Menu
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="menu-overlay" id="menuOverlay" hidden></div>
|
||||
|
||||
<aside
|
||||
class="mobile-menu"
|
||||
id="mobileMenu"
|
||||
aria-label="Mobile navigation"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<div class="mobile-menu__header">
|
||||
<strong>Menu</strong>
|
||||
<button class="menu-close" id="menuClose" type="button" aria-label="Close menu">
|
||||
Close
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<nav aria-label="Mobile navigation">
|
||||
<ul>
|
||||
<li><a href="/" class="button-primary" aria-current="page">Work</a></li>
|
||||
<li><a href="/legal-notice.html" class="button-primary">About</a></li>
|
||||
<li><a href="/privacy.html" class="button-primary">Blog</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</aside>
|
||||
|
||||
<main>
|
||||
<section>
|
||||
<h1>4💀4</h1>
|
||||
|
||||
-155
@@ -1,155 +0,0 @@
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||
<title>About – Lars Winter</title>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="stylesheet" href="css/a11y.css" id="a11y-css" disabled>
|
||||
<meta name="description" content="Creator of visual identities and digital interfaces">
|
||||
|
||||
<meta property="og:title" content="Lars Winter">
|
||||
<meta property="og:description" content="Portfolio of Lars Winter">
|
||||
<meta property="og:url" content="https://larswinter.me">
|
||||
<meta property="og:image" content="https://larswinter.me/img/lw-og_image.png">
|
||||
<meta property="og:image:alt" content="">
|
||||
<meta name="fediverse:creator" content="@larswinter@mastodon.social">
|
||||
|
||||
<link rel="icon" href="img/favicon.ico" sizes="any">
|
||||
<!-- <link rel="icon" href="img/icon.svg" type="image/svg+xml"> -->
|
||||
<link rel="apple-touch-icon" href="img/lw.png">
|
||||
|
||||
<meta name="theme-color" content="#F7F7F7" media="(prefers-color-scheme: light)">
|
||||
<meta name="theme-color" content="#0f0f0f" media="(prefers-color-scheme: dark)">
|
||||
|
||||
<script src="js/app.js" defer></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="skipLink">
|
||||
<a href="#siteContent">Skip to content</a>
|
||||
</div>
|
||||
|
||||
<header class="site-header">
|
||||
<div class="menu-bar">
|
||||
<div class="menu-left">
|
||||
<a class="logo" href="/">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" id="Layer_1" data-name="Layer 1" aria-hidden="true" focusable="false" viewBox="0 0 1080 1080"><path d="M1000.022 50H499.59c-20.565 0-34.827 20.502-27.676 39.783l146.561 395.171c8.419 22.699 40.635 22.382 48.605-.478l61.821-177.315c6.903-19.8 34.906-19.8 41.809 0l61.821 177.315c7.97 22.861 40.187 23.178 48.605.478l146.561-395.171c7.151-19.281-7.112-39.783-27.676-39.783Z"/><path d="M360 538V106c0-30.928-25.072-56-56-56H106c-30.928 0-56 25.072-56 56v868c0 30.928 25.072 56 56 56h868c30.928 0 56-25.072 56-56V650c0-30.928-25.072-56-56-56H416c-30.928 0-56-25.072-56-56"/></svg>
|
||||
<span class="visually-hidden">Home page</span>
|
||||
</a>
|
||||
|
||||
<nav class="desktop-nav" aria-label="Primary navigation">
|
||||
<ul>
|
||||
<li><a href="/" class="menu-button">Work</a></li>
|
||||
<li><a href="/about.html" class="menu-button" aria-current="page">About</a></li>
|
||||
<li><a href="/privacy.html" class="menu-button">Blog</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="menu-right">
|
||||
<nav class="desktop-nav-secondary" aria-label="Secondary navigation">
|
||||
<ul>
|
||||
<li><button type="button" id="a11y-toggle" aria-pressed="false" class="button-secondary">
|
||||
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
||||
<path fill="currentColor" d="M21 10h-6v12h-2v-6h-2v6H9V10H3V8h18zm-9-8a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5"/>
|
||||
</svg><span class="visually-hidden">Make the website more visually accessible</span></button></li>
|
||||
<li><button type="button" id="theme-toggle" class="button-secondary"><svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
||||
<path fill="currentColor" fill-rule="evenodd" d="M5.302 4.574a9.96 9.96 0 0 1 6.697-2.57L12 2l.134.002a10.1 10.1 0 0 1 3.015.507l.223.076q.12.043.24.091.102.038.203.08.117.047.232.1.107.045.213.095.105.05.21.104.116.056.23.117l.153.084q.135.074.27.154.105.064.21.132.091.056.183.115.131.088.261.182l.154.109.21.162q.092.071.185.146l.123.105q.32.268.622.568l.355.373q.51.565.917 1.182l.06.095q.104.16.202.323l.082.145q.076.134.15.27l.085.166q.067.13.13.264.042.09.081.182.063.138.122.279l.049.127q.063.16.12.32.027.075.05.15.051.145.096.292l.058.206a10 10 0 0 1 .173.716l.037.201.044.254a10 10 0 0 1 .081.695 10.3 10.3 0 0 1-.084 2.374 10 10 0 0 1-.13.678 10 10 0 0 1-.184.694 10 10 0 0 1-.148.448q-.046.13-.098.26l-.075.192-.1.233q-.046.106-.095.213l-.104.21-.117.229-.095.171q-.07.127-.143.252-.065.106-.132.21-.058.096-.12.19-.087.128-.178.255l-.108.154q-.08.105-.163.209-.071.094-.145.186l-.105.123a10 10 0 0 1-.94.976q-.375.337-.773.63l-.098.07q-.147.105-.295.205l-.148.095q-.128.083-.258.162l-.163.093q-.127.075-.257.143-.087.046-.175.09-.12.062-.242.12-.102.048-.205.094-.117.052-.236.102l-.175.072a10 10 0 0 1-1.147.372q-.108.03-.218.056a10 10 0 0 1-.293.064l-.146.03a10 10 0 0 1-.294.05l-.187.029q-.135.018-.27.032l-.189.022q-.157.013-.316.022l-.15.01a9.97 9.97 0 0 1-7.162-2.563l-.373-.355c-3.905-3.905-3.905-10.237 0-14.142zm1.041 1.77A8 8 0 0 0 12 20V4a7.98 7.98 0 0 0-5.657 2.343"/>
|
||||
</svg><span class="visually-hidden">Change light/dark mode</span></button></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<button
|
||||
class="menu-toggle"
|
||||
id="menuToggle"
|
||||
type="button"
|
||||
aria-expanded="false"
|
||||
aria-controls="mobileMenu"
|
||||
aria-haspopup="true"
|
||||
aria-label="Open menu"
|
||||
>
|
||||
Menu
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="menu-overlay" id="menuOverlay" hidden></div>
|
||||
|
||||
<aside
|
||||
class="mobile-menu"
|
||||
id="mobileMenu"
|
||||
aria-label="Mobile navigation"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<div class="mobile-menu__header">
|
||||
<strong>Menu</strong>
|
||||
<button class="menu-close" id="menuClose" type="button" aria-label="Close menu">
|
||||
Close
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<nav aria-label="Mobile navigation">
|
||||
<ul>
|
||||
<li><a href="/" class="button-primary" aria-current="page">Work</a></li>
|
||||
<li><a href="/legal-notice.html" class="button-primary">About</a></li>
|
||||
<li><a href="/privacy.html" class="button-primary">Blog</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</aside>
|
||||
|
||||
<main id="siteContent" class="page-content">
|
||||
|
||||
<!-- target="_blank" rel="noopener noreferrer" -->
|
||||
|
||||
<header class="content-box content-intro">
|
||||
<h1 class="headline size-h2">
|
||||
About text
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<section class="content-box content-text">
|
||||
<p class="text">
|
||||
As usual, my portfolio is a work in progress and currently only available on request. Please feel free to contact me <a href="mailto:contact@larswinter.me">via email</a> for work collaborations and other requests. You can also find me on one of those fancy social networks, like <a rel="me" href="https://mastodon.social/@larswinter">Mastodon</a>, <a href="https://www.linkedin.com/in/larswinter">LinkedIn</a> (if really necessary), <del>Instagram</del>, and <del>Twitter</del>.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<div class="content-box placeholder">
|
||||
|
||||
</div>
|
||||
|
||||
<!-- <div class="footer-fade"></div> -->
|
||||
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<div class="footer-content">
|
||||
<span>© 2018–<span id="year"></span> Lars Winter</span>
|
||||
<div class="footer-links">
|
||||
<div>
|
||||
<a href="/legal-notice.html">Legal notice</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="/privacy.html">Privacy</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="/archive">Archived Portfolio</a>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
document.getElementById('year').textContent = new Date().getFullYear();
|
||||
</script>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
<!-- Add your site or application content here -->
|
||||
<!-- <script src="js/app.js" defer></script> -->
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
+11
-100
@@ -208,6 +208,7 @@ html,
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--color-background);
|
||||
scroll-padding-top: 8rem; /* https://tetralogical.com/blog/2023/06/08/focus-in-view/ */
|
||||
}
|
||||
|
||||
html {
|
||||
@@ -235,7 +236,6 @@ h4,
|
||||
h5,
|
||||
h6,
|
||||
p {
|
||||
scroll-margin-top: 80px;
|
||||
width: clamp(min(100%, 40ch), 50ch, min(100%, 60ch));
|
||||
}
|
||||
|
||||
@@ -371,10 +371,10 @@ a:hover {
|
||||
text-decoration-thickness: 0.175rem;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
/* a:visited {
|
||||
color: var(--color-primary);
|
||||
text-decoration-thickness: 0.175rem;
|
||||
}
|
||||
} */
|
||||
|
||||
button, .button-primary, .button-secondary, .menu-button, .logo {
|
||||
appearance: none;
|
||||
@@ -425,6 +425,7 @@ button, .button-primary, .logo {
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
button:hover, .button-primary:hover, .button-secondary:hover, .logo:hover {
|
||||
text-decoration: none;
|
||||
transform: scale(1.05);
|
||||
@@ -439,11 +440,12 @@ button:hover, .button-primary:hover, .logo:hover {
|
||||
background: var(--color-button-secondary-hover);
|
||||
color: var(--color-text-button-secondary-hover);
|
||||
}
|
||||
}
|
||||
|
||||
button:active, .button-primary:active, .button-secondary:active, .logo:active {
|
||||
box-shadow: var(--shadow-button-active);
|
||||
text-decoration: none;
|
||||
transform: scale(1.05);
|
||||
transform: scale(1.00);
|
||||
}
|
||||
|
||||
button:active, .button-primary:active, .logo:active {
|
||||
@@ -456,7 +458,7 @@ button:active, .button-primary:active, .logo:active {
|
||||
color: var(--color-text-button-secondary-active);
|
||||
}
|
||||
|
||||
button:visited, .button-primary:visited, .logo:visited {
|
||||
/* button:visited, .button-primary:visited, .logo:visited {
|
||||
background: var(--color-button-primary);
|
||||
color: var(--color-text-button-primary);
|
||||
text-decoration: none;
|
||||
@@ -466,7 +468,7 @@ button:visited, .button-primary:visited, .logo:visited {
|
||||
background: var(--color-button-secondary);
|
||||
color: var(--color-text-button-secondary);
|
||||
text-decoration: none;
|
||||
}
|
||||
} */
|
||||
|
||||
.button-primary span {
|
||||
margin-right: 0.3em;
|
||||
@@ -496,6 +498,9 @@ button:visited, .button-primary:visited, .logo:visited {
|
||||
76%,
|
||||
light-dark(var(--gradient-stop-4-light), var(--gradient-stop-4-dark)) 100%
|
||||
);
|
||||
/* background: rgb(255 255 255 / 0.88); */
|
||||
/* backdrop-filter: blur(10px);
|
||||
-webkit-backdrop-filter: blur(10px); */
|
||||
}
|
||||
|
||||
.menu-bar {
|
||||
@@ -603,100 +608,6 @@ button:visited, .button-primary:visited, .logo:visited {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.menu-toggle {
|
||||
display: none;
|
||||
position: relative;
|
||||
transition: transform 0.25s ease, opacity 0.25s ease;
|
||||
}
|
||||
|
||||
.menu-toggle.is-open {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.menu-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: var(--overlay);
|
||||
backdrop-filter: blur(10px);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.25s ease;
|
||||
z-index: 200;
|
||||
}
|
||||
|
||||
.mobile-menu {
|
||||
position: fixed;
|
||||
inset: auto 1rem 1rem 1rem;
|
||||
width: auto;
|
||||
max-width: 24rem;
|
||||
margin-inline: auto;
|
||||
background: var(--panel);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border: 1px solid rgb(255 255 255 / 0.45);
|
||||
border-radius: 1rem;
|
||||
box-shadow: 0 20px 50px rgb(0 0 0 / 0.16);
|
||||
padding: 1rem;
|
||||
opacity: 0;
|
||||
transform: translateY(1rem) scale(0.98);
|
||||
pointer-events: none;
|
||||
transition: opacity 0.25s ease, transform 0.25s ease;
|
||||
z-index: 300;
|
||||
}
|
||||
|
||||
.mobile-menu__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.mobile-menu ul {
|
||||
display: grid;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.mobile-menu a {
|
||||
display: block;
|
||||
padding: 0.95rem 1rem;
|
||||
border-radius: 0.75rem;
|
||||
background: rgb(255 255 255 / 0.56);
|
||||
}
|
||||
|
||||
/* .page-content {
|
||||
padding: 3rem 1.25rem;
|
||||
} */
|
||||
|
||||
.menu-open .menu-overlay {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.menu-open .mobile-menu {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 579px) {
|
||||
.desktop-nav {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.menu-toggle {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 580px) {
|
||||
.menu-overlay,
|
||||
.mobile-menu {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Maint content */
|
||||
|
||||
main, footer {
|
||||
|
||||
-46
@@ -40,14 +40,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" id="Layer_1" data-name="Layer 1" aria-hidden="true" focusable="false" viewBox="0 0 1080 1080"><path d="M1000.022 50H499.59c-20.565 0-34.827 20.502-27.676 39.783l146.561 395.171c8.419 22.699 40.635 22.382 48.605-.478l61.821-177.315c6.903-19.8 34.906-19.8 41.809 0l61.821 177.315c7.97 22.861 40.187 23.178 48.605.478l146.561-395.171c7.151-19.281-7.112-39.783-27.676-39.783Z"/><path d="M360 538V106c0-30.928-25.072-56-56-56H106c-30.928 0-56 25.072-56 56v868c0 30.928 25.072 56 56 56h868c30.928 0 56-25.072 56-56V650c0-30.928-25.072-56-56-56H416c-30.928 0-56-25.072-56-56"/></svg>
|
||||
<span class="visually-hidden">Home page</span>
|
||||
</a>
|
||||
|
||||
<nav class="desktop-nav" aria-label="Primary navigation">
|
||||
<ul>
|
||||
<li><a href="/" class="menu-button" aria-current="page">Work</a></li>
|
||||
<li><a href="/about.html" class="menu-button">About</a></li>
|
||||
<li><a href="/privacy.html" class="menu-button">Blog</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="menu-right">
|
||||
@@ -62,46 +54,10 @@
|
||||
</svg><span class="visually-hidden">Change light/dark mode</span></button></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<button
|
||||
class="menu-toggle"
|
||||
id="menuToggle"
|
||||
type="button"
|
||||
aria-expanded="false"
|
||||
aria-controls="mobileMenu"
|
||||
aria-haspopup="true"
|
||||
aria-label="Open menu"
|
||||
>
|
||||
Menu
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="menu-overlay" id="menuOverlay" hidden></div>
|
||||
|
||||
<aside
|
||||
class="mobile-menu"
|
||||
id="mobileMenu"
|
||||
aria-label="Mobile navigation"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<div class="mobile-menu__header">
|
||||
<strong>Menu</strong>
|
||||
<button class="menu-close" id="menuClose" type="button" aria-label="Close menu">
|
||||
Close
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<nav aria-label="Mobile navigation">
|
||||
<ul>
|
||||
<li><a href="/" class="button-primary" aria-current="page">Work</a></li>
|
||||
<li><a href="/legal-notice.html" class="button-primary">About</a></li>
|
||||
<li><a href="/privacy.html" class="button-primary">Blog</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</aside>
|
||||
|
||||
<main id="siteContent" class="page-content">
|
||||
|
||||
<!-- target="_blank" rel="noopener noreferrer" -->
|
||||
@@ -122,8 +78,6 @@
|
||||
|
||||
</div>
|
||||
|
||||
<!-- <div class="footer-fade"></div> -->
|
||||
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
|
||||
@@ -1,64 +1,3 @@
|
||||
// Menu system
|
||||
|
||||
const body = document.body;
|
||||
const menuToggle = document.getElementById('menuToggle');
|
||||
const menuClose = document.getElementById('menuClose');
|
||||
const menuOverlay = document.getElementById('menuOverlay');
|
||||
const mobileMenu = document.getElementById('mobileMenu');
|
||||
const siteContent = document.getElementById('siteContent');
|
||||
|
||||
function openMenu() {
|
||||
body.classList.add('menu-open');
|
||||
menuOverlay.hidden = false;
|
||||
menuToggle.classList.add('is-open');
|
||||
menuToggle.setAttribute('aria-expanded', 'true');
|
||||
menuToggle.setAttribute('aria-label', 'Close menu');
|
||||
mobileMenu.setAttribute('aria-hidden', 'false');
|
||||
siteContent.setAttribute('inert', '');
|
||||
menuClose.focus();
|
||||
}
|
||||
|
||||
function closeMenu() {
|
||||
body.classList.remove('menu-open');
|
||||
menuToggle.classList.remove('is-open');
|
||||
menuToggle.setAttribute('aria-expanded', 'false');
|
||||
menuToggle.setAttribute('aria-label', 'Open menu');
|
||||
mobileMenu.setAttribute('aria-hidden', 'true');
|
||||
siteContent.removeAttribute('inert');
|
||||
menuToggle.focus();
|
||||
|
||||
window.setTimeout(() => {
|
||||
if (!body.classList.contains('menu-open')) {
|
||||
menuOverlay.hidden = true;
|
||||
}
|
||||
}, 250);
|
||||
}
|
||||
|
||||
function toggleMenu() {
|
||||
if (body.classList.contains('menu-open')) {
|
||||
closeMenu();
|
||||
} else {
|
||||
openMenu();
|
||||
}
|
||||
}
|
||||
|
||||
menuToggle.addEventListener('click', toggleMenu);
|
||||
menuClose.addEventListener('click', closeMenu);
|
||||
menuOverlay.addEventListener('click', closeMenu);
|
||||
|
||||
document.addEventListener('keydown', (event) => {
|
||||
if (event.key === 'Escape' && body.classList.contains('menu-open')) {
|
||||
closeMenu();
|
||||
}
|
||||
});
|
||||
|
||||
window.addEventListener('resize', () => {
|
||||
if (window.innerWidth >= 768 && body.classList.contains('menu-open')) {
|
||||
closeMenu();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// accessibility toggle
|
||||
|
||||
{
|
||||
|
||||
@@ -41,13 +41,6 @@
|
||||
<span class="visually-hidden">Home page</span>
|
||||
</a>
|
||||
|
||||
<nav class="desktop-nav" aria-label="Primary navigation">
|
||||
<ul>
|
||||
<li><a href="/" class="menu-button">Work</a></li>
|
||||
<li><a href="/about.html" class="menu-button">About</a></li>
|
||||
<li><a href="/privacy.html" class="menu-button">Blog</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="menu-right">
|
||||
@@ -63,45 +56,10 @@
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<button
|
||||
class="menu-toggle"
|
||||
id="menuToggle"
|
||||
type="button"
|
||||
aria-expanded="false"
|
||||
aria-controls="mobileMenu"
|
||||
aria-haspopup="true"
|
||||
aria-label="Open menu"
|
||||
>
|
||||
Menu
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="menu-overlay" id="menuOverlay" hidden></div>
|
||||
|
||||
<aside
|
||||
class="mobile-menu"
|
||||
id="mobileMenu"
|
||||
aria-label="Mobile navigation"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<div class="mobile-menu__header">
|
||||
<strong>Menu</strong>
|
||||
<button class="menu-close" id="menuClose" type="button" aria-label="Close menu">
|
||||
Close
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<nav aria-label="Mobile navigation">
|
||||
<ul>
|
||||
<li><a href="/" class="button-primary" aria-current="page">Work</a></li>
|
||||
<li><a href="/legal-notice.html" class="button-primary">About</a></li>
|
||||
<li><a href="/privacy.html" class="button-primary">Blog</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</aside>
|
||||
|
||||
<main>
|
||||
|
||||
<section class="align-left">
|
||||
|
||||
@@ -41,13 +41,6 @@
|
||||
<span class="visually-hidden">Home page</span>
|
||||
</a>
|
||||
|
||||
<nav class="desktop-nav" aria-label="Primary navigation">
|
||||
<ul>
|
||||
<li><a href="/" class="menu-button">Work</a></li>
|
||||
<li><a href="/about.html" class="menu-button">About</a></li>
|
||||
<li><a href="/privacy.html" class="menu-button">Blog</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="menu-right">
|
||||
@@ -63,45 +56,10 @@
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<button
|
||||
class="menu-toggle"
|
||||
id="menuToggle"
|
||||
type="button"
|
||||
aria-expanded="false"
|
||||
aria-controls="mobileMenu"
|
||||
aria-haspopup="true"
|
||||
aria-label="Open menu"
|
||||
>
|
||||
Menu
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="menu-overlay" id="menuOverlay" hidden></div>
|
||||
|
||||
<aside
|
||||
class="mobile-menu"
|
||||
id="mobileMenu"
|
||||
aria-label="Mobile navigation"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<div class="mobile-menu__header">
|
||||
<strong>Menu</strong>
|
||||
<button class="menu-close" id="menuClose" type="button" aria-label="Close menu">
|
||||
Close
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<nav aria-label="Mobile navigation">
|
||||
<ul>
|
||||
<li><a href="/" class="button-primary" aria-current="page">Work</a></li>
|
||||
<li><a href="/legal-notice.html" class="button-primary">About</a></li>
|
||||
<li><a href="/privacy.html" class="button-primary">Blog</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</aside>
|
||||
|
||||
<main>
|
||||
|
||||
<section class="align-left">
|
||||
|
||||
Reference in New Issue
Block a user