Skip to content

Commit 9345b2a

Browse files
committed
feat: enhance landing page with Lucide icons and proper SvelteKit navigation
- Add feature cards with Brain and Heart icons - Improve CTA buttons with Sparkles icon and better contrast - Use goto() instead of window.location.href for proper SvelteKit routing - Fix CSS variable issue (petalytics-base → petalytics-bg) - Add startup-style design elements and improved typography
1 parent 0358c39 commit 9345b2a

File tree

1 file changed

+81
-31
lines changed

1 file changed

+81
-31
lines changed

src/routes/+page.svelte

Lines changed: 81 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,104 @@
11
<script lang="ts">
2+
import { goto } from '$app/navigation';
3+
import { Brain, Heart, BarChart3, Sparkles } from 'lucide-svelte';
24
// Minimal welcome screen
3-
const go = () => (window.location.href = '/dashboard');
5+
const go = () => goto('/dashboard');
46
</script>
57

68
<div
79
class="min-h-screen flex items-center justify-center px-4"
810
style="background: var(--petalytics-bg);"
911
>
10-
<main class="w-full max-w-xl text-center">
11-
<img
12-
src="/favicon.svg"
13-
alt="Petalytic logo"
14-
width="72"
15-
height="72"
16-
class="mx-auto mb-4"
17-
decoding="async"
18-
loading="eager"
19-
/>
20-
<h1
21-
class="mb-4 font-extrabold tracking-tight"
22-
style="color: var(--petalytics-text); font-size: clamp(2.25rem, 6vw, 4rem);"
23-
>
24-
Petalytic
25-
</h1>
26-
<p
27-
class="mx-auto mb-8"
28-
style="color: var(--petalytics-subtle); font-size: clamp(1rem, 2.5vw, 1.125rem);"
29-
>
30-
A free, open pet journaling and insights app. No upsell—just a friendly welcome.
31-
</p>
12+
<main class="w-full max-w-4xl text-center">
13+
<!-- Logo Section -->
14+
<div class="mb-8">
15+
<img
16+
src="/favicon.svg"
17+
alt="Petalytics logo"
18+
width="120"
19+
height="120"
20+
class="mx-auto mb-6 drop-shadow-lg"
21+
decoding="async"
22+
loading="eager"
23+
/>
24+
<h1
25+
class="mb-4 font-extrabold tracking-tight"
26+
style="color: var(--petalytics-text); font-size: clamp(2.5rem, 8vw, 5rem);"
27+
>
28+
Petalytics
29+
</h1>
30+
<p
31+
class="mx-auto mb-12 max-w-2xl"
32+
style="color: var(--petalytics-subtle); font-size: clamp(1.125rem, 3vw, 1.25rem);"
33+
>
34+
AI-powered pet journaling that actually gets your furry friend. Track behaviors, get
35+
insights, catch health trends early.
36+
</p>
37+
</div>
38+
39+
<!-- Feature Cards -->
40+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-12 max-w-3xl mx-auto">
41+
<div
42+
class="p-6 rounded-xl border backdrop-blur-sm"
43+
style="background: color-mix(in oklab, var(--petalytics-surface) 80%, transparent); border-color: var(--petalytics-border);"
44+
>
45+
<Brain size={32} style="color: var(--petalytics-accent);" class="mx-auto mb-4" />
46+
<h3 class="font-semibold mb-2" style="color: var(--petalytics-text);">Smart AI Insights</h3>
47+
<p class="text-sm" style="color: var(--petalytics-subtle);">
48+
Ruixen AI analyzes your pet's daily notes and spots patterns you might miss
49+
</p>
50+
</div>
3251

33-
<div class="flex items-center justify-center gap-3">
52+
<div
53+
class="p-6 rounded-xl border backdrop-blur-sm"
54+
style="background: color-mix(in oklab, var(--petalytics-surface) 80%, transparent); border-color: var(--petalytics-border);"
55+
>
56+
<Heart size={32} style="color: var(--petalytics-love);" class="mx-auto mb-4" />
57+
<h3 class="font-semibold mb-2" style="color: var(--petalytics-text);">Health Monitoring</h3>
58+
<p class="text-sm" style="color: var(--petalytics-subtle);">
59+
Early warning system for mood changes, appetite shifts, and behavior trends
60+
</p>
61+
</div>
62+
</div>
63+
64+
<!-- CTA Section -->
65+
<div class="flex flex-col sm:flex-row items-center justify-center gap-4">
3466
<button
35-
class="px-6 py-3 rounded-md font-medium"
36-
style="background: var(--petalytics-accent); color: var(--petalytics-base);"
67+
class="px-8 py-4 rounded-lg font-semibold text-lg shadow-lg transition-all hover:scale-105 flex items-center gap-2"
68+
style="background: var(--petalytics-accent); color: var(--petalytics-bg);"
3769
onclick={go}
3870
>
39-
ENTER
71+
<Sparkles size={20} />
72+
Start Journaling
4073
</button>
4174
<a
42-
class="px-5 py-3 rounded-md font-medium border"
43-
style="border-color: var(--petalytics-border); color: var(--petalytics-text);"
75+
class="px-6 py-4 rounded-lg font-medium border transition-all hover:scale-105"
76+
style="border-color: var(--petalytics-border); color: var(--petalytics-text); background: color-mix(in oklab, var(--petalytics-surface) 50%, transparent);"
4477
href="https://github.com/gitcoder89431/petalytics"
4578
target="_blank"
4679
rel="noreferrer noopener"
4780
>
48-
GitHub ↗
81+
View on GitHub ↗
4982
</a>
5083
</div>
5184

52-
<div class="mt-10 text-xs" style="color: var(--petalytics-subtle);">:: Petalytic ::</div>
85+
<!-- Stats Badge -->
86+
<div
87+
class="mt-16 flex items-center justify-center gap-8 text-sm"
88+
style="color: var(--petalytics-subtle);"
89+
>
90+
<div class="flex items-center gap-2">
91+
<BarChart3 size={16} />
92+
<span>Open Source</span>
93+
</div>
94+
<div class="w-1 h-1 rounded-full" style="background: var(--petalytics-subtle);"></div>
95+
<div>Privacy First</div>
96+
<div class="w-1 h-1 rounded-full" style="background: var(--petalytics-subtle);"></div>
97+
<div>No Upsells</div>
98+
</div>
99+
100+
<div class="mt-8 text-xs" style="color: var(--petalytics-muted);">
101+
Built with ❤️ for pet parents everywhere
102+
</div>
53103
</main>
54104
</div>

0 commit comments

Comments
 (0)