|
1 |
| -<h1 class="max-w-lg mx-auto pt-5 px-8"> |
| 1 | +<h1 class="xl:block hidden mx-auto max-w-lg pt-5 px-8"> |
2 | 2 | <a href="/">
|
3 | 3 | <img src="/img/common/header-logo.webp" alt="DojoCon Japan 2025 Inspire Next." />
|
4 | 4 | </a>
|
5 | 5 | </h1>
|
| 6 | + |
| 7 | +<div class="fixed xl:hidden left-0 top-7 z-10 flex w-screen min-h-18 justify-center"> |
| 8 | + <div |
| 9 | + class="flex flex-col h-full w-[calc(100%-60px)] items-stretch rounded-[10px] bg-[#f5f5f5] px-5 py-3 shadow-[7px_7px_10px_rgba(125,125,125,0.15)] inset-shadow-[0px_-2px_10px_rgba(125,125,125,0.25)]"> |
| 10 | + <div class="flex items-center justify-between gap-2"> |
| 11 | + <a href="/" class="flex h-full items-center"> |
| 12 | + <img src="/img/common/header-logo.webp" class="w-full max-w-[250px] max-h-full" |
| 13 | + alt="DojoCon Japan 2025 Inspire Next." /> |
| 14 | + </a> |
| 15 | + <button id="menu-btn" type="button" aria-label="メニューを開く" |
| 16 | + class="flex p-2 shrink-0 flex-col items-center justify-center rounded border border-gray-300 bg-white cursor-pointer"> |
| 17 | + <i class="fa-solid fa-bars"></i> |
| 18 | + </button> |
| 19 | + </div> |
| 20 | + <nav id="menu-nav" class="hidden my-2 flex-col items-stretch transition-all duration-300"> |
| 21 | + <ul |
| 22 | + class="flex flex-col min-h-20 items-stretch gap-2 *:px-6 *:text-center *:text-[20px] *:leading-[1.75] *:text-[#cc8f2e] [&_a]:block"> |
| 23 | + <li><a href="#outline">開催概要</a></li> |
| 24 | + <li><a href="#session">セッション</a></li> |
| 25 | + <li><a href="/events">企画</a></li> |
| 26 | + <li><a href="/contest">コンテスト</a></li> |
| 27 | + <li><a href="https://suzuri.jp/DojoConJapan" target="_blank">グッズ</a></li> |
| 28 | + <li><a href="/sponsorship">スポンサー募集</a></li> |
| 29 | + <li><a href="{{ site.contact }}" target="_blank">お問い合わせ</a></li> |
| 30 | + </ul> |
| 31 | + </nav> |
| 32 | + </div> |
| 33 | +</div> |
| 34 | + |
| 35 | +<script> |
| 36 | + document.addEventListener('DOMContentLoaded', function () { |
| 37 | + const menuBtn = document.getElementById('menu-btn'); |
| 38 | + const menuNav = document.getElementById('menu-nav'); |
| 39 | + if (!menuBtn || !menuNav) return; |
| 40 | + |
| 41 | + menuBtn.addEventListener('click', function () { |
| 42 | + menuNav.classList.toggle('flex'); |
| 43 | + menuNav.classList.toggle('hidden'); |
| 44 | + }); |
| 45 | + menuNav.querySelectorAll('a').forEach(function (link) { |
| 46 | + link.addEventListener('click', function () { |
| 47 | + menuNav.classList.remove('flex'); |
| 48 | + menuNav.classList.add('hidden'); |
| 49 | + }); |
| 50 | + }); |
| 51 | + }); |
| 52 | +</script> |
0 commit comments