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
1 change: 0 additions & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<a href="/#news">お知らせ</a>
<a href="/register">来場応募する</a>
<a href="/staff">運営に参加する</a>
<a href="/faq">よくある質問</a>
<a href="/rules-junior">展示のお約束(ジュニア) </a>
<a href="/conduct">行動規範</a>
<a href="/privacy">プライバシーポリシー</a>
Expand Down
82 changes: 78 additions & 4 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

<div class="flex py-1 px-4 items-center justify-between">

<div class="items-center flex justify-between gap-8">
<a class="block flex items-center gap-4 py-3" href="/">
<div class="items-center flex justify-between gap-8 flex-1">
<a class="flex items-center gap-4 py-3" href="/">
<img
src="/img/cpj.svg"
class="h-12"
Expand All @@ -15,6 +15,7 @@
/>
</a>

<!-- デスクトップナビゲーション -->
<nav aria-label="Global" class="hidden md:block">
<ul class="flex items-center gap-6 text-xl">
<li>
Expand All @@ -30,13 +31,86 @@
<a class="header-txt" href="/register"> 来場応募する </a>
</li>
<li>
<a class="header-txt" href="/faq"> よくある質問 </a>
<a class="header-txt" href="/contact"> お問い合わせ </a>
</li>
</ul>
</nav>

<!-- ハンバーガーメニューボタン(モバイル) -->
<button id="mobile-menu-button" class="md:hidden p-2 text-gray-700 hover:bg-gray-100 rounded-lg transition">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" />
</svg>
</button>

</div>
<!--- <a href="/apply" class="button-base"> 作品を応募する </a> --->
</div>

<!-- モバイルメニュー -->
<div id="mobile-menu" class="md:hidden bg-white border-t border-gray-200 overflow-hidden transition-all duration-300 ease-in-out" style="max-height: 0;">
<nav class="px-4 py-4">
<ul class="flex flex-col gap-4">
<li>
<a class="header-txt block py-2 px-4 text-lg hover:bg-gray-100 rounded-lg transition" href="/about"> 開催概要 </a>
</li>
<li>
<a class="header-txt block py-2 px-4 text-lg hover:bg-gray-100 rounded-lg transition" href="/#news"> お知らせ </a>
</li>
<li>
<a class="header-txt block py-2 px-4 text-lg hover:bg-gray-100 rounded-lg transition" href="/sponsors"> スポンサー </a>
</li>
<li>
<a class="header-txt block py-2 px-4 text-lg hover:bg-gray-100 rounded-lg transition" href="/register"> 来場応募する </a>
</li>
<li>
<a class="header-txt block py-2 px-4 text-lg hover:bg-gray-100 rounded-lg transition" href="/contact"> お問い合わせ </a>
</li>
</ul>
</nav>
</div>
</div>
</header>
</header>

<!-- ハンバーガーメニューのスクリプト -->
<script>
document.addEventListener('DOMContentLoaded', function() {
const menuButton = document.getElementById('mobile-menu-button');
const mobileMenu = document.getElementById('mobile-menu');
let isOpen = false;

function openMenu() {
isOpen = true;
mobileMenu.style.maxHeight = mobileMenu.scrollHeight + 'px';
}

function closeMenu() {
isOpen = false;
mobileMenu.style.maxHeight = '0';
}

menuButton.addEventListener('click', function(e) {
e.stopPropagation();
if (isOpen) {
closeMenu();
} else {
openMenu();
}
});

// メニュー内のリンクをクリックしたらメニューを閉じる
const menuLinks = mobileMenu.querySelectorAll('a');
menuLinks.forEach(link => {
link.addEventListener('click', function() {
closeMenu();
});
});

// メニュー外をクリックしたら閉じる
document.addEventListener('click', function(event) {
if (isOpen && !menuButton.contains(event.target) && !mobileMenu.contains(event.target)) {
closeMenu();
}
});
});
</script>
69 changes: 46 additions & 23 deletions about.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,12 @@ hero_subtitle: "ABOUT"
<!-- 開催概要 -->
<div class="mb-16">
<div class="mb-16 max-w-4xl mx-auto">
<div data-category="functional" class='relative w-full' style='padding-top: 56.25%;'>
<iframe class='absolute top-0 left-0 w-full h-full rounded-2xl' title="3分でわかるCoolest Projects Japan"
data-src="https://www.youtube.com/embed/l8udUqCLXY8?list=PL94GDfaSQTmIifXDGOaEoEgviPSv36OEo" frameborder="0"
<div class='relative w-full rounded-2xl overflow-hidden shadow-lg' style='padding-top: 56.25%;'>
<iframe class='absolute top-0 left-0 w-full h-full' title="3分でわかるCoolest Projects Japan"
src="https://www.youtube-nocookie.com/embed/l8udUqCLXY8?list=PL94GDfaSQTmIifXDGOaEoEgviPSv36OEo" frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>
</div>
<div data-category="!functional" class="bg-gray-100 border-2 border-gray-50 rounded-2xl px-8 py-30 text-center">
<p class="text-lg mb-4">
このコンテンツを表示するには、機能Cookieの許可が必要です。
</p>
<a class="group relative inline-block" href="https://www.youtube.com/watch?v=l8udUqCLXY8&list=PL94GDfaSQTmIifXDGOaEoEgviPSv36OEo" target="_blank">
<span class="absolute inset-0 translate-x-1.5 translate-y-1.5 bg-teal-500 transition-transform group-hover:translate-x-0 group-hover:translate-y-0"></span>
<span class="relative inline-block border-2 border-current px-8 py-3 text-sm font-bold tracking-widest text-black uppercase">
資料を別タブで開く
</span>
</a>
</div>
</div>
<!-- 開催概要見出し -->
<div class="text-center mb-12">
Expand Down Expand Up @@ -93,27 +82,61 @@ hero_subtitle: "ABOUT"
</tbody>
</table>
</div>
<!-- Google Map -->
<!-- Map (Leaflet.js) -->
<div class="mb-12">
<div class="text-center mb-6">
<h3 class='text-4xl sm:text-5xl font-bold uppercase tracking-wider border-b-10 border-teal-500 inline-block' style="font-family: 'League Gothic', sans-serif; color: #221C35;">ACCESS</h3>
<p class="text-xl mt-2" style="color: #444444;">アクセス</p>
</div>
<div data-category="functional" class="rounded-2xl overflow-hidden shadow-lg">
<iframe data-src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d83881.69282584515!2d136.76410603446325!3d35.15418320107424!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x600377509b30ad27%3A0x7135c8b1be3ed740!2z44Gq44GU44Gu44Kt44Oj44Oz44OR44K5!5e0!3m2!1sja!2sjp!4v1766923169286!5m2!1sja!2sjp" width="100%" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
<div class="rounded-2xl overflow-hidden shadow-lg">
<div id="map" style="height: 450px; width: 100%;"></div>
</div>
<div data-category="!functional" class="bg-gray-100 border-2 border-gray-50 rounded-2xl px-8 py-30 text-center">
<p class="text-lg mb-4">
このコンテンツを表示するには、機能Cookieの許可が必要です。
</p>
<a class="group relative inline-block" href="https://www.google.com/maps/place/%E3%81%AA%E3%81%94%E3%81%AE%E3%82%AD%E3%83%A3%E3%83%B3%E3%83%91%E3%82%B9/@35.1541832,136.7641061,12z" target="_blank">
<div class="text-center mt-8">
<a class="group relative inline-block" href="https://www.google.com/maps/place/%E3%81%AA%E3%81%94%E3%81%AE%E3%82%AD%E3%83%A3%E3%83%B3%E3%83%91%E3%82%B9/@35.154183,136.841054,15z" target="_blank">
<span class="absolute inset-0 translate-x-1.5 translate-y-1.5 bg-teal-500 transition-transform group-hover:translate-x-0 group-hover:translate-y-0"></span>
<span class="relative inline-block border-2 border-current px-8 py-3 text-sm font-bold tracking-widest text-black uppercase">
資料を別タブで開く
Google Mapで開く
</span>
</a>
</div>
</div>

<!-- Leaflet.js CSS & JS -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""></script>

<script>
// なごのキャンパスの座標
const lat = 35.154183;
const lon = 136.841054;

// 地図を初期化
const map = L.map('map').setView([lat, lon], 15);

// OpenStreetMapのタイルレイヤーを追加
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
maxZoom: 19
}).addTo(map);

// マーカーを追加
const marker = L.marker([lat, lon]).addTo(map);

// 左上に固定表示される情報パネルを追加
const info = L.control({position: 'topleft'});

info.onAdd = function (map) {
this._div = L.DomUtil.create('div', 'info-panel');
this._div.innerHTML = '<div style="background: white; padding: 12px 16px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); font-family: sans-serif;"><div style="font-weight: bold; font-size: 16px; margin-bottom: 4px;">なごのキャンパス</div><div style="color: #666; font-size: 14px;">〒451-0042<br>愛知県名古屋市西区那古野2丁目14-1</div></div>';
return this._div;
};

info.addTo(map);
</script>
</div>
</div>
</div>
22 changes: 0 additions & 22 deletions faq.md

This file was deleted.

Binary file added img/contests/sponsor.pdf
Binary file not shown.
Loading