-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Draft ComingSoon page structure. * chore: Update assets for coming soon page. * chore: Update assets for coming soon page. * feat: Add Coming Soon page with text animations. * chore: Adjust routes to display Coming Soon page. * chore: Remove guard from home route. * chore: Adjust spelling and linting.
- Loading branch information
Showing
20 changed files
with
275 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,6 +135,7 @@ timelike | |
tojunit | ||
Traceback | ||
TXNZD | ||
Typer | ||
unmanaged | ||
UTXO | ||
vitss | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import 'package:catalyst_voices/pages/coming_soon/description.dart'; | ||
import 'package:catalyst_voices/pages/coming_soon/logo.dart'; | ||
import 'package:catalyst_voices/pages/coming_soon/title.dart'; | ||
import 'package:catalyst_voices_assets/catalyst_voices_assets.dart'; | ||
import 'package:catalyst_voices_shared/catalyst_voices_shared.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
final class ComingSoonPage extends StatelessWidget { | ||
static const comingSoonPageKey = Key('ComingSoon'); | ||
|
||
const ComingSoonPage({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
key: comingSoonPageKey, | ||
body: Container( | ||
constraints: const BoxConstraints.expand(), | ||
decoration: BoxDecoration( | ||
image: DecorationImage( | ||
image: CatalystImage.asset( | ||
VoicesAssets.images.comingSoonBkg.path, | ||
).image, | ||
fit: BoxFit.cover, | ||
), | ||
), | ||
child: ResponsivePadding( | ||
xs: const EdgeInsets.only(left: 17), | ||
sm: const EdgeInsets.only(left: 119), | ||
md: const EdgeInsets.only(left: 150), | ||
lg: const EdgeInsets.only(left: 150), | ||
other: const EdgeInsets.only(left: 150), | ||
child: Align( | ||
alignment: Alignment.centerLeft, | ||
child: ConstrainedBox( | ||
constraints: const BoxConstraints(maxWidth: 356), | ||
child: const Column( | ||
mainAxisSize: MainAxisSize.min, | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
ComingSoonLogo(), | ||
ComingSoonTitle(), | ||
ComingSoonDescription(), | ||
], | ||
), | ||
), | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import 'package:animated_text_kit/animated_text_kit.dart'; | ||
import 'package:catalyst_voices_assets/generated/colors.gen.dart'; | ||
import 'package:catalyst_voices_localization/catalyst_voices_localization.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:google_fonts/google_fonts.dart'; | ||
|
||
class ComingSoonDescription extends StatelessWidget { | ||
const ComingSoonDescription({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return SizedBox( | ||
height: 66, | ||
child: DefaultTextStyle( | ||
style: GoogleFonts.notoSans( | ||
textStyle: const TextStyle(color: VoicesColors.blueText), | ||
fontSize: 16, | ||
fontWeight: FontWeight.w400, | ||
), | ||
child: AnimatedTextKit( | ||
pause: const Duration(milliseconds: 2000), | ||
animatedTexts: [ | ||
// We need an empty initial text to trigger an initial | ||
// pause | ||
TyperAnimatedText('', speed: Duration.zero), | ||
TyperAnimatedText( | ||
context.l10n.comingSoonDescription, | ||
speed: const Duration(milliseconds: 30), | ||
), | ||
], | ||
totalRepeatCount: 1, | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import 'package:catalyst_voices_assets/catalyst_voices_assets.dart'; | ||
import 'package:catalyst_voices_localization/catalyst_voices_localization.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:google_fonts/google_fonts.dart'; | ||
|
||
class ComingSoonLogo extends StatelessWidget { | ||
const ComingSoonLogo({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final l10n = context.l10n; | ||
return Row( | ||
crossAxisAlignment: CrossAxisAlignment.end, | ||
children: [ | ||
CatalystImage.asset( | ||
VoicesAssets.images.logo.path, | ||
), | ||
Container( | ||
margin: const EdgeInsets.only(left: 13, bottom: 6), | ||
child: Text( | ||
l10n.comingSoonSubtitle, | ||
style: GoogleFonts.notoSans( | ||
textStyle: const TextStyle(color: VoicesColors.blue), | ||
fontSize: 19, | ||
fontWeight: FontWeight.w500, | ||
), | ||
), | ||
), | ||
], | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import 'package:animated_text_kit/animated_text_kit.dart'; | ||
import 'package:catalyst_voices_assets/generated/colors.gen.dart'; | ||
import 'package:catalyst_voices_localization/catalyst_voices_localization.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:google_fonts/google_fonts.dart'; | ||
|
||
class ComingSoonTitle extends StatelessWidget { | ||
const ComingSoonTitle({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final l10n = context.l10n; | ||
return Container( | ||
height: 122, | ||
margin: const EdgeInsets.symmetric(vertical: 16), | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
DefaultTextStyle( | ||
style: GoogleFonts.poppins( | ||
textStyle: const TextStyle(color: VoicesColors.blue), | ||
fontSize: 53, | ||
height: 1.15, | ||
fontWeight: FontWeight.w700, | ||
), | ||
child: AnimatedTextKit( | ||
animatedTexts: [ | ||
TyperAnimatedText( | ||
l10n.comingSoonTitle1, | ||
speed: const Duration(milliseconds: 200), | ||
), | ||
], | ||
totalRepeatCount: 1, | ||
), | ||
), | ||
DefaultTextStyle( | ||
style: GoogleFonts.poppins( | ||
textStyle: const TextStyle(color: VoicesColors.blue), | ||
fontSize: 53, | ||
height: 1.15, | ||
fontWeight: FontWeight.w700, | ||
), | ||
child: AnimatedTextKit( | ||
pause: const Duration(milliseconds: 1200), | ||
animatedTexts: [ | ||
TyperAnimatedText( | ||
'', | ||
speed: Duration.zero, | ||
), | ||
TyperAnimatedText( | ||
l10n.comingSoonTitle2, | ||
speed: const Duration(milliseconds: 200), | ||
), | ||
], | ||
totalRepeatCount: 1, | ||
), | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import 'package:catalyst_voices/pages/home/home_page.dart'; | ||
import 'package:catalyst_voices/pages/coming_soon/coming_soon.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:go_router/go_router.dart'; | ||
|
||
part 'home_page_route.g.dart'; | ||
|
||
const homePath = '/home'; | ||
const homePath = '/'; | ||
|
||
@TypedGoRoute<HomeRoute>(path: homePath) | ||
final class HomeRoute extends GoRouteData { | ||
@override | ||
Widget build(BuildContext context, GoRouterState state) { | ||
return const HomePage(); | ||
return const ComingSoonPage(); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+97.1 KB
catalyst_voices/packages/catalyst_voices_assets/assets/images/coming_soon_bkg.webp
Binary file not shown.
Binary file added
BIN
+3.61 KB
catalyst_voices/packages/catalyst_voices_assets/assets/images/logo.webp
Binary file not shown.
9 changes: 8 additions & 1 deletion
9
catalyst_voices/packages/catalyst_voices_assets/lib/generated/assets.gen.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
catalyst_voices/packages/catalyst_voices_assets/lib/generated/colors.gen.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.