Skip to content

Commit

Permalink
Add family license to the FAQ (#1654)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreichardt authored Jun 6, 2024
1 parent 3ccc360 commit dcf6066
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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 [[email protected]](mailto:[email protected]), 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: [email protected]',
context: context,
);
}
},
),
backgroundColor: Theme.of(context).colorScheme.primary.withOpacity(0.2),
);
}
}

class _ContentCreator extends StatelessWidget {
const _ContentCreator();

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dcf6066

Please sign in to comment.