mirror of
https://github.com/plexguide/Huntarr.io.git
synced 2026-05-24 23:44:29 -04:00
258 lines
6.8 KiB
HTML
258 lines
6.8 KiB
HTML
<div class="top-bar">
|
|
<!-- Animated gradient accent line -->
|
|
<div class="topbar-accent-line"></div>
|
|
|
|
<div class="topbar-section left">
|
|
<div class="page-title" id="currentPageTitle"></div>
|
|
</div>
|
|
|
|
<div class="topbar-section center"></div>
|
|
|
|
<div class="topbar-section right">
|
|
<a href="https://github.com/plexguide/huntarr" target="_blank" rel="noopener" class="topbar-chip star-chip" title="Star on GitHub">
|
|
<span class="chip-icon"><i class="fas fa-star"></i></span>
|
|
<span id="github-stars-value" class="chip-value">--</span>
|
|
</a>
|
|
<a href="https://plexguide.github.io/Huntarr.io/donate.html" target="_blank" rel="noopener noreferrer" class="topbar-sponsor-btn" title="Sponsor">
|
|
<i class="fas fa-heart"></i>
|
|
<span>Sponsor</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
/* ===== TOPBAR CORE ===== */
|
|
.top-bar {
|
|
height: 44px;
|
|
background: linear-gradient(180deg,
|
|
rgba(16, 21, 32, 0.99) 0%,
|
|
rgba(12, 17, 28, 0.99) 50%,
|
|
rgba(14, 19, 30, 0.99) 100%
|
|
);
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 24px;
|
|
position: relative;
|
|
z-index: 100;
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
border-bottom: 1px solid rgba(99, 102, 241, 0.04);
|
|
box-shadow:
|
|
0 1px 0 rgba(255, 255, 255, 0.02) inset,
|
|
0 2px 12px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* ===== ACCENT LINE (static) ===== */
|
|
.topbar-accent-line {
|
|
position: absolute;
|
|
bottom: -1px;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background: linear-gradient(90deg,
|
|
rgba(99, 102, 241, 0) 0%,
|
|
rgba(99, 102, 241, 0.4) 15%,
|
|
#6366f1 35%,
|
|
#818cf8 50%,
|
|
#6366f1 65%,
|
|
rgba(99, 102, 241, 0.4) 85%,
|
|
rgba(99, 102, 241, 0) 100%
|
|
);
|
|
z-index: 10;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* ===== LAYOUT SECTIONS ===== */
|
|
.topbar-section {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 100%;
|
|
}
|
|
|
|
.topbar-section.left {
|
|
flex: 1;
|
|
justify-content: flex-start;
|
|
min-width: 0;
|
|
}
|
|
|
|
.topbar-section.center {
|
|
flex: 0 1 auto;
|
|
justify-content: center;
|
|
}
|
|
|
|
.topbar-section.right {
|
|
flex: 1;
|
|
justify-content: flex-end;
|
|
min-width: 0;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* ===== PAGE TITLE ===== */
|
|
.top-bar .page-title {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: #e8ecf2;
|
|
letter-spacing: 0.3px;
|
|
line-height: 1;
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.top-bar .page-title .client-editor-title-app {
|
|
color: #f59e0b;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* ===== INFO STRIP ===== */
|
|
.topbar-info-strip {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ===== CHIP BASE ===== */
|
|
.topbar-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
height: 26px;
|
|
padding: 0 10px;
|
|
border-radius: 13px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
border: 1px solid transparent;
|
|
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
cursor: pointer;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.topbar-chip::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: inherit;
|
|
opacity: 0;
|
|
transition: opacity 0.25s ease;
|
|
}
|
|
|
|
.topbar-chip:hover {
|
|
transform: translateY(-1px);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.chip-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 10px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.chip-value {
|
|
font-weight: 700;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* ===== STAR CHIP ===== */
|
|
.star-chip {
|
|
background: rgba(255, 193, 7, 0.06);
|
|
border-color: rgba(255, 193, 7, 0.15);
|
|
color: #fbbf24;
|
|
}
|
|
|
|
.star-chip .chip-icon {
|
|
color: #fbbf24;
|
|
}
|
|
.star-chip .chip-value { color: #fbbf24; font-weight: 700; }
|
|
|
|
.star-chip:hover {
|
|
background: rgba(255, 193, 7, 0.12);
|
|
border-color: rgba(255, 193, 7, 0.3);
|
|
box-shadow: 0 2px 8px rgba(255, 193, 7, 0.12);
|
|
}
|
|
|
|
/* ===== SPONSOR BUTTON ===== */
|
|
.topbar-sponsor-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
height: 26px;
|
|
padding: 0 10px;
|
|
border-radius: 13px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
color: #f472b6;
|
|
background: rgba(236, 72, 153, 0.06);
|
|
border: 1px solid rgba(236, 72, 153, 0.15);
|
|
transition: all 0.2s ease;
|
|
white-space: nowrap;
|
|
}
|
|
.topbar-sponsor-btn i {
|
|
font-size: 10px;
|
|
color: #ec4899;
|
|
}
|
|
.topbar-sponsor-btn:hover {
|
|
background: rgba(236, 72, 153, 0.12);
|
|
border-color: rgba(236, 72, 153, 0.3);
|
|
color: #f9a8d4;
|
|
box-shadow: 0 2px 8px rgba(236, 72, 153, 0.12);
|
|
transform: translateY(-1px);
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* ===== RESPONSIVE ===== */
|
|
@media (max-width: 1100px) {
|
|
.topbar-info-strip { gap: 4px; }
|
|
.topbar-chip { padding: 0 8px; }
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
}
|
|
|
|
/* Mobile: hide desktop topbar — mobile.css handles the rest */
|
|
@media (max-width: 768px) {
|
|
.top-bar { display: none !important; }
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
const starsElement = document.getElementById('github-stars-value');
|
|
|
|
function updateVersionInfo() {
|
|
try {
|
|
const starsInfo = localStorage.getItem('huntarr-github-stars');
|
|
if (starsInfo && starsElement) {
|
|
try {
|
|
const parsedStars = JSON.parse(starsInfo);
|
|
if (parsedStars && parsedStars.stars !== undefined) {
|
|
starsElement.textContent = Number(parsedStars.stars).toLocaleString();
|
|
}
|
|
} catch (e) {
|
|
starsElement.textContent = starsInfo;
|
|
}
|
|
}
|
|
} catch (e) {
|
|
console.error('Error updating version info:', e);
|
|
}
|
|
}
|
|
|
|
updateVersionInfo();
|
|
|
|
window.addEventListener('storage', function(e) {
|
|
if (e.key === 'huntarr-github-stars') {
|
|
updateVersionInfo();
|
|
}
|
|
});
|
|
});
|
|
</script>
|