Tablettes et iPad, plus de zoom au doigt, préparation du Play Store
deploy / deploy (push) Successful in 1m29s
deploy / deploy (push) Successful in 1m29s
- Plus de zoom au doigt sur téléphone (pincer, double-toucher) : balise viewport pour Android, touch-action sur la page, gestes de Safari annulés sur iPhone et iPad. Le recadrage de la photo garde son pincement. - Version tablette : dès 704 px (iPad, tablettes Android, téléphones en paysage), mise en page grand écran avec une barre latérale étroite (icône et libellé) à la place de la barre du bas ; barre complète à partir de 1024 px comme avant. Catalogue sur plus de colonnes, accueil et fiches en deux colonnes, tuiles des stats sur 2 colonnes en portrait. - Manifeste : orientation libre (tablettes en paysage), identifiant et catégorie pour l'app Android. - Guide Play Store : étapes pour fabriquer et publier l'app Android. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
31 files changed
+167
-93
No files matched your search
@@ -235,23 +235,23 @@ export default function ProfileView({ username, onClose, guest = false }: { user
|
||||
) : (
|
||||
<>
|
||||
{/* Bannière + photo */}
|
||||
<div className={cx('relative aspect-[3/1] w-full overflow-hidden bg-surface-2 lg:aspect-auto', profile.bannerUrl ? 'lg:h-[min(40vh,22rem)]' : 'lg:h-40')}>
|
||||
<div className={cx('relative aspect-[3/1] w-full overflow-hidden bg-surface-2 md:aspect-auto', profile.bannerUrl ? 'md:h-[min(40vh,22rem)]' : 'md:h-40')}>
|
||||
{profile.bannerUrl && <img src={profile.bannerUrl} alt="" className="size-full object-cover" />}
|
||||
</div>
|
||||
<div className="px-4 lg:px-10">
|
||||
<div className="px-4 md:px-10">
|
||||
{/* La photo chevauche la bannière ; les boutons restent en dessous (pt = partie de la photo posée sur la bannière + marge) */}
|
||||
<div className="relative -mt-11 flex items-start justify-between gap-3 lg:-mt-14">
|
||||
<div className="relative -mt-11 flex items-start justify-between gap-3 md:-mt-14">
|
||||
<Avatar url={profile.avatarUrl} name={profile.displayName} size={88} className="border-4 border-bg" />
|
||||
{profile.isMe ? (
|
||||
<button onClick={social.openEdit} className="btn btn-ghost mt-[3.5rem] px-4 py-2 text-sm lg:mt-[4.25rem]">
|
||||
<button onClick={social.openEdit} className="btn btn-ghost mt-[3.5rem] px-4 py-2 text-sm md:mt-[4.25rem]">
|
||||
{t('social.editProfile')}
|
||||
</button>
|
||||
) : guest ? (
|
||||
<button onClick={requestAccount} className="btn btn-primary mt-[3.5rem] px-4 py-2 text-sm lg:mt-[4.25rem]">
|
||||
<button onClick={requestAccount} className="btn btn-primary mt-[3.5rem] px-4 py-2 text-sm md:mt-[4.25rem]">
|
||||
<UserPlus size={15} /> {t('social.follow')}
|
||||
</button>
|
||||
) : (
|
||||
<div className="mt-[3.5rem] flex items-center gap-1 lg:mt-[4.25rem]">
|
||||
<div className="mt-[3.5rem] flex items-center gap-1 md:mt-[4.25rem]">
|
||||
{blocked ? (
|
||||
<button onClick={doUnblock} disabled={busy} className="btn btn-ghost px-4 py-2 text-sm">
|
||||
{busy ? <Loader2 size={15} className="animate-spin" /> : <UserCheck size={15} />}
|
||||
@@ -301,15 +301,15 @@ export default function ProfileView({ username, onClose, guest = false }: { user
|
||||
</span>
|
||||
)}
|
||||
</p>
|
||||
{profile.bio && <p className="mt-3 whitespace-pre-line text-sm leading-relaxed text-ink-2 lg:max-w-3xl lg:text-base">{profile.bio}</p>}
|
||||
{profile.bio && <p className="mt-3 whitespace-pre-line text-sm leading-relaxed text-ink-2 md:max-w-3xl md:text-base">{profile.bio}</p>}
|
||||
{blocked && (
|
||||
<p className="mt-4 flex items-start gap-2.5 rounded-2xl border border-line px-4 py-3 text-sm text-ink-2 lg:max-w-2xl">
|
||||
<p className="mt-4 flex items-start gap-2.5 rounded-2xl border border-line px-4 py-3 text-sm text-ink-2 md:max-w-2xl">
|
||||
<Ban size={16} className="mt-0.5 shrink-0 text-accent" />
|
||||
{t('block.notice')}
|
||||
</p>
|
||||
)}
|
||||
|
||||
<div className="mt-5 flex divide-x divide-line rounded-2xl border border-line py-3 lg:max-w-2xl">
|
||||
<div className="mt-5 flex divide-x divide-line rounded-2xl border border-line py-3 md:max-w-2xl">
|
||||
<Stat value={profile.visible ? (profile.seen ?? 0) : undefined} label={t('social.seen')} />
|
||||
<Stat value={profile.followers} label={t('social.followers', { count: profile.followers })} onClick={profile.visible && !guest ? () => social.openFollowList(profile, 'followers') : undefined} />
|
||||
<Stat value={profile.following} label={t('social.followingCount', { count: profile.following })} onClick={profile.visible && !guest ? () => social.openFollowList(profile, 'following') : undefined} />
|
||||
@@ -330,7 +330,7 @@ export default function ProfileView({ username, onClose, guest = false }: { user
|
||||
</div>
|
||||
) : (
|
||||
<>
|
||||
<div className={cx('mt-6 grid gap-1 rounded-md border border-line p-1 lg:max-w-md', tabs.length === 3 ? 'grid-cols-3' : 'grid-cols-2')}>
|
||||
<div className={cx('mt-6 grid gap-1 rounded-md border border-line p-1 md:max-w-md', tabs.length === 3 ? 'grid-cols-3' : 'grid-cols-2')}>
|
||||
{tabs.map((v) => (
|
||||
<button
|
||||
key={v}
|
||||
@@ -345,7 +345,7 @@ export default function ProfileView({ username, onClose, guest = false }: { user
|
||||
<>
|
||||
<ProfileTab profile={profile} topByCategory={topByCategory} onOpen={openItem} />
|
||||
{guest && (
|
||||
<div className="mt-10 rounded-2xl border border-line px-5 py-6 text-center lg:max-w-2xl">
|
||||
<div className="mt-10 rounded-2xl border border-line px-5 py-6 text-center md:max-w-2xl">
|
||||
<p className="font-semibold">{t('social.publicCtaTitle')}</p>
|
||||
<p className="mx-auto mt-1 max-w-sm text-sm text-ink-3">{t('social.publicCtaText', { name: profile.displayName })}</p>
|
||||
<button onClick={requestAccount} className="btn btn-primary mx-auto mt-4 flex px-5 py-2.5">
|
||||
@@ -402,7 +402,7 @@ function ProfileTab({ profile, topByCategory, onOpen }: { profile: Profile; topB
|
||||
{firsts.length > 0 && (
|
||||
<>
|
||||
<SectionTitle>{t('social.top1')}</SectionTitle>
|
||||
<div className="grid grid-cols-5 gap-2 lg:grid-cols-8 lg:gap-3 xl:grid-cols-10">
|
||||
<div className="grid grid-cols-5 gap-2 md:grid-cols-8 md:gap-3 xl:grid-cols-10">
|
||||
{firsts.map(({ item, category }) => (
|
||||
<PosterTile key={item.id} item={item} onOpen={() => onOpen(item)} caption={category} />
|
||||
))}
|
||||
@@ -413,7 +413,7 @@ function ProfileTab({ profile, topByCategory, onOpen }: { profile: Profile; topB
|
||||
{profile.watching.length > 0 && (
|
||||
<>
|
||||
<SectionTitle>{t('social.watching')}</SectionTitle>
|
||||
<div className="grid grid-cols-4 gap-2.5 sm:grid-cols-5 lg:grid-cols-8 lg:gap-3 xl:grid-cols-10">
|
||||
<div className="grid grid-cols-4 gap-2.5 sm:grid-cols-5 md:grid-cols-8 md:gap-3 xl:grid-cols-10">
|
||||
{profile.watching.map((item) => (
|
||||
<PosterTile key={item.id} item={item} onOpen={() => onOpen(item)} />
|
||||
))}
|
||||
@@ -423,7 +423,7 @@ function ProfileTab({ profile, topByCategory, onOpen }: { profile: Profile; topB
|
||||
|
||||
<SectionTitle>{t('social.recent')}</SectionTitle>
|
||||
{recent.length ? (
|
||||
<div className="grid grid-cols-5 gap-2 lg:grid-cols-8 lg:gap-3 xl:grid-cols-10">
|
||||
<div className="grid grid-cols-5 gap-2 md:grid-cols-8 md:gap-3 xl:grid-cols-10">
|
||||
{recent.map((item) => (
|
||||
<PosterTile key={item.id} item={item} onOpen={() => onOpen(item)} />
|
||||
))}
|
||||
@@ -502,7 +502,7 @@ function LibraryTab({ profile, onOpen }: { profile: Profile; onOpen: (i: MediaIt
|
||||
))}
|
||||
</div>
|
||||
{list.length ? (
|
||||
<div className="grid grid-cols-3 gap-3 sm:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8 2xl:grid-cols-10">
|
||||
<div className="grid grid-cols-3 gap-3 sm:grid-cols-4 md:grid-cols-6 xl:grid-cols-8 2xl:grid-cols-10">
|
||||
{list.map((item) => (
|
||||
<PosterTile key={item.id} item={item} onOpen={() => onOpen(item)} />
|
||||
))}
|
||||
|
||||
Reference in new issue
Block a user