Spaces:
Running
Running
- components/navbar.js +5 -2
- index.html +6 -20
- recipes.html +6 -4
components/navbar.js
CHANGED
|
@@ -5,14 +5,17 @@ class CustomNavbar extends HTMLElement {
|
|
| 5 |
<style>
|
| 6 |
nav {
|
| 7 |
background: #111;
|
| 8 |
-
padding: 15px;
|
| 9 |
display: flex;
|
| 10 |
justify-content: center;
|
| 11 |
gap: 20px;
|
| 12 |
border-bottom: 3px solid #ff6600;
|
| 13 |
margin-bottom: 20px;
|
|
|
|
|
|
|
|
|
|
| 14 |
}
|
| 15 |
-
|
| 16 |
color: #ff9500;
|
| 17 |
text-decoration: none;
|
| 18 |
font-size: 20px;
|
|
|
|
| 5 |
<style>
|
| 6 |
nav {
|
| 7 |
background: #111;
|
| 8 |
+
padding: 15px;
|
| 9 |
display: flex;
|
| 10 |
justify-content: center;
|
| 11 |
gap: 20px;
|
| 12 |
border-bottom: 3px solid #ff6600;
|
| 13 |
margin-bottom: 20px;
|
| 14 |
+
position: sticky;
|
| 15 |
+
top: 0;
|
| 16 |
+
z-index: 1000;
|
| 17 |
}
|
| 18 |
+
a {
|
| 19 |
color: #ff9500;
|
| 20 |
text-decoration: none;
|
| 21 |
font-size: 20px;
|
index.html
CHANGED
|
@@ -371,10 +371,10 @@
|
|
| 371 |
<div class="button-container">
|
| 372 |
<button id="commentBtn" class="popup-btn" onclick="showPopup('β οΈ Substitution Alert: Replace Yellow Disbud instead of White fuji!')">Show Comment</button>
|
| 373 |
<button id="carryoverBtn" class="popup-btn" onclick="toggleCarryover()">Show Carryover</button>
|
|
|
|
| 374 |
</div>
|
| 375 |
</header>
|
| 376 |
-
|
| 377 |
-
<!-- Stats -->
|
| 378 |
<div class="stats">
|
| 379 |
<div class="stat-box">
|
| 380 |
<span class="stat-label">Total Weekly</span>
|
|
@@ -426,25 +426,11 @@
|
|
| 426 |
<!-- RASS Late -->
|
| 427 |
<div class="section">
|
| 428 |
<h2 style="color: #ff6b6b;">RASS Late</h2>
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
<div class="number-controls">
|
| 432 |
-
<button class="decrement-btn">-</button>
|
| 433 |
-
<span class="number" contenteditable="true">392</span>
|
| 434 |
-
<button class="increment-btn">+</button>
|
| 435 |
-
</div>
|
| 436 |
-
</div>
|
| 437 |
-
<div class="item" style="position: relative;"><span class="label">Signature B</span> <span class="number" contenteditable="true">294</span></div>
|
| 438 |
<div class="item" style="position: relative;"><span class="label">Premium A</span> <span class="number" contenteditable="true">395</span></div>
|
| 439 |
-
<div class="item" style="position: relative;">
|
| 440 |
-
|
| 441 |
-
<div class="number-controls">
|
| 442 |
-
<button class="decrement-btn">-</button>
|
| 443 |
-
<span class="number" contenteditable="true">290</span>
|
| 444 |
-
<button class="increment-btn">+</button>
|
| 445 |
-
</div>
|
| 446 |
-
</div>
|
| 447 |
-
<div class="item" style="position: relative;"><span class="label">Everyday Market bqt</span> <span class="number" contenteditable="true">708</span></div>
|
| 448 |
<div class="item" style="position: relative;"><span class="label">Premuim C</span> <span class="number" contenteditable="true">60</span></div>
|
| 449 |
|
| 450 |
|
|
|
|
| 371 |
<div class="button-container">
|
| 372 |
<button id="commentBtn" class="popup-btn" onclick="showPopup('β οΈ Substitution Alert: Replace Yellow Disbud instead of White fuji!')">Show Comment</button>
|
| 373 |
<button id="carryoverBtn" class="popup-btn" onclick="toggleCarryover()">Show Carryover</button>
|
| 374 |
+
<button id="recipesBtn" class="popup-btn" onclick="window.location.href='recipes.html'">Recipes</button>
|
| 375 |
</div>
|
| 376 |
</header>
|
| 377 |
+
<!-- Stats -->
|
|
|
|
| 378 |
<div class="stats">
|
| 379 |
<div class="stat-box">
|
| 380 |
<span class="stat-label">Total Weekly</span>
|
|
|
|
| 426 |
<!-- RASS Late -->
|
| 427 |
<div class="section">
|
| 428 |
<h2 style="color: #ff6b6b;">RASS Late</h2>
|
| 429 |
+
<div class="item" style="position: relative;"><span class="label">Signature A</span> <span class="number" contenteditable="true">392</span></div>
|
| 430 |
+
<div class="item" style="position: relative;"><span class="label">Signature B</span> <span class="number" contenteditable="true">294</span></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 431 |
<div class="item" style="position: relative;"><span class="label">Premium A</span> <span class="number" contenteditable="true">395</span></div>
|
| 432 |
+
<div class="item" style="position: relative;"><span class="label">Premium B</span> <span class="number" contenteditable="true">290</span></div>
|
| 433 |
+
<div class="item" style="position: relative;"><span class="label">Everyday Market bqt</span> <span class="number" contenteditable="true">708</span></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 434 |
<div class="item" style="position: relative;"><span class="label">Premuim C</span> <span class="number" contenteditable="true">60</span></div>
|
| 435 |
|
| 436 |
|
recipes.html
CHANGED
|
@@ -6,7 +6,8 @@
|
|
| 6 |
<title>Recipe Cards</title>
|
| 7 |
<link rel="stylesheet" href="style.css">
|
| 8 |
<link href="https://fonts.googleapis.com/css2?family=Creepster&display=swap" rel="stylesheet">
|
| 9 |
-
<
|
|
|
|
| 10 |
body {
|
| 11 |
background: #050505 url('https://static.photos/black/1200x630/19') no-repeat center center fixed;
|
| 12 |
background-size: cover;
|
|
@@ -143,7 +144,8 @@ border-radius: 15px;
|
|
| 143 |
</style>
|
| 144 |
</head>
|
| 145 |
<body>
|
| 146 |
-
<
|
|
|
|
| 147 |
<h1>π§ββοΈ Spooky Recipes ββοΈ</h1>
|
| 148 |
<p>Click any recipe to mark as current production</p>
|
| 149 |
</div>
|
|
@@ -379,9 +381,9 @@ border-radius: 15px;
|
|
| 379 |
</div>
|
| 380 |
</div>
|
| 381 |
</div>
|
| 382 |
-
|
| 383 |
<script>
|
| 384 |
-
|
| 385 |
document.querySelectorAll('.recipe-card').forEach(card => {
|
| 386 |
card.addEventListener('click', function() {
|
| 387 |
// Remove current class from all cards
|
|
|
|
| 6 |
<title>Recipe Cards</title>
|
| 7 |
<link rel="stylesheet" href="style.css">
|
| 8 |
<link href="https://fonts.googleapis.com/css2?family=Creepster&display=swap" rel="stylesheet">
|
| 9 |
+
<script src="components/navbar.js"></script>
|
| 10 |
+
<style>
|
| 11 |
body {
|
| 12 |
background: #050505 url('https://static.photos/black/1200x630/19') no-repeat center center fixed;
|
| 13 |
background-size: cover;
|
|
|
|
| 144 |
</style>
|
| 145 |
</head>
|
| 146 |
<body>
|
| 147 |
+
<custom-navbar></custom-navbar>
|
| 148 |
+
<div class="recipe-header">
|
| 149 |
<h1>π§ββοΈ Spooky Recipes ββοΈ</h1>
|
| 150 |
<p>Click any recipe to mark as current production</p>
|
| 151 |
</div>
|
|
|
|
| 381 |
</div>
|
| 382 |
</div>
|
| 383 |
</div>
|
| 384 |
+
<script src="script.js"></script>
|
| 385 |
<script>
|
| 386 |
+
// Make recipe cards clickable to mark as current
|
| 387 |
document.querySelectorAll('.recipe-card').forEach(card => {
|
| 388 |
card.addEventListener('click', function() {
|
| 389 |
// Remove current class from all cards
|