This commit is contained in:
ns77@siliconpin.com
2025-09-03 14:37:14 +00:00
parent 86c5fb392e
commit 26fbcb1fb5

View File

@@ -1,54 +1,88 @@
<style> <style>
.agent-body { body {
margin: 0; margin: 0;
padding: 0; font-family: Arial, sans-serif;
font-family: Arial, sans-serif; }
overflow-y: auto;
/* ✅ Keep content above bottom nav */ /* ===== Header ===== */
padding-bottom: calc(55px + 40px); /* nav height + safe gap */ .agent-header {
} position: fixed;
top: 0;
left: 0;
right: 0;
height: 60px;
background: #e95420;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
font-weight: bold;
z-index: 1000;
}
.agent-bottom-nav { /* ===== Page Content ===== */
position: fixed; .agent-body {
bottom: 40px; /* ✅ keep above phone navigation bar */ margin-top: 60px; /* ✅ header height */
left: 0; padding: 15px;
right: 0; padding-bottom: calc(55px + env(safe-area-inset-bottom)); /* ✅ bottom nav height + safe area */
height: 55px; box-sizing: border-box;
background: #e95420; min-height: 100vh;
display: flex; }
justify-content: space-around;
align-items: center;
border-top: 1px solid rgba(255,255,255,0.2);
z-index: 999;
/* Optional floating style */ /* ===== Bottom Nav ===== */
border-radius: 12px; .agent-bottom-nav {
margin: 0 10px; position: fixed;
box-shadow: 0 2px 6px rgba(0,0,0,0.2); bottom: env(safe-area-inset-bottom); /* ✅ stays above phone navigation bar */
} left: 0;
right: 0;
height: 55px;
background: #e95420;
display: flex;
justify-content: space-around;
align-items: center;
border-top: 1px solid rgba(255, 255, 255, 0.2);
z-index: 999;
.agent-bottom-link { /* Optional floating look */
color: #fff; border-radius: 12px 12px 0 0;
text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
font-size: 14px; }
text-decoration: none;
flex: 1; .agent-bottom-link {
padding: 5px 0; color: #fff;
} text-align: center;
.agent-bottom-link i { font-size: 14px;
display: block; text-decoration: none;
font-size: 15px; flex: 1;
margin-bottom: 2px; padding: 5px 0;
} }
.agent-bottom-link.active { .agent-bottom-link i {
background: rgba(255,255,255,0.2); display: block;
border-radius: 8px; font-size: 15px;
} margin-bottom: 2px;
}
.agent-bottom-link.active {
background: rgba(255, 255, 255, 0.2);
border-radius: 8px;
}
</style> </style>
<!-- Bottom Navigation --> <!-- ===== Header ===== -->
<?php if(isset($_SESSION) && !empty($_SESSION['user_id'])){ ?> <div class="agent-header">
Agent Panel
</div>
<!-- ===== Content ===== -->
<div class="agent-body">
<h2>Dashboard Content</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque habitant morbi.</p>
<p>Scroll down to test bottom nav spacing...</p>
<p style="margin-bottom:1000px;">Dummy long content...</p>
</div>
<!-- ===== Bottom Navigation ===== -->
<?php if (isset($_SESSION) && !empty($_SESSION['user_id'])) { ?>
<div class="agent-bottom-nav"> <div class="agent-bottom-nav">
<a href="/Agent/Dashboard" class="agent-bottom-link active"> <a href="/Agent/Dashboard" class="agent-bottom-link active">
<i class="fa-solid fa-house"></i> <i class="fa-solid fa-house"></i>