feature: improve design

This commit is contained in:
WonderAliceUwU committed 2026-07-08 19:13:23 +02:00
1 parent e8b25bb420
commit acd57aea17
2 files changed
+99 -16

No files matched your search

+49 -7
View File
@@ -37,14 +37,19 @@ const EPISODE_SCROLL_DISTANCE_RATIO = 0.72
const SEASON_DOMINANCE_SWITCH_RATIO = 0.12
const SEASON_DOMINANCE_SWITCH_MIN_PX = 56
const sidebarItems: Array<{ route: AppRoute; label: string; short: string; icon?: 'calendar' | 'search'; iconClassName?: string }> = [
{ route: 'home', label: 'Inicio', short: 'H' },
type SidebarItem = { route: AppRoute; label: string; short: string; icon?: 'calendar' | 'search' | 'downloads' | 'home' | 'library'; iconClassName?: string }
const topSidebarItems: SidebarItem[] = [
{ route: 'search', label: 'Search', short: 'S', icon: 'search', iconClassName: 'sidebar-search-icon' },
{ route: 'dorama', label: 'K-Drama', short: 'K' },
{ route: 'anime', label: 'Anime', short: 'A' },
{ route: 'library', label: 'Library', short: 'L' },
{ route: 'calendar', label: 'Upcoming', short: 'C', icon: 'calendar' },
{ route: 'downloads', label: 'Downloads', short: 'D' },
{ route: 'downloads', label: 'Downloads', short: 'D', icon: 'downloads' },
]
const sidebarItems: SidebarItem[] = [
{ route: 'home', label: 'Inicio', short: 'H', icon: 'home' },
{ route: 'dorama', label: 'K-Drama', short: '아' },
{ route: 'anime', label: 'Anime', short: 'あ' },
{ route: 'library', label: 'Library', short: 'L', icon: 'library' },
]
const networkSidebarItems: Array<{ route: AppRoute; label: string; icon: string; iconClassName?: string }> = [
@@ -559,6 +564,22 @@ function Sidebar(props: {
</div>
</button>
<div className="sidebar-links">
{topSidebarItems.map((item) => (
<button
className={item.route === props.route ? 'sidebar-link active' : 'sidebar-link'}
key={item.route}
onClick={() => startTransition(() => props.setRoute(item.route))}
type="button"
>
<span className={item.iconClassName ? `sidebar-link-short ${item.iconClassName}` : 'sidebar-link-short'} aria-hidden="true">
{item.icon === 'calendar' ? <CalendarGlyph /> : item.icon === 'search' ? <SearchGlyph /> : item.icon === 'downloads' ? <DownloadGlyph /> : item.icon === 'home' ? <HomeGlyph /> : item.icon === 'library' ? <LibraryGlyph /> : item.short}
</span>
<span>{item.label}</span>
</button>
))}
</div>
<div className="sidebar-links">
{sidebarItems.map((item) => (
<button
@@ -568,7 +589,7 @@ function Sidebar(props: {
type="button"
>
<span className={item.iconClassName ? `sidebar-link-short ${item.iconClassName}` : 'sidebar-link-short'} aria-hidden="true">
{item.icon === 'calendar' ? <CalendarGlyph /> : item.icon === 'search' ? <SearchGlyph /> : item.short}
{item.icon === 'calendar' ? <CalendarGlyph /> : item.icon === 'search' ? <SearchGlyph /> : item.icon === 'downloads' ? <DownloadGlyph /> : item.icon === 'home' ? <HomeGlyph /> : item.icon === 'library' ? <LibraryGlyph /> : item.short}
</span>
<span>{item.label}</span>
</button>
@@ -628,6 +649,27 @@ function SearchGlyph() {
)
}
function HomeGlyph() {
return (
<svg aria-hidden="true" className="sidebar-glyph-icon" fill="none" viewBox="0 0 16 16">
<path d="M2.4 7.1L8 2.6L13.6 7.1" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1.5" />
<path d="M3.4 6.85V13.1H12.6V6.85" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1.5" />
<path d="M6.5 13.1V9.6H9.5V13.1" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1.5" />
</svg>
)
}
function LibraryGlyph() {
return (
<svg aria-hidden="true" className="sidebar-glyph-icon" fill="none" viewBox="0 0 16 16">
<rect x="2.4" y="4" width="11.2" height="8" rx="2" stroke="currentColor" strokeWidth="1.5" />
<path d="M4.5 9.9H11.5" stroke="currentColor" strokeLinecap="round" strokeWidth="1.5" />
<circle cx="10.9" cy="7.1" r="0.7" fill="currentColor" />
<circle cx="8.8" cy="7.1" r="0.7" fill="currentColor" />
</svg>
)
}
function ArrowRightGlyph() {
return (
<svg aria-hidden="true" className="sidebar-glyph-icon" fill="none" viewBox="0 0 16 16">
+50 -9
View File
@@ -1,6 +1,8 @@
:root {
color-scheme: dark;
font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
--font-sans: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
--font-display: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
font-family: var(--font-sans);
color: #eef4ff;
background: #040507;
font-synthesis: none;
@@ -589,7 +591,7 @@ img {
.hero-logo {
margin: 0.5rem 0 0.95rem;
font-family: "Space Grotesk", "Segoe UI", sans-serif;
font-family: var(--font-display);
font-size: clamp(3rem, 9vw, 7.2rem);
line-height: 0.9;
letter-spacing: -0.08em;
@@ -612,7 +614,7 @@ img {
.hero-copy h1 {
margin: 0.35rem 0 0.8rem;
font-family: "Space Grotesk", "Segoe UI", sans-serif;
font-family: var(--font-display);
font-size: clamp(2rem, 5vw, 4rem);
letter-spacing: -0.05em;
}
@@ -845,6 +847,20 @@ img {
pointer-events: none;
}
.continue-tile.has-landscape-logo .media-art::after {
opacity: 1;
background:
radial-gradient(ellipse at left bottom, rgba(4, 6, 10, 0.68) 0%, rgba(4, 6, 10, 0.5) 18%, rgba(4, 6, 10, 0.18) 36%, rgba(4, 6, 10, 0) 58%);
}
.continue-tile.has-landscape-logo.has-progress .media-art::after,
.continue-tile.has-landscape-logo:hover .media-art::after,
.continue-tile.has-landscape-logo:focus-within .media-art::after {
background:
radial-gradient(ellipse at left bottom, rgba(4, 6, 10, 0.68) 0%, rgba(4, 6, 10, 0.5) 18%, rgba(4, 6, 10, 0.18) 36%, rgba(4, 6, 10, 0) 58%),
linear-gradient(180deg, rgba(4, 6, 10, 0) 45%, rgba(4, 6, 10, 0.78) 100%);
}
.continue-tile.has-progress .media-art::after,
.continue-tile:hover .media-art::after,
.continue-tile:focus-within .media-art::after {
@@ -861,7 +877,7 @@ img {
position: absolute;
left: 0.85rem;
bottom: 1.05rem;
z-index: 2;
z-index: 4;
display: grid;
gap: 0.18rem;
text-align: left;
@@ -875,7 +891,19 @@ img {
}
.continue-tile.has-progress .continue-episode-meta {
bottom: 1.45rem;
bottom: 1.75rem;
}
.continue-tile:hover .continue-episode-meta,
.continue-tile:focus-within .continue-episode-meta {
left: auto;
right: 0.85rem;
text-align: right;
}
.continue-tile.has-progress:hover .continue-episode-meta,
.continue-tile.has-progress:focus-within .continue-episode-meta {
bottom: 2rem;
}
.continue-episode-meta-primary {
@@ -1039,11 +1067,24 @@ img {
height: 0.35rem;
border-radius: 999px;
background: rgba(255, 255, 255, 0.15);
overflow: hidden;
overflow: visible;
}
.tile-progress::before {
content: "";
position: absolute;
left: 0.1rem;
right: 0.1rem;
top: 0.22rem;
bottom: -0.35rem;
border-radius: 999px;
pointer-events: none;
z-index: -1;
}
.tile-progress-fill {
height: 100%;
border-radius: inherit;
background: linear-gradient(90deg, #68abff, #ffd166);
}
@@ -1371,7 +1412,7 @@ img {
.title-details-title {
margin: 0;
font-family: "Space Grotesk", "Segoe UI", sans-serif;
font-family: var(--font-display);
font-size: clamp(2.5rem, 7vw, 5.4rem);
line-height: 0.92;
letter-spacing: -0.06em;
@@ -2354,7 +2395,7 @@ img {
.title-modal-copy h2 {
margin: 0;
font-family: "Space Grotesk", "Segoe UI", sans-serif;
font-family: var(--font-display);
font-size: clamp(2rem, 5vw, 3.8rem);
letter-spacing: -0.05em;
}
@@ -3009,7 +3050,7 @@ img {
.profiles-header h1 {
margin: 0;
font-family: "Space Grotesk", "Segoe UI", sans-serif;
font-family: var(--font-display);
}
.profiles-actions {