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