Main coves client
1import 'package:flutter/material.dart';
2import 'package:flutter_svg/flutter_svg.dart';
3import 'package:go_router/go_router.dart';
4import '../widgets/primary_button.dart';
5
6class LandingScreen extends StatelessWidget {
7 const LandingScreen({super.key});
8
9 @override
10 Widget build(BuildContext context) {
11 return Scaffold(
12 backgroundColor: const Color(0xFF0B0F14),
13 body: SafeArea(
14 child: Center(
15 child: Padding(
16 padding: const EdgeInsets.symmetric(horizontal: 24),
17 child: Column(
18 mainAxisAlignment: MainAxisAlignment.center,
19 children: [
20 // Lil Dude character
21 SvgPicture.asset(
22 'assets/logo/lil_dude.svg',
23 width: 120,
24 height: 120,
25 ),
26 const SizedBox(height: 16),
27
28 // Coves bubble text
29 SvgPicture.asset(
30 'assets/logo/coves_bubble.svg',
31 width: 180,
32 height: 60,
33 ),
34
35 const SizedBox(height: 48),
36
37 // Buttons
38 PrimaryButton(
39 title: 'Create account',
40 onPressed: () {
41 ScaffoldMessenger.of(context).showSnackBar(
42 const SnackBar(
43 content: Text('Account registration coming soon!'),
44 duration: Duration(seconds: 2),
45 ),
46 );
47 },
48 ),
49
50 const SizedBox(height: 12),
51
52 PrimaryButton(
53 title: 'Sign in',
54 onPressed: () {
55 context.go('/login');
56 },
57 variant: ButtonVariant.outline,
58 ),
59
60 const SizedBox(height: 20),
61
62 // Explore link
63 GestureDetector(
64 onTap: () {
65 context.go('/feed');
66 },
67 child: const Padding(
68 padding: EdgeInsets.symmetric(vertical: 8, horizontal: 12),
69 child: Text(
70 'Explore our communities!',
71 style: TextStyle(
72 fontSize: 14,
73 color: Color(0xFF8A96A6),
74 fontWeight: FontWeight.w500,
75 decoration: TextDecoration.underline,
76 ),
77 ),
78 ),
79 ),
80 ],
81 ),
82 ),
83 ),
84 ),
85 );
86 }
87}