Skip to content

Commit 94ed6f6

Browse files
committed
Fix initial scaling issue and optimize homepage element positioning
1 parent 40eada4 commit 94ed6f6

File tree

3 files changed

+21
-17
lines changed

3 files changed

+21
-17
lines changed

src/app.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
/* Google Fonts */
66
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
77

8-
/* Custom globals for that vibey feel */
98
@layer base {
109
html {
1110
font-family: 'Inter', system-ui, sans-serif;
11+
font-size: 16px;
12+
zoom: 1;
1213
}
1314

1415
body {

src/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
77
<meta name="description" content="Add drawings and notes to any PDF. Works with mouse, touch, or stylus." />
88
<title>LeedPDF - Draw on PDFs</title>
99
<link rel="preconnect" href="https://fonts.googleapis.com">

src/routes/+page.svelte

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -713,21 +713,23 @@
713713

714714
<div class="w-full h-full pt-12">
715715
{#if showWelcome}
716-
<!-- Peerlist embed at the very top -->
717-
<div class="absolute top-20 left-1/2 transform -translate-x-1/2 z-10">
718-
<a href="https://peerlist.io/rudik/project/leedpdf" target="_blank" rel="noreferrer">
719-
<img
720-
src={`https://peerlist.io/api/v1/projects/embed/PRJHBARD8EREAG6RM1B78ODJOGA68D?showUpvote=true&theme=${$isDarkMode ? 'dark' : 'light'}`}
721-
alt="LeedPDF"
722-
style="width: auto; height: 72px;"
723-
class="mx-auto"
724-
/>
725-
</a>
726-
</div>
727-
728-
<div class="absolute inset-0 flex items-center justify-center">
729-
<div class="text-center max-w-md mx-auto px-6">
730-
<div class="mb-6 animate-bounce-soft">
716+
<div class="h-full flex flex-col">
717+
<!-- Peerlist embed at the very top -->
718+
<div class="flex justify-center pt-8 pb-4">
719+
<a href="https://peerlist.io/rudik/project/leedpdf" target="_blank" rel="noreferrer">
720+
<img
721+
src={`https://peerlist.io/api/v1/projects/embed/PRJHBARD8EREAG6RM1B78ODJOGA68D?showUpvote=true&theme=${$isDarkMode ? 'dark' : 'light'}`}
722+
alt="LeedPDF"
723+
style="width: auto; height: 72px;"
724+
class="mx-auto"
725+
/>
726+
</a>
727+
</div>
728+
729+
<!-- Main content, centered in remaining space -->
730+
<div class="flex-1 flex items-center justify-center">
731+
<div class="text-center max-w-md mx-auto px-6">
732+
<div class="mb-6 animate-bounce-soft">
731733
<img src="/logo.png" alt="LeedPDF" class="w-24 h-24 mx-auto dark:hidden object-contain" />
732734
<img src="/logo-dark.png" alt="LeedPDF" class="w-24 h-24 mx-auto hidden dark:block object-contain" />
733735
</div>
@@ -869,6 +871,7 @@
869871
</div>
870872
</div>
871873
</div>
874+
</div>
872875
{:else}
873876
<div class="flex h-full">
874877
{#if showThumbnails}

0 commit comments

Comments
 (0)