1 parent
4e270e616a
commit
c82b7894a5
51 files changed
+7374
-104
No files matched your search
@@ -125,13 +125,13 @@ export default function CatalogPage({ onOpen, onAdd }: Props) {
|
||||
<div className="sticky top-0 z-20 -mx-4 space-y-3 bg-bg/90 px-4 pb-3 pt-[max(0.5rem,env(safe-area-inset-top))] backdrop-blur-xl">
|
||||
<div className="flex gap-2">
|
||||
<div className="relative flex-1">
|
||||
<Search size={18} className="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-ink-3" />
|
||||
<Search size={18} className="pointer-events-none absolute start-3 top-1/2 -translate-y-1/2 text-ink-3" />
|
||||
<input
|
||||
type="search"
|
||||
value={query}
|
||||
onChange={(e) => setQuery(e.target.value)}
|
||||
placeholder={t('catalog.searchPh')}
|
||||
className="field pl-10"
|
||||
className="field ps-10"
|
||||
enterKeyHint="search"
|
||||
/>
|
||||
</div>
|
||||
@@ -143,7 +143,7 @@ export default function CatalogPage({ onOpen, onAdd }: Props) {
|
||||
>
|
||||
<SlidersHorizontal size={18} />
|
||||
{activeAdvanced > 0 && (
|
||||
<span className="absolute -right-1.5 -top-1.5 grid size-5 place-items-center rounded-full bg-accent-fill text-[10px] text-on-accent">{activeAdvanced}</span>
|
||||
<span className="absolute -end-1.5 -top-1.5 grid size-5 place-items-center rounded-full bg-accent-fill text-[10px] text-on-accent">{activeAdvanced}</span>
|
||||
)}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -31,7 +31,7 @@ function PosterStrip({ items, onOpen }: { items: MediaItem[]; onOpen: (item: Med
|
||||
return (
|
||||
<div className="no-scrollbar -mx-4 flex gap-3 overflow-x-auto px-4 pb-1">
|
||||
{items.map((item) => (
|
||||
<button key={item.id} onClick={() => onOpen(item)} className="w-32 shrink-0 text-left">
|
||||
<button key={item.id} onClick={() => onOpen(item)} className="w-32 shrink-0 text-start">
|
||||
<Poster src={item.poster} title={item.title} />
|
||||
<p className="mt-2 truncate text-sm font-semibold leading-snug">{item.title}</p>
|
||||
<p className="truncate text-[11px] text-ink-3">{[TYPE_BY_VALUE[item.type].label, item.year].filter(Boolean).join(' · ')}</p>
|
||||
@@ -129,14 +129,14 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
||||
>
|
||||
<CalendarDays size={20} />
|
||||
{soon > 0 && (
|
||||
<span className="absolute -right-1 -top-1 grid min-w-5 place-items-center rounded-full bg-accent-fill px-1 text-[10px] font-bold text-on-accent">{soon}</span>
|
||||
<span className="absolute -end-1 -top-1 grid min-w-5 place-items-center rounded-full bg-accent-fill px-1 text-[10px] font-bold text-on-accent">{soon}</span>
|
||||
)}
|
||||
</button>
|
||||
{social.enabled && (
|
||||
<button onClick={() => (social.me ? social.openProfile(social.me.username) : social.openSearch())} className="relative shrink-0 rounded-full" aria-label={t('social.myProfile')}>
|
||||
<Avatar url={social.me?.avatarUrl} name={social.me?.displayName ?? '?'} size={44} />
|
||||
{social.requests.length > 0 && (
|
||||
<span className="absolute -right-1 -top-1 grid min-w-5 place-items-center rounded-full bg-accent-fill px-1 text-[10px] font-bold text-on-accent">{social.requests.length}</span>
|
||||
<span className="absolute -end-1 -top-1 grid min-w-5 place-items-center rounded-full bg-accent-fill px-1 text-[10px] font-bold text-on-accent">{social.requests.length}</span>
|
||||
)}
|
||||
</button>
|
||||
)}
|
||||
@@ -164,7 +164,7 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
||||
<FriendsFeed />
|
||||
|
||||
{/* Roulette : pour les soirs sans idée */}
|
||||
<button onClick={onRoulette} className="card mt-8 flex w-full items-center gap-4 p-4 text-left transition-colors active:bg-surface-2">
|
||||
<button onClick={onRoulette} className="card mt-8 flex w-full items-center gap-4 p-4 text-start transition-colors active:bg-surface-2">
|
||||
<span className="grid size-12 shrink-0 place-items-center rounded-full bg-accent-fill text-on-accent">
|
||||
<Dices size={24} />
|
||||
</span>
|
||||
|
||||
@@ -17,7 +17,7 @@ type Message = { kind: 'ok' | 'error'; text: string }
|
||||
|
||||
function Row({ icon, title, hint, onClick, danger }: { icon: ReactNode; title: string; hint?: string; onClick: () => void; danger?: boolean }) {
|
||||
return (
|
||||
<button onClick={onClick} className={cx('flex w-full items-center gap-3.5 px-4 py-4 text-left transition-colors active:bg-surface-2', danger && 'text-accent')}>
|
||||
<button onClick={onClick} className={cx('flex w-full items-center gap-3.5 px-4 py-4 text-start transition-colors active:bg-surface-2', danger && 'text-accent')}>
|
||||
<span className={danger ? 'text-accent' : 'text-ink-2'}>{icon}</span>
|
||||
<span className="flex-1">
|
||||
<span className="block font-medium">{title}</span>
|
||||
@@ -263,7 +263,7 @@ export default function SettingsPage() {
|
||||
<div className="mt-3 flex gap-2">
|
||||
<div className="relative flex-1">
|
||||
<input
|
||||
className="field pr-11 text-sm"
|
||||
className="field pe-11 text-sm"
|
||||
type={showKey ? 'text' : 'password'}
|
||||
value={keyDraft}
|
||||
onChange={(e) => {
|
||||
@@ -275,7 +275,7 @@ export default function SettingsPage() {
|
||||
autoCapitalize="off"
|
||||
spellCheck={false}
|
||||
/>
|
||||
<button type="button" onClick={() => setShowKey((v) => !v)} className="absolute right-3 top-1/2 -translate-y-1/2 text-ink-3" aria-label={showKey ? t('settings.hideKey') : t('settings.showKey')}>
|
||||
<button type="button" onClick={() => setShowKey((v) => !v)} className="absolute end-3 top-1/2 -translate-y-1/2 text-ink-3" aria-label={showKey ? t('settings.hideKey') : t('settings.showKey')}>
|
||||
{showKey ? <EyeOff size={17} /> : <Eye size={17} />}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -208,8 +208,8 @@ export default function StatsPage() {
|
||||
<span className="size-3 shrink-0 rounded-full" style={{ background: TYPE_COLORS[row.type] }} />
|
||||
<span className="flex-1 text-ink-2">{row.label}</span>
|
||||
<span className="text-xs text-ink-3">{t('journal.seen', { count: row.completed })}</span>
|
||||
<span className="w-16 text-right text-xs font-semibold tabular-nums">{formatDuration(row.minutes)}</span>
|
||||
<span className="w-10 text-right text-xs tabular-nums text-ink-3">{Math.round((row.minutes / typeTotal) * 100)} %</span>
|
||||
<span className="w-16 text-end text-xs font-semibold tabular-nums">{formatDuration(row.minutes)}</span>
|
||||
<span className="w-10 text-end text-xs tabular-nums text-ink-3">{Math.round((row.minutes / typeTotal) * 100)} %</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
@@ -375,7 +375,7 @@ export default function StatsPage() {
|
||||
title={t('account.nTitles', { count: g.value })}
|
||||
>
|
||||
{genreLabel(g.label)}
|
||||
<sup className="ml-0.5 text-[10px] font-medium text-ink-3">{g.value}</sup>
|
||||
<sup className="ms-0.5 text-[10px] font-medium text-ink-3">{g.value}</sup>
|
||||
</span>
|
||||
)
|
||||
})}
|
||||
@@ -394,7 +394,7 @@ export default function StatsPage() {
|
||||
<span className="h-2 flex-1 overflow-hidden rounded-full bg-surface-2">
|
||||
<span className="block h-full rounded-full bg-accent" style={{ width: `${(c.count / maxCountry) * 100}%` }} />
|
||||
</span>
|
||||
<span className="w-8 text-right text-xs font-semibold tabular-nums">{c.count}</span>
|
||||
<span className="w-8 text-end text-xs font-semibold tabular-nums">{c.count}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
Reference in new issue
Block a user