diff --git a/app/test_goldens/sharezone_plus/goldens/sharezone_plus_unsubscribe_section.tablet_portrait.png b/app/test_goldens/sharezone_plus/goldens/sharezone_plus_unsubscribe_section.tablet_portrait.png index 1a0491697..2a61a943e 100644 Binary files a/app/test_goldens/sharezone_plus/goldens/sharezone_plus_unsubscribe_section.tablet_portrait.png and b/app/test_goldens/sharezone_plus/goldens/sharezone_plus_unsubscribe_section.tablet_portrait.png differ diff --git a/lib/sharezone_plus/sharezone_plus_page_ui/lib/src/sharezone_plus_faq.dart b/lib/sharezone_plus/sharezone_plus_page_ui/lib/src/sharezone_plus_faq.dart index a8b99cba0..548cb143e 100644 --- a/lib/sharezone_plus/sharezone_plus_page_ui/lib/src/sharezone_plus_faq.dart +++ b/lib/sharezone_plus/sharezone_plus_page_ui/lib/src/sharezone_plus_faq.dart @@ -35,6 +35,8 @@ class SharezonePlusFaq extends StatelessWidget { const _DoesTheFileStorageLimitAlsoForGroups(), const SizedBox(height: 12), const _SchoolClassLicense(), + const SizedBox(height: 12), + const _FamilyLicense(), if (showContentCreatorQuestion) ...[ const SizedBox(height: 12), const _ContentCreator(), @@ -148,7 +150,7 @@ class _SchoolClassLicense extends StatelessWidget { @override Widget build(BuildContext context) { return ExpansionCard( - header: const Text('Gibt es eine Lizenz für meine gesamte Klasse?'), + header: const Text('Gibt es spezielle Angebote für Schulklassen?'), body: MarkdownBody( data: 'Du bist interessiert an einer Lizenz für deine gesamte Klasse? Schreib' @@ -177,6 +179,40 @@ class _SchoolClassLicense extends StatelessWidget { } } +class _FamilyLicense extends StatelessWidget { + const _FamilyLicense(); + + @override + Widget build(BuildContext context) { + return ExpansionCard( + header: const Text('Gibt es spezielle Angebote für Familien?'), + body: MarkdownBody( + data: + 'Ja, für Familien mit mehreren Kindern bieten wir besondere Konditionen an. Schreib uns einfach eine E-Mail an [plus@sharezone.net](mailto:plus@sharezone.net), um mehr zu erfahren.', + styleSheet: MarkdownStyleSheet( + a: TextStyle( + color: Theme.of(context).primaryColor, + decoration: TextDecoration.underline, + ), + ), + onTapLink: (text, href, title) async { + try { + final uri = Uri.parse(href!); + await launchUrl(uri); + } on Exception catch (_) { + if (!context.mounted) return; + showSnackSec( + text: 'E-Mail: plus@sharezone.net', + context: context, + ); + } + }, + ), + backgroundColor: Theme.of(context).colorScheme.primary.withOpacity(0.2), + ); + } +} + class _ContentCreator extends StatelessWidget { const _ContentCreator(); diff --git a/lib/sharezone_plus/sharezone_plus_page_ui/test_goldens/goldens/sharezone_plus_faq_section_dark_theme.tablet_portrait.png b/lib/sharezone_plus/sharezone_plus_page_ui/test_goldens/goldens/sharezone_plus_faq_section_dark_theme.tablet_portrait.png index 24be348a8..9f0828fd7 100644 Binary files a/lib/sharezone_plus/sharezone_plus_page_ui/test_goldens/goldens/sharezone_plus_faq_section_dark_theme.tablet_portrait.png and b/lib/sharezone_plus/sharezone_plus_page_ui/test_goldens/goldens/sharezone_plus_faq_section_dark_theme.tablet_portrait.png differ diff --git a/lib/sharezone_plus/sharezone_plus_page_ui/test_goldens/goldens/sharezone_plus_faq_section_light_theme.tablet_portrait.png b/lib/sharezone_plus/sharezone_plus_page_ui/test_goldens/goldens/sharezone_plus_faq_section_light_theme.tablet_portrait.png index 606759c2e..16a8d8ce9 100644 Binary files a/lib/sharezone_plus/sharezone_plus_page_ui/test_goldens/goldens/sharezone_plus_faq_section_light_theme.tablet_portrait.png and b/lib/sharezone_plus/sharezone_plus_page_ui/test_goldens/goldens/sharezone_plus_faq_section_light_theme.tablet_portrait.png differ