better ui
This commit is contained in:
@@ -5,6 +5,9 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Jacuzzi</title>
|
<title>Jacuzzi</title>
|
||||||
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
<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">
|
<link rel="stylesheet" href="static/style.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -9,7 +9,16 @@
|
|||||||
--accent: #ffffff;
|
--accent: #ffffff;
|
||||||
--accent-hover: #e6e6e6;
|
--accent-hover: #e6e6e6;
|
||||||
--border: rgba(255, 255, 255, 0.1);
|
--border: rgba(255, 255, 255, 0.1);
|
||||||
|
--border-hover: rgba(255, 255, 255, 0.22);
|
||||||
--shadow: rgba(0, 0, 0, 0.4);
|
--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;
|
color-scheme: dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -17,11 +26,15 @@ html, body { height: 100%; }
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
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);
|
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;
|
overflow-x: hidden;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.drawer-open {
|
body.drawer-open {
|
||||||
@@ -41,8 +54,14 @@ body.theme-light {
|
|||||||
--accent: #000000;
|
--accent: #000000;
|
||||||
--accent-hover: #1a1a1a;
|
--accent-hover: #1a1a1a;
|
||||||
--border: rgba(0, 0, 0, 0.08);
|
--border: rgba(0, 0, 0, 0.08);
|
||||||
|
--border-hover: rgba(0, 0, 0, 0.18);
|
||||||
--shadow: rgba(0, 0, 0, 0.1);
|
--shadow: rgba(0, 0, 0, 0.1);
|
||||||
|
--focus-ring: rgba(0, 0, 0, 0.12);
|
||||||
color-scheme: light;
|
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 */
|
/* Top Bar */
|
||||||
@@ -51,22 +70,29 @@ body.theme-light {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0 24px;
|
padding: 0 clamp(16px, 3vw, 36px);
|
||||||
background: var(--bg-secondary);
|
background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.55));
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
border-bottom: 1px solid var(--border);
|
border-bottom: 1px solid var(--border);
|
||||||
gap: 24px;
|
gap: 24px;
|
||||||
backdrop-filter: blur(12px);
|
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 {
|
.logo {
|
||||||
font-size: 20px;
|
font-size: 26px;
|
||||||
font-weight: 600;
|
font-weight: 400;
|
||||||
letter-spacing: -0.5px;
|
letter-spacing: 0.3px;
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
|
font-family: var(--font-logo);
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
text-shadow: 0 2px 8px var(--shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-container {
|
.search-container {
|
||||||
@@ -76,10 +102,10 @@ body.theme-light {
|
|||||||
|
|
||||||
.search-container input {
|
.search-container input {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 8px 16px;
|
padding: 10px 16px;
|
||||||
background: var(--bg-tertiary);
|
background: var(--bg-tertiary);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 8px;
|
border-radius: 999px;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
@@ -89,7 +115,7 @@ body.theme-light {
|
|||||||
outline: none;
|
outline: none;
|
||||||
border-color: var(--accent);
|
border-color: var(--accent);
|
||||||
background: var(--bg-tertiary);
|
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 {
|
.search-container input::placeholder {
|
||||||
@@ -107,7 +133,7 @@ body.theme-light {
|
|||||||
height: 48px;
|
height: 48px;
|
||||||
border: none;
|
border: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border-radius: 8px;
|
border-radius: 12px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -188,6 +214,7 @@ body.theme-light .icon-btn:hover .icon-svg {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
backdrop-filter: blur(15px);
|
backdrop-filter: blur(15px);
|
||||||
|
box-shadow: -20px 0 40px var(--shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
body.theme-light .sidebar {
|
body.theme-light .sidebar {
|
||||||
@@ -210,6 +237,7 @@ body.theme-light .sidebar {
|
|||||||
.sidebar-header h3 {
|
.sidebar-header h3 {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
font-family: var(--font-display);
|
||||||
}
|
}
|
||||||
|
|
||||||
.close-btn {
|
.close-btn {
|
||||||
@@ -333,10 +361,10 @@ body.theme-light .sidebar {
|
|||||||
|
|
||||||
.input-row input {
|
.input-row input {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 8px 12px;
|
padding: 9px 12px;
|
||||||
background: var(--bg-tertiary);
|
background: var(--bg-tertiary);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 6px;
|
border-radius: 10px;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
@@ -348,7 +376,7 @@ body.theme-light .sidebar {
|
|||||||
.input-row input:focus {
|
.input-row input:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
border-color: var(--accent);
|
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 {
|
body.theme-light .input-row input:focus {
|
||||||
@@ -356,8 +384,8 @@ body.theme-light .input-row input:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn-secondary {
|
.btn-secondary {
|
||||||
padding: 8px 12px;
|
padding: 9px 14px;
|
||||||
border-radius: 6px;
|
border-radius: 999px;
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
@@ -384,9 +412,9 @@ body.theme-light .input-row input:focus {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
padding: 8px 10px;
|
padding: 9px 12px;
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 8px;
|
border-radius: 10px;
|
||||||
background: var(--bg-tertiary);
|
background: var(--bg-tertiary);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -397,8 +425,8 @@ body.theme-light .input-row input:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.source-item button {
|
.source-item button {
|
||||||
padding: 6px 8px;
|
padding: 6px 10px;
|
||||||
border-radius: 6px;
|
border-radius: 999px;
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
@@ -412,10 +440,10 @@ body.theme-light .input-row input:focus {
|
|||||||
|
|
||||||
.setting-item select {
|
.setting-item select {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 8px 12px;
|
padding: 9px 12px;
|
||||||
background: var(--bg-tertiary);
|
background: var(--bg-tertiary);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 6px;
|
border-radius: 10px;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@@ -478,7 +506,7 @@ body.theme-light .input-row input:focus {
|
|||||||
.setting-item select:focus {
|
.setting-item select:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
border-color: var(--accent);
|
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 {
|
body.theme-light .setting-item select:focus {
|
||||||
@@ -520,6 +548,7 @@ body.theme-light .setting-item select option {
|
|||||||
display: none;
|
display: none;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
transition: opacity 0.3s ease;
|
transition: opacity 0.3s ease;
|
||||||
|
backdrop-filter: blur(2px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-overlay.open {
|
.sidebar-overlay.open {
|
||||||
@@ -543,6 +572,7 @@ body.theme-light .setting-item select option {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
box-shadow: 0 10px 20px var(--shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
.load-more-btn:hover {
|
.load-more-btn:hover {
|
||||||
@@ -560,7 +590,8 @@ body.theme-light .setting-item select option {
|
|||||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
padding: 24px;
|
padding: 24px;
|
||||||
max-width: 100%;
|
max-width: var(--grid-max);
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
@@ -656,19 +687,21 @@ body.theme-light .setting-item select option {
|
|||||||
/* Video Card */
|
/* Video Card */
|
||||||
.video-card {
|
.video-card {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-radius: 12px;
|
border-radius: var(--radius-lg);
|
||||||
overflow: hidden;
|
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);
|
background: var(--bg-secondary);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
|
box-shadow: 0 6px 16px var(--shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
.video-card:hover {
|
.video-card:hover {
|
||||||
transform: translateY(-4px);
|
transform: translateY(-6px);
|
||||||
box-shadow: 0 8px 16px var(--shadow);
|
box-shadow: 0 16px 28px var(--shadow);
|
||||||
|
border-color: var(--border-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
.video-card img {
|
.video-card img {
|
||||||
@@ -676,6 +709,8 @@ body.theme-light .setting-item select option {
|
|||||||
height: auto;
|
height: auto;
|
||||||
display: block;
|
display: block;
|
||||||
background: var(--bg-tertiary);
|
background: var(--bg-tertiary);
|
||||||
|
aspect-ratio: 16 / 9;
|
||||||
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.video-card h4 {
|
.video-card h4 {
|
||||||
@@ -690,6 +725,8 @@ body.theme-light .setting-item select option {
|
|||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
font-family: var(--font-display);
|
||||||
|
letter-spacing: -0.2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.video-card p {
|
.video-card p {
|
||||||
@@ -706,6 +743,7 @@ body.theme-light .setting-item select option {
|
|||||||
.video-duration {
|
.video-duration {
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Modal */
|
/* Modal */
|
||||||
|
|||||||
Reference in New Issue
Block a user