Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Updated blazor loading animation to AliasVault style (#165)
Leendert de Borst6896c4cd1d83
diff --git a/src/AliasVault.Client/Main/Pages/Emails/Home.razor b/src/AliasVault.Client/Main/Pages/Emails/Home.razorindex 61d33d93e..8e3585008 100644--- a/src/AliasVault.Client/Main/Pages/Emails/Home.razor+++ b/src/AliasVault.Client/Main/Pages/Emails/Home.razor@@ -36,9 +36,9 @@ else<div class="overflow-x-auto px-4"><Paginator CurrentPage="CurrentPage" PageSize="PageSize" TotalRecords="TotalRecords" OnPageChanged="HandlePageChanged"/>- <div class="bg-white shadow rounded-lg overflow-hidden">- <div class="p-4 bg-gray-100 border-b">- <h2 class="text-xl font-semibold text-gray-800">Inbox</h2>+ <div class="bg-white shadow rounded-lg overflow-hidden mt-6">+ <div class="px-4 py-2 bg-gray-100 border-b">+ <h2 class="font-semibold text-gray-800">Inbox</h2></div><ul class="divide-y divide-gray-200">@foreach (var email in EmailList)@@ -59,10 +59,7 @@ else</div></div><div class="flex justify-end">- <button @onclick:stopPropagation="true" @onclick="() => NavigateToCredential(email.CredentialId)"- class="mr-4 bg-gray-400 p-1 text-white text-sm font-medium rounded-md hover:bg-primary-700 transition duration-150 ease-in-out flex items-center justify-center">- <span class="truncate max-w-full px-1">@email.CredentialName</span>- </button>+ <div @onclick="() => NavigateToCredential(email.CredentialId)" class="text-sm text-gray-700 cursor-pointer mr-4 hover:underline">@email.CredentialName</div><div class="text-sm text-gray-500">@email.Date.ToString("yyyy-MM-dd")</div></div></div>diff --git a/src/AliasVault.Client/wwwroot/css/app.css b/src/AliasVault.Client/wwwroot/css/app.cssindex 54a8aa38c..cc9be1fe9 100644--- a/src/AliasVault.Client/wwwroot/css/app.css+++ b/src/AliasVault.Client/wwwroot/css/app.css@@ -1,41 +1,3 @@-html, body {- font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;-}--h1:focus {- outline: none;-}--a, .btn-link {- color: #0071c1;-}--.btn-primary {- color: #fff;- background-color: #1b6ec2;- border-color: #1861ac;-}--.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {- box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;-}--.content {- padding-top: 1.1rem;-}--.valid.modified:not([type=checkbox]) {- outline: 1px solid #26b050;-}--.invalid {- outline: 1px solid red;-}--.validation-message {- color: red;-}-#blazor-error-ui {background: lightyellow;bottom: 0;@@ -48,12 +10,12 @@ a, .btn-link {z-index: 1000;}- #blazor-error-ui .dismiss {- cursor: pointer;- position: absolute;- right: 0.75rem;- top: 0.5rem;- }+#blazor-error-ui .dismiss {+ cursor: pointer;+ position: absolute;+ right: 0.75rem;+ top: 0.5rem;+}.blazor-error-boundary {background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggO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after {- content: "An error has occurred."- }--.loading-progress {- position: relative;- display: block;- width: 8rem;- height: 8rem;- margin: 20vh auto 1rem auto;+.blazor-error-boundary::after {+ content: "An error has occurred."}- .loading-progress circle {- fill: none;- stroke: #e0e0e0;- stroke-width: 0.6rem;- transform-origin: 50% 50%;- transform: rotate(-90deg);- }-- .loading-progress circle:last-child {- stroke: #1b6ec2;- stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;- transition: stroke-dasharray 0.05s ease-in-out;- }--.loading-progress-text {- position: absolute;- text-align: center;- font-weight: bold;- inset: calc(20vh + 3.25rem) 0 auto 0.2rem;-}-- .loading-progress-text:after {- content: var(--blazor-load-percentage-text, "Loading");- }--code {- color: #c02d76;+.loading-progress-text:after {+ content: var(--blazor-load-percentage-text, "Loading");}diff --git a/src/AliasVault.Client/wwwroot/css/tailwind.css b/src/AliasVault.Client/wwwroot/css/tailwind.cssindex 57f79b764..9c342d9e9 100644--- a/src/AliasVault.Client/wwwroot/css/tailwind.css+++ b/src/AliasVault.Client/wwwroot/css/tailwind.css@@ -648,10 +648,6 @@ video {grid-column: 1 / -1;}-.col-span-12 {- grid-column: span 12 / span 12;-}-.mx-4 {margin-left: 1rem;margin-right: 1rem;@@ -814,6 +810,10 @@ video {height: 3rem;}+.h-24 {+ height: 6rem;+}+.h-3 {height: 0.75rem;}@@ -842,14 +842,14 @@ video {height: 2.25rem;}-.h-\[45px\] {- height: 45px;-}-.h-full {height: 100%;}+.h-16 {+ height: 4rem;+}+.w-1\/2 {width: 50%;}@@ -878,6 +878,10 @@ video {width: 1rem;}+.w-48 {+ width: 12rem;+}+.w-5 {width: 1.25rem;}@@ -906,20 +910,20 @@ video {width: 24rem;}-.w-\[45px\] {- width: 45px;-}-.w-full {width: 100%;}-.min-w-full {- min-width: 100%;+.w-80 {+ width: 20rem;}-.max-w-full {- max-width: 100%;+.w-16 {+ width: 4rem;+}++.min-w-full {+ min-width: 100%;}.max-w-md {@@ -1223,11 +1227,6 @@ video {background-color: rgb(59 130 246 / var(--tw-bg-opacity));}-.bg-blue-600 {- --tw-bg-opacity: 1;- background-color: rgb(37 99 235 / var(--tw-bg-opacity));-}-.bg-gray-100 {--tw-bg-opacity: 1;background-color: rgb(243 244 246 / var(--tw-bg-opacity));@@ -1268,6 +1267,11 @@ video {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-50 {--tw-bg-opacity: 1;background-color: rgb(240 253 244 / var(--tw-bg-opacity));@@ -1318,9 +1322,9 @@ video {background-color: rgb(255 255 255 / var(--tw-bg-opacity));}-.bg-gray-300 {+.bg-primary-500 {--tw-bg-opacity: 1;- background-color: rgb(209 213 219 / var(--tw-bg-opacity));+ background-color: rgb(244 149 65 / var(--tw-bg-opacity));}.bg-opacity-50 {@@ -1373,15 +1377,6 @@ video {padding: 2rem;}-.p-1 {- padding: 0.25rem;-}--.px-1 {- padding-left: 0.25rem;- padding-right: 0.25rem;-}-.px-2 {padding-left: 0.5rem;padding-right: 0.5rem;@@ -1548,6 +1543,10 @@ video {text-transform: uppercase;}+.italic {+ font-style: italic;+}+.leading-6 {line-height: 1.5rem;}@@ -1650,6 +1649,11 @@ video {color: rgb(255 255 255 / var(--tw-text-opacity));}+.text-primary-600 {+ --tw-text-opacity: 1;+ color: rgb(214 131 56 / var(--tw-text-opacity));+}+.opacity-25 {opacity: 0.25;}@@ -1947,11 +1951,6 @@ video {border-color: rgb(55 65 81 / var(--tw-border-opacity));}-.dark\:bg-blue-500:is(.dark *) {- --tw-bg-opacity: 1;- background-color: rgb(59 130 246 / var(--tw-bg-opacity));-}-.dark\:bg-gray-600:is(.dark *) {--tw-bg-opacity: 1;background-color: rgb(75 85 99 / var(--tw-bg-opacity));@@ -2075,11 +2074,6 @@ video {background-color: rgb(59 130 246 / var(--tw-bg-opacity));}-.dark\:hover\:bg-blue-600:hover:is(.dark *) {- --tw-bg-opacity: 1;- background-color: rgb(37 99 235 / var(--tw-bg-opacity));-}-.dark\:hover\:bg-gray-500:hover:is(.dark *) {--tw-bg-opacity: 1;background-color: rgb(107 114 128 / var(--tw-bg-opacity));diff --git a/src/AliasVault.Client/wwwroot/index.template.html b/src/AliasVault.Client/wwwroot/index.template.htmlindex 271d1b202..764f5fc94 100644--- a/src/AliasVault.Client/wwwroot/index.template.html+++ b/src/AliasVault.Client/wwwroot/index.template.html@@ -34,11 +34,23 @@<body class="bg-gray-50 dark:bg-gray-800"><div id="app">- <svg class="loading-progress">- <circle r="40%" cx="50%" cy="50%" />- <circle r="40%" cx="50%" cy="50%" />- </svg>- <div class="loading-progress-text"></div>+ <div class="fixed inset-0 flex items-center justify-center">+ <div class="relative p-8 bg-white dark:bg-gray-800 rounded-lg shadow-xl max-w-md mx-auto">+ <div class="text-center">+ <svg class="mx-auto animate-spin h-12 w-12 text-primary-500" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">+ <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>+ <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>+ </svg>+ <h2 class="mt-4 text-xl font-semibold text-gray-900 dark:text-white">AliasVault is loading</h2>+ <p class="mt-2 text-sm text-gray-500 dark:text-gray-400">Downloading the AliasVault app to your browser for secure end-to-end encryption.</p>+ <div class="loading-progress-text text-sm font-medium text-gray-700 mt-4"></div>+ <div class="mt-6 text-center">+ <p id="security-quote" class="text-sm text-primary-600 italic"></p>+ </div>+ </div>+ </div>+ </div>+</div><div id="blazor-error-ui">@@ -47,6 +59,26 @@<a class="dismiss">🗙</a></div>+ <script>+ const securityQuotes = [+ "Your identity is your most valuable asset. Protect it like one.",+ "In the digital world, a strong password is your first line of defense.",+ "Security is not a product, but a process.",+ "The weakest link in the security chain is the human element.",+ "Security is always excessive until it's not enough.",+ "The only system which is truly secure is one which is switched off and unplugged.",+ "In a world where you can be anything, be secure.",+ "Trust, but verify - especially online.",+ "Your data is only as secure as your weakest password.",+ "Privacy is not an option, and it shouldn't be the price we accept for just getting on the Internet.",+ "Arguing that you don't care about the right to privacy because you have nothing to hide is no different than saying you don't care about free speech because you have nothing to say.",+ "The most secure password is the one you can't remember.",+ ];++ const quoteElement = document.getElementById('security-quote');+ const randomIndex = Math.floor(Math.random() * securityQuotes.length);+ quoteElement.textContent = `"${securityQuotes[randomIndex]}"`;+ </script><script src="js/crypto.js?v=@CacheBuster"></script><script src="js/utilities.js?v=@CacheBuster"></script><script src="_framework/blazor.webassembly.js?v=@CacheBuster"></script>