Main coves client
1import 'package:flutter/material.dart';
2import 'package:go_router/go_router.dart';
3import '../widgets/logo.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 // Logo
21 const CovesLogo(useColorVersion: true),
22
23 // App Name
24 const Text(
25 'Coves',
26 style: TextStyle(
27 fontSize: 48,
28 fontWeight: FontWeight.bold,
29 color: Colors.white,
30 ),
31 ),
32
33 const SizedBox(height: 48),
34
35 // Buttons
36 PrimaryButton(
37 title: 'Create account',
38 onPressed: () {
39 context.go('/login');
40 },
41 ),
42
43 const SizedBox(height: 12),
44
45 PrimaryButton(
46 title: 'Sign in',
47 onPressed: () {
48 context.go('/login');
49 },
50 variant: ButtonVariant.outline,
51 ),
52
53 const SizedBox(height: 20),
54
55 // Explore link
56 GestureDetector(
57 onTap: () {
58 context.go('/feed');
59 },
60 child: const Padding(
61 padding: EdgeInsets.symmetric(vertical: 8, horizontal: 12),
62 child: Text(
63 'Explore our communities!',
64 style: TextStyle(
65 fontSize: 14,
66 color: Color(0xFF8A96A6),
67 fontWeight: FontWeight.w500,
68 decoration: TextDecoration.underline,
69 ),
70 ),
71 ),
72 ),
73 ],
74 ),
75 ),
76 ),
77 ),
78 );
79 }
80}