Improved mobile layout

This commit is contained in:
Jose Selesan
2026-05-08 11:02:03 -03:00
parent 65295236c5
commit ab22ec86ec
25 changed files with 36 additions and 36 deletions

View File

@@ -143,7 +143,7 @@ export function Header() {
<header className="sticky top-0 z-50 w-full border-b border-border/60 bg-background/60 dark:border-primary/20 dark:bg-[#030a10]/90 backdrop-blur-xl"> <header className="sticky top-0 z-50 w-full border-b border-border/60 bg-background/60 dark:border-primary/20 dark:bg-[#030a10]/90 backdrop-blur-xl">
<div className="absolute inset-0 -z-10 bg-gradient-to-b from-background/85 to-background/45 dark:from-[#030a10]/95 dark:to-[#030a10]/70" /> <div className="absolute inset-0 -z-10 bg-gradient-to-b from-background/85 to-background/45 dark:from-[#030a10]/95 dark:to-[#030a10]/70" />
<div className="mx-auto flex h-16 w-full max-w-7xl items-center gap-4 px-4 sm:px-6 lg:px-8"> <div className="mx-auto flex h-16 w-full max-w-7xl items-center gap-4 px-3 sm:px-6 lg:px-8">
<Link to="/" className="group flex items-center gap-3"> <Link to="/" className="group flex items-center gap-3">
<div className="flex size-10 items-center justify-center shadow-primary/10 "> <div className="flex size-10 items-center justify-center shadow-primary/10 ">
<img src={PlayzerIcon} alt="Playzer" className="size-7" /> <img src={PlayzerIcon} alt="Playzer" className="size-7" />

View File

@@ -20,7 +20,7 @@ export function Layout({ children }: LayoutProps) {
className={ className={
isMobileHome isMobileHome
? 'relative z-10 mx-auto w-full max-w-7xl' ? 'relative z-10 mx-auto w-full max-w-7xl'
: 'relative z-10 mx-auto w-full max-w-7xl px-4 py-6 sm:px-6 lg:px-8' : 'relative z-10 mx-auto w-full max-w-7xl px-3 py-6 sm:px-6 lg:px-8'
} }
> >
{children} {children}

View File

@@ -1,6 +1,6 @@
export function AboutPage() { export function AboutPage() {
return ( return (
<main className="mx-auto flex min-h-[60vh] w-full max-w-6xl items-center justify-center px-6"> <main className="mx-auto flex min-h-[60vh] w-full max-w-6xl items-center justify-center px-3 sm:px-6">
<section className="w-full max-w-3xl rounded-xl border bg-card p-6 text-card-foreground shadow-sm"> <section className="w-full max-w-3xl rounded-xl border bg-card p-6 text-card-foreground shadow-sm">
<h2 className="text-2xl font-semibold">About</h2> <h2 className="text-2xl font-semibold">About</h2>
<p className="mt-2 text-sm text-muted-foreground"> <p className="mt-2 text-sm text-muted-foreground">

View File

@@ -66,7 +66,7 @@ export function BookingMobile() {
return ( return (
<div className="min-h-dvh pb-24"> <div className="min-h-dvh pb-24">
<MobileTopBar /> <MobileTopBar />
<div className="space-y-6 px-4 pt-5"> <div className="space-y-6 px-3 pt-5">
<MobilePanelHeader /> <MobilePanelHeader />
<MobileFilters /> <MobileFilters />
<MobileSummary /> <MobileSummary />
@@ -155,7 +155,7 @@ function MobileTopBar() {
}; };
return ( return (
<header className="sticky top-0 z-30 border-b border-border/70 bg-background/85 px-4 py-4 backdrop-blur-xl"> <header className="sticky top-0 z-30 border-b border-border/70 bg-background/85 px-3 py-4 backdrop-blur-xl">
<div className="flex items-center justify-between"> <div className="flex items-center justify-between">
<div className="flex items-center gap-2.5"> <div className="flex items-center gap-2.5">
<img src={PlayzerIcon} alt="Playzer" className="size-9" /> <img src={PlayzerIcon} alt="Playzer" className="size-9" />
@@ -475,7 +475,7 @@ function MobileCourtDay({
return ( return (
<div className="min-h-dvh pb-24"> <div className="min-h-dvh pb-24">
<header className="sticky top-0 z-30 border-b border-border/70 bg-background/90 px-4 py-4 backdrop-blur-xl"> <header className="sticky top-0 z-30 border-b border-border/70 bg-background/90 px-3 py-4 backdrop-blur-xl">
<div className="flex items-center justify-between gap-3"> <div className="flex items-center justify-between gap-3">
<Button <Button
type="button" type="button"
@@ -522,7 +522,7 @@ function MobileCourtDay({
</div> </div>
</header> </header>
<main className="space-y-4 px-4 pt-4"> <main className="space-y-4 px-3 pt-4">
<section className="rounded-lg border border-border/70 bg-card/70 p-4"> <section className="rounded-lg border border-border/70 bg-card/70 p-4">
<StatusLegend /> <StatusLegend />
</section> </section>
@@ -534,7 +534,7 @@ function MobileCourtDay({
</section> </section>
</main> </main>
<div className="fixed inset-x-0 bottom-0 z-40 border-t border-border/70 bg-background/90 p-4 backdrop-blur-xl"> <div className="fixed inset-x-0 bottom-0 z-40 border-t border-border/70 bg-background/90 p-3 backdrop-blur-xl">
<Button <Button
type="button" type="button"
className="h-14 w-full rounded-lg text-base shadow-lg shadow-primary/25" className="h-14 w-full rounded-lg text-base shadow-lg shadow-primary/25"

View File

@@ -32,7 +32,7 @@ export function ComplexCourtsPage({ complexSlug }: ComplexCourtsPageProps) {
}); });
return ( return (
<main className="mx-auto w-full max-w-6xl space-y-6 px-4 py-4 sm:px-6"> <main className="mx-auto w-full max-w-6xl space-y-6 py-4">
<section className="rounded-xl border bg-card p-4 text-card-foreground shadow-sm sm:p-5"> <section className="rounded-xl border bg-card p-4 text-card-foreground shadow-sm sm:p-5">
<h2 className="text-2xl font-semibold"> <h2 className="text-2xl font-semibold">
{complexQuery.data?.complexName ?? 'Configurar canchas'} {complexQuery.data?.complexName ?? 'Configurar canchas'}

View File

@@ -43,7 +43,7 @@ export function ComplexSettingsPage({ complexSlug }: ComplexSettingsPageProps) {
]; ];
return ( return (
<div className="mx-auto w-full max-w-6xl px-4 py-4 sm:px-6"> <div className="mx-auto w-full max-w-6xl py-4">
<section className="rounded-xl border bg-card p-4 text-card-foreground shadow-sm sm:p-5"> <section className="rounded-xl border bg-card p-4 text-card-foreground shadow-sm sm:p-5">
<h2 className="text-2xl font-semibold"> <h2 className="text-2xl font-semibold">
<Settings className="mb-1 mr-2 inline size-6" /> <Settings className="mb-1 mr-2 inline size-6" />
@@ -54,7 +54,7 @@ export function ComplexSettingsPage({ complexSlug }: ComplexSettingsPageProps) {
</p> </p>
</section> </section>
<div className="mt-6 grid gap-6 lg:grid-cols-[200px_1fr]"> <div className="mt-6 grid gap-5 lg:grid-cols-[200px_1fr] lg:gap-6">
<nav className="flex flex-row gap-1 overflow-x-auto lg:flex-col lg:overflow-visible"> <nav className="flex flex-row gap-1 overflow-x-auto lg:flex-col lg:overflow-visible">
{tabs.map((tab) => { {tabs.map((tab) => {
const Icon = tab.icon; const Icon = tab.icon;

View File

@@ -22,7 +22,7 @@ export function ComplexCourtsSection({ complexId }: ComplexCourtsSectionProps) {
}); });
return ( return (
<section className="mt-6 rounded-xl border bg-card p-5"> <section className="mt-6 rounded-xl border bg-card p-3 sm:p-5">
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<MapPin className="size-5 text-muted-foreground" /> <MapPin className="size-5 text-muted-foreground" />
<h3 className="text-lg font-medium">Canchas</h3> <h3 className="text-lg font-medium">Canchas</h3>

View File

@@ -128,7 +128,7 @@ export function CourtFormSection({
const buttonText = editingCourt ? 'Guardar cambios' : 'Agregar cancha'; const buttonText = editingCourt ? 'Guardar cambios' : 'Agregar cancha';
return ( return (
<section className="rounded-xl border bg-card p-4 text-card-foreground shadow-sm sm:p-5 mb-4"> <section className="mb-4 rounded-xl border bg-card p-3 text-card-foreground shadow-sm sm:p-5">
<h3 className="text-lg font-semibold">{title}</h3> <h3 className="text-lg font-semibold">{title}</h3>
<p className="mt-1 text-sm text-muted-foreground"> <p className="mt-1 text-sm text-muted-foreground">
Configura nombre, deporte, duración, precio base y horarios. El backend ya contempla precios Configura nombre, deporte, duración, precio base y horarios. El backend ya contempla precios

View File

@@ -18,7 +18,7 @@ export function CourtListSection({
onEditCourt, onEditCourt,
}: CourtListSectionProps) { }: CourtListSectionProps) {
return ( return (
<section className="rounded-xl border bg-card p-4 text-card-foreground shadow-sm sm:p-5"> <section className="rounded-xl border bg-card p-3 text-card-foreground shadow-sm sm:p-5">
<h3 className="text-lg font-semibold">Canchas configuradas</h3> <h3 className="text-lg font-semibold">Canchas configuradas</h3>
{isLoading && <p className="mt-3 text-sm text-muted-foreground">Cargando canchas...</p>} {isLoading && <p className="mt-3 text-sm text-muted-foreground">Cargando canchas...</p>}
@@ -37,7 +37,7 @@ export function CourtListSection({
<div className="mt-4 space-y-3"> <div className="mt-4 space-y-3">
{courts.map((court) => ( {courts.map((court) => (
<article key={court.id} className="rounded-lg border p-4"> <article key={court.id} className="rounded-lg border p-3 sm:p-4">
<div className="flex flex-col gap-3 sm:flex-row sm:flex-wrap sm:items-center sm:justify-between"> <div className="flex flex-col gap-3 sm:flex-row sm:flex-wrap sm:items-center sm:justify-between">
<div> <div>
<p className="font-medium">{court.name}</p> <p className="font-medium">{court.name}</p>

View File

@@ -78,7 +78,7 @@ export function LoginPage({ redirectTo = '/' }: LoginPageProps) {
}; };
return ( return (
<main className="flex min-h-screen w-full items-center justify-center px-6"> <main className="flex min-h-screen w-full items-center justify-center px-3 sm:px-6">
<section className="w-full max-w-sm rounded-xl border bg-card p-6 text-card-foreground shadow-sm"> <section className="w-full max-w-sm rounded-xl border bg-card p-6 text-card-foreground shadow-sm">
<h1 className="mb-2 text-2xl font-semibold">Iniciar sesión</h1> <h1 className="mb-2 text-2xl font-semibold">Iniciar sesión</h1>
<p className="mb-4 text-sm text-muted-foreground"> <p className="mb-4 text-sm text-muted-foreground">

View File

@@ -4,7 +4,7 @@ import { Compass, Home, Sparkles } from 'lucide-react';
export function NotFoundPage() { export function NotFoundPage() {
return ( return (
<main className="relative isolate mx-auto flex min-h-screen w-full max-w-5xl items-center justify-center overflow-hidden px-6 py-10"> <main className="relative isolate mx-auto flex min-h-screen w-full max-w-5xl items-center justify-center overflow-hidden px-3 py-10 sm:px-6">
<div className="pointer-events-none absolute inset-0 -z-10 bg-[radial-gradient(circle_at_20%_20%,rgba(56,189,248,0.14),transparent_45%),radial-gradient(circle_at_80%_10%,rgba(244,114,182,0.12),transparent_40%),radial-gradient(circle_at_50%_90%,rgba(59,130,246,0.10),transparent_40%)]" /> <div className="pointer-events-none absolute inset-0 -z-10 bg-[radial-gradient(circle_at_20%_20%,rgba(56,189,248,0.14),transparent_45%),radial-gradient(circle_at_80%_10%,rgba(244,114,182,0.12),transparent_40%),radial-gradient(circle_at_50%_90%,rgba(59,130,246,0.10),transparent_40%)]" />
<section className="w-full max-w-2xl rounded-2xl border bg-card/80 p-8 text-card-foreground shadow-xl backdrop-blur"> <section className="w-full max-w-2xl rounded-2xl border bg-card/80 p-8 text-card-foreground shadow-xl backdrop-blur">

View File

@@ -7,7 +7,7 @@ type OnboardingLayoutProps = PropsWithChildren<{
export function OnboardingLayout({ title, description, children }: OnboardingLayoutProps) { export function OnboardingLayout({ title, description, children }: OnboardingLayoutProps) {
return ( return (
<main className="mx-auto flex min-h-screen w-full max-w-6xl items-center justify-center px-6"> <main className="mx-auto flex min-h-screen w-full max-w-6xl items-center justify-center px-3 sm:px-6">
<section className="w-full max-w-3xl rounded-xl border bg-card p-6 text-card-foreground shadow-sm"> <section className="w-full max-w-3xl rounded-xl border bg-card p-6 text-card-foreground shadow-sm">
<h1 className="mb-2 text-2xl font-semibold">{title}</h1> <h1 className="mb-2 text-2xl font-semibold">{title}</h1>
<p className="mb-4 text-sm text-muted-foreground">{description}</p> <p className="mb-4 text-sm text-muted-foreground">{description}</p>

View File

@@ -106,7 +106,7 @@ export function CreateComplexPage() {
}; };
return ( return (
<main className="flex min-h-screen w-full items-center justify-center px-6"> <main className="flex min-h-screen w-full items-center justify-center px-3 sm:px-6">
<section className="w-full max-w-sm rounded-xl border bg-card p-6 text-card-foreground shadow-sm"> <section className="w-full max-w-sm rounded-xl border bg-card p-6 text-card-foreground shadow-sm">
<h1 className="mb-2 text-2xl font-semibold">Crear tu complejo</h1> <h1 className="mb-2 text-2xl font-semibold">Crear tu complejo</h1>
<p className="mb-4 text-sm text-muted-foreground"> <p className="mb-4 text-sm text-muted-foreground">

View File

@@ -142,7 +142,7 @@ export function OnboardLoginPage({
}; };
return ( return (
<main className="flex min-h-screen w-full items-center justify-center px-6"> <main className="flex min-h-screen w-full items-center justify-center px-3 sm:px-6">
<section className="w-full max-w-sm rounded-xl border bg-card p-6 text-card-foreground shadow-sm"> <section className="w-full max-w-sm rounded-xl border bg-card p-6 text-card-foreground shadow-sm">
<h1 className="mb-2 text-2xl font-semibold"> <h1 className="mb-2 text-2xl font-semibold">
{mode === 'login' ? 'Iniciar sesión' : 'Crear cuenta'} {mode === 'login' ? 'Iniciar sesión' : 'Crear cuenta'}

View File

@@ -24,7 +24,7 @@ export function VerifyEmailPage() {
}; };
return ( return (
<main className="flex min-h-screen w-full items-center justify-center px-6"> <main className="flex min-h-screen w-full items-center justify-center px-3 sm:px-6">
<section className="w-full max-w-sm rounded-xl border bg-card p-6 text-card-foreground shadow-sm"> <section className="w-full max-w-sm rounded-xl border bg-card p-6 text-card-foreground shadow-sm">
<h1 className="mb-2 text-2xl font-semibold">Verificá tu email</h1> <h1 className="mb-2 text-2xl font-semibold">Verificá tu email</h1>
<p className="mb-4 text-sm text-muted-foreground"> <p className="mb-4 text-sm text-muted-foreground">

View File

@@ -149,7 +149,7 @@ export function ResetPasswordPage() {
if (successMessage) { if (successMessage) {
return ( return (
<main className="flex min-h-screen w-full items-center justify-center px-6"> <main className="flex min-h-screen w-full items-center justify-center px-3 sm:px-6">
<section className="w-full max-w-sm rounded-xl border bg-card p-6 text-card-foreground shadow-sm"> <section className="w-full max-w-sm rounded-xl border bg-card p-6 text-card-foreground shadow-sm">
<div className="text-center"> <div className="text-center">
<div className="mb-4 text-2xl"></div> <div className="mb-4 text-2xl"></div>
@@ -162,7 +162,7 @@ export function ResetPasswordPage() {
} }
return ( return (
<main className="flex min-h-screen w-full items-center justify-center px-6"> <main className="flex min-h-screen w-full items-center justify-center px-3 sm:px-6">
<section className="w-full max-w-sm rounded-xl border bg-card p-6 text-card-foreground shadow-sm"> <section className="w-full max-w-sm rounded-xl border bg-card p-6 text-card-foreground shadow-sm">
<h1 className="mb-2 text-2xl font-semibold"> <h1 className="mb-2 text-2xl font-semibold">
{step === 'email' ? 'Restablecer contraseña' : 'Ingresá el código'} {step === 'email' ? 'Restablecer contraseña' : 'Ingresá el código'}

View File

@@ -100,7 +100,7 @@ export function ProfilePage() {
if (!isAuthenticated) { if (!isAuthenticated) {
return ( return (
<main className="mx-auto flex min-h-[60vh] w-full max-w-6xl items-center justify-center px-6"> <main className="mx-auto flex min-h-[60vh] w-full max-w-6xl items-center justify-center px-3 sm:px-6">
<section className="w-full max-w-3xl rounded-xl border bg-card p-6 text-card-foreground shadow-sm"> <section className="w-full max-w-3xl rounded-xl border bg-card p-6 text-card-foreground shadow-sm">
<h1 className="text-2xl font-semibold">Perfil</h1> <h1 className="text-2xl font-semibold">Perfil</h1>
<p className="mt-2 text-sm text-muted-foreground"> <p className="mt-2 text-sm text-muted-foreground">
@@ -115,7 +115,7 @@ export function ProfilePage() {
} }
return ( return (
<main className="mx-auto flex min-h-[60vh] w-full max-w-6xl items-center justify-center px-6 py-8"> <main className="mx-auto flex min-h-[60vh] w-full max-w-6xl items-center justify-center px-3 py-8 sm:px-6">
<div className="w-full max-w-3xl space-y-6"> <div className="w-full max-w-3xl space-y-6">
<section className="rounded-xl border bg-card p-6 text-card-foreground shadow-sm"> <section className="rounded-xl border bg-card p-6 text-card-foreground shadow-sm">
<div className="flex items-center gap-3"> <div className="flex items-center gap-3">

View File

@@ -41,7 +41,7 @@ export function PublicBookingConfirmationPage({
return ( return (
<main className="min-h-screen bg-linear-to-b from-background via-background to-primary/5"> <main className="min-h-screen bg-linear-to-b from-background via-background to-primary/5">
<div className="mx-auto flex min-h-screen w-full max-w-3xl items-center px-4 py-8 sm:px-6"> <div className="mx-auto flex min-h-screen w-full max-w-3xl items-center px-3 py-8 sm:px-6">
<section className="w-full rounded-3xl border bg-card p-5 shadow-lg sm:p-8"> <section className="w-full rounded-3xl border bg-card p-5 shadow-lg sm:p-8">
{confirmationQuery.isLoading && ( {confirmationQuery.isLoading && (
<p className="text-sm text-muted-foreground">Cargando confirmacion...</p> <p className="text-sm text-muted-foreground">Cargando confirmacion...</p>

View File

@@ -330,7 +330,7 @@ export function PublicBookingPage({ complexSlug }: PublicBookingPageProps) {
return ( return (
<main className="min-h-screen bg-linear-to-b from-background to-muted/40"> <main className="min-h-screen bg-linear-to-b from-background to-muted/40">
<div className="mx-auto flex w-full max-w-5xl flex-col gap-4 px-4 py-4 sm:gap-6 sm:px-6 sm:py-8"> <div className="mx-auto flex w-full max-w-5xl flex-col gap-4 px-3 py-4 sm:gap-6 sm:px-6 sm:py-8">
<section className="rounded-2xl border bg-card p-4 shadow-sm sm:p-6"> <section className="rounded-2xl border bg-card p-4 shadow-sm sm:p-6">
<div className="flex flex-col gap-1"> <div className="flex flex-col gap-1">
<h1 className="text-2xl font-bold text-primary sm:text-3xl"> <h1 className="text-2xl font-bold text-primary sm:text-3xl">

View File

@@ -29,7 +29,7 @@ export function SelectComplexPage() {
if (complexesQuery.isLoading) { if (complexesQuery.isLoading) {
return ( return (
<main className="flex min-h-screen w-full items-center justify-center px-6"> <main className="flex min-h-screen w-full items-center justify-center px-3 sm:px-6">
<Loader2 className="h-8 w-8 animate-spin text-muted-foreground" /> <Loader2 className="h-8 w-8 animate-spin text-muted-foreground" />
</main> </main>
); );
@@ -37,7 +37,7 @@ export function SelectComplexPage() {
if (complexesQuery.isError) { if (complexesQuery.isError) {
return ( return (
<main className="flex min-h-screen w-full items-center justify-center px-6"> <main className="flex min-h-screen w-full items-center justify-center px-3 sm:px-6">
<div className="text-center"> <div className="text-center">
<p className="text-destructive">Error al cargar tus complejos.</p> <p className="text-destructive">Error al cargar tus complejos.</p>
<Button variant="link" className="mt-2" onClick={() => complexesQuery.refetch()}> <Button variant="link" className="mt-2" onClick={() => complexesQuery.refetch()}>
@@ -52,7 +52,7 @@ export function SelectComplexPage() {
if (complexes.length === 0) { if (complexes.length === 0) {
return ( return (
<main className="flex min-h-screen w-full items-center justify-center px-6"> <main className="flex min-h-screen w-full items-center justify-center px-3 sm:px-6">
<div className="text-center"> <div className="text-center">
<p className="text-muted-foreground">No tenés complejos asociados.</p> <p className="text-muted-foreground">No tenés complejos asociados.</p>
</div> </div>
@@ -61,7 +61,7 @@ export function SelectComplexPage() {
} }
return ( return (
<main className="flex min-h-screen w-full items-center justify-center px-6"> <main className="flex min-h-screen w-full items-center justify-center px-3 sm:px-6">
<section className="w-full max-w-md space-y-6"> <section className="w-full max-w-md space-y-6">
<div className="space-y-2"> <div className="space-y-2">
<h1 className="text-2xl font-semibold">Seleccioná un complejo</h1> <h1 className="text-2xl font-semibold">Seleccioná un complejo</h1>

View File

@@ -4,7 +4,7 @@ import { AlertTriangle, Home, RefreshCw, Route } from 'lucide-react';
export function ServerErrorPage({ error, reset }: ErrorComponentProps) { export function ServerErrorPage({ error, reset }: ErrorComponentProps) {
return ( return (
<main className="relative isolate mx-auto flex min-h-screen w-full max-w-5xl items-center justify-center overflow-hidden px-6 py-10"> <main className="relative isolate mx-auto flex min-h-screen w-full max-w-5xl items-center justify-center overflow-hidden px-3 py-10 sm:px-6">
<div className="pointer-events-none absolute inset-0 -z-10 bg-[radial-gradient(circle_at_15%_10%,rgba(248,113,113,0.14),transparent_42%),radial-gradient(circle_at_80%_20%,rgba(251,191,36,0.12),transparent_38%),radial-gradient(circle_at_60%_90%,rgba(59,130,246,0.10),transparent_42%)]" /> <div className="pointer-events-none absolute inset-0 -z-10 bg-[radial-gradient(circle_at_15%_10%,rgba(248,113,113,0.14),transparent_42%),radial-gradient(circle_at_80%_20%,rgba(251,191,36,0.12),transparent_38%),radial-gradient(circle_at_60%_90%,rgba(59,130,246,0.10),transparent_42%)]" />
<section className="w-full max-w-2xl rounded-2xl border bg-card/80 p-8 text-card-foreground shadow-xl backdrop-blur"> <section className="w-full max-w-2xl rounded-2xl border bg-card/80 p-8 text-card-foreground shadow-xl backdrop-blur">

View File

@@ -36,7 +36,7 @@ function AppRouter() {
if (auth.loading) { if (auth.loading) {
return ( return (
<main className="mx-auto flex min-h-screen w-full max-w-6xl items-center justify-center px-6"> <main className="mx-auto flex min-h-screen w-full max-w-6xl items-center justify-center px-3 sm:px-6">
<p className="text-sm text-muted-foreground">Validando sesión...</p> <p className="text-sm text-muted-foreground">Validando sesión...</p>
</main> </main>
); );

View File

@@ -19,7 +19,7 @@ export const Route = createRootRouteWithContext<RouterContext>()({
function RootRoute() { function RootRoute() {
return ( return (
<Layout> <Layout>
<div className="flex flex-col p-6"> <div className="flex flex-col">
<Outlet /> <Outlet />
</div> </div>
</Layout> </Layout>

View File

@@ -41,7 +41,7 @@ function AuthCallbackPage() {
}, [isAuthenticated, navigate]); }, [isAuthenticated, navigate]);
return ( return (
<main className="flex min-h-screen w-full items-center justify-center px-6"> <main className="flex min-h-screen w-full items-center justify-center px-3 sm:px-6">
<p className="text-sm text-muted-foreground">Completando sesión...</p> <p className="text-sm text-muted-foreground">Completando sesión...</p>
</main> </main>
); );

View File

@@ -36,7 +36,7 @@ function InvitePage() {
if (isAuthenticated) { if (isAuthenticated) {
return ( return (
<main className="flex min-h-screen w-full items-center justify-center px-6"> <main className="flex min-h-screen w-full items-center justify-center px-3 sm:px-6">
<p className="text-sm text-muted-foreground">Aceptando invitación...</p> <p className="text-sm text-muted-foreground">Aceptando invitación...</p>
</main> </main>
); );