Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit dd06067

Browse files
authored
refactor: more UI tweaks to follow design (#16)
1 parent 45e34a3 commit dd06067

File tree

6 files changed

+37
-33
lines changed

6 files changed

+37
-33
lines changed

resources/lang/en/pages.php

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,27 @@
22

33
return [
44
'user-settings' => [
5-
'2fa_title' => 'Two Factor Authentication',
6-
'2fa_description' => 'Add additional security to your account using two factor authentication.',
7-
'2fa_enabled_title' => 'You have enabled two factor authentication.',
8-
'2fa_not_enabled_title' => 'You have not enabled two factor authentication.',
9-
'2fa_summary' => "When two factor authentication is enabled, you will be prompted for a secure, random token during authentication. You may retrieve this token from your phone's <a href='https://authy.com' target='_blank' class='font-bold'>Authy</a> or <a href='https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2' target='_blank' class='font-bold'>Google Authenticator</a> application.",
10-
'one_time_password' => 'One-Time Password',
11-
'2fa_reset_code_title' => 'Two-Factor Authentication Reset Code',
12-
'2fa_reset_code_description' => 'Reset Code',
13-
'2fa_warning_text' => 'If you lose your two-factor authentication device, you may use this emergency reset token to disable two-factor authentication on your account. <strong>This is the only time this token will be displayed, so be sure not to lose it!</strong>',
14-
'reset_link_email' => 'Request submitted. If your email address is associated with an account, you will receive an email with instructions on how to reset your password.',
15-
'update_timezone_title' => 'Timezone',
16-
'update_timezone_description' => 'Select a Timezone below and update it by clicking the update button.',
17-
'timezone_updated' => 'Timezone was successfully updated',
18-
'password_information_title' => 'Password',
19-
'password_information_description' => 'Ensure your account is using a long, random password to stay secure.',
20-
'contact_information_title' => 'Contact Information',
21-
'contact_information_description' => "Update your account's contact information and email address.",
22-
'gdpr_title' => 'General Data Protection Regulation (GDPR)',
23-
'gdpr_description' => 'This will will create a zip containing all personal data to respect your right to data portability. You will receive the zip file on the email address linked to your account.',
24-
'delete_account_title' => 'Delete Account',
25-
'delete_account_description' => 'Deletion of the account will result in the loss of your data instantly and your account will be unrecoverable.',
5+
'2fa_title' => 'Two Factor Authentication',
6+
'2fa_description' => 'Add additional security to your account using two factor authentication.',
7+
'2fa_enabled_title' => 'You have enabled two factor authentication.',
8+
'2fa_not_enabled_title' => 'You have not enabled two factor authentication.',
9+
'2fa_summary' => "When two factor authentication is enabled, you will be prompted for a secure, random token during authentication. You may retrieve this token from your phone's <a href='https://authy.com' target='_blank' class='font-bold'>Authy</a> or <a href='https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2' target='_blank' class='font-bold'>Google Authenticator</a> application.",
10+
'one_time_password' => 'One-Time Password',
11+
'2fa_reset_code_title' => 'Two-Factor Authentication Reset Code',
12+
'2fa_reset_code_description' => 'Reset Code',
13+
'2fa_warning_text' => 'If you lose your two-factor authentication device, you may use this emergency reset token to disable two-factor authentication on your account. <strong>This is the only time this token will be displayed, so be sure not to lose it!</strong>',
14+
'reset_link_email' => 'Request submitted. If your email address is associated with an account, you will receive an email with instructions on how to reset your password.',
15+
'update_timezone_title' => 'Timezone',
16+
'update_timezone_description' => 'Select a Timezone below and update it by clicking the update button.',
17+
'timezone_updated' => 'Timezone was successfully updated',
18+
'password_information_title' => 'Password',
19+
'password_information_description' => 'Ensure your account is using a long, random password to stay secure.',
20+
'contact_information_title' => 'Contact Information',
21+
'contact_information_description' => "Update your account's contact information and email address.",
22+
'gdpr_title' => 'General Data Protection Regulation (GDPR)',
23+
'gdpr_description' => 'This will will create a zip containing all personal data to respect your right to data portability. You will receive the zip file on the email address linked to your account.',
24+
'delete_account_title' => 'Delete Account',
25+
'delete_account_description' => 'Deletion of the account will result in the loss of your data instantly and your account will be unrecoverable.',
26+
'update_password_alert_description' => 'The Security Settings allow you to change your passwords and enable or disable 2FA. Please remember the changes made for when you next sign in.',
2627
],
2728
];

resources/views/profile/delete-user-form.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div>
22
<div class="flex flex-col">
3-
<span class="text-2xl font-semibold text-theme-secondary-900">@lang('fortify::pages.user-settings.delete_account_title')</span>
4-
<span>
3+
<span class="header-4">@lang('fortify::pages.user-settings.delete_account_title')</span>
4+
<span class="mt-4">
55
@lang('fortify::pages.user-settings.delete_account_description')
66
</span>
77

resources/views/profile/export-user-data.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div>
22
<div class="flex flex-col">
3-
<span class="text-2xl font-semibold text-theme-secondary-900">@lang('fortify::pages.user-settings.gdpr_title')</span>
4-
<span>@lang('fortify::pages.user-settings.gdpr_description')</span>
3+
<span class="header-4">@lang('fortify::pages.user-settings.gdpr_title')</span>
4+
<span class="mt-4">@lang('fortify::pages.user-settings.gdpr_description')</span>
55

66
<div class="flex justify-end mt-8">
77
<button type="submit" class="button-secondary" wire:click="export">@lang('fortify::actions.export_personal_data')</button>

resources/views/profile/two-factor-authentication-form.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div>
22
@if (! $this->enabled)
33
<div class="flex flex-col">
4-
<span class="text-2xl font-semibold leading-9 text-theme-secondary-900">@lang('fortify::pages.user-settings.2fa_title')</span>
5-
<span class="paragraph-description">@lang('fortify::pages.user-settings.2fa_description')</span>
4+
<span class="header-4">@lang('fortify::pages.user-settings.2fa_title')</span>
5+
<span class="mt-4">@lang('fortify::pages.user-settings.2fa_description')</span>
66

77
<div class="flex justify-start mt-8">
88
<div class="flex md:divide-x md:divide-theme-secondary-400">
@@ -45,8 +45,8 @@
4545
</div>
4646
@else
4747
<div class="flex flex-col">
48-
<span class="text-2xl font-semibold text-theme-secondary-900">@lang('fortify::pages.user-settings.2fa_title')</span>
49-
<span>@lang('fortify::pages.user-settings.2fa_description')</span>
48+
<span class="header-4">@lang('fortify::pages.user-settings.2fa_title')</span>
49+
<span class="mt-4">@lang('fortify::pages.user-settings.2fa_description')</span>
5050

5151
<div class="flex mt-8">
5252
<div class="flex flex-col">

resources/views/profile/update-password-form.blade.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<div x-data="{isTyping: false}">
22
<div class="flex flex-col">
3-
<span class="text-2xl font-semibold text-theme-secondary-900">@lang('fortify::pages.user-settings.password_information_title')</span>
4-
<span>@lang('fortify::forms.update-password.requirements_notice')</span>
3+
<div class="my-8">
4+
<x-ark-alert type="warning" :message="trans('fortify::pages.user-settings.update_password_alert_description')" />
5+
</div>
6+
<span class="header-4">@lang('fortify::pages.user-settings.password_information_title')</span>
7+
<span class="mt-4">@lang('fortify::forms.update-password.requirements_notice')</span>
58

69
<form class="mt-8" wire:submit.prevent="updatePassword">
710
<div class="space-y-4">

resources/views/profile/update-profile-information-form.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div>
22
<div class="flex flex-col">
3-
<span class="text-2xl font-semibold text-theme-secondary-900">@lang('fortify::pages.user-settings.contact_information_title')</span>
4-
<span>@lang('fortify::pages.user-settings.contact_information_description')</span>
3+
<span class="header-4 mt-4">@lang('fortify::pages.user-settings.contact_information_title')</span>
4+
<span class="mt-4">@lang('fortify::pages.user-settings.contact_information_description')</span>
55

66
<form class="mt-8" wire:submit.prevent="updateProfileInformation">
77
<div class="space-y-4">

0 commit comments

Comments
 (0)