Skip to content

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

Update WASM app layout

Leendert de Borsted1dbd968d1a
diff --git a/README.md b/README.md
index 67c43287a..24ef87794 100644
--- a/README.md
+++ b/README.md
@@ -27,3 +27,12 @@ docker compose up -d --build --force-recreate
```
The app will be available at http://localhost:80
+
+
+
+## Credits
+The following libraries and frameworks are used in this project:
+
+- [Tailwind CSS](https://tailwindcss.com/) - A utility-first CSS framework for rapidly building custom designs.
+- [Flowbite](https://flowbite.com/) - A free and open-source UI component library.
+- [Konscious.Security.Cryptography](https://github.com/kmaragon/Konscious.Security.Cryptography) - A .NET library that implements Argon2id, a memory-hard password hashing algorithm.
diff --git a/src/AliasVault.WebApp/AliasVault.WebApp.csproj b/src/AliasVault.WebApp/AliasVault.WebApp.csproj
index 64d27e7d0..fd74140b7 100644
--- a/src/AliasVault.WebApp/AliasVault.WebApp.csproj
+++ b/src/AliasVault.WebApp/AliasVault.WebApp.csproj
@@ -22,6 +22,9 @@
</ItemGroup>
<ItemGroup>
+ <ProjectReference Include="..\AliasDb\AliasDb.csproj" />
+ <ProjectReference Include="..\AliasGenerators\AliasGenerators.csproj" />
<ProjectReference Include="..\AliasVault.Shared\AliasVault.Shared.csproj" />
+ <ProjectReference Include="..\Utilities\FaviconExtractor\FaviconExtractor.csproj" />
</ItemGroup>
</Project>
diff --git a/src/AliasVault.WebApp/Components/Alias/Alias.razor b/src/AliasVault.WebApp/Components/Alias/Alias.razor
new file mode 100644
index 000000000..928b0db52
--- /dev/null
+++ b/src/AliasVault.WebApp/Components/Alias/Alias.razor
@@ -0,0 +1,47 @@
+@using AliasDb
+@inject NavigationManager NavigationManager
+
+<div class="p-4 space-y-6 bg-white border border-gray-200 rounded-lg shadow-sm dark:border-gray-700 sm:p-6 dark:bg-gray-800">
+ <div class="px-4 py-2 text-gray-400 border border-gray-200 border-dashed rounded dark:border-gray-600">
+ <h3>Card header</h3>
+ </div>
+ <div class="h-16 px-4 py-2 text-gray-400 border border-gray-200 border-dashed rounded dark:border-gray-600">
+ <h3>Card body</h3>
+ </div>
+ <div class="px-4 py-2 text-gray-400 border border-gray-200 border-dashed rounded dark:border-gray-600">
+ <h3>Card footer</h3>
+ </div>
+</div>
+
+
+<!--
+<div class="col">
+ <div class="card mb-3" @onclick="ShowDetails">
+ <div class="card-body">
+ <div class="card-text text-center">
+ <DisplayFavicon faviconBytes="@Login.Service.Logo"></DisplayFavicon>
+ <div>@Login.Service.Name</div>
+ <div><small class="text-muted">@Login.CreatedAt.ToShortDateString()</small></div>
+ </div>
+ </div>
+ </div>
+</div>
+ -->
+
+@code {
+ [Parameter] public Login Login { get; set; } = new Login();
+ private bool showModal = false;
+
+ private void ShowDetails()
+ {
+ // Redirect to view page instead for now.
+ NavigationManager.NavigateTo($"/alias/{Login.Id}");
+ //showModal = true;
+ }
+
+ private void CloseDetails()
+ {
+ showModal = false;
+ }
+
+}
diff --git a/src/AliasVault.WebApp/Components/Breadcrumb.razor b/src/AliasVault.WebApp/Components/Breadcrumb.razor
new file mode 100644
index 000000000..b47d6ae39
--- /dev/null
+++ b/src/AliasVault.WebApp/Components/Breadcrumb.razor
@@ -0,0 +1,35 @@
+@using AliasVault.WebApp.Components.Models
+@inherits ComponentBase
+
+@if (BreadcrumbItems.Any())
+{
+ <nav class="flex mb-5" aria-label="Breadcrumb">
+ <ol class="inline-flex items-center space-x-1 text-sm font-medium md:space-x-2">
+ <li class="inline-flex items-center">
+ <a href="/" class="inline-flex items-center text-gray-700 hover:text-primary-600 dark:text-gray-300 dark:hover:text-primary-500">
+ <svg class="w-5 h-5 mr-2.5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"></path></svg>
+ Home
+ </a>
+ </li>
+ @foreach (var item in BreadcrumbItems)
+ {
+ @if (item != BreadcrumbItems.Last())
+ {
+ <li>
+ <div class="flex items-center">
+ <svg class="w-6 h-6 text-gray-400" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"></path></svg>
+ <a href="@item.Url" class="ml-1 text-gray-700 hover:text-primary-600 md:ml-2 dark:text-gray-300 dark:hover:text-primary-500">@item.DisplayName</a>
+ </div>
+ </li>
+ }
+ }
+ </ol>
+ </nav>
+}
+
+
+
+@code {
+ [Parameter]
+ public List<BreadcrumbItem> BreadcrumbItems { get; set; } = new List<BreadcrumbItem>();
+}
diff --git a/src/AliasVault.WebApp/Components/Models/BreadcrumbItem.cs b/src/AliasVault.WebApp/Components/Models/BreadcrumbItem.cs
new file mode 100644
index 000000000..01813e22a
--- /dev/null
+++ b/src/AliasVault.WebApp/Components/Models/BreadcrumbItem.cs
@@ -0,0 +1,7 @@
+namespace AliasVault.WebApp.Components.Models;
+
+public class BreadcrumbItem
+{
+ public string? DisplayName { get; set; }
+ public string? Url { get; set; }
+}
diff --git a/src/AliasVault.WebApp/Components/PageTitleAppend.razor b/src/AliasVault.WebApp/Components/PageTitleAppend.razor
new file mode 100644
index 000000000..12e5d1118
--- /dev/null
+++ b/src/AliasVault.WebApp/Components/PageTitleAppend.razor
@@ -0,0 +1,12 @@
+<PageTitle>@PageTitlePrefix AliasVault - @PageTitleSuffix</PageTitle>
+
+@code {
+ [Parameter]
+ public string PageTitleSuffix { get; set; }
+
+ public string PageTitlePrefix { get; set; } = "";
+
+ protected override void OnInitialized()
+ {
+ }
+}
diff --git a/src/AliasVault.WebApp/Layout/Footer.razor b/src/AliasVault.WebApp/Layout/Footer.razor
new file mode 100644
index 000000000..6b9a5a09b
--- /dev/null
+++ b/src/AliasVault.WebApp/Layout/Footer.razor
@@ -0,0 +1,11 @@
+<footer class="md:flex md:items-center md:justify-between px-4 2xl:px-0 py-6 md:py-10">
+ <p class="text-sm text-center text-gray-500 mb-4 md:mb-0">
+ © 2024 AliasVault. All rights reserved.
+ </p>
+ <ul class="flex flex-wrap items-center justify-center">
+ <li><a href="#" class="mr-4 text-sm font-normal text-gray-500 hover:underline md:mr-6 dark:text-gray-400">Terms</a></li>
+ <li><a href="#" class="mr-4 text-sm font-normal text-gray-500 hover:underline md:mr-6 dark:text-gray-400">Licensing</a></li>
+ <li><a href="#" class="mr-4 text-sm font-normal text-gray-500 hover:underline md:mr-6 dark:text-gray-400">Cookie Policy</a></li>
+ <li><a href="#" class="text-sm font-normal text-gray-500 hover:underline dark:text-gray-400">Contact</a></li>
+ </ul>
+</footer>
diff --git a/src/AliasVault.WebApp/Layout/Footer.razor.css b/src/AliasVault.WebApp/Layout/Footer.razor.css
new file mode 100644
index 000000000..881d128a5
--- /dev/null
+++ b/src/AliasVault.WebApp/Layout/Footer.razor.css
@@ -0,0 +1,83 @@
+.navbar-toggler {
+ background-color: rgba(255, 255, 255, 0.1);
+}
+
+.top-row {
+ height: 3.5rem;
+ background-color: rgba(0,0,0,0.4);
+}
+
+.navbar-brand {
+ font-size: 1.1rem;
+}
+
+.bi {
+ display: inline-block;
+ position: relative;
+ width: 1.25rem;
+ height: 1.25rem;
+ margin-right: 0.75rem;
+ top: -1px;
+ background-size: cover;
+}
+
+.bi-house-door-fill-nav-menu {
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
+}
+
+.bi-plus-square-fill-nav-menu {
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
+}
+
+.bi-list-nested-nav-menu {
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
+}
+
+.nav-item {
+ font-size: 0.9rem;
+ padding-bottom: 0.5rem;
+}
+
+ .nav-item:first-of-type {
+ padding-top: 1rem;
+ }
+
+ .nav-item:last-of-type {
+ padding-bottom: 1rem;
+ }
+
+ .nav-item ::deep a {
+ color: #d7d7d7;
+ border-radius: 4px;
+ height: 3rem;
+ display: flex;
+ align-items: center;
+ line-height: 3rem;
+ }
+
+.nav-item ::deep a.active {
+ background-color: rgba(255,255,255,0.37);
+ color: white;
+}
+
+.nav-item ::deep a:hover {
+ background-color: rgba(255,255,255,0.1);
+ color: white;
+}
+
+@media (min-width: 641px) {
+ .navbar-toggler {
+ display: none;
+ }
+
+ .collapse {
+ /* Never collapse the sidebar for wide screens */
+ display: block;
+ }
+
+ .nav-scrollable {
+ /* Allow sidebar to scroll for tall menus */
+ height: calc(100vh - 3.5rem);
+ overflow-y: auto;
+ }
+}
diff --git a/src/AliasVault.WebApp/Layout/MainLayout.razor b/src/AliasVault.WebApp/Layout/MainLayout.razor
index dfafffc09..8a8ad4e36 100644
--- a/src/AliasVault.WebApp/Layout/MainLayout.razor
+++ b/src/AliasVault.WebApp/Layout/MainLayout.razor
@@ -1,17 +1,14 @@
@inherits LayoutComponentBase
-<div class="page">
- <div class="sidebar">
- <NavMenu />
- </div>
+<TopMenu />
- <main>
- <div class="top-row px-4">
- <LoginLogoutButton />
- </div>
+<div class="flex pt-16 overflow-hidden bg-gray-50 dark:bg-gray-900">
- <article class="content px-4">
+ <div id="main-content" class="relative w-full max-w-screen-2xl mx-auto h-full overflow-y-auto bg-gray-50 dark:bg-gray-900">
+ <main>
@Body
- </article>
- </main>
+
+ </main>
+ <Footer />
+ </div>
</div>
diff --git a/src/AliasVault.WebApp/Layout/TopMenu.razor b/src/AliasVault.WebApp/Layout/TopMenu.razor
new file mode 100644
index 000000000..3cfc97bdb
--- /dev/null
+++ b/src/AliasVault.WebApp/Layout/TopMenu.razor
@@ -0,0 +1,257 @@
+<header>
+ <nav class="fixed z-30 w-full bg-white border-b border-gray-200 dark:bg-gray-800 dark:border-gray-700 py-3 px-4">
+ <div class="flex justify-between items-center max-w-screen-2xl mx-auto">
+ <div class="flex justify-start items-center">
+ <a href="http://localhost:1313/" class="flex mr-14">
+ <img src="http://localhost:1313/images/logo.svg" class="mr-3 h-8" alt="FlowBite Logo">
+ <span class="self-center hidden sm:flex text-2xl font-semibold whitespace-nowrap dark:text-white">Flowbite</span>
+ </a>
+
+ <div class="hidden justify-between items-center w-full lg:flex lg:w-auto lg:order-1">
+ <ul class="flex flex-col mt-4 space-x-6 text-sm font-medium lg:flex-row xl:space-x-8 lg:mt-0">
+ <li>
+ <a href="#" class="block rounded text-primary-700 dark:text-primary-500" aria-current="page">Home</a>
+ </li>
+ <li>
+ <a href="#" class="block text-gray-700 hover:text-primary-700 dark:text-gray-400 dark:hover:text-white">Messages</a>
+ </li>
+ <li>
+ <a href="#" class="block text-gray-700 hover:text-primary-700 dark:text-gray-400 dark:hover:text-white">Profile</a>
+ </li>
+ <li>
+ <a href="#" class="block text-gray-700 hover:text-primary-700 dark:text-gray-400 dark:hover:text-white">Settings</a>
+ </li>
+ <li>
+ <button id="dropdownNavbarLink" data-dropdown-toggle="dropdownNavbar" class="flex justify-between items-center py-2 pr-4 pl-3 w-full font-medium text-gray-700 border-b border-gray-100 hover:bg-gray-50 md:hover:bg-transparent md:border-0 md:hover:text-primary-700 md:p-0 md:w-auto dark:text-gray-400 dark:hover:text-white dark:focus:text-white dark:border-gray-700 dark:hover:bg-gray-700 md:dark:hover:bg-transparent">Dropdown <svg class="ml-1 w-4 h-4" aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg></button>
+
+ <div id="dropdownNavbar" class="hidden z-20 w-44 font-normal bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700 dark:divide-gray-600" data-popper-placement="bottom" style="position: absolute; inset: 0px auto auto 0px; margin: 0px; transform: translate3d(594.5px, 52px, 0px);">
+ <ul class="py-1 text-sm text-gray-700 dark:text-gray-400" aria-labelledby="dropdownLargeButton">
+ <li>
+ <a href="#" class="block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Item 1</a>
+ </li>
+ <li>
+ <a href="#" class="block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Item 2</a>
+ </li>
+ <li>
+ <a href="#" class="block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Item 3</a>
+ </li>
+ </ul>
+ </div>
+ </li>
+ </ul>
+ </div>
+ </div>
+ <div class="flex justify-between items-center lg:order-2">
+ <div class="mr-3 -mb-1 hidden sm:block">
+ <span></span>
+ </div>
+
+ <button type="button" data-dropdown-toggle="notification-dropdown" class="p-2 text-gray-500 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:text-gray-400 dark:hover:text-white dark:hover:bg-gray-700 focus:ring-4 focus:ring-gray-300 dark:focus:ring-gray-600">
+ <span class="sr-only">View notifications</span>
+
+ <svg aria-hidden="true" class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2a6 6 0 00-6 6v3.586l-.707.707A1 1 0 004 14h12a1 1 0 00.707-1.707L16 11.586V8a6 6 0 00-6-6zM10 18a3 3 0 01-3-3h6a3 3 0 01-3 3z"></path></svg>
+ </button>
+
+ <div class="hidden overflow-hidden z-50 my-4 max-w-sm text-base list-none bg-white rounded divide-y divide-gray-100 shadow-lg dark:divide-gray-600 dark:bg-gray-700" id="notification-dropdown" data-popper-placement="bottom" style="position: absolute; inset: 0px auto auto 0px; margin: 0px; transform: translate3d(1409.5px, 62px, 0px);">
+ <div class="block py-2 px-4 text-base font-medium text-center text-gray-700 bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
+ Notifications
+ </div>
+ <div>
+ <a href="#" class="flex py-3 px-4 border-b hover:bg-gray-100 dark:hover:bg-gray-600 dark:border-gray-600">
+ <div class="flex-shrink-0">
+ <img class="w-11 h-11 rounded-full" src="https://flowbite.s3.amazonaws.com/blocks/marketing-ui/avatars/bonnie-green.png" alt="Bonnie Green avatar">
+ <div class="flex absolute justify-center items-center ml-6 -mt-5 w-5 h-5 rounded-full border border-white bg-primary-700 dark:border-gray-700">
+ <svg aria-hidden="true" class="w-3 h-3 text-white" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.707 7.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l2-2a1 1 0 00-1.414-1.414L11 7.586V3a1 1 0 10-2 0v4.586l-.293-.293z"></path><path d="M3 5a2 2 0 012-2h1a1 1 0 010 2H5v7h2l1 2h4l1-2h2V5h-1a1 1 0 110-2h1a2 2 0 012 2v10a2 2 0 01-2 2H5a2 2 0 01-2-2V5z"></path></svg>
+ </div>
+ </div>
+ <div class="pl-3 w-full">
+ <div class="text-gray-500 font-normal text-sm mb-1.5 dark:text-gray-400">New message from <span class="font-semibold text-gray-900 dark:text-white">Bonnie Green</span>: "Hey, what's up? All set for the presentation?"</div>
+ <div class="text-xs font-medium text-primary-700 dark:text-primary-400">a few moments ago</div>
+ </div>
+ </a>
+ <a href="#" class="flex py-3 px-4 border-b hover:bg-gray-100 dark:hover:bg-gray-600 dark:border-gray-600">
+ <div class="flex-shrink-0">
+ <img class="w-11 h-11 rounded-full" src="https://flowbite.s3.amazonaws.com/blocks/marketing-ui/avatars/jese-leos.png" alt="Jese Leos avatar">
+ <div class="flex absolute justify-center items-center ml-6 -mt-5 w-5 h-5 bg-gray-900 rounded-full border border-white dark:border-gray-700">
+ <svg aria-hidden="true" class="w-3 h-3 text-white" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8 9a3 3 0 100-6 3 3 0 000 6zM8 11a6 6 0 016 6H2a6 6 0 016-6zM16 7a1 1 0 10-2 0v1h-1a1 1 0 100 2h1v1a1 1 0 102 0v-1h1a1 1 0 100-2h-1V7z"></path></svg>
+ </div>
+ </div>
+ <div class="pl-3 w-full">
+ <div class="text-gray-500 font-normal text-sm mb-1.5 dark:text-gray-400"><span class="font-semibold text-gray-900 dark:text-white">Jese leos</span> and <span class="font-medium text-gray-900 dark:text-white">5 others</span> started following you.</div>
+ <div class="text-xs font-medium text-primary-700 dark:text-primary-400">10 minutes ago</div>
+ </div>
+ </a>
+ <a href="#" class="flex py-3 px-4 border-b hover:bg-gray-100 dark:hover:bg-gray-600 dark:border-gray-600">
+ <div class="flex-shrink-0">
+ <img class="w-11 h-11 rounded-full" src="https://flowbite.s3.amazonaws.com/blocks/marketing-ui/avatars/joseph-mcfall.png" alt="Joseph McFall avatar">
+ <div class="flex absolute justify-center items-center ml-6 -mt-5 w-5 h-5 bg-red-600 rounded-full border border-white dark:border-gray-700">
+ <svg aria-hidden="true" class="w-3 h-3 text-white" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M3.172 5.172a4 4 0 015.656 0L10 6.343l1.172-1.171a4 4 0 115.656 5.656L10 17.657l-6.828-6.829a4 4 0 010-5.656z" clip-rule="evenodd"></path></svg>
+ </div>
+ </div>
+ <div class="pl-3 w-full">
+ <div class="text-gray-500 font-normal text-sm mb-1.5 dark:text-gray-400"><span class="font-semibold text-gray-900 dark:text-white">Joseph Mcfall</span> and <span class="font-medium text-gray-900 dark:text-white">141 others</span> love your story. See it and view more stories.</div>
+ <div class="text-xs font-medium text-primary-700 dark:text-primary-400">44 minutes ago</div>
+ </div>
+ </a>
+ <a href="#" class="flex py-3 px-4 border-b hover:bg-gray-100 dark:hover:bg-gray-600 dark:border-gray-600">
+ <div class="flex-shrink-0">
+ <img class="w-11 h-11 rounded-full" src="https://flowbite.s3.amazonaws.com/blocks/marketing-ui/avatars/roberta-casas.png" alt="Roberta Casas image">
+ <div class="flex absolute justify-center items-center ml-6 -mt-5 w-5 h-5 bg-green-400 rounded-full border border-white dark:border-gray-700">
+ <svg aria-hidden="true" class="w-3 h-3 text-white" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M18 13V5a2 2 0 00-2-2H4a2 2 0 00-2 2v8a2 2 0 002 2h3l3 3 3-3h3a2 2 0 002-2zM5 7a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1zm1 3a1 1 0 100 2h3a1 1 0 100-2H6z" clip-rule="evenodd"></path></svg>
+ </div>
+ </div>
+ <div class="pl-3 w-full">
+ <div class="text-gray-500 font-normal text-sm mb-1.5 dark:text-gray-400"><span class="font-semibold text-gray-900 dark:text-white">Leslie Livingston</span> mentioned you in a comment: <span class="font-medium text-primary-700 dark:text-primary-500">@@bonnie.green</span> what do you say?</div>
+ <div class="text-xs font-medium text-primary-700 dark:text-primary-400">1 hour ago</div>
+ </div>
+ </a>
+ <a href="#" class="flex py-3 px-4 hover:bg-gray-100 dark:hover:bg-gray-600">
+ <div class="flex-shrink-0">
+ <img class="w-11 h-11 rounded-full" src="https://flowbite.s3.amazonaws.com/blocks/marketing-ui/avatars/robert-brown.png" alt="Robert image">
+ <div class="flex absolute justify-center items-center ml-6 -mt-5 w-5 h-5 bg-purple-500 rounded-full border border-white dark:border-gray-700">
+ <svg aria-hidden="true" class="w-3 h-3 text-white" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 6a2 2 0 012-2h6a2 2 0 012 2v8a2 2 0 01-2 2H4a2 2 0 01-2-2V6zM14.553 7.106A1 1 0 0014 8v4a1 1 0 00.553.894l2 1A1 1 0 0018 13V7a1 1 0 00-1.447-.894l-2 1z"></path></svg>
+ </div>
+ </div>
+ <div class="pl-3 w-full">
+ <div class="text-gray-500 font-normal text-sm mb-1.5 dark:text-gray-400"><span class="font-semibold text-gray-900 dark:text-white">Robert Brown</span> posted a new video: Glassmorphism - learn how to implement the new design trend.</div>
+ <div class="text-xs font-medium text-primary-700 dark:text-primary-400">3 hours ago</div>
+ </div>
+ </a>
+ </div>
+ <a href="#" class="block py-2 text-base font-normal text-center text-gray-900 bg-gray-50 hover:bg-gray-100 dark:bg-gray-700 dark:text-white dark:hover:underline">
+ <div class="inline-flex items-center ">
+ <svg aria-hidden="true" class="mr-2 w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 12a2 2 0 100-4 2 2 0 000 4z"></path><path fill-rule="evenodd" d="M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z" clip-rule="evenodd"></path></svg>
+ View all
+ </div>
+ </a>
+ </div>
+ <button id="theme-toggle" data-tooltip-target="tooltip-toggle" type="button" class="text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-700 rounded-lg text-sm p-2.5">
+ <svg id="theme-toggle-dark-icon" class="hidden w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"></path></svg>
+ <svg id="theme-toggle-light-icon" class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z" fill-rule="evenodd" clip-rule="evenodd"></path></svg>
+ </button>
+ <div id="tooltip-toggle" role="tooltip" class="inline-block absolute invisible z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip" data-popper-placement="bottom" style="position: absolute; inset: 0px auto auto 0px; margin: 0px; transform: translate3d(1377px, 60px, 0px);">
+ Toggle dark mode
+ <div class="tooltip-arrow" data-popper-arrow="" style="position: absolute; left: 0px; transform: translate3d(68.5px, 0px, 0px);"></div>
+ </div>
+
+ <button type="button" data-dropdown-toggle="apps-dropdown" class="p-2 text-gray-500 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:text-gray-400 dark:hover:text-white dark:hover:bg-gray-700 focus:ring-4 focus:ring-gray-300 dark:focus:ring-gray-600">
+ <span class="sr-only">View notifications</span>
+
+ <svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2v-2a2 2 0 00-2-2H5zM11 5a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V5zM11 13a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"></path></svg>
+ </button>
+
+ <div class="hidden overflow-hidden z-50 my-4 max-w-sm text-base list-none bg-white rounded divide-y divide-gray-100 shadow-lg dark:bg-gray-700 dark:divide-gray-600" id="apps-dropdown" data-popper-placement="bottom" style="position: absolute; inset: 0px auto auto 0px; margin: 0px; transform: translate3d(1489.5px, 62px, 0px);">
+ <div class="block py-2 px-4 text-base font-medium text-center text-gray-700 bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
+ Apps
+ </div>
+ <div class="grid grid-cols-3 gap-4 p-4">
+ <a href="#" class="block p-4 text-center rounded-lg hover:bg-gray-100 dark:hover:bg-gray-600 group">
+ <svg aria-hidden="true" class="mx-auto mb-1 w-7 h-7 text-gray-400 group-hover:text-gray-500 dark:text-gray-400 dark:group-hover:text-gray-400" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M10 2a4 4 0 00-4 4v1H5a1 1 0 00-.994.89l-1 9A1 1 0 004 18h12a1 1 0 00.994-1.11l-1-9A1 1 0 0015 7h-1V6a4 4 0 00-4-4zm2 5V6a2 2 0 10-4 0v1h4zm-6 3a1 1 0 112 0 1 1 0 01-2 0zm7-1a1 1 0 100 2 1 1 0 000-2z" clip-rule="evenodd"></path></svg>
+ <div class="text-sm text-gray-900 dark:text-white">Sales</div>
+ </a>
+ <a href="#" class="block p-4 text-center rounded-lg hover:bg-gray-100 dark:hover:bg-gray-600 group">
+ <svg aria-hidden="true" class="mx-auto mb-1 w-7 h-7 text-gray-400 group-hover:text-gray-500 dark:text-gray-400 dark:group-hover:text-gray-400" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M13 6a3 3 0 11-6 0 3 3 0 016 0zM18 8a2 2 0 11-4 0 2 2 0 014 0zM14 15a4 4 0 00-8 0v3h8v-3zM6 8a2 2 0 11-4 0 2 2 0 014 0zM16 18v-3a5.972 5.972 0 00-.75-2.906A3.005 3.005 0 0119 15v3h-3zM4.75 12.094A5.973 5.973 0 004 15v3H1v-3a3 3 0 013.75-2.906z"></path></svg>
+ <div class="text-sm text-gray-900 dark:text-white">Users</div>
+ </a>
+ <a href="#" class="block p-4 text-center rounded-lg hover:bg-gray-100 dark:hover:bg-gray-600 group">
+ <svg aria-hidden="true" class="mx-auto mb-1 w-7 h-7 text-gray-400 group-hover:text-gray-500 dark:text-gray-400 dark:group-hover:text-gray-400" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M5 3a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2V5a2 2 0 00-2-2H5zm0 2h10v7h-2l-1 2H8l-1-2H5V5z" clip-rule="evenodd"></path></svg>
+ <div class="text-sm text-gray-900 dark:text-white">Inbox</div>
+ </a>
+ <a href="#" class="block p-4 text-center rounded-lg hover:bg-gray-100 dark:hover:bg-gray-600 group">
+ <svg aria-hidden="true" class="mx-auto mb-1 w-7 h-7 text-gray-400 group-hover:text-gray-500 dark:text-gray-400 dark:group-hover:text-gray-400" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z" clip-rule="evenodd"></path></svg>
+ <div class="text-sm text-gray-900 dark:text-white">Profile</div>
+ </a>
+ <a href="#" class="block p-4 text-center rounded-lg hover:bg-gray-100 dark:hover:bg-gray-600 group">
+ <svg aria-hidden="true" class="mx-auto mb-1 w-7 h-7 text-gray-400 group-hover:text-gray-500 dark:text-gray-400 dark:group-hover:text-gray-400" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z" clip-rule="evenodd"></path></svg>
+ <div class="text-sm text-gray-900 dark:text-white">Settings</div>
+ </a>
+ <a href="#" class="block p-4 text-center rounded-lg hover:bg-gray-100 dark:hover:bg-gray-600 group">
+ <svg aria-hidden="true" class="mx-auto mb-1 w-7 h-7 text-gray-400 group-hover:text-gray-500 dark:text-gray-400 dark:group-hover:text-gray-400" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 3a2 2 0 100 4h12a2 2 0 100-4H4z"></path><path fill-rule="evenodd" d="M3 8h14v7a2 2 0 01-2 2H5a2 2 0 01-2-2V8zm5 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z" clip-rule="evenodd"></path></svg>
+ <div class="text-sm text-gray-900 dark:text-white">Products</div>
+ </a>
+ <a href="#" class="block p-4 text-center rounded-lg hover:bg-gray-100 dark:hover:bg-gray-600 group">
+ <svg aria-hidden="true" class="mx-auto mb-1 w-7 h-7 text-gray-400 group-hover:text-gray-500 dark:text-gray-400 dark:group-hover:text-gray-400" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.433 7.418c.155-.103.346-.196.567-.267v1.698a2.305 2.305 0 01-.567-.267C8.07 8.34 8 8.114 8 8c0-.114.07-.34.433-.582zM11 12.849v-1.698c.22.071.412.164.567.267.364.243.433.468.433.582 0 .114-.07.34-.433.582a2.305 2.305 0 01-.567.267z"></path><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a1 1 0 10-2 0v.092a4.535 4.535 0 00-1.676.662C6.602 6.234 6 7.009 6 8c0 .99.602 1.765 1.324 2.246.48.32 1.054.545 1.676.662v1.941c-.391-.127-.68-.317-.843-.504a1 1 0 10-1.51 1.31c.562.649 1.413 1.076 2.353 1.253V15a1 1 0 102 0v-.092a4.535 4.535 0 001.676-.662C13.398 13.766 14 12.991 14 12c0-.99-.602-1.765-1.324-2.246A4.535 4.535 0 0011 9.092V7.151c.391.127.68.317.843.504a1 1 0 101.511-1.31c-.563-.649-1.413-1.076-2.354-1.253V5z" clip-rule="evenodd"></path></svg>
+ <div class="text-sm text-gray-900 dark:text-white">Pricing</div>
+ </a>
+ <a href="#" class="block p-4 text-center rounded-lg hover:bg-gray-100 dark:hover:bg-gray-600 group">
+ <svg aria-hidden="true" class="mx-auto mb-1 w-7 h-7 text-gray-400 group-hover:text-gray-500 dark:text-gray-400 dark:group-hover:text-gray-400" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M5 2a2 2 0 00-2 2v14l3.5-2 3.5 2 3.5-2 3.5 2V4a2 2 0 00-2-2H5zm2.5 3a1.5 1.5 0 100 3 1.5 1.5 0 000-3zm6.207.293a1 1 0 00-1.414 0l-6 6a1 1 0 101.414 1.414l6-6a1 1 0 000-1.414zM12.5 10a1.5 1.5 0 100 3 1.5 1.5 0 000-3z" clip-rule="evenodd"></path></svg>
+ <div class="text-sm text-gray-900 dark:text-white">Billing</div>
+ </a>
+ <a href="#" class="block p-4 text-center rounded-lg hover:bg-gray-100 dark:hover:bg-gray-600 group">
+ <svg aria-hidden="true" class="mx-auto mb-1 w-7 h-7 text-gray-400 group-hover:text-gray-500 dark:text-gray-400 dark:group-hover:text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"></path></svg>
+ <div class="text-sm text-gray-900 dark:text-white">Logout</div>
+ </a>
+ </div>
+ </div>
+ <button type="button" class="flex mx-3 text-sm bg-gray-800 rounded-full md:mr-0 flex-shrink-0 focus:ring-4 focus:ring-gray-300 dark:focus:ring-gray-600" id="userMenuDropdownButton" aria-expanded="false" data-dropdown-toggle="userMenuDropdown">
+ <span class="sr-only">Open user menu</span>
+ <img class="w-8 h-8 rounded-full" src="https://flowbite.com/docs/images/people/profile-picture-5.jpg" alt="user photo">
+ </button>
+
+ <div class="hidden z-50 my-4 w-56 text-base list-none bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700 dark:divide-gray-600" id="userMenuDropdown" data-popper-placement="bottom" style="position: absolute; inset: 0px auto auto 0px; margin: 0px; transform: translate3d(1537.5px, 58px, 0px);">
+ <div class="py-3 px-4">
+ <span class="block text-sm font-semibold text-gray-900 dark:text-white">Neil Sims</span>
+ <span class="block text-sm font-light text-gray-500 truncate dark:text-gray-400">[email protected]</span>
+ </div>
+ <ul class="py-1 font-light text-gray-500 dark:text-gray-400" aria-labelledby="userMenuDropdownButton">
+ <li>
+ <a href="#" class="block py-2 px-4 text-sm hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-400 dark:hover:text-white">My profile</a>
+ </li>
+ <li>
+ <a href="#" class="block py-2 px-4 text-sm hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-400 dark:hover:text-white">Account settings</a>
+ </li>
+ </ul>
+ <ul class="py-1 font-light text-gray-500 dark:text-gray-400" aria-labelledby="userMenuDropdownButton">
+ <li>
+ <a href="#" class="flex items-center py-2 px-4 text-sm hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"><svg class="mr-2 w-5 h-5 text-gray-400" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M3.172 5.172a4 4 0 015.656 0L10 6.343l1.172-1.171a4 4 0 115.656 5.656L10 17.657l-6.828-6.829a4 4 0 010-5.656z" clip-rule="evenodd"></path></svg> My likes</a>
+ </li>
+ <li>
+ <a href="#" class="flex items-center py-2 px-4 text-sm hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"><svg class="mr-2 w-5 h-5 text-gray-400" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 3a1 1 0 000 2h6a1 1 0 100-2H7zM4 7a1 1 0 011-1h10a1 1 0 110 2H5a1 1 0 01-1-1zM2 11a2 2 0 012-2h12a2 2 0 012 2v4a2 2 0 01-2 2H4a2 2 0 01-2-2v-4z"></path></svg> Collections</a>
+ </li>
+ </ul>
+ <ul class="py-1 font-light text-gray-500 dark:text-gray-400" aria-labelledby="dropdown">
+ <li>
+ <a href="#" class="block py-2 px-4 text-sm hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Sign out</a>
+ </li>
+ </ul>
+ </div>
+
+ <button type="button" id="toggleMobileMenuButton" data-collapse-toggle="toggleMobileMenu" class="items-center p-2 text-gray-500 rounded-lg md:ml-2 lg:hidden hover:text-gray-900 hover:bg-gray-100 dark:text-gray-400 dark:hover:text-white dark:hover:bg-gray-700 focus:ring-4 focus:ring-gray-300 dark:focus:ring-gray-600">
+ <span class="sr-only">Open menu</span>
+ <svg class="w-6 h-6" aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z" clip-rule="evenodd"></path></svg>
+ </button>
+ </div>
+ </div>
+ </nav>
+ <nav class="bg-white dark:bg-gray-900">
+
+ <ul id="toggleMobileMenu" class="hidden flex-col mt-0 pt-16 w-full text-sm font-medium lg:hidden">
+ <li class="block border-b dark:border-gray-700">
+ <a href="#" class="block py-3 px-4 text-gray-900 lg:py-0 dark:text-white lg:hover:underline lg:px-0" aria-current="page">Home</a>
+ </li>
+ <li class="block border-b dark:border-gray-700">
+ <a href="#" class="block py-3 px-4 text-gray-900 lg:py-0 dark:text-white lg:hover:underline lg:px-0">Messages</a>
+ </li>
+ <li class="block border-b dark:border-gray-700">
+ <a href="#" class="block py-3 px-4 text-gray-900 lg:py-0 dark:text-white lg:hover:underline lg:px-0">Profile</a>
+ </li>
+ <li class="block border-b dark:border-gray-700">
+ <a href="#" class="block py-3 px-4 text-gray-900 lg:py-0 dark:text-white lg:hover:underline lg:px-0">Settings</a>
+ </li>
+ <li class="block border-b dark:border-gray-700">
+ <button type="button" data-collapse-toggle="dropdownMobileNavbar" class="flex justify-between items-center py-3 px-4 w-full text-gray-900 lg:py-0 dark:text-white lg:hover:underline lg:px-0">Dropdown <svg class="w-6 h-6 text-gray-500 dark:text-gray-400" aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"></path></svg></button>
+ <ul id="dropdownMobileNavbar" class="hidden">
+ <li class="block border-t border-b dark:border-gray-700">
+ <a href="#" class="block py-3 px-4 text-gray-900 lg:py-0 dark:text-white lg:hover:underline lg:px-0">Item 1</a>
+ </li>
+ <li class="block border-b dark:border-gray-700">
+ <a href="#" class="block py-3 px-4 text-gray-900 lg:py-0 dark:text-white lg:hover:underline lg:px-0">Item 2</a>
+ </li>
+ <li class="block">
+ <a href="#" class="block py-3 px-4 text-gray-900 lg:py-0 dark:text-white lg:hover:underline lg:px-0">Item 3</a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </nav>
+</header>
diff --git a/src/AliasVault.WebApp/Layout/TopMenu.razor.css b/src/AliasVault.WebApp/Layout/TopMenu.razor.css
new file mode 100644
index 000000000..881d128a5
--- /dev/null
+++ b/src/AliasVault.WebApp/Layout/TopMenu.razor.css
@@ -0,0 +1,83 @@
+.navbar-toggler {
+ background-color: rgba(255, 255, 255, 0.1);
+}
+
+.top-row {
+ height: 3.5rem;
+ background-color: rgba(0,0,0,0.4);
+}
+
+.navbar-brand {
+ font-size: 1.1rem;
+}
+
+.bi {
+ display: inline-block;
+ position: relative;
+ width: 1.25rem;
+ height: 1.25rem;
+ margin-right: 0.75rem;
+ top: -1px;
+ background-size: cover;
+}
+
+.bi-house-door-fill-nav-menu {
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
+}
+
+.bi-plus-square-fill-nav-menu {
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
+}
+
+.bi-list-nested-nav-menu {
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
+}
+
+.nav-item {
+ font-size: 0.9rem;
+ padding-bottom: 0.5rem;
+}
+
+ .nav-item:first-of-type {
+ padding-top: 1rem;
+ }
+
+ .nav-item:last-of-type {
+ padding-bottom: 1rem;
+ }
+
+ .nav-item ::deep a {
+ color: #d7d7d7;
+ border-radius: 4px;
+ height: 3rem;
+ display: flex;
+ align-items: center;
+ line-height: 3rem;
+ }
+
+.nav-item ::deep a.active {
+ background-color: rgba(255,255,255,0.37);
+ color: white;
+}
+
+.nav-item ::deep a:hover {
+ background-color: rgba(255,255,255,0.1);
+ color: white;
+}
+
+@media (min-width: 641px) {
+ .navbar-toggler {
+ display: none;
+ }
+
+ .collapse {
+ /* Never collapse the sidebar for wide screens */
+ display: block;
+ }
+
+ .nav-scrollable {
+ /* Allow sidebar to scroll for tall menus */
+ height: calc(100vh - 3.5rem);
+ overflow-y: auto;
+ }
+}
diff --git a/src/AliasVault.WebApp/Pages/Base/PageBase.cs b/src/AliasVault.WebApp/Pages/Base/PageBase.cs
new file mode 100644
index 000000000..4abb93488
--- /dev/null
+++ b/src/AliasVault.WebApp/Pages/Base/PageBase.cs
@@ -0,0 +1,50 @@
+using AliasVault.WebApp.Components.Models;
+using Microsoft.AspNetCore.Components;
+using Microsoft.JSInterop;
+
+namespace AliasVault.WebApp.Pages.Base;
+
+/// <summary>
+/// Base authorize page that all pages that are part of the logged in website should inherit from.
+/// All pages that inherit from this class will require the user to be logged in and have a confirmed email.
+/// Also, a default set of breadcrumbs is added in the parent OnInitialized method.
+/// </summary>
+public class PageBase : OwningComponentBase
+{
+ [Inject]
+ public NavigationManager NavigationManager { get; set; } = null!;
+
+ [Inject]
+ public IJSRuntime Js { get; set; } = null!;
+
+ /// <summary>
+ /// Contains the breadcrumb items for the page. A default set of breadcrumbs is added in the parent OnInitialized method.
+ /// </summary>
+ protected List<BreadcrumbItem> BreadcrumbItems { get; set; } = new List<BreadcrumbItem>();
+
+ private bool _parametersInitialSet;
+
+ protected override async Task OnInitializedAsync()
+ {
+ await base.OnInitializedAsync();
+ _parametersInitialSet = false;
+
+ // Add base breadcrumbs
+ BreadcrumbItems.Add(new BreadcrumbItem { DisplayName = "Home", Url = NavigationManager.BaseUri });
+
+ // Detect success messages in query string and add them to the SuccessMessages list
+ var uri = new Uri(NavigationManager.Uri);
+ }
+
+ protected override async Task OnParametersSetAsync()
+ {
+ await base.OnParametersSetAsync();
+
+ // This is needed to prevent the OnParametersSetAsync method from running together with OnInitialized on initial page load.
+ if (!_parametersInitialSet)
+ {
+ _parametersInitialSet = true;
+ return;
+ }
+ }
+}
diff --git a/src/AliasVault.WebApp/Pages/Home.razor b/src/AliasVault.WebApp/Pages/Home.razor
index 9001e0bd2..342c0f678 100644
--- a/src/AliasVault.WebApp/Pages/Home.razor
+++ b/src/AliasVault.WebApp/Pages/Home.razor
@@ -1,7 +1,29 @@
@page "/"
+@using AliasVault.WebApp.Components.Alias
+@inherits PageBase
<PageTitle>Home</PageTitle>
-<h1>Hello, world!</h1>
+<div class="grid grid-cols-1 px-4 pt-6 xl:grid-cols-3 xl:px-0 xl:gap-4 dark:bg-gray-900">
+ <div class="mb-4 col-span-full xl:mb-2">
+ <Breadcrumb BreadcrumbItems="BreadcrumbItems" />
+ <h1 class="text-xl font-semibold text-gray-900 sm:text-2xl dark:text-white">Aliases</h1>
+ <p>Find all of your aliases below.</p>
+ </div>
+</div>
-Welcome to your new app.
+<div class="grid gap-4 px-4 mb-4 md:grid-cols-4 xl:grid-cols-6 xl:px-0">
+ <Alias />
+ <Alias />
+ <Alias />
+ <Alias />
+ <Alias />
+ <Alias />
+</div>
+
+@code {
+ protected override async Task OnInitializedAsync()
+ {
+ await base.OnInitializedAsync();
+ }
+}
diff --git a/src/AliasVault.WebApp/Services/AliasService.cs b/src/AliasVault.WebApp/Services/AliasService.cs
new file mode 100644
index 000000000..d73361bb2
--- /dev/null
+++ b/src/AliasVault.WebApp/Services/AliasService.cs
@@ -0,0 +1,129 @@
+using AliasDb;
+using AliasGenerators.Identity.Models;
+using Microsoft.EntityFrameworkCore;
+
+namespace AliasVault.WebApp.Services;
+
+public class AliasService
+{
+ private Login _alias;
+
+ /// <summary>
+ /// Public constructor which can be called from static async method or directly.
+ /// </summary>
+ /// <param name="aliasObj"></param>
+ /// <param name="userService"></param>
+ public AliasService(Login aliasObj)
+ {
+ _alias = aliasObj;
+ }
+
+ /// <summary>
+ /// Returns inner event EF object.
+ /// </summary>
+ /// <returns></returns>
+ public Login Alias()
+ {
+ return _alias;
+ }
+
+ /// <summary>
+ /// Insert new entry into database.
+ /// </summary>
+ /// <param name="aliasObject"></param>
+ public static async Task<Login> InsertAliasAsync(Login aliasObject)
+ {
+ using (var dbContext = new AliasDbContext())
+ {
+ var newObject = aliasObject;
+ newObject.Identity.CreatedAt = DateTime.UtcNow;
+ newObject.Identity.UpdatedAt = DateTime.UtcNow;
+ newObject.Passwords.First().CreatedAt = DateTime.UtcNow;
+ newObject.Passwords.First().UpdatedAt = DateTime.UtcNow;
+ newObject.CreatedAt = DateTime.UtcNow;
+ newObject.UpdatedAt = DateTime.UtcNow;
+
+ dbContext.Add(newObject);
+ await dbContext.SaveChangesAsync();
+
+ return newObject;
+ }
+ }
+
+ /// <summary>
+ /// Update an existing entry to database.
+ /// </summary>
+ /// <param name="aliasObject"></param>
+ public static async Task<Login> UpdateAliasAsync(Login aliasObject)
+ {
+ using (var dbContext = new AliasDbContext())
+ {
+ // Load existing record..
+ var record = dbContext.Logins.First(x => x.Id == aliasObject.Id);
+
+ // Update properties
+ record.Identity.FirstName = aliasObject.Identity.FirstName;
+ record.Identity.LastName = aliasObject.Identity.LastName;
+ record.Identity.NickName = aliasObject.Identity.NickName;
+ record.Identity.Gender = aliasObject.Identity.Gender;
+ record.Identity.BirthDate = aliasObject.Identity.BirthDate;
+ record.Identity.AddressStreet = aliasObject.Identity.AddressStreet;
+ record.Identity.AddressCity = aliasObject.Identity.AddressCity;
+ record.Identity.AddressState = aliasObject.Identity.AddressState;
+ record.Identity.AddressZipCode = aliasObject.Identity.AddressZipCode;
+ record.Identity.AddressCountry = aliasObject.Identity.AddressCountry;
+ record.Identity.Hobbies = aliasObject.Identity.Hobbies;
+ record.Identity.EmailPrefix = aliasObject.Identity.EmailPrefix;
+ record.Identity.PhoneMobile = aliasObject.Identity.PhoneMobile;
+ record.Identity.BankAccountIBAN = aliasObject.Identity.BankAccountIBAN;
+ record.Identity.UpdatedAt = DateTime.UtcNow;
+
+ // TODO: support multiple passwords.
+ var password = record.Passwords.First();
+ password.Value = aliasObject.Passwords.First().Value;
+ password.UpdatedAt = DateTime.UtcNow;
+
+ // Update service.
+ record.Service.Name = aliasObject.Service.Name;
+ record.Service.Url = aliasObject.Service.Url;
+ record.Service.Logo = aliasObject.Service.Logo;
+ record.Service.UpdatedAt = DateTime.UtcNow;
+
+ await dbContext.SaveChangesAsync();
+
+ return record;
+ }
+ }
+
+ /// <summary>
+ /// Load existing entry from database.
+ /// </summary>
+ /// <param name="aliasId"></param>
+ public static async Task<Login> LoadAliasAsync(Guid aliasId)
+ {
+ using (var dbContext = new AliasDbContext())
+ {
+ var aliasObject = await dbContext.Logins
+ .Include(x => x.Passwords)
+ .Include(x => x.Identity)
+ .Include(x => x.Service)
+ .Where(x => x.Id == aliasId)
+ .FirstAsync();
+
+ return aliasObject;
+ }
+ }
+
+ /// <summary>
+ /// Removes existing entry from database.
+ /// </summary>
+ /// <param name="alias"></param>
+ public static async Task DeleteAliasAsync(Login alias)
+ {
+ using (var dbContext = new AliasDbContext())
+ {
+ dbContext.Logins.Remove(dbContext.Logins.First(x => x.Id == alias.Id));
+ dbContext.SaveChanges();
+ }
+ }
+}
diff --git a/src/AliasVault.WebApp/_Imports.razor b/src/AliasVault.WebApp/_Imports.razor
index 90a4d0142..fa17cf570 100644
--- a/src/AliasVault.WebApp/_Imports.razor
+++ b/src/AliasVault.WebApp/_Imports.razor
@@ -12,6 +12,8 @@
@using AliasVault.WebApp
@using AliasVault.WebApp.Layout
@using AliasVault.WebApp.Components
+@using AliasVault.WebApp.Components.Models
+@using AliasVault.WebApp.Pages.Base
@using Microsoft.AspNetCore.Components.Authorization
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication
@using Blazored.LocalStorage
diff --git a/src/AliasVault.WebApp/wwwroot/css/tailwind.css b/src/AliasVault.WebApp/wwwroot/css/tailwind.css
index 631a5dfcd..33dcd850a 100644
--- a/src/AliasVault.WebApp/wwwroot/css/tailwind.css
+++ b/src/AliasVault.WebApp/wwwroot/css/tailwind.css
@@ -554,25 +554,95 @@ video {
--tw-contain-style: ;
}
+.sr-only {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ white-space: nowrap;
+ border-width: 0;
+}
+
+.invisible {
+ visibility: hidden;
+}
+
.collapse {
visibility: collapse;
}
+.fixed {
+ position: fixed;
+}
+
+.absolute {
+ position: absolute;
+}
+
+.relative {
+ position: relative;
+}
+
+.z-10 {
+ z-index: 10;
+}
+
+.z-20 {
+ z-index: 20;
+}
+
+.z-30 {
+ z-index: 30;
+}
+
+.z-50 {
+ z-index: 50;
+}
+
+.col-span-2 {
+ grid-column: span 2 / span 2;
+}
+
+.col-span-full {
+ grid-column: 1 / -1;
+}
+
+.mx-3 {
+ margin-left: 0.75rem;
+ margin-right: 0.75rem;
+}
+
.mx-auto {
margin-left: auto;
margin-right: auto;
}
-.mb-0 {
- margin-bottom: 0px;
+.my-4 {
+ margin-top: 1rem;
+ margin-bottom: 1rem;
}
-.mb-2 {
- margin-bottom: 0.5rem;
+.-mb-1 {
+ margin-bottom: -0.25rem;
}
-.mb-3 {
- margin-bottom: 0.75rem;
+.-mt-5 {
+ margin-top: -1.25rem;
+}
+
+.mb-1 {
+ margin-bottom: 0.25rem;
+}
+
+.mb-1\.5 {
+ margin-bottom: 0.375rem;
+}
+
+.mb-2 {
+ margin-bottom: 0.5rem;
}
.mb-4 {
@@ -587,30 +657,102 @@ video {
margin-bottom: 2rem;
}
+.ml-1 {
+ margin-left: 0.25rem;
+}
+
.ml-3 {
margin-left: 0.75rem;
}
+.ml-6 {
+ margin-left: 1.5rem;
+}
+
.ml-auto {
margin-left: auto;
}
+.mr-14 {
+ margin-right: 3.5rem;
+}
+
+.mr-2 {
+ margin-right: 0.5rem;
+}
+
+.mr-2\.5 {
+ margin-right: 0.625rem;
+}
+
+.mr-3 {
+ margin-right: 0.75rem;
+}
+
+.mr-4 {
+ margin-right: 1rem;
+}
+
+.mt-0 {
+ margin-top: 0px;
+}
+
+.mt-4 {
+ margin-top: 1rem;
+}
+
.mt-8 {
margin-top: 2rem;
}
+.mb-3 {
+ margin-bottom: 0.75rem;
+}
+
.block {
display: block;
}
+.inline-block {
+ display: inline-block;
+}
+
.flex {
display: flex;
}
+.inline-flex {
+ display: inline-flex;
+}
+
.table {
display: table;
}
+.grid {
+ display: grid;
+}
+
+.hidden {
+ display: none;
+}
+
+.h-11 {
+ height: 2.75rem;
+}
+
+.h-16 {
+ height: 4rem;
+}
+
+.h-3 {
+ height: 0.75rem;
+}
+
+.h-32 {
+ height: 8rem;
+}
+
.h-4 {
height: 1rem;
}
@@ -623,30 +765,102 @@ video {
height: 1.5rem;
}
+.h-7 {
+ height: 1.75rem;
+}
+
+.h-8 {
+ height: 2rem;
+}
+
.h-9 {
height: 2.25rem;
}
+.h-full {
+ height: 100%;
+}
+
.w-1\/2 {
width: 50%;
}
+.w-11 {
+ width: 2.75rem;
+}
+
+.w-3 {
+ width: 0.75rem;
+}
+
.w-4 {
width: 1rem;
}
+.w-44 {
+ width: 11rem;
+}
+
+.w-5 {
+ width: 1.25rem;
+}
+
+.w-56 {
+ width: 14rem;
+}
+
+.w-6 {
+ width: 1.5rem;
+}
+
.w-64 {
width: 16rem;
}
+.w-7 {
+ width: 1.75rem;
+}
+
+.w-8 {
+ width: 2rem;
+}
+
.w-full {
width: 100%;
}
+.max-w-screen-2xl {
+ max-width: 1536px;
+}
+
+.max-w-sm {
+ max-width: 24rem;
+}
+
.max-w-xl {
max-width: 36rem;
}
+.flex-shrink-0 {
+ flex-shrink: 0;
+}
+
+.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));
+}
+
+.list-none {
+ list-style-type: none;
+}
+
+.grid-cols-1 {
+ grid-template-columns: repeat(1, minmax(0, 1fr));
+}
+
+.grid-cols-3 {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+}
+
.grid-cols-4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
@@ -659,6 +873,10 @@ video {
flex-direction: column;
}
+.flex-wrap {
+ flex-wrap: wrap;
+}
+
.items-start {
align-items: flex-start;
}
@@ -667,10 +885,34 @@ video {
align-items: center;
}
+.justify-start {
+ justify-content: flex-start;
+}
+
.justify-center {
justify-content: center;
}
+.justify-between {
+ justify-content: space-between;
+}
+
+.gap-4 {
+ gap: 1rem;
+}
+
+.space-x-1 > :not([hidden]) ~ :not([hidden]) {
+ --tw-space-x-reverse: 0;
+ margin-right: calc(0.25rem * var(--tw-space-x-reverse));
+ margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
+}
+
+.space-x-6 > :not([hidden]) ~ :not([hidden]) {
+ --tw-space-x-reverse: 0;
+ margin-right: calc(1.5rem * var(--tw-space-x-reverse));
+ margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
+}
+
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
--tw-space-y-reverse: 0;
margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
@@ -683,10 +925,47 @@ video {
margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}
+.divide-y > :not([hidden]) ~ :not([hidden]) {
+ --tw-divide-y-reverse: 0;
+ border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
+ border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
+}
+
+.divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
+ --tw-divide-opacity: 1;
+ border-color: rgb(243 244 246 / var(--tw-divide-opacity));
+}
+
+.self-center {
+ align-self: center;
+}
+
+.overflow-hidden {
+ overflow: hidden;
+}
+
+.overflow-y-auto {
+ overflow-y: auto;
+}
+
+.truncate {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.whitespace-nowrap {
+ white-space: nowrap;
+}
+
.rounded {
border-radius: 0.25rem;
}
+.rounded-full {
+ border-radius: 9999px;
+}
+
.rounded-lg {
border-radius: 0.5rem;
}
@@ -705,11 +984,38 @@ video {
border-width: 1px;
}
+.border-b {
+ border-bottom-width: 1px;
+}
+
+.border-t {
+ border-top-width: 1px;
+}
+
+.border-dashed {
+ border-style: dashed;
+}
+
+.border-gray-100 {
+ --tw-border-opacity: 1;
+ border-color: rgb(243 244 246 / var(--tw-border-opacity));
+}
+
+.border-gray-200 {
+ --tw-border-opacity: 1;
+ border-color: rgb(229 231 235 / var(--tw-border-opacity));
+}
+
.border-gray-300 {
--tw-border-opacity: 1;
border-color: rgb(209 213 219 / var(--tw-border-opacity));
}
+.border-white {
+ --tw-border-opacity: 1;
+ border-color: rgb(255 255 255 / var(--tw-border-opacity));
+}
+
.bg-gray-200 {
--tw-bg-opacity: 1;
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
@@ -720,11 +1026,36 @@ video {
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
}
+.bg-gray-800 {
+ --tw-bg-opacity: 1;
+ background-color: rgb(31 41 55 / var(--tw-bg-opacity));
+}
+
+.bg-gray-900 {
+ --tw-bg-opacity: 1;
+ background-color: rgb(17 24 39 / var(--tw-bg-opacity));
+}
+
+.bg-green-400 {
+ --tw-bg-opacity: 1;
+ background-color: rgb(74 222 128 / var(--tw-bg-opacity));
+}
+
.bg-primary-700 {
--tw-bg-opacity: 1;
background-color: rgb(29 78 216 / var(--tw-bg-opacity));
}
+.bg-purple-500 {
+ --tw-bg-opacity: 1;
+ background-color: rgb(168 85 247 / var(--tw-bg-opacity));
+}
+
+.bg-red-600 {
+ --tw-bg-opacity: 1;
+ background-color: rgb(220 38 38 / var(--tw-bg-opacity));
+}
+
.bg-white {
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
@@ -742,6 +1073,10 @@ video {
padding: 0.625rem;
}
+.p-4 {
+ padding: 1rem;
+}
+
.p-6 {
padding: 1.5rem;
}
@@ -766,15 +1101,46 @@ video {
padding-right: 1.5rem;
}
+.py-1 {
+ padding-top: 0.25rem;
+ padding-bottom: 0.25rem;
+}
+
+.py-2 {
+ padding-top: 0.5rem;
+ padding-bottom: 0.5rem;
+}
+
.py-3 {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
}
+.py-6 {
+ padding-top: 1.5rem;
+ padding-bottom: 1.5rem;
+}
+
+.pl-3 {
+ padding-left: 0.75rem;
+}
+
+.pr-4 {
+ padding-right: 1rem;
+}
+
.ps-3 {
padding-inline-start: 0.75rem;
}
+.pt-16 {
+ padding-top: 4rem;
+}
+
+.pt-6 {
+ padding-top: 1.5rem;
+}
+
.pt-8 {
padding-top: 2rem;
}
@@ -798,14 +1164,32 @@ video {
line-height: 1.25rem;
}
+.text-xl {
+ font-size: 1.25rem;
+ line-height: 1.75rem;
+}
+
+.text-xs {
+ font-size: 0.75rem;
+ line-height: 1rem;
+}
+
.font-bold {
font-weight: 700;
}
+.font-light {
+ font-weight: 300;
+}
+
.font-medium {
font-weight: 500;
}
+.font-normal {
+ font-weight: 400;
+}
+
.font-semibold {
font-weight: 600;
}
@@ -818,11 +1202,21 @@ video {
line-height: 2.25rem;
}
+.text-gray-400 {
+ --tw-text-opacity: 1;
+ color: rgb(156 163 175 / var(--tw-text-opacity));
+}
+
.text-gray-500 {
--tw-text-opacity: 1;
color: rgb(107 114 128 / var(--tw-text-opacity));
}
+.text-gray-700 {
+ --tw-text-opacity: 1;
+ color: rgb(55 65 81 / var(--tw-text-opacity));
+}
+
.text-gray-900 {
--tw-text-opacity: 1;
color: rgb(17 24 39 / var(--tw-text-opacity));
@@ -838,6 +1232,10 @@ video {
color: rgb(255 255 255 / var(--tw-text-opacity));
}
+.opacity-0 {
+ opacity: 0;
+}
+
.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);
@@ -850,11 +1248,60 @@ video {
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
+.shadow-sm {
+ --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
+ --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
+}
+
+.transition-opacity {
+ transition-property: opacity;
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
+ transition-duration: 150ms;
+}
+
+.transition {
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
+ transition-duration: 150ms;
+}
+
+.duration-300 {
+ transition-duration: 300ms;
+}
+
+.hover\:bg-gray-100:hover {
+ --tw-bg-opacity: 1;
+ background-color: rgb(243 244 246 / var(--tw-bg-opacity));
+}
+
+.hover\:bg-gray-50:hover {
+ --tw-bg-opacity: 1;
+ background-color: rgb(249 250 251 / var(--tw-bg-opacity));
+}
+
.hover\:bg-primary-800:hover {
--tw-bg-opacity: 1;
background-color: rgb(30 64 175 / var(--tw-bg-opacity));
}
+.hover\:text-gray-900:hover {
+ --tw-text-opacity: 1;
+ color: rgb(17 24 39 / var(--tw-text-opacity));
+}
+
+.hover\:text-primary-600:hover {
+ --tw-text-opacity: 1;
+ color: rgb(37 99 235 / var(--tw-text-opacity));
+}
+
+.hover\:text-primary-700:hover {
+ --tw-text-opacity: 1;
+ color: rgb(29 78 216 / var(--tw-text-opacity));
+}
+
.hover\:underline:hover {
text-decoration-line: underline;
}
@@ -864,12 +1311,27 @@ video {
border-color: rgb(59 130 246 / var(--tw-border-opacity));
}
+.focus\:outline-none:focus {
+ outline: 2px solid transparent;
+ outline-offset: 2px;
+}
+
.focus\:ring-4:focus {
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
+.focus\:ring-gray-200:focus {
+ --tw-ring-opacity: 1;
+ --tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity));
+}
+
+.focus\:ring-gray-300:focus {
+ --tw-ring-opacity: 1;
+ --tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
+}
+
.focus\:ring-primary-300:focus {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(147 197 253 / var(--tw-ring-opacity));
@@ -880,11 +1342,26 @@ video {
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
}
+.group:hover .group-hover\:text-gray-500 {
+ --tw-text-opacity: 1;
+ color: rgb(107 114 128 / var(--tw-text-opacity));
+}
+
+.dark\:divide-gray-600:is(.dark *) > :not([hidden]) ~ :not([hidden]) {
+ --tw-divide-opacity: 1;
+ border-color: rgb(75 85 99 / var(--tw-divide-opacity));
+}
+
.dark\:border-gray-600:is(.dark *) {
--tw-border-opacity: 1;
border-color: rgb(75 85 99 / var(--tw-border-opacity));
}
+.dark\:border-gray-700:is(.dark *) {
+ --tw-border-opacity: 1;
+ border-color: rgb(55 65 81 / var(--tw-border-opacity));
+}
+
.dark\:bg-gray-700:is(.dark *) {
--tw-bg-opacity: 1;
background-color: rgb(55 65 81 / var(--tw-bg-opacity));
@@ -909,11 +1386,21 @@ video {
--tw-bg-opacity: 0.8;
}
+.dark\:text-gray-300:is(.dark *) {
+ --tw-text-opacity: 1;
+ color: rgb(209 213 219 / var(--tw-text-opacity));
+}
+
.dark\:text-gray-400:is(.dark *) {
--tw-text-opacity: 1;
color: rgb(156 163 175 / var(--tw-text-opacity));
}
+.dark\:text-primary-400:is(.dark *) {
+ --tw-text-opacity: 1;
+ color: rgb(96 165 250 / var(--tw-text-opacity));
+}
+
.dark\:text-primary-500:is(.dark *) {
--tw-text-opacity: 1;
color: rgb(59 130 246 / var(--tw-text-opacity));
@@ -938,16 +1425,55 @@ video {
--tw-ring-offset-color: #1f2937;
}
+.dark\:hover\:bg-gray-600:hover:is(.dark *) {
+ --tw-bg-opacity: 1;
+ background-color: rgb(75 85 99 / var(--tw-bg-opacity));
+}
+
+.dark\:hover\:bg-gray-700:hover:is(.dark *) {
+ --tw-bg-opacity: 1;
+ background-color: rgb(55 65 81 / var(--tw-bg-opacity));
+}
+
.dark\:hover\:bg-primary-700:hover:is(.dark *) {
--tw-bg-opacity: 1;
background-color: rgb(29 78 216 / var(--tw-bg-opacity));
}
+.dark\:hover\:text-primary-500:hover:is(.dark *) {
+ --tw-text-opacity: 1;
+ color: rgb(59 130 246 / var(--tw-text-opacity));
+}
+
+.dark\:hover\:text-white:hover:is(.dark *) {
+ --tw-text-opacity: 1;
+ color: rgb(255 255 255 / var(--tw-text-opacity));
+}
+
+.dark\:hover\:underline:hover:is(.dark *) {
+ text-decoration-line: underline;
+}
+
.dark\:focus\:border-primary-500:focus:is(.dark *) {
--tw-border-opacity: 1;
border-color: rgb(59 130 246 / var(--tw-border-opacity));
}
+.dark\:focus\:text-white:focus:is(.dark *) {
+ --tw-text-opacity: 1;
+ color: rgb(255 255 255 / var(--tw-text-opacity));
+}
+
+.dark\:focus\:ring-gray-600:focus:is(.dark *) {
+ --tw-ring-opacity: 1;
+ --tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity));
+}
+
+.dark\:focus\:ring-gray-700:focus:is(.dark *) {
+ --tw-ring-opacity: 1;
+ --tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity));
+}
+
.dark\:focus\:ring-primary-500:focus:is(.dark *) {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
@@ -963,15 +1489,37 @@ video {
--tw-ring-color: rgb(30 64 175 / var(--tw-ring-opacity));
}
+.group:hover .dark\:group-hover\:text-gray-400:is(.dark *) {
+ --tw-text-opacity: 1;
+ color: rgb(156 163 175 / var(--tw-text-opacity));
+}
+
@media (min-width: 640px) {
+ .sm\:block {
+ display: block;
+ }
+
+ .sm\:flex {
+ display: flex;
+ }
+
.sm\:w-auto {
width: auto;
}
+ .sm\:p-6 {
+ padding: 1.5rem;
+ }
+
.sm\:p-8 {
padding: 2rem;
}
+ .sm\:text-2xl {
+ font-size: 1.5rem;
+ line-height: 2rem;
+ }
+
.sm\:text-sm {
font-size: 0.875rem;
line-height: 1.25rem;
@@ -979,13 +1527,175 @@ video {
}
@media (min-width: 768px) {
+ .md\:mb-0 {
+ margin-bottom: 0px;
+ }
+
+ .md\:ml-2 {
+ margin-left: 0.5rem;
+ }
+
+ .md\:mr-0 {
+ margin-right: 0px;
+ }
+
+ .md\:mr-6 {
+ margin-right: 1.5rem;
+ }
+
+ .md\:flex {
+ display: flex;
+ }
+
.md\:h-screen {
height: 100vh;
}
+
+ .md\:w-auto {
+ width: auto;
+ }
+
+ .md\:grid-cols-2 {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+
+ .md\:grid-cols-4 {
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ }
+
+ .md\:items-center {
+ align-items: center;
+ }
+
+ .md\:justify-between {
+ justify-content: space-between;
+ }
+
+ .md\:space-x-2 > :not([hidden]) ~ :not([hidden]) {
+ --tw-space-x-reverse: 0;
+ margin-right: calc(0.5rem * var(--tw-space-x-reverse));
+ margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
+ }
+
+ .md\:border-0 {
+ border-width: 0px;
+ }
+
+ .md\:p-0 {
+ padding: 0px;
+ }
+
+ .md\:py-10 {
+ padding-top: 2.5rem;
+ padding-bottom: 2.5rem;
+ }
+
+ .md\:hover\:bg-transparent:hover {
+ background-color: transparent;
+ }
+
+ .md\:hover\:text-primary-700:hover {
+ --tw-text-opacity: 1;
+ color: rgb(29 78 216 / var(--tw-text-opacity));
+ }
+
+ .md\:dark\:hover\:bg-transparent:hover:is(.dark *) {
+ background-color: transparent;
+ }
}
@media (min-width: 1024px) {
+ .lg\:order-1 {
+ order: 1;
+ }
+
+ .lg\:order-2 {
+ order: 2;
+ }
+
.lg\:mb-10 {
margin-bottom: 2.5rem;
}
+
+ .lg\:mt-0 {
+ margin-top: 0px;
+ }
+
+ .lg\:flex {
+ display: flex;
+ }
+
+ .lg\:hidden {
+ display: none;
+ }
+
+ .lg\:w-auto {
+ width: auto;
+ }
+
+ .lg\:flex-row {
+ flex-direction: row;
+ }
+
+ .lg\:px-0 {
+ padding-left: 0px;
+ padding-right: 0px;
+ }
+
+ .lg\:py-0 {
+ padding-top: 0px;
+ padding-bottom: 0px;
+ }
+
+ .lg\:hover\:underline:hover {
+ text-decoration-line: underline;
+ }
+}
+
+@media (min-width: 1280px) {
+ .xl\:col-auto {
+ grid-column: auto;
+ }
+
+ .xl\:mb-2 {
+ margin-bottom: 0.5rem;
+ }
+
+ .xl\:grid-cols-3 {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ }
+
+ .xl\:grid-cols-4 {
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ }
+
+ .xl\:grid-cols-6 {
+ grid-template-columns: repeat(6, minmax(0, 1fr));
+ }
+
+ .xl\:gap-4 {
+ gap: 1rem;
+ }
+
+ .xl\:space-x-8 > :not([hidden]) ~ :not([hidden]) {
+ --tw-space-x-reverse: 0;
+ margin-right: calc(2rem * var(--tw-space-x-reverse));
+ margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
+ }
+
+ .xl\:px-0 {
+ padding-left: 0px;
+ padding-right: 0px;
+ }
+}
+
+@media (min-width: 1536px) {
+ .\32xl\:col-span-2 {
+ grid-column: span 2 / span 2;
+ }
+
+ .\32xl\:px-0 {
+ padding-left: 0px;
+ padding-right: 0px;
+ }
}