Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Add user create tutorial scaffolding (#306)

Leendert de Borst458a336526ec
diff --git a/src/AliasVault.Client/Auth/Layout/EmptyLayout.razor b/src/AliasVault.Client/Auth/Layout/EmptyLayout.razor
index 4e097dca3..7c9a87f1b 100644
--- a/src/AliasVault.Client/Auth/Layout/EmptyLayout.razor
+++ b/src/AliasVault.Client/Auth/Layout/EmptyLayout.razor
@@ -2,5 +2,3 @@
<GlobalNotificationDisplay />
@Body
-
-<Footer />
diff --git a/src/AliasVault.Client/Auth/Layout/MainLayout.razor b/src/AliasVault.Client/Auth/Layout/MainLayout.razor
index 53c9fdeb2..33f34e513 100644
--- a/src/AliasVault.Client/Auth/Layout/MainLayout.razor
+++ b/src/AliasVault.Client/Auth/Layout/MainLayout.razor
@@ -8,5 +8,3 @@
@Body
</div>
</div>
-
-<Footer />
diff --git a/src/AliasVault.Client/Auth/Pages/Setup/Components/PurposeInstructionsStep.razor b/src/AliasVault.Client/Auth/Pages/Setup/Components/PurposeInstructionsStep.razor
new file mode 100644
index 000000000..94f6e4f47
--- /dev/null
+++ b/src/AliasVault.Client/Auth/Pages/Setup/Components/PurposeInstructionsStep.razor
@@ -0,0 +1,60 @@
+@using AliasVault.Client.Auth.Pages.Setup.Components
+
+<div class="w-full max-w-md mx-auto">
+ <div class="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 mb-6">
+ <div class="flex items-start mb-4">
+ <div class="flex-shrink-0">
+ <img class="h-10 w-10 rounded-full" src="/img/avatar.webp" alt="AliasVault Assistant">
+ </div>
+ <div class="ml-3 bg-blue-100 dark:bg-blue-900 rounded-lg p-3">
+ <p class="text-sm text-gray-900 dark:text-white">
+ Great choice! Here are some tips for using AliasVault for @Purpose:
+ </p>
+ <ul class="list-disc list-inside text-sm text-gray-900 dark:text-white mt-3">
+ @foreach (var instruction in GetInstructions())
+ {
+ <li>@instruction</li>
+ }
+ </ul>
+ </div>
+ </div>
+ </div>
+</div>
+
+@code {
+ [Parameter]
+ public string Purpose { get; set; } = string.Empty;
+
+ [Parameter]
+ public EventCallback OnNext { get; set; }
+
+ [Parameter]
+ public EventCallback OnBack { get; set; }
+
+ private List<string> GetInstructions()
+ {
+ return Purpose switch
+ {
+ "Personal Security" => new List<string>
+ {
+ "Create unique aliases for each of your online accounts",
+ "Use the password generator to create strong, unique passwords",
+ "Enable two-factor authentication for added security",
+ "Regularly review your aliases and remove unused ones"
+ },
+ "Privacy Protection" => new List<string>
+ {
+ "Use different aliases for different types of online activities",
+ "Take advantage of the disposable email feature for temporary signups",
+ "Use the notes feature to keep track of which alias is used where",
+ "Regularly check the email forwarding settings for each alias"
+ },
+ _ => new List<string>
+ {
+ "Explore the different features of AliasVault",
+ "Use the help section for detailed guides on each feature",
+ "Contact support if you need any assistance"
+ }
+ };
+ }
+}
diff --git a/src/AliasVault.Client/Auth/Pages/Setup/Components/PurposeStep.razor b/src/AliasVault.Client/Auth/Pages/Setup/Components/PurposeStep.razor
new file mode 100644
index 000000000..643ec45ff
--- /dev/null
+++ b/src/AliasVault.Client/Auth/Pages/Setup/Components/PurposeStep.razor
@@ -0,0 +1,82 @@
+@using System.Timers
+
+<div class="w-full max-w-md mx-auto">
+ @if (isLoading)
+ {
+ <div class="flex justify-center items-center h-64">
+ <div class="animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-primary-500"></div>
+ </div>
+ }
+ <div class="@(isLoading ? "opacity-0" : "opacity-100 transition-opacity duration-300") w-full">
+ <div class="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 mb-6">
+ <div class="flex items-start mb-4">
+ <div class="flex-shrink-0">
+ <img class="h-10 w-10 rounded-full" src="/img/avatar.webp" alt="AliasVault Assistant">
+ </div>
+ <div class="ml-3 bg-blue-100 dark:bg-blue-900 rounded-lg p-3">
+ <p class="text-sm text-gray-900 dark:text-white">
+ Hi there! I'll help you get your AliasVault account setup.
+ </p>
+ <p class="text-sm text-gray-900 dark:text-white mt-3">
+ In order to help you better, what's the main purpose you want to use AliasVault for?
+ </p>
+ </div>
+ </div>
+ </div>
+
+ <div class="space-y-4">
+ @foreach (var purpose in Purposes)
+ {
+ <button @onclick="() => SelectPurpose(purpose.Key)"
+ class="w-full text-left p-4 rounded-lg border @(Purpose == purpose.Key ? "border-blue-500 bg-blue-50 dark:bg-blue-900" : "border-gray-300 dark:border-gray-700") hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors">
+ <h3 class="text-lg font-semibold text-gray-900 dark:text-white">@purpose.Key</h3>
+ <p class="text-sm text-gray-600 dark:text-gray-400">@purpose.Value</p>
+ </button>
+ }
+ </div>
+ </div>
+</div>
+
+@code {
+ [Parameter]
+ public string Purpose { get; set; } = string.Empty;
+
+ [Parameter]
+ public EventCallback<string> OnPurposeChange { get; set; }
+
+ [Parameter]
+ public bool IsPurposeSelected { get; set; }
+
+ private Dictionary<string, string> Purposes = new()
+ {
+ { "Personal Security", "I want to enhance my online security by creating unique identities and passwords for my personal accounts." },
+ { "Privacy Protection", "I'm concerned about online tracking and want to use email aliases to protect my privacy." },
+ };
+
+ private bool isLoading = true;
+ private Timer? loadingTimer;
+
+ protected override void OnInitialized()
+ {
+ loadingTimer = new Timer(300);
+ loadingTimer.Elapsed += (sender, e) => FinishLoading();
+ loadingTimer.AutoReset = false;
+ loadingTimer.Start();
+ }
+
+ private void FinishLoading()
+ {
+ isLoading = false;
+ InvokeAsync(StateHasChanged);
+ }
+
+ public void Dispose()
+ {
+ loadingTimer?.Dispose();
+ }
+
+ private async Task SelectPurpose(string purpose)
+ {
+ await OnPurposeChange.InvokeAsync(purpose);
+ }
+}
diff --git a/src/AliasVault.Client/Auth/Pages/Setup/Components/UserInfoStep.razor b/src/AliasVault.Client/Auth/Pages/Setup/Components/UserInfoStep.razor
new file mode 100644
index 000000000..4ab53bbeb
--- /dev/null
+++ b/src/AliasVault.Client/Auth/Pages/Setup/Components/UserInfoStep.razor
@@ -0,0 +1,87 @@
+@using System.Timers
+@implements IDisposable
+
+<div class="w-full max-w-md mx-auto">
+ @if (isLoading)
+ {
+ <div class="flex justify-center items-center h-64">
+ <div class="animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-primary-500"></div>
+ </div>
+ }
+ <div class="@(isLoading ? "opacity-0" : "opacity-100 transition-opacity duration-300") w-full">
+ <div class="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 mb-6">
+ <div class="flex items-start mb-4">
+ <div class="flex-shrink-0">
+ <img class="h-10 w-10 rounded-full" src="/img/avatar.webp" alt="AliasVault Assistant">
+ </div>
+ <div class="ml-3 bg-blue-100 dark:bg-blue-900 rounded-lg p-3">
+ <p class="text-sm text-gray-900 dark:text-white">
+ Great! Now, let's set up your username for AliasVault.
+ </p>
+ <p class="text-sm text-gray-900 dark:text-white mt-3">
+ Please enter a username you'd like to use. This can be your email address or any unique name you prefer.
+ </p>
+ <p class="text-sm text-gray-900 dark:text-white mt-3 font-semibold">
+ Remember: This is what you'll use to log in later, so make sure it's something you'll remember!
+ </p>
+ </div>
+ </div>
+ </div>
+
+ <div class="space-y-4">
+ <div>
+ <EditFormRow Id="username" Label="Username" @bind-Value="Username" Placeholder="Enter your desired username or email" />
+ </div>
+ </div>
+ </div>
+</div>
+
+@code {
+ private string _username = string.Empty;
+
+ /// <summary>
+ /// The username.
+ /// </summary>
+ public string Username
+ {
+ get => _username;
+ set
+ {
+ if (_username != value)
+ {
+ _username = value;
+ OnUsernameChange.InvokeAsync(value);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Event callback when the username changes.
+ /// </summary>
+ [Parameter]
+ public EventCallback<string> OnUsernameChange { get; set; }
+
+ private bool isLoading = true;
+ private Timer? loadingTimer;
+
+ /// <inheritdoc />
+ protected override void OnInitialized()
+ {
+ loadingTimer = new Timer(300);
+ loadingTimer.Elapsed += (sender, e) => FinishLoading();
+ loadingTimer.AutoReset = false;
+ loadingTimer.Start();
+ }
+
+ private void FinishLoading()
+ {
+ isLoading = false;
+ InvokeAsync(StateHasChanged);
+ }
+
+ /// <inheritdoc />
+ public void Dispose()
+ {
+ loadingTimer?.Dispose();
+ }
+}
diff --git a/src/AliasVault.Client/Auth/Pages/Setup/Components/WelcomeStep.razor b/src/AliasVault.Client/Auth/Pages/Setup/Components/WelcomeStep.razor
new file mode 100644
index 000000000..701360a60
--- /dev/null
+++ b/src/AliasVault.Client/Auth/Pages/Setup/Components/WelcomeStep.razor
@@ -0,0 +1,15 @@
+<div class="w-full">
+ <h2 class="text-2xl font-bold text-gray-900 dark:text-white mb-4 text-center">Welcome to AliasVault</h2>
+ <p class="text-gray-600 dark:text-gray-400 mb-4 text-center">
+ AliasVault is a secure and private way to manage your online identities.
+ Let's get you set up with your new vault.
+ </p>
+</div>
+
+@code {
+ /// <summary>
+ /// The event that is triggered when the user clicks the next button.
+ /// </summary>
+ [Parameter]
+ public EventCallback OnNext { get; set; }
+}
diff --git a/src/AliasVault.Client/Auth/Pages/Setup/Setup.razor b/src/AliasVault.Client/Auth/Pages/Setup/Setup.razor
new file mode 100644
index 000000000..0f269d454
--- /dev/null
+++ b/src/AliasVault.Client/Auth/Pages/Setup/Setup.razor
@@ -0,0 +1,126 @@
+@page "/user/setup"
+@using AliasVault.Client.Auth.Pages.Setup.Components
+@inherits AliasVault.Client.Auth.Pages.Base.LoginBase
+@layout Auth.Layout.EmptyLayout
+@attribute [AllowAnonymous]
+
+<div class="flex min-h-screen bg-gray-100 dark:bg-gray-900">
+ <div class="w-full max-w-md mx-auto flex flex-col @(currentStep == SetupStep.Welcome ? "justify-center" : "pt-8")">
+ <div>
+ @switch (currentStep)
+ {
+ case SetupStep.Welcome:
+ <WelcomeStep />
+ break;
+ case SetupStep.Purpose:
+ <PurposeStep
+ Purpose="@setupData.Purpose"
+ OnPurposeChange="@((string purpose) => { setupData.Purpose = purpose; StateHasChanged(); })"
+ IsPurposeSelected="@(!string.IsNullOrWhiteSpace(setupData.Purpose))" />
+ break;
+ case SetupStep.PurposeInstructions:
+ <PurposeInstructionsStep Purpose="@setupData.Purpose" />
+ break;
+ case SetupStep.UserInfo:
+ <UserInfoStep
+ OnUsernameChange="@((string username) => { setupData.Username = username; StateHasChanged(); })" />
+ break;
+ /*case SetupStep.Password:
+ <PasswordStep
+ Password="@setupData.Password"
+ OnPasswordChange="@((string pwd) => { setupData.Password = pwd; StateHasChanged(); })" />
+ break; */
+ }
+ </div>
+ <div class="fixed bottom-0 left-0 right-0 p-8 bg-gray-100 dark:bg-gray-900 border-t border-gray-200 dark:border-gray-700">
+ <div class="flex flex-col lg:flex-row lg:justify-between">
+ <div class="lg:flex-grow">
+ @if (currentStep != SetupStep.Welcome)
+ {
+ <button @onclick="GoBack" class="w-full lg:w-auto py-3 px-4 bg-gray-200 hover:bg-gray-300 dark:bg-gray-700 dark:hover:bg-gray-gray-800 text-gray-800 dark:text-white font-semibold rounded-lg transition duration-300 ease-in-out mb-4 lg:mb-0">
+ Go Back
+ </button>
+ }
+ </div>
+ <div class="lg:flex-shrink-0">
+ @if (currentStep != SetupStep.Password)
+ {
+ <button @onclick="GoNext"
+ class="w-full lg:w-auto py-3 px-4 bg-primary-600 hover:bg-primary-700 text-white font-semibold rounded-lg transition duration-300 ease-in-out @(isNextEnabled ? "" : "opacity-50 cursor-not-allowed")"
+ disabled="@(!isNextEnabled)">
+ Continue
+ </button>
+ }
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+
+@code {
+ private SetupStep currentStep = SetupStep.Welcome;
+ private SetupData setupData = new();
+ private bool isNextEnabled => currentStep switch
+ {
+ SetupStep.Welcome => true,
+ SetupStep.Purpose => !string.IsNullOrWhiteSpace(setupData.Purpose),
+ SetupStep.PurposeInstructions => true,
+ SetupStep.UserInfo => !string.IsNullOrWhiteSpace(setupData.Username),
+ SetupStep.Password => !string.IsNullOrWhiteSpace(setupData.Password),
+ _ => false
+ };
+
+ private void GoBack()
+ {
+ switch (currentStep)
+ {
+ case SetupStep.Purpose:
+ currentStep = SetupStep.Welcome;
+ break;
+ case SetupStep.PurposeInstructions:
+ currentStep = SetupStep.Purpose;
+ break;
+ case SetupStep.UserInfo:
+ currentStep = SetupStep.PurposeInstructions;
+ break;
+ case SetupStep.Password:
+ currentStep = SetupStep.UserInfo;
+ break;
+ }
+ }
+
+ private void GoNext()
+ {
+ currentStep = currentStep switch
+ {
+ SetupStep.Welcome => SetupStep.Purpose,
+ SetupStep.Purpose => SetupStep.PurposeInstructions,
+ SetupStep.PurposeInstructions => SetupStep.UserInfo,
+ SetupStep.UserInfo => SetupStep.Password,
+ _ => currentStep
+ };
+ }
+
+ private void CompleteSetup()
+ {
+ // TODO: Implement the logic to save user information and create the account
+ // For example: await UserService.CreateUser(setupData.UserInfo, setupData.Password);
+ NavigationManager.NavigateTo("/");
+ }
+
+ private enum SetupStep
+ {
+ Welcome,
+ Purpose,
+ PurposeInstructions,
+ UserInfo,
+ Password
+ }
+
+ private class SetupData
+ {
+ public string Purpose { get; set; } = string.Empty;
+ public string Username { get; set; } = string.Empty;
+ public string Password { get; set; } = string.Empty;
+ }
+}
diff --git a/src/AliasVault.Client/Auth/Pages/Start.razor b/src/AliasVault.Client/Auth/Pages/Start.razor
index 843f48694..9ce29b934 100644
--- a/src/AliasVault.Client/Auth/Pages/Start.razor
+++ b/src/AliasVault.Client/Auth/Pages/Start.razor
@@ -37,6 +37,8 @@
</div>
</div>
+<Footer ShowBorder="false"></Footer>
+
@code {
/// <inheritdoc />
protected override async Task OnInitializedAsync()
@@ -56,6 +58,6 @@
private void NavigateToCreateAccount()
{
- NavigationManager.NavigateTo("/user/register");
+ NavigationManager.NavigateTo("/user/setup");
}
}
diff --git a/src/AliasVault.Client/Main/Components/Forms/EditFormRow.razor b/src/AliasVault.Client/Main/Components/Forms/EditFormRow.razor
index 9f1ee164d..bb74a0101 100644
--- a/src/AliasVault.Client/Main/Components/Forms/EditFormRow.razor
+++ b/src/AliasVault.Client/Main/Components/Forms/EditFormRow.razor
@@ -2,11 +2,11 @@
<div class="relative">
@if (Type == "textarea")
{
- <textarea id="@Id" style="height: 200px;" class="outline-0 shadow-sm bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg block w-full p-2.5 pr-10 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white" value="@Value" @oninput="OnInputChanged"></textarea>
+ <textarea id="@Id" style="height: 200px;" class="outline-0 shadow-sm bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg block w-full p-2.5 pr-10 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white" value="@Value" @oninput="OnInputChanged" placeholder="@Placeholder"></textarea>
}
else
{
- <input type="text" id="@Id" @onfocus="OnFocusEvent" class="outline-0 shadow-sm bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg block w-full p-2.5 pr-10 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white" value="@Value" @oninput="OnInputChanged">
+ <input type="text" id="@Id" autocomplete="off" @onfocus="OnFocusEvent" class="outline-0 shadow-sm bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg block w-full p-2.5 pr-10 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white" value="@Value" @oninput="OnInputChanged" placeholder="@Placeholder">
}
</div>
@@ -47,6 +47,12 @@
[Parameter]
public EventCallback<string?> ValueChanged { get; set; }
+ /// <summary>
+ /// Placeholder text for the input field.
+ /// </summary>
+ [Parameter]
+ public string Placeholder { get; set; } = string.Empty;
+
private async Task OnInputChanged(ChangeEventArgs e)
{
Value = e.Value?.ToString() ?? string.Empty;
diff --git a/src/AliasVault.Client/Main/Layout/Footer.razor b/src/AliasVault.Client/Main/Layout/Footer.razor
index 3e0873a3b..8c5481014 100644
--- a/src/AliasVault.Client/Main/Layout/Footer.razor
+++ b/src/AliasVault.Client/Main/Layout/Footer.razor
@@ -1,7 +1,7 @@
@inject NavigationManager NavigationManager
@implements IDisposable
-<footer class="relative lg:fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-900 border-t border-gray-200 dark:border-gray-700">
+<footer class="relative lg:fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-900 @(ShowBorder ? "border-t border-gray-200 dark:border-gray-700" : "")">
<div class="container mx-auto px-4 py-4">
<div class="flex flex-col lg:flex-row justify-between items-center">
<p class="text-sm text-center text-gray-500 mb-4 lg:mb-0">
@@ -18,6 +18,12 @@
</footer>
@code {
+ /// <summary>
+ /// Gets or sets a value indicating whether the footer should have a border.
+ /// </summary>
+ [Parameter]
+ public bool ShowBorder { get; set; } = true;
+
private static readonly string[] Quotes =
[
"Tip: Use the g+c (go create) keyboard shortcut to quickly create a new alias.",
diff --git a/src/AliasVault.Client/wwwroot/css/tailwind.css b/src/AliasVault.Client/wwwroot/css/tailwind.css
index 786569a16..68debdcee 100644
--- a/src/AliasVault.Client/wwwroot/css/tailwind.css
+++ b/src/AliasVault.Client/wwwroot/css/tailwind.css
@@ -674,6 +674,10 @@ video {
top: 0px;
}
+.top-1\/2 {
+ top: 50%;
+}
+
.z-10 {
z-index: 10;
}
@@ -1020,6 +1024,15 @@ video {
flex-grow: 1;
}
+.origin-center {
+ transform-origin: center;
+}
+
+.-translate-y-1\/2 {
+ --tw-translate-y: -50%;
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
+}
+
.-skew-y-12 {
--tw-skew-y: -12deg;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
@@ -1030,6 +1043,12 @@ video {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
+.scale-0 {
+ --tw-scale-x: 0;
+ --tw-scale-y: 0;
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
+}
+
.transform {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@@ -1298,6 +1317,10 @@ video {
border-bottom-width: 2px;
}
+.border-t-2 {
+ border-top-width: 2px;
+}
+
.border-blue-700 {
--tw-border-opacity: 1;
border-color: rgb(29 78 216 / var(--tw-border-opacity));
@@ -1343,6 +1366,11 @@ video {
border-color: rgb(99 102 241 / var(--tw-border-opacity));
}
+.border-blue-500 {
+ --tw-border-opacity: 1;
+ border-color: rgb(59 130 246 / var(--tw-border-opacity));
+}
+
.bg-blue-50 {
--tw-bg-opacity: 1;
background-color: rgb(239 246 255 / var(--tw-bg-opacity));
@@ -1498,6 +1526,11 @@ video {
background-color: rgb(79 70 229 / var(--tw-bg-opacity));
}
+.bg-blue-100 {
+ --tw-bg-opacity: 1;
+ background-color: rgb(219 234 254 / var(--tw-bg-opacity));
+}
+
.bg-opacity-50 {
--tw-bg-opacity: 0.5;
}
@@ -1552,6 +1585,10 @@ video {
padding: 2rem;
}
+.p-3 {
+ padding: 0.75rem;
+}
+
.px-2 {
padding-left: 0.5rem;
padding-right: 0.5rem;
@@ -1898,6 +1935,14 @@ video {
opacity: 0.75;
}
+.opacity-0 {
+ opacity: 0;
+}
+
+.opacity-100 {
+ opacity: 1;
+}
+
.shadow {
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
@@ -1958,6 +2003,12 @@ video {
transition-duration: 150ms;
}
+.transition-opacity {
+ transition-property: opacity;
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
+ transition-duration: 150ms;
+}
+
.duration-150 {
transition-duration: 150ms;
}
@@ -1970,10 +2021,18 @@ video {
transition-duration: 300ms;
}
+.duration-500 {
+ transition-duration: 500ms;
+}
+
.ease-in-out {
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
+.ease-out {
+ transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
+}
+
.hover\:scale-105:hover {
--tw-scale-x: 1.05;
--tw-scale-y: 1.05;
@@ -2227,6 +2286,14 @@ video {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
+.disabled\:cursor-not-allowed:disabled {
+ cursor: not-allowed;
+}
+
+.disabled\:opacity-50:disabled {
+ opacity: 0.5;
+}
+
.group:hover .group-hover\:-skew-y-12 {
--tw-skew-y: -12deg;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
@@ -2371,6 +2438,11 @@ video {
background-color: rgb(79 70 229 / var(--tw-bg-opacity));
}
+.dark\:bg-blue-900:is(.dark *) {
+ --tw-bg-opacity: 1;
+ background-color: rgb(30 58 138 / var(--tw-bg-opacity));
+}
+
.dark\:bg-opacity-80:is(.dark *) {
--tw-bg-opacity: 0.8;
}
@@ -2799,10 +2871,22 @@ video {
width: 50%;
}
+ .lg\:flex-shrink-0 {
+ flex-shrink: 0;
+ }
+
+ .lg\:flex-grow {
+ flex-grow: 1;
+ }
+
.lg\:flex-row {
flex-direction: row;
}
+ .lg\:justify-between {
+ justify-content: space-between;
+ }
+
.lg\:gap-4 {
gap: 1rem;
}
diff --git a/wwwroot/js/transitionEffect.js b/wwwroot/js/transitionEffect.js
new file mode 100644
index 000000000..0cba6b31a
--- /dev/null
+++ b/wwwroot/js/transitionEffect.js
@@ -0,0 +1,8 @@
+function startTransitionEffect() {
+ const overlay = document.getElementById('transitionOverlay');
+ overlay.style.transform = 'scale(1)';
+
+ setTimeout(() => {
+ window.location.href = '/user/register';
+ }, 500);
+}