Fix mobile menu overlapping the homepage banner.

Raise drawer z-index above the slider and stretch banner images full width.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-06 12:58:23 +05:00
parent ddd898078c
commit cde790c690
4 changed files with 137 additions and 3580 deletions

3564
frontend/src/css/app.css Executable file → Normal file

File diff suppressed because one or more lines are too long

126
frontend/src/index.html Executable file → Normal file
View File

@@ -20,11 +20,130 @@
<title class="translate-text">TÜRKMENISTANYŇ "TÜRKMENBAŞY" PAÝDARLAR TÄJIRÇILIK BANKY</title>
<link rel="icon" type="image/x-icon" href="/images/tbb_logo.svg">
<link rel="stylesheet" href="/css/app.css?v=2">
<link rel="stylesheet" href="/css/app.css?v=7">
<script defer src="https://track.webulgam.com/script.js" data-website-id="79e22534-b5d7-4b5a-849c-c0f338c1018d"></script>
<style>
#chatbot-widget { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; }
#chatbot-fab {
background: #67b03d;
color: #fff;
padding: 0.75rem 1rem;
border-radius: 9999px;
box-shadow: 0 4px 14px rgba(0,0,0,.2);
font-size: 0.875rem;
font-weight: 600;
border: none;
cursor: pointer;
}
#chatbot-fab:hover { filter: brightness(1.05); }
#chatbot-panel {
position: absolute;
right: 0;
bottom: calc(100% + 0.75rem);
width: min(420px, calc(100vw - 2rem));
height: 580px;
background: #fff;
border-radius: 0.75rem;
box-shadow: 0 8px 30px rgba(0,0,0,.18);
border: 1px solid #e5e7eb;
overflow: hidden;
}
#chatbot-panel:not(.hidden) {
display: flex;
flex-direction: column;
}
#chatbot-panel.hidden {
display: none;
}
#chat-messages {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
display: flex;
flex-direction: column;
gap: 0.5rem;
overscroll-behavior: contain;
}
#chat-questions {
flex-shrink: 0;
max-height: 180px;
overflow-y: auto;
overflow-x: hidden;
border-top: 1px solid #e5e7eb;
background: #fafafa;
padding: 0.5rem 0.75rem;
overscroll-behavior: contain;
}
#chat-questions:empty {
display: none;
}
.msg-bot { background: #f3f4f6; }
.msg-user { background: #67b03d; color: #fff; margin-left: auto; }
.chatbot-title { color: #67b03d; }
.chat-question-group-label {
font-size: 0.7rem;
font-weight: 600;
color: #6b7280;
margin-top: 0.5rem;
margin-bottom: 0.25rem;
}
.chat-question-group-label:first-child { margin-top: 0; }
.chat-question-row {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
margin-bottom: 0.25rem;
}
.chat-question-btn {
font-size: 0.75rem;
line-height: 1.2;
padding: 0.35rem 0.6rem;
border-radius: 9999px;
border: 1px solid #67b03d;
color: #67b03d;
background: #fff;
cursor: pointer;
text-align: left;
}
.chat-question-btn:hover { background: #f0fdf4; }
.chat-question-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-more-link {
display: inline-block;
margin-top: 0.5rem;
font-size: 0.8rem;
font-weight: 600;
color: #67b03d;
text-decoration: underline;
}
.chat-more-link:hover { color: #4a8a2a; }
</style>
</head>
<body>
<div id="chatbot-widget">
<div id="chatbot-panel" class="hidden">
<div class="flex items-center gap-2 px-3 py-2 border-b bg-gray-50">
<span class="text-sm font-semibold chatbot-title flex-1">TBBANK kömek</span>
<button type="button" data-lang="tm" class="lang-btn btn btn-xs btn-outline border-[#67b03d]">TM</button>
<button type="button" data-lang="ru" class="lang-btn btn btn-xs btn-outline border-[#67b03d]">RU</button>
<button type="button" id="chatbot-close" class="btn btn-xs btn-ghost" aria-label="Close">✕</button>
</div>
<div id="chat-messages" class="p-3 flex flex-col gap-2"></div>
<div id="chat-questions"></div>
<form id="chat-form" class="flex gap-2 p-3 border-t bg-gray-50">
<input
id="chat-input"
type="text"
class="input input-bordered input-sm flex-1"
placeholder="Soragyňyzy ýazyň…"
autocomplete="off"
>
<button type="submit" class="btn btn-sm text-white" style="background:#67b03d">Iber</button>
</form>
</div>
<!-- <button type="button" id="chatbot-fab" aria-expanded="false" title="Sorag-jogap boty">Soraglar</button> -->
</div>
<section class="hidden lg:block mt-2 px-6 py-4">
<header class="max-w-6xl mx-auto flex justify-between items-center">
<div class="flex items-center gap-2">
@@ -331,6 +450,7 @@
</footer>
</body>
<script src="/js/slider.js?v=3"></script>
<script src="/js/app.js?v=2"></script>
<script src="/js/slider.js?v=10"></script>
<script src="/js/app.js?v=4"></script>
<!-- <script src="/js/chatbot.js?v=8"></script> -->
</html>

View File

@@ -199,7 +199,7 @@ async function fetchSliders() {
}">
<img
src="${baseUrl() + slider.imagePath}"
class="mx-auto w-fit cursor-pointer" alt="slider"
class="mx-auto w-full cursor-pointer" alt="slider"
>
</a>
</div>