261 lines
11 KiB
PHP
261 lines
11 KiB
PHP
<footer class="mt-5 py-5 border-top border-secondary bg-darker">
|
|
<div class="container">
|
|
<div class="row g-4 mb-5">
|
|
<div class="col-lg-4 col-md-12">
|
|
<div class="logo-container mb-3">
|
|
<div class="logo-icon">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M12 2L2 7L12 12L22 7L12 2Z" fill="white"/>
|
|
<path d="M2 17L12 22L22 17" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
<path d="M2 12L12 17L22 12" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
</svg>
|
|
</div>
|
|
<span class="logo-text">Byro</span>
|
|
</div>
|
|
<p class="text-muted small mb-4">
|
|
Byro is the world's most trusted digital asset exchange for individuals and institutions.
|
|
Trade, store, and earn cryptocurrency with confidence.
|
|
</p>
|
|
<div class="social-links d-flex gap-3 fs-5 text-muted">
|
|
<a href="#" class="text-reset"><i class="bi bi-twitter-x"></i></a>
|
|
<a href="#" class="text-reset"><i class="bi bi-telegram"></i></a>
|
|
<a href="#" class="text-reset"><i class="bi bi-discord"></i></a>
|
|
<a href="#" class="text-reset"><i class="bi bi-facebook"></i></a>
|
|
<a href="#" class="text-reset"><i class="bi bi-instagram"></i></a>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-2 col-md-4">
|
|
<h6 class="fw-bold mb-3"><?php echo __('footer_about'); ?></h6>
|
|
<ul class="list-unstyled small lh-lg">
|
|
<li><a href="/about.php" class="text-muted text-decoration-none"><?php echo __('about_us'); ?></a></li>
|
|
<li><a href="/news.php" class="text-muted text-decoration-none"><?php echo __('news'); ?></a></li>
|
|
<li><a href="/tos.php" class="text-muted text-decoration-none"><?php echo __('terms'); ?></a></li>
|
|
<li><a href="/help.php" class="text-muted text-decoration-none"><?php echo __('help'); ?></a></li>
|
|
<li><a href="/legal.php" class="text-muted text-decoration-none"><?php echo __('privacy'); ?></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="col-lg-2 col-md-4">
|
|
<h6 class="fw-bold mb-3"><?php echo __('footer_product'); ?></h6>
|
|
<ul class="list-unstyled small lh-lg">
|
|
<li><a href="/binary.php" class="text-muted text-decoration-none"><?php echo __('second_contract'); ?></a></li>
|
|
<li><a href="/trade.php" class="text-muted text-decoration-none"><?php echo __('spot'); ?></a></li>
|
|
<li><a href="/contract.php" class="text-muted text-decoration-none"><?php echo __('contract'); ?></a></li>
|
|
<li><a href="/swap.php" class="text-muted text-decoration-none"><?php echo __('swap'); ?></a></li>
|
|
<li><a href="/mining.php" class="text-muted text-decoration-none"><?php echo __('mining'); ?></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="col-lg-2 col-md-4">
|
|
<h6 class="fw-bold mb-3"><?php echo __('footer_support'); ?></h6>
|
|
<ul class="list-unstyled small lh-lg">
|
|
<li><a href="/support.php" class="text-muted text-decoration-none"><?php echo __('submit_request'); ?></a></li>
|
|
<li><a href="/api.php" class="text-muted text-decoration-none"><?php echo __('api_doc'); ?></a></li>
|
|
<li><a href="/fees.php" class="text-muted text-decoration-none"><?php echo __('fee_structure'); ?></a></li>
|
|
<li><a href="/app.php" class="text-muted text-decoration-none"><?php echo __('app_download'); ?></a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="border-top border-secondary pt-4 d-flex flex-column flex-md-row justify-content-between align-items-center gap-3">
|
|
<div class="small text-muted">
|
|
<?php echo __('copyright'); ?>
|
|
</div>
|
|
<div class="d-flex gap-4 small text-muted">
|
|
<span class="d-flex align-items-center gap-2 text-success">
|
|
<span class="status-indicator"></span>
|
|
<?php echo __('status_normal'); ?>
|
|
</span>
|
|
<a href="/cookie-policy.php" class="text-reset text-decoration-none"><?php echo __('cookie_policy'); ?></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<!-- Mobile Bottom Navigation -->
|
|
<div class="mobile-nav d-md-none border-top border-secondary bg-surface">
|
|
<a href="/" class="<?= $_SERVER['PHP_SELF'] == '/index.php' ? 'active' : '' ?>">
|
|
<i class="bi bi-house-door"></i>
|
|
<span><?= __('home') ?></span>
|
|
</a>
|
|
<a href="/market.php" class="<?= $_SERVER['PHP_SELF'] == '/market.php' ? 'active' : '' ?>">
|
|
<i class="bi bi-graph-up"></i>
|
|
<span><?= __('market_name') ?></span>
|
|
</a>
|
|
<a href="/trade.php" class="<?= in_array($_SERVER['PHP_SELF'], ['/trade.php', '/contract.php', '/binary.php']) ? 'active' : '' ?>">
|
|
<i class="bi bi-arrow-left-right"></i>
|
|
<span><?= __('trading') ?></span>
|
|
</a>
|
|
<a href="/profile.php" class="<?= $_SERVER['PHP_SELF'] == '/profile.php' ? 'active' : '' ?>">
|
|
<i class="bi bi-wallet2"></i>
|
|
<span><?= __('assets') ?></span>
|
|
</a>
|
|
</div>
|
|
|
|
<style>
|
|
.mobile-nav {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 65px;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
z-index: 10000;
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
background: rgba(18, 18, 18, 0.95) !important;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
.mobile-nav a {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-decoration: none;
|
|
color: var(--text-muted);
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
transition: all 0.3s;
|
|
}
|
|
.mobile-nav a i {
|
|
font-size: 20px;
|
|
margin-bottom: 2px;
|
|
}
|
|
.mobile-nav a.active {
|
|
color: var(--primary);
|
|
}
|
|
/* Hide desktop elements on mobile if needed */
|
|
@media (max-width: 768px) {
|
|
body { padding-bottom: 80px; }
|
|
#cs-widget { bottom: 80px !important; }
|
|
}
|
|
</style>
|
|
|
|
<!-- Customer Service Widget -->
|
|
<div id="cs-widget" style="position: fixed; bottom: 30px; right: 30px; z-index: 9999;">
|
|
<button class="btn btn-primary rounded-circle shadow-lg p-0 d-flex align-items-center justify-content-center transition-all" id="cs-toggle" style="width: 70px; height: 70px; border: none; background: linear-gradient(135deg, #00c6ff, #0072ff); box-shadow: 0 10px 20px rgba(0, 114, 255, 0.4);">
|
|
<div class="position-relative d-flex align-items-center justify-content-center">
|
|
<i class="bi bi-person-fill text-white position-absolute" style="font-size: 1.2rem; margin-top: 4px;"></i>
|
|
<i class="bi bi-headset text-white" style="font-size: 2.4rem;"></i>
|
|
</div>
|
|
</button>
|
|
<div class="pulse-ring"></div>
|
|
</div>
|
|
|
|
<style>
|
|
.pulse-ring {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 50%;
|
|
background: #0062ff;
|
|
opacity: 0.5;
|
|
animation: pulse 2s infinite;
|
|
z-index: -1;
|
|
}
|
|
@keyframes pulse {
|
|
0% { transform: scale(1); opacity: 0.5; }
|
|
100% { transform: scale(1.5); opacity: 0; }
|
|
}
|
|
#cs-toggle:hover {
|
|
transform: scale(1.1) rotate(5deg);
|
|
box-shadow: 0 10px 25px rgba(0, 98, 255, 0.4) !important;
|
|
}
|
|
</style>
|
|
|
|
<div id="cs-box" class="bg-surface border border-secondary shadow-lg d-none" style="position: fixed; bottom: 100px; right: 30px; width: 350px; height: 500px; border-radius: 20px; z-index: 9999; display: flex; flex-direction: column; overflow: hidden; background: #161a1e;">
|
|
<div class="bg-primary p-3 d-flex justify-content-between align-items-center text-white">
|
|
<div class="d-flex align-items-center gap-2">
|
|
<div class="bg-white rounded-circle" style="width: 10px; height: 10px;"></div>
|
|
<span class="fw-bold"><?= __('online_support') ?></span>
|
|
</div>
|
|
<button class="btn btn-sm text-white border-0" id="cs-close"><i class="bi bi-x-lg"></i></button>
|
|
</div>
|
|
<div id="cs-messages" class="flex-grow-1 p-3 overflow-y-auto" style="scrollbar-width: none;">
|
|
<div class="text-center text-muted small mb-3"><?= __('welcome_support') ?></div>
|
|
</div>
|
|
<div class="p-3 border-top border-secondary bg-black bg-opacity-20">
|
|
<form id="cs-form" class="d-flex gap-2">
|
|
<input type="text" id="cs-input" class="form-control form-control-sm bg-dark border-secondary text-white" placeholder="<?= __('type_message') ?>">
|
|
<button type="submit" class="btn btn-primary btn-sm px-3"><i class="bi bi-send-fill"></i></button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
const csToggle = document.getElementById('cs-toggle');
|
|
const csBox = document.getElementById('cs-box');
|
|
const csClose = document.getElementById('cs-close');
|
|
const csForm = document.getElementById('cs-form');
|
|
const csInput = document.getElementById('cs-input');
|
|
const csMessages = document.getElementById('cs-messages');
|
|
|
|
csToggle.addEventListener('click', () => {
|
|
csBox.classList.toggle('d-none');
|
|
scrollToBottom();
|
|
});
|
|
|
|
csClose.addEventListener('click', () => csBox.classList.add('d-none'));
|
|
|
|
function scrollToBottom() {
|
|
csMessages.scrollTop = csMessages.scrollHeight;
|
|
}
|
|
|
|
csForm.addEventListener('submit', async (e) => {
|
|
e.preventDefault();
|
|
const msg = csInput.value.trim();
|
|
if (!msg) return;
|
|
|
|
appendMessage('user', msg);
|
|
csInput.value = '';
|
|
|
|
try {
|
|
await fetch('/api/chat.php?action=send_message', {
|
|
method: 'POST',
|
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
body: `message=${encodeURIComponent(msg)}`
|
|
});
|
|
} catch (err) {
|
|
console.error('Failed to send message:', err);
|
|
}
|
|
});
|
|
|
|
function appendMessage(sender, text) {
|
|
const div = document.createElement('div');
|
|
div.className = `mb-2 d-flex ${sender === 'user' ? 'justify-content-end' : 'justify-content-start'}`;
|
|
div.innerHTML = `
|
|
<div class="p-2 px-3 rounded-4 small ${sender === 'user' ? 'bg-primary text-white' : 'bg-dark text-muted border border-secondary'}" style="max-width: 80%;">
|
|
${text}
|
|
</div>
|
|
`;
|
|
csMessages.appendChild(div);
|
|
scrollToBottom();
|
|
}
|
|
|
|
// Polling for new messages
|
|
let lastCount = 0;
|
|
setInterval(async () => {
|
|
if (csBox.classList.contains('d-none')) return;
|
|
try {
|
|
const resp = await fetch('/api/chat.php?action=get_messages');
|
|
const data = await resp.json();
|
|
if (data && data.length > lastCount) {
|
|
csMessages.innerHTML = '<div class="text-center text-muted small mb-3">Welcome to Byro Support! How can we help?</div>';
|
|
data.forEach(m => appendMessage(m.sender, m.message));
|
|
lastCount = data.length;
|
|
}
|
|
} catch (err) {}
|
|
}, 3000);
|
|
</script>
|
|
|
|
<style>
|
|
.bg-darker {
|
|
background-color: #080808;
|
|
}
|
|
footer a:hover {
|
|
color: var(--primary) !important;
|
|
}
|
|
#cs-messages::-webkit-scrollbar { display: none; }
|
|
</style>
|
|
</body>
|
|
</html>
|