Skip to content

Modular logistics and supply chain operating system (LSOS)

fixed styling for two-fa enforcement alert

TemuulenBM3d1e20439f87
diff --git a/console/app/components/two-fa-enforcement-alert.hbs b/console/app/components/two-fa-enforcement-alert.hbs
index 351c82e7..52c4067f 100644
--- a/console/app/components/two-fa-enforcement-alert.hbs
+++ b/console/app/components/two-fa-enforcement-alert.hbs
@@ -1,13 +1,15 @@
{{#if this.shouldRender}}
- <InfoBlock class="bg-yellow-100 border-none">
- <div class="flex flex-col md:flex-row items-start">
- <p class="text-lg dark:text-gray-700 mb-2 md:mb-0">
- To enhance the security of your account, your organization requires Two-Factor Authentication (2FA). Enable 2FA in your account settings for an additional layer of
- protection.
- </p>
- <div class="flex items-center md:ml-4">
- <Button class="py-2 px-4 rounded border-none mt-5 whitespace-nowrap" @type="warning" @buttonType="Button" @onClick={{this.transitionToTwoFactorSettings}}>
- Enable 2FA
+ <InfoBlock @icon="triangle-exclamation" class="two-fa-enforcement-alert bg-yellow-100 border-2 border-yellow-600 dark:border-yellow-500 rounded-lg">
+ <div class="flex flex-row justify-between">
+ <div class="flex-1 pr-2">
+ <p class="text-base dark:text-yellow-900 mb-2">
+ To enhance the security of your account, your organization requires Two-Factor Authentication (2FA). Enable 2FA in your account settings for an additional layer of
+ protection.
+ </p>
+ </div>
+ <div class="flex-shrink-0">
+ <Button id="two-fa-setup-button" @type="warning" @buttonType="button" @onClick={{this.transitionToTwoFactorSettings}}>
+ Setup 2FA
</Button>
</div>
</div>
diff --git a/console/app/styles/app.css b/console/app/styles/app.css
index 197b6ba5..c7e9e646 100644
--- a/console/app/styles/app.css
+++ b/console/app/styles/app.css
@@ -2,3 +2,5 @@
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
@import 'inter-ui/inter.css';
+@import 'console.css';
+
diff --git a/console/app/styles/console.css b/console/app/styles/console.css
new file mode 100644
index 00000000..cec09aeb
--- /dev/null
+++ b/console/app/styles/console.css
@@ -0,0 +1,15 @@
+.two-fa-enforcement-alert svg.fa-triangle-exclamation {
+ font-size: 2.25rem;
+ padding-right: 0.5rem;
+ color: rgb(202 138 4);
+}
+
+body[data-theme="dark"] .two-fa-enforcement-alert button#two-fa-setup-button.btn.btn-warning,
+.two-fa-enforcement-alert button#two-fa-setup-button.btn.btn-warning {
+ background-color: rgb(202 138 4);
+ border-color: rgb(161 98 7);
+ color: rgb(254 249 195);
+ cursor: default;
+}
+
+
diff --git a/console/router.map.js b/console/router.map.js
index 148569a5..318c87b2 100644
--- a/console/router.map.js
+++ b/console/router.map.js
@@ -30,7 +30,7 @@ Router.map(function () {
});
this.route('settings', function () {
this.route('virtual', { path: '/:slug/:view' });
- this.route('auth');
+ this.route('two-fa');
});
this.route('virtual', { path: '/:slug/:view' });
this.route('admin', function () {