Nishinoya/photo_booth.html
2023-06-15 21:44:45 +09:00

172 lines
4.1 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>二四家(にしのや)</title>
<style>
body {
font-family: "Helvetica Neue", Arial, sans-serif;
background-color: #f2f2f2;
margin: 0;
padding: 0;
}
header {
background-color: orange;
padding: 10px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#logo-container {
display: flex;
align-items: center;
}
#logo {
margin-bottom: 5px;
}
h2 {
margin: 0;
font-size: 36px;
color: #333;
}
/* トグルボタンのスタイル */
.menu-toggle {
display: none;
}
.menu-toggle-label {
display: block;
cursor: pointer;
padding: 10px;
color: #fff;
font-size: 24px;
}
/* メニューのスタイル */
.menu {
display: none;
position: absolute;
top: 100%;
right: 0;
background-color: #f26522;
padding: 0;
list-style-type: none;
text-align: right;
}
.menu li {
margin-top: 10px;
}
.menu li a {
display: block;
padding: 10px;
color: #fff;
text-decoration: none;
transition: background-color 0.3s ease;
}
.menu li a:hover {
background-color: #e1561c;
}
#content {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
h2 {
margin: 0 0 20px;
font-size: 24px;
color: #333;
}
.photo-gallery {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 20px;
margin-top: 20px;
}
.photo-gallery img {
width: 100%;
border-radius: 5px;
}
footer {
background-color: #333;
padding: 20px;
text-align: center;
color: #fff;
}
</style>
</head>
<body>
<header>
<div id="logo-container">
<img id="logo" src="1686296908880.jpg" alt="二四家ロゴ" width="200px">
<h2> </h2>
</div>
<input type="checkbox" id="menu-toggle" class="menu-toggle">
<label for="menu-toggle" class="menu-toggle-label">&#9776;</label>
<nav>
<ul id="menu" class="menu">
<li><a href="menu_details.html">メニューの詳細</a></li>
<li><a href="specialty.html">御来店の際のご注意</a></li>
<li><a href="class.html">2年4組について</a></li>
<li><a href="photo_booth.html">フォトブース</a></li>
</ul>
</nav>
</header>
<div id="content">
<h2>フォトブース</h2>
<p>二四家では特別な思い出を作るためにフォトブースを設置しています。</p>
<div class="photo-gallery">
<img src="katsuaki.jpg" alt="写真1">
<img src="1686813172839.jpg" alt="写真2">
<img src="photo3.html" alt="写真3">
<img src="photo4.html" alt="写真4">
<img src="photo5.html" alt="写真5">
<img src="photo6.html" alt="写真6">
</div>
</div>
<footer>
&copy; 2023 二四家 All rights reserved.
</footer>
<script>
 document.addEventListener('DOMContentLoaded', function() {
const menuToggle = document.getElementById('menu-toggle');
const menu = document.getElementById('menu');
menuToggle.addEventListener('change', function() {
if (menuToggle.checked) {
menu.style.display = 'block';
} else {
menu.style.display = 'none';
}
});
});
// ロゴマークをクリックしたときにホームに戻るイベントを追加
const logoElement = document.getElementById("logo");
logoElement.addEventListener("click", function() {
window.location.href = "nishinoya.html";
});
</script>
</body>
</html>