better ui

This commit is contained in:
Simon
2026-02-09 13:04:02 +00:00
parent c2289bf3ec
commit bd07bdef3c
2 changed files with 69 additions and 28 deletions

View File

@@ -5,6 +5,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Jacuzzi</title>
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lobster&family=Space+Grotesk:wght@500;600&family=Sora:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="static/style.css">
</head>
<body>

View File

@@ -9,7 +9,16 @@
--accent: #ffffff;
--accent-hover: #e6e6e6;
--border: rgba(255, 255, 255, 0.1);
--border-hover: rgba(255, 255, 255, 0.22);
--shadow: rgba(0, 0, 0, 0.4);
--font-body: 'Sora', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
--font-display: 'Space Grotesk', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
--font-logo: 'Lobster', 'Space Grotesk', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
--radius-lg: 16px;
--radius-md: 12px;
--radius-sm: 8px;
--grid-max: 1480px;
--focus-ring: rgba(255, 255, 255, 0.18);
color-scheme: dark;
}
@@ -17,11 +26,15 @@ html, body { height: 100%; }
body {
margin: 0;
background: var(--bg-primary);
background:
radial-gradient(1200px 600px at 12% -10%, rgba(255, 255, 255, 0.08), transparent 60%),
radial-gradient(900px 500px at 110% 0%, rgba(255, 255, 255, 0.06), transparent 55%),
var(--bg-primary);
color: var(--text-primary);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
font-family: var(--font-body);
overflow-x: hidden;
font-size: 14px;
line-height: 1.5;
}
body.drawer-open {
@@ -41,8 +54,14 @@ body.theme-light {
--accent: #000000;
--accent-hover: #1a1a1a;
--border: rgba(0, 0, 0, 0.08);
--border-hover: rgba(0, 0, 0, 0.18);
--shadow: rgba(0, 0, 0, 0.1);
--focus-ring: rgba(0, 0, 0, 0.12);
color-scheme: light;
background:
radial-gradient(1200px 600px at 12% -10%, rgba(0, 0, 0, 0.05), transparent 60%),
radial-gradient(900px 500px at 110% 0%, rgba(0, 0, 0, 0.03), transparent 55%),
var(--bg-primary);
}
/* Top Bar */
@@ -51,22 +70,29 @@ body.theme-light {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 24px;
background: var(--bg-secondary);
padding: 0 clamp(16px, 3vw, 36px);
background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.55));
position: sticky;
top: 0;
z-index: 100;
border-bottom: 1px solid var(--border);
gap: 24px;
backdrop-filter: blur(12px);
box-shadow: 0 8px 24px var(--shadow);
}
body.theme-light .top-bar {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
}
.logo {
font-size: 20px;
font-weight: 600;
letter-spacing: -0.5px;
font-size: 26px;
font-weight: 400;
letter-spacing: 0.3px;
color: var(--accent);
font-family: var(--font-logo);
flex-shrink: 0;
text-shadow: 0 2px 8px var(--shadow);
}
.search-container {
@@ -76,10 +102,10 @@ body.theme-light {
.search-container input {
width: 100%;
padding: 8px 16px;
padding: 10px 16px;
background: var(--bg-tertiary);
border: 1px solid var(--border);
border-radius: 8px;
border-radius: 999px;
color: var(--text-primary);
font-size: 14px;
transition: all 0.2s ease;
@@ -89,7 +115,7 @@ body.theme-light {
outline: none;
border-color: var(--accent);
background: var(--bg-tertiary);
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
box-shadow: 0 0 0 4px var(--focus-ring);
}
.search-container input::placeholder {
@@ -107,7 +133,7 @@ body.theme-light {
height: 48px;
border: none;
background: transparent;
border-radius: 8px;
border-radius: 12px;
cursor: pointer;
display: flex;
align-items: center;
@@ -188,6 +214,7 @@ body.theme-light .icon-btn:hover .icon-svg {
display: flex;
flex-direction: column;
backdrop-filter: blur(15px);
box-shadow: -20px 0 40px var(--shadow);
}
body.theme-light .sidebar {
@@ -210,6 +237,7 @@ body.theme-light .sidebar {
.sidebar-header h3 {
font-size: 18px;
font-weight: 600;
font-family: var(--font-display);
}
.close-btn {
@@ -333,10 +361,10 @@ body.theme-light .sidebar {
.input-row input {
flex: 1;
padding: 8px 12px;
padding: 9px 12px;
background: var(--bg-tertiary);
border: 1px solid var(--border);
border-radius: 6px;
border-radius: 10px;
color: var(--text-primary);
font-size: 14px;
}
@@ -348,7 +376,7 @@ body.theme-light .sidebar {
.input-row input:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
box-shadow: 0 0 0 4px var(--focus-ring);
}
body.theme-light .input-row input:focus {
@@ -356,8 +384,8 @@ body.theme-light .input-row input:focus {
}
.btn-secondary {
padding: 8px 12px;
border-radius: 6px;
padding: 9px 14px;
border-radius: 999px;
border: 1px solid var(--border);
background: transparent;
color: var(--text-primary);
@@ -384,9 +412,9 @@ body.theme-light .input-row input:focus {
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 8px 10px;
padding: 9px 12px;
border: 1px solid var(--border);
border-radius: 8px;
border-radius: 10px;
background: var(--bg-tertiary);
}
@@ -397,8 +425,8 @@ body.theme-light .input-row input:focus {
}
.source-item button {
padding: 6px 8px;
border-radius: 6px;
padding: 6px 10px;
border-radius: 999px;
border: 1px solid var(--border);
background: transparent;
color: var(--text-primary);
@@ -412,10 +440,10 @@ body.theme-light .input-row input:focus {
.setting-item select {
width: 100%;
padding: 8px 12px;
padding: 9px 12px;
background: var(--bg-tertiary);
border: 1px solid var(--border);
border-radius: 6px;
border-radius: 10px;
color: var(--text-primary);
cursor: pointer;
font-size: 14px;
@@ -478,7 +506,7 @@ body.theme-light .input-row input:focus {
.setting-item select:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
box-shadow: 0 0 0 4px var(--focus-ring);
}
body.theme-light .setting-item select:focus {
@@ -520,6 +548,7 @@ body.theme-light .setting-item select option {
display: none;
z-index: 1000;
transition: opacity 0.3s ease;
backdrop-filter: blur(2px);
}
.sidebar-overlay.open {
@@ -543,6 +572,7 @@ body.theme-light .setting-item select option {
cursor: pointer;
transition: all 0.2s ease;
z-index: 10;
box-shadow: 0 10px 20px var(--shadow);
}
.load-more-btn:hover {
@@ -560,7 +590,8 @@ body.theme-light .setting-item select option {
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 16px;
padding: 24px;
max-width: 100%;
max-width: var(--grid-max);
margin: 0 auto;
}
@media (max-width: 768px) {
@@ -656,19 +687,21 @@ body.theme-light .setting-item select option {
/* Video Card */
.video-card {
cursor: pointer;
border-radius: 12px;
border-radius: var(--radius-lg);
overflow: hidden;
transition: all 0.3s ease;
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
background: var(--bg-secondary);
display: flex;
flex-direction: column;
height: 100%;
border: 1px solid var(--border);
box-shadow: 0 6px 16px var(--shadow);
}
.video-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 16px var(--shadow);
transform: translateY(-6px);
box-shadow: 0 16px 28px var(--shadow);
border-color: var(--border-hover);
}
.video-card img {
@@ -676,6 +709,8 @@ body.theme-light .setting-item select option {
height: auto;
display: block;
background: var(--bg-tertiary);
aspect-ratio: 16 / 9;
object-fit: cover;
}
.video-card h4 {
@@ -690,6 +725,8 @@ body.theme-light .setting-item select option {
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
font-family: var(--font-display);
letter-spacing: -0.2px;
}
.video-card p {
@@ -706,6 +743,7 @@ body.theme-light .setting-item select option {
.video-duration {
color: var(--text-primary);
opacity: 0.8;
font-weight: 500;
}
/* Modal */