Skip to content

Commit

Permalink
change superteal to ff yellow
Browse files Browse the repository at this point in the history
Signed-off-by: phuoc <[email protected]>
  • Loading branch information
phuocbitmark committed Jan 8, 2024
1 parent ff2bbea commit a7d3353
Show file tree
Hide file tree
Showing 27 changed files with 614 additions and 695 deletions.
97 changes: 45 additions & 52 deletions lib/screen/bug_bounty_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,27 @@ import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';

class BugBountyPage extends StatelessWidget {
const BugBountyPage({Key? key}) : super(key: key);
const BugBountyPage({super.key});

@override
Widget build(BuildContext context) {
final theme = Theme.of(context);

Map<String, String> guidelines = {
"critical".tr(): "guidelines_critical".tr(),
'critical'.tr(): 'guidelines_critical'.tr(),
//"Key leaks or invalid transactions resulting in asset loss: Up to \$5,000",
"high".tr(): "guidelines_high".tr(),
'high'.tr(): 'guidelines_high'.tr(),
// "Crashes or user data loss: \$100 - \$500",
"medium".tr(): "guidelines_medium".tr(),
'medium'.tr(): 'guidelines_medium'.tr(),
//"Incorrect flows or incompatibility with protocol or dapps: \$50 - \$100",
"low".tr(): "guidelines_low".tr(),
'low'.tr(): 'guidelines_low'.tr(),
// "UI typos, alignment errors: \$10 - \$50",
};

return Scaffold(
appBar: getBackAppBar(
context,
title: "bug_bounty".tr(),
title: 'bug_bounty'.tr(),
onBack: () => Navigator.of(context).pop(),
),
body: Container(
Expand All @@ -50,8 +50,7 @@ class BugBountyPage extends StatelessWidget {
children: [
addTitleSpace(),
Text(
"we_value_feedback".tr(),
//"We greatly value feedback from our customers and the work done by security researchers in improving the usability and security of Autonomy. We are committed to quickly verify, reproduce, and respond to legitimate reported interface issues and vulnerabilities. ",
'we_value_feedback'.tr(),
style: theme.textTheme.ppMori400Black16,
),
const SizedBox(height: 32),
Expand All @@ -62,8 +61,7 @@ class BugBountyPage extends StatelessWidget {
style: theme.textTheme.ppMori400Black16,
children: <TextSpan>[
TextSpan(
text: "only_accept_new_bug".tr(),
//'We only accept new bug reports for our iPhone or Android Apps; please check our ',
text: 'only_accept_new_bug'.tr(),
),
TextSpan(
recognizer: TapGestureRecognizer()
Expand All @@ -79,24 +77,22 @@ class BugBountyPage extends StatelessWidget {
: theme.textTheme.linkStyle16,
),
TextSpan(
text: "not_reward_yet".tr(),
//' before submitting. Bug reports for web applications or any other projects are out of scope and will not be considered for rewards.',
text: 'not_reward_yet'.tr(),
),
])),
const SizedBox(height: 32),
Text('rewards'.tr(), style: theme.textTheme.ppMori700Black24),
const SizedBox(height: 32),
Text(
"reward_ranging".tr(),
//'We pay rewards ranging from \$10 to \$5,000, administered according to the following guidelines:',
'reward_ranging'.tr(),
style: theme.textTheme.ppMori400Black16,
),
const SizedBox(height: 32),
Container(
padding: const EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: AppColor.auSuperTeal,
color: AppColor.feralFileHighlight,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
Expand All @@ -109,44 +105,42 @@ class BugBountyPage extends StatelessWidget {
.copyWith(fontWeight: FontWeight.bold),
),
const SizedBox(height: 12),
...guidelines.keys
.map(
(e) => Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const SizedBox(
width: 8,
),
Text(
' • ',
...guidelines.keys.map(
(e) => Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const SizedBox(
width: 8,
),
Text(
' • ',
style: theme.textTheme.ppMori400Black14,
textAlign: TextAlign.start,
),
Expanded(
child: RichText(
text: TextSpan(
style: theme.textTheme.ppMori400Black14,
textAlign: TextAlign.start,
),
Expanded(
child: RichText(
text: TextSpan(
style: theme.textTheme.ppMori400Black14,
children: <TextSpan>[
TextSpan(
text: e,
style: ResponsiveLayout.isMobile
? theme.textTheme.ppMori400Black14
: theme.textTheme.ppMori400Black16,
),
TextSpan(
text: " – ${guidelines[e]!}",
style: ResponsiveLayout.isMobile
? theme.textTheme.ppMori400Black14
: theme.textTheme.ppMori400Black16,
),
],
children: <TextSpan>[
TextSpan(
text: e,
style: ResponsiveLayout.isMobile
? theme.textTheme.ppMori400Black14
: theme.textTheme.ppMori400Black16,
),
),
TextSpan(
text: ' – ${guidelines[e]!}',
style: ResponsiveLayout.isMobile
? theme.textTheme.ppMori400Black14
: theme.textTheme.ppMori400Black16,
),
],
),
],
),
),
)
.toList(),
],
),
),
],
),
),
Expand All @@ -159,12 +153,11 @@ class BugBountyPage extends StatelessWidget {
Text('disclosure_policy'.tr(),
style: theme.textTheme.ppMori700Black24),
const SizedBox(height: 32),
Text("support_publication".tr(),
//'We support the open publication of security research. We do ask that you give us a heads-up before any publication so we can do a final sync-up and check. ',
Text('support_publication'.tr(),
style: theme.textTheme.ppMori400Black16),
const SizedBox(height: 32),
PrimaryButton(
text: "report_a_bug".tr(),
text: 'report_a_bug'.tr(),
onTap: () => Navigator.of(context).pushNamed(
AppRouter.supportThreadPage,
arguments:
Expand Down
Loading

0 comments on commit a7d3353

Please sign in to comment.