Working on sidebar.php to be in navbar, first attempt.

This commit is contained in:
2026-09-01 14:43:36 -05:00
parent 02a800232c
commit 76338962c9
5 changed files with 13 additions and 1 deletions
+1
View File
@@ -9,5 +9,6 @@
</head>
<body>
<?php include 'nav.php'; ?>
</body>
</html>
Regular → Executable
View File

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Regular → Executable
+4 -1
View File
@@ -1,5 +1,5 @@
<?php
$current = basename($_SERVER['PHP_SELF']);
$current = basename($_SERVER['SCRIPT_NAME']);
$menu_items = [
'index.php' => ['Home', 'logo.png'],
'alchemyIngredientPage.php' => ['Alchemy', 'alchemy.png'],
@@ -12,6 +12,9 @@ $menu_items = [
?>
<header class="site-header">
<button id="sidebar-toggle" class="toggle-btn" aria-label="Toggle Sidebar">
☰
</button>
<nav class="navbar" aria-label="Profession Navigation">
<ul class="navbar__list">
<?php foreach ($menu_items as $file => $info): ?>
+8
View File
@@ -0,0 +1,8 @@
<aside id="sidebar" class="sidebar">
<ul class="sidebar__list">
<li><a href="#" class="sidebar__link"><span>🏠</span> <span class="link-text">Dashboard</span></a></li>
<li><a href="#" class="sidebar__link"><span>📦</span> <span class="link-text">Inventory</span></a></li>
<li><a href="#" class="sidebar__link"><span>⚖️</span> <span class="link-text">Auction House</span></a></li>
<li><a href="#" class="sidebar__link"><span>⚙️</span> <span class="link-text">Settings</span></a></li>
</ul>
</aside>
Regular → Executable
View File