This commit is contained in:
noyciy7037 2023-06-15 23:40:46 +09:00
parent 2fb4226002
commit 096ed5b8eb
Signed by: noyciy7037
GPG Key ID: 46A54FA18BBA58FF
18 changed files with 275 additions and 754 deletions

View File

@ -4,119 +4,16 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>二四家(にしのや)</title> <title>二四家(にしのや)</title>
<style> <link href="static/css/default.css" rel="stylesheet">
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;
}
p {
margin-bottom: 20px;
font-size: 16px;
line-height: 1.5;
color: #555;
}
footer {
background-color: #333;
padding: 20px;
text-align: center;
color: #fff;
}
</style>
</head> </head>
<body> <body>
<header> <header>
<div id="logo-container"> <div id="logo-container">
<img id="logo" src="1686296908880.jpg" alt="二四家ロゴ" width="200px"> <a href="index.html"><img id="logo" src="static/images/1686296908880.jpg" alt="二四家ロゴ" width="200px"></a>
<h2> </h2>
</div> </div>
<nav>
<input type="checkbox" id="menu-toggle" class="menu-toggle"> <input type="checkbox" id="menu-toggle" class="menu-toggle">
<label for="menu-toggle" class="menu-toggle-label">&#9776;</label> <label for="menu-toggle" class="menu-toggle-label">&#9776;</label>
<nav>
<ul id="menu" class="menu"> <ul id="menu" class="menu">
<li><a href="menu_details.html">メニューの詳細</a></li> <li><a href="menu_details.html">メニューの詳細</a></li>
<li><a href="specialty.html">御来店の際のご注意</a></li> <li><a href="specialty.html">御来店の際のご注意</a></li>
@ -143,7 +40,7 @@
<script> <script>
 document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {
const menuToggle = document.getElementById('menu-toggle'); const menuToggle = document.getElementById('menu-toggle');
const menu = document.getElementById('menu'); const menu = document.getElementById('menu');
@ -155,12 +52,6 @@
} }
}); });
}); });
// ロゴマークをクリックしたときにホームに戻るイベントを追加
const logoElement = document.getElementById("logo");
logoElement.addEventListener("click", function() {
window.location.href = "nishinoya.html";
});
</script> </script>
</body> </body>
</html> </html>

118
index.html Normal file
View File

@ -0,0 +1,118 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>二四家(にしのや)</title>
<link href="static/css/default.css" rel="stylesheet">
<link href="static/css/common.css" rel="stylesheet">
</head>
<body>
<header>
<div id="logo-container">
<a href="index.html"><img id="logo" src="static/images/1686296908880.jpg" alt="二四家ロゴ" width="200px"></a>
</div>
<nav>
<input type="checkbox" id="menu-toggle" class="menu-toggle">
<label for="menu-toggle" class="menu-toggle-label">&#9776;</label>
<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>
<img id="top-image" src="static/images/1686401596506.jpg" alt="トップページ画像" width="100%" style="display: block; margin: 20px auto;">
<div id="content">
<h2>販売商品</h2>
<div class="product">
<img src="static/images/168648729145000000.jpg" alt="極限豚丼">
<div>
<h3>極限豚丼 300円</h3>
<p>濃厚な味わいが特徴の極限豚丼です。</p>
</div>
</div>
<div class="product">
<img src="static/images/168648729942700000.jpg" alt="みたらし団子">
<div>
<h3>みたらし団子 100円</h3>
<p>優しい甘さが魅力のみたらし団子です。</p>
</div>
</div>
<h2>キャッチコピー - 邦を開く味わい</h2>
<p>「開邦雄飛」 開邦高校の校訓であるこの言葉のよう、邦を開き世界へ羽ばたく私たちの志を表現しています。</p>
</div>
<!--カウンタはサーバーサイド処理が必要なので無効化-->
<!--
<p>アクセスカウンター: <span id="counter">0</span></p>
<p>累計アクセス数: <span id="total-counter">0</span></p>
-->
<script>
// bodyの末尾に書いているのでイベント内に書く必要はない
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';
}
});
});
/* カウンタはサーバーサイド処理が必要なので無効化
// アクセスカウンターのプログラム
let counter = 0;
const counterElement = document.getElementById("counter");
const totalCounterElement = document.getElementById("total-counter");
function incrementCounter() {
counter++;
counterElement.textContent = counter;
// ブラウザのローカルストレージにカウンターの値を保存
localStorage.setItem("accessCounter", counter);
}
// ページが読み込まれた時にカウンターを初期化
window.addEventListener("load", function() {
// ローカルストレージからカウンターの値を取得
const storedCounter = localStorage.getItem("accessCounter");
if (storedCounter) {
counter = parseInt(storedCounter);
counterElement.textContent = counter;
}
});
// ウィンドウが閉じられる時に累計アクセス数を更新
window.addEventListener("beforeunload", function() {
// ブラウザのローカルストレージから累計アクセス数を取得
const storedTotalCounter = localStorage.getItem("totalAccessCounter");
let totalCounter = 0;
if (storedTotalCounter) {
totalCounter = parseInt(storedTotalCounter);
}
totalCounter += counter;
totalCounterElement.textContent = totalCounter;
// 更新した累計アクセス数をブラウザのローカルストレージに保存
localStorage.setItem("totalAccessCounter", totalCounter);
});
*/
</script>
<footer>
&copy; 2023 二四家 All rights reserved.
</footer>
</body>
</html>

View File

@ -4,138 +4,16 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>二四家(にしのや)</title> <title>二四家(にしのや)</title>
<style> <link href="static/css/default.css" rel="stylesheet">
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;
}
p {
margin-bottom: 20px;
font-size: 16px;
line-height: 1.5;
color: #555;
}
.product {
display: grid;
grid-template-columns: 1fr 2fr;
grid-gap: 20px;
margin-bottom: 20px;
}
.product img {
max-width: 600px; /* 修正: 幅を最大600pxに制限 */
height: auto; /* 高さは自動調整 */
border-radius: 5px;
}
.product h3 {
margin: 0;
font-size: 24px;
color: #333;
}
footer {
background-color: #333;
padding: 20px;
text-align: center;
color: #fff;
}
</style>
</head> </head>
<body> <body>
<header> <header>
<div id="logo-container"> <div id="logo-container">
<img id="logo" src="1686296908880.jpg" alt="二四家ロゴ" width="200px"> <a href="index.html"><img id="logo" src="static/images/1686296908880.jpg" alt="二四家ロゴ" width="200px"></a>
<h2> </h2>
</div> </div>
<nav>
<input type="checkbox" id="menu-toggle" class="menu-toggle"> <input type="checkbox" id="menu-toggle" class="menu-toggle">
<label for="menu-toggle" class="menu-toggle-label">&#9776;</label> <label for="menu-toggle" class="menu-toggle-label">&#9776;</label>
<nav>
<ul id="menu" class="menu"> <ul id="menu" class="menu">
<li><a href="menu_details.html">メニューの詳細</a></li> <li><a href="menu_details.html">メニューの詳細</a></li>
<li><a href="specialty.html">御来店の際のご注意</a></li> <li><a href="specialty.html">御来店の際のご注意</a></li>
@ -147,12 +25,12 @@
<div id="content"> <div id="content">
<h2>極限豚丼</h2> <h2>極限豚丼</h2>
<img src="168648729145000000.jpg" alt="究極豚丼"> <img src="static/images/168648729145000000.jpg" alt="究極豚丼">
<p>濃厚な味わいが特徴の極限豚丼です。</p> <p>濃厚な味わいが特徴の極限豚丼です。</p>
<p>具材には厳選した豚肉を使用し、秘伝のタレとの相性が絶妙です。</p> <p>具材には厳選した豚肉を使用し、秘伝のタレとの相性が絶妙です。</p>
<h2>みたらし団子</h2> <h2>みたらし団子</h2>
<img src="168648729942700000.jpg" alt="みたらし団子"> <img src="static/images/168648729942700000.jpg" alt="みたらし団子">
<p>優しい甘さが魅力のみたらし団子です。</p> <p>優しい甘さが魅力のみたらし団子です。</p>
<p>もちもちとした食感と、特製のみたらしソースが絶妙なハーモニーを奏でます。</p> <p>もちもちとした食感と、特製のみたらしソースが絶妙なハーモニーを奏でます。</p>
</div> </div>
@ -163,7 +41,7 @@
<script> <script>
 document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {
const menuToggle = document.getElementById('menu-toggle'); const menuToggle = document.getElementById('menu-toggle');
const menu = document.getElementById('menu'); const menu = document.getElementById('menu');
@ -175,12 +53,6 @@
} }
}); });
}); });
// ロゴマークをクリックしたときにホームに戻るイベントを追加
const logoElement = document.getElementById("logo");
logoElement.addEventListener("click", function() {
window.location.href = "nishinoya.html";
});
</script> </script>
</body> </body>
</html> </html>

View File

@ -1,243 +0,0 @@
<!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;
}
p {
margin-bottom: 20px;
font-size: 16px;
line-height: 1.5;
color: #555;
}
.product {
display: grid;
grid-template-columns: 1fr 2fr;
grid-gap: 20px;
margin-bottom: 20px;
}
.product img {
width: 100%;
max-width: 400px;
border-radius: 5px;
}
.product h3 {
margin: 0;
font-size: 24px;
color: #333;
}
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>
<img id="top-image" src="1686401596506.jpg" alt="トップページ画像" width="100%" style="display: block; margin: 20px auto;">
<div id="content">
<h2>販売商品</h2>
<div class="product">
<img src="168648729145000000.jpg" alt="極限豚丼">
<div>
<h3>極限豚丼 300円</h3>
<p>濃厚な味わいが特徴の極限豚丼です。</p>
</div>
</div>
<div class="product">
<img src="168648729942700000.jpg" alt="みたらし団子">
<div>
<h3>みたらし団子 100円</h3>
<p>優しい甘さが魅力のみたらし団子です。</p>
</div>
</div>
<h2>キャッチコピー - 邦を開く味わい</h2>
<p>「開邦雄飛」 開邦高校の校訓であるこの言葉のよう、邦を開き世界へ羽ばたく私たちの志を表現しています。</p>
</div>
<p>アクセスカウンター: <span id="counter">0</span></p>
<p>累計アクセス数: <span id="total-counter">0</span></p>
<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";
});
// アクセスカウンターのプログラム
let counter = 0;
const counterElement = document.getElementById("counter");
const totalCounterElement = document.getElementById("total-counter");
function incrementCounter() {
counter++;
counterElement.textContent = counter;
// ブラウザのローカルストレージにカウンターの値を保存
localStorage.setItem("accessCounter", counter);
}
// ページが読み込まれた時にカウンターを初期化
window.addEventListener("load", function() {
// ローカルストレージからカウンターの値を取得
const storedCounter = localStorage.getItem("accessCounter");
if (storedCounter) {
counter = parseInt(storedCounter);
counterElement.textContent = counter;
}
});
// ウィンドウが閉じられる時に累計アクセス数を更新
window.addEventListener("beforeunload", function() {
// ブラウザのローカルストレージから累計アクセス数を取得
const storedTotalCounter = localStorage.getItem("totalAccessCounter");
let totalCounter = 0;
if (storedTotalCounter) {
totalCounter = parseInt(storedTotalCounter);
}
totalCounter += counter;
totalCounterElement.textContent = totalCounter;
// 更新した累計アクセス数をブラウザのローカルストレージに保存
localStorage.setItem("totalAccessCounter", totalCounter);
});
</script>
<footer>
&copy; 2023 二四家 All rights reserved.
</footer>
</body>
</html>

View File

@ -1,7 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /photo3.jpg was not found on this server.</p>
</body></html>

View File

@ -1,7 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /photo4.jpg was not found on this server.</p>
</body></html>

View File

@ -1,7 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /photo5.jpg was not found on this server.</p>
</body></html>

View File

@ -1,7 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /photo6.jpg was not found on this server.</p>
</body></html>

View File

@ -4,123 +4,17 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>二四家(にしのや)</title> <title>二四家(にしのや)</title>
<style> <link href="static/css/default.css" rel="stylesheet">
body { <link href="static/css/common.css" rel="stylesheet">
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> </head>
<body> <body>
<header> <header>
<div id="logo-container"> <div id="logo-container">
<img id="logo" src="1686296908880.jpg" alt="二四家ロゴ" width="200px"> <a href="index.html"><img id="logo" src="static/images/1686296908880.jpg" alt="二四家ロゴ" width="200px"></a>
<h2> </h2>
</div> </div>
<nav>
<input type="checkbox" id="menu-toggle" class="menu-toggle"> <input type="checkbox" id="menu-toggle" class="menu-toggle">
<label for="menu-toggle" class="menu-toggle-label">&#9776;</label> <label for="menu-toggle" class="menu-toggle-label">&#9776;</label>
<nav>
<ul id="menu" class="menu"> <ul id="menu" class="menu">
<li><a href="menu_details.html">メニューの詳細</a></li> <li><a href="menu_details.html">メニューの詳細</a></li>
<li><a href="specialty.html">御来店の際のご注意</a></li> <li><a href="specialty.html">御来店の際のご注意</a></li>
@ -134,12 +28,15 @@
<p>二四家では特別な思い出を作るためにフォトブースを設置しています。</p> <p>二四家では特別な思い出を作るためにフォトブースを設置しています。</p>
<div class="photo-gallery"> <div class="photo-gallery">
<img src="katsuaki.jpg" alt="写真1"> <img src="static/images/katsuaki.jpg" alt="写真1">
<img src="1686813172839.jpg" alt="写真2"> <img src="static/images/1686813172839.jpg" alt="写真2">
<!-- 写真を追加するか削除 -->
<!--
<img src="photo3.html" alt="写真3"> <img src="photo3.html" alt="写真3">
<img src="photo4.html" alt="写真4"> <img src="photo4.html" alt="写真4">
<img src="photo5.html" alt="写真5"> <img src="photo5.html" alt="写真5">
<img src="photo6.html" alt="写真6"> <img src="photo6.html" alt="写真6">
-->
</div> </div>
</div> </div>
@ -148,7 +45,7 @@
</footer> </footer>
<script> <script>
 document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {
const menuToggle = document.getElementById('menu-toggle'); const menuToggle = document.getElementById('menu-toggle');
const menu = document.getElementById('menu'); const menu = document.getElementById('menu');
@ -160,12 +57,6 @@
} }
}); });
}); });
// ロゴマークをクリックしたときにホームに戻るイベントを追加
const logoElement = document.getElementById("logo");
logoElement.addEventListener("click", function() {
window.location.href = "nishinoya.html";
});
</script> </script>
</body> </body>
</html> </html>

View File

@ -4,118 +4,16 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>二四家(にしのや)</title> <title>二四家(にしのや)</title>
<style> <link href="static/css/default.css" rel="stylesheet">
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;
}
p {
margin-bottom: 20px;
font-size: 16px;
line-height: 1.5;
color: #555;
}
footer {
background-color: #333;
padding: 20px;
text-align: center;
color: #fff;
}
</style>
</head> </head>
<body> <body>
<header> <header>
<div id="logo-container"> <div id="logo-container">
<img id="logo" src="1686296908880.jpg" alt="二四家ロゴ" width="200px"> <a href="index.html"><img id="logo" src="static/images/1686296908880.jpg" alt="二四家ロゴ" width="200px"></a>
<h2> </h2>
</div> </div>
<nav>
<input type="checkbox" id="menu-toggle" class="menu-toggle"> <input type="checkbox" id="menu-toggle" class="menu-toggle">
<label for="menu-toggle" class="menu-toggle-label">&#9776;</label> <label for="menu-toggle" class="menu-toggle-label">&#9776;</label>
<nav>
<ul id="menu" class="menu"> <ul id="menu" class="menu">
<li><a href="menu_details.html">メニューの詳細</a></li> <li><a href="menu_details.html">メニューの詳細</a></li>
<li><a href="specialty.html">御来店の際のご注意</a></li> <li><a href="specialty.html">御来店の際のご注意</a></li>
@ -141,8 +39,7 @@
</footer> </footer>
<script> <script>
document.addEventListener('DOMContentLoaded', function() {
 document.addEventListener('DOMContentLoaded', function() {
const menuToggle = document.getElementById('menu-toggle'); const menuToggle = document.getElementById('menu-toggle');
const menu = document.getElementById('menu'); const menu = document.getElementById('menu');
@ -154,12 +51,6 @@
} }
}); });
}); });
// ロゴマークをクリックしたときにホームに戻るイベントを追加
const logoElement = document.getElementById("logo");
logoElement.addEventListener("click", function() {
window.location.href = "nishinoya.html";
});
</script> </script>
</body> </body>
</html> </html>

30
static/css/common.css Normal file
View File

@ -0,0 +1,30 @@
.product {
display: grid;
grid-template-columns: 1fr 2fr;
grid-gap: 20px;
margin-bottom: 20px;
}
.product img {
width: 100%;
max-width: 400px;
border-radius: 5px;
}
.product h3 {
margin: 0;
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;
}

99
static/css/default.css Normal file
View File

@ -0,0 +1,99 @@
html,
body {
height: 100%;
}
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 img {
display: block;
}
#logo {
margin-bottom: 5px;
}
/* トグルボタンのスタイル */
.menu-toggle {
display: none;
}
.menu-toggle-label {
display: block;
cursor: pointer;
padding: 10px;
color: #fff;
font-size: 24px;
}
/* メニューのスタイル */
.menu {
display: none;
position: absolute;
right: 10px;
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;
}
p {
margin-bottom: 20px;
font-size: 16px;
line-height: 1.5;
color: #555;
}
footer {
position: sticky;
top: 100vh;
background-color: #333;
padding: 20px;
text-align: center;
color: #fff;
}

View File

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

View File

Before

Width:  |  Height:  |  Size: 662 KiB

After

Width:  |  Height:  |  Size: 662 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 194 KiB

After

Width:  |  Height:  |  Size: 194 KiB

View File

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB