mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 11:03:50 +00:00
mobile optimizations
This commit is contained in:
@@ -56,13 +56,9 @@ const ogImage = "https://timmypidashev.dev/og-image.jpg";
|
||||
</head>
|
||||
<body class="bg-background text-foreground min-h-screen flex flex-col">
|
||||
<Header client:load />
|
||||
<!-- Mobile: full-screen background -->
|
||||
<div class="lg:hidden">
|
||||
<Background layout="index" client:only="react" transition:persist />
|
||||
</div>
|
||||
<Background layout="index" mobileOnly client:only="react" transition:persist />
|
||||
<main class="flex-1 flex flex-col">
|
||||
<div class="max-w-5xl mx-auto pt-2 lg:pt-12 px-4 py-4 lg:py-8 pb-20 lg:pb-8 flex-1 relative z-10">
|
||||
<!-- Desktop: sidebar strips -->
|
||||
<Background layout="content" position="right" client:only="react" transition:persist />
|
||||
<div>
|
||||
<slot />
|
||||
|
||||
@@ -41,7 +41,7 @@ const ogImage = "https://timmypidashev.dev/og-image.jpg";
|
||||
<script is:inline set:html={THEME_LOADER_SCRIPT} />
|
||||
<script is:inline set:html={ANIMATION_LOADER_SCRIPT} />
|
||||
</head>
|
||||
<body class="bg-background text-foreground">
|
||||
<body class="bg-background text-foreground overflow-hidden h-screen">
|
||||
<Header client:load transparent />
|
||||
<main transition:animate="fade">
|
||||
<Background layout="index" client:only="react" transition:persist />
|
||||
|
||||
@@ -55,13 +55,9 @@ const ogImage = "https://timmypidashev.dev/og-image.jpg";
|
||||
<script is:inline set:html={ANIMATION_LOADER_SCRIPT} />
|
||||
</head>
|
||||
<body class="bg-background text-foreground min-h-screen flex flex-col">
|
||||
<!-- Mobile: full-screen background -->
|
||||
<div class="lg:hidden">
|
||||
<Background layout="index" client:only="react" transition:persist />
|
||||
</div>
|
||||
<Background layout="index" mobileOnly client:only="react" transition:persist />
|
||||
<main class="flex-1 flex flex-col">
|
||||
<div class="max-w-5xl mx-auto pt-2 lg:pt-12 px-4 py-4 lg:py-8 flex-1 relative z-10">
|
||||
<!-- Desktop: sidebar strips -->
|
||||
<Background layout="content" position="right" client:only="react" transition:persist />
|
||||
<div>
|
||||
<slot />
|
||||
|
||||
Reference in New Issue
Block a user