Страница загрузки

This commit is contained in:
FrigaT
2026-04-15 19:58:18 +03:00
parent ba13199ca2
commit d03bd193c2
3 changed files with 135 additions and 6 deletions

View File

@@ -1,4 +1,6 @@
<CascadingAuthenticationState> @using PlaylistShared.Pwa.Components.Common
<CascadingAuthenticationState>
<Router AppAssembly="@typeof(App).Assembly" NotFoundPage="typeof(Pages.NotFound)" > <Router AppAssembly="@typeof(App).Assembly" NotFoundPage="typeof(Pages.NotFound)" >
<Found Context="routeData"> <Found Context="routeData">
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"> <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">

View File

@@ -0,0 +1,8 @@
@inject NavigationManager Navigation
@code {
protected override void OnInitialized()
{
Navigation.NavigateTo("login");
}
}

View File

@@ -16,15 +16,134 @@
<link rel="apple-touch-icon" sizes="512x512" href="icon-512.png" /> <link rel="apple-touch-icon" sizes="512x512" href="icon-512.png" />
<link rel="apple-touch-icon" sizes="192x192" href="icon-192.png" /> <link rel="apple-touch-icon" sizes="192x192" href="icon-192.png" />
<script type="importmap"></script> <script type="importmap"></script>
<style>
:root {
--bg: #1a1a27;
--primary: #7e6fff;
--text: #92929f;
}
body {
background-color: var(--mud-palette-background, var(--bg));
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
font-family: 'Roboto', sans-serif;
}
.loader-wrapper {
display: flex;
flex-direction: column;
align-items: center;
gap: 50px;
}
.ripple-container {
position: relative;
width: 100px;
height: 100px;
display: flex;
justify-content: center;
align-items: center;
}
/* Центральная нота с неоновым свечением */
.note-icon {
font-size: 50px;
color: var(--mud-palette-primary, var(--primary));
z-index: 10;
filter: drop-shadow(0 0 10px rgba(126, 111, 255, 0.5));
animation: note-float 0.6s ease-in-out infinite;
}
/* Эффект расходящихся волн (Sharing) */
.ripple {
position: absolute;
border: 2px solid var(--mud-palette-primary, var(--primary));
border-radius: 50%;
opacity: 0;
animation: ripple-out 0.9s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}
.ripple:nth-child(2) {
animation-delay: 0s;
}
.ripple:nth-child(3) {
animation-delay: 0.3s;
}
.ripple:nth-child(4) {
animation-delay: 0.6s;
}
@keyframes ripple-out {
0% {
width: 40px;
height: 40px;
opacity: 0.8;
border-width: 4px;
}
100% {
width: 280px;
height: 280px;
opacity: 0;
border-width: 1px;
}
}
@keyframes note-float {
0%, 100% {
transform: translateY(0) scale(1);
}
50% {
transform: translateY(-15px) scale(1.1);
}
}
.share-text {
color: var(--mud-palette-text-secondary, var(--text));
text-transform: uppercase;
letter-spacing: 5px;
font-size: 0.75rem;
font-weight: 400;
animation: fade-text 0.8s infinite;
}
@keyframes fade-text {
0%, 100% {
opacity: 0.4;
transform: scale(0.95);
}
50% {
opacity: 1;
transform: scale(1);
}
}
</style>
</head> </head>
<body> <body>
<div id="app"> <div id="app">
<svg class="loading-progress"> <div class="loader-wrapper">
<circle r="40%" cx="50%" cy="50%" /> <div class="ripple-container">
<circle r="40%" cx="50%" cy="50%" /> <div class="ripple"></div>
<div class="ripple"></div>
<div class="ripple"></div>
<div class="note-icon">
<svg width="50" height="50" viewBox="0 0 24 24" fill="currentColor">
<path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z" "" ) />>
</svg> </svg>
<div class="loading-progress-text"></div> </div>
</div>
<div class="share-text">Playlist Share</div>
</div>
</div> </div>
<div id="blazor-error-ui"> <div id="blazor-error-ui">