Sync src/styles.html

This commit is contained in:
2026-04-24 17:41:40 +00:00
parent 2ccab9871f
commit ff30981278
+222
View File
@@ -0,0 +1,222 @@
<style>
:root {
--primary: #2481cc;
--text: #111827;
--tg-bg: #f0f2f5;
}
.text-primary { color: var(--primary); }
.bg-primary { background-color: var(--primary); }
.border-primary { border-color: var(--primary); }
[x-cloak] { display: none !important; }
/* Framework7 & Mobile Adjustments */
/* Mobile App Wrapper */
body {
background-color: #f1f5f9;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
}
#app-wrapper {
width: 100%;
max-width: 450px; /* Lebar maksimal layaknya ponsel */
height: 100vh;
max-height: 900px; /* Tinggi maksimal pada desktop */
background: var(--tg-bg);
position: relative;
overflow: hidden;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}
#app {
height: 100%;
width: 100%;
}
@media (max-width: 450px) {
#app {
max-height: none;
box-shadow: none;
}
}
.navbar {
--f7-navbar-height: 70px;
height: var(--f7-navbar-height);
position: absolute;
top: 0;
width: 100%;
z-index: 500;
background: transparent !important;
}
/* Floating Bottom Nav Pill */
.floating-nav {
position: absolute;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
width: 90%;
max-width: 380px;
height: 64px;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(12px);
border-radius: 32px;
display: flex;
align-items: center;
justify-content: space-around;
padding: 0 8px;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
z-index: 600;
border: 1px solid rgba(255, 255, 255, 0.3);
}
.nav-item {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
border-radius: 20px;
color: #64748b;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item.active {
background-color: var(--primary);
color: white;
box-shadow: 0 4px 12px rgba(36, 129, 204, 0.4);
transform: translateY(-2px);
}
/* Padding Top disesuaikan agar konten tidak tertutup navbar */
.page-content {
padding-top: 80px !important;
padding-bottom: 110px !important;
height: 100%;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.tab-link-active { font-weight: 600; }
/* Custom Admin List for Mobile */
.admin-card-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
/* Smooth Transitions */
.transition-all {
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 200ms;
}
/* Absolute FAB inside App Wrapper */
.fab-button {
position: absolute;
bottom: 100px; /* Di atas floating nav */
right: 24px;
width: 56px;
height: 56px;
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 8px 16px -4px rgba(36, 129, 204, 0.5);
z-index: 550;
cursor: pointer;
transition: all 0.2s;
}
.fab-button:active {
transform: scale(0.95);
}
/* User List Items */
.user-item {
border-bottom: 0.5px solid #eee;
}
/* Progress Ring Styles */
.progress-ring-container {
position: relative;
width: 120px;
height: 120px;
}
.progress-ring {
transform: rotate(-90deg);
width: 120px;
height: 120px;
}
.progress-ring-circle {
stroke-dasharray: 339.292;
stroke-dashoffset: 339.292;
transition: stroke-dashoffset 0.5s ease-in-out;
}
.progress-ring-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
/* User Category Bar */
.category-bar {
display: flex;
gap: 0.5rem;
padding: 0.75rem;
margin-bottom: 1rem;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(12px);
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.category-pill {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: 12px;
background: #f1f5f9;
color: #64748b;
font-size: 12px;
font-weight: 500;
white-space: nowrap;
transition: all 0.2s ease;
cursor: pointer;
border: 1px solid transparent;
}
.category-pill.active {
background: var(--primary);
color: white;
box-shadow: 0 4px 10px rgba(36, 129, 204, 0.3);
border-color: rgba(255, 255, 255, 0.2);
}
.category-count {
background: rgba(0, 0, 0, 0.1);
padding: 2px 6px;
border-radius: 6px;
font-size: 10px;
font-weight: 700;
}
.category-pill.active .category-count {
background: rgba(255, 255, 255, 0.2);
}
</style>