Skip to content

Commit a5f6a3b

Browse files
committed
Add project files.
1 parent 0454bd0 commit a5f6a3b

25 files changed

+1190
-0
lines changed

MudProjectCountdown.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.4.33110.190
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MudProjectCountdown", "MudProjectCountdown\MudProjectCountdown.csproj", "{67DFE222-D01C-4093-B8EE-5F93BDFB6E5E}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{67DFE222-D01C-4093-B8EE-5F93BDFB6E5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{67DFE222-D01C-4093-B8EE-5F93BDFB6E5E}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{67DFE222-D01C-4093-B8EE-5F93BDFB6E5E}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{67DFE222-D01C-4093-B8EE-5F93BDFB6E5E}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {F5E695FA-1D1E-4757-974D-7E8518CCE0A9}
24+
EndGlobalSection
25+
EndGlobal

MudProjectCountdown/App.razor

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Router AppAssembly="@typeof(App).Assembly">
2+
<Found Context="routeData">
3+
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
4+
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
5+
</Found>
6+
<NotFound>
7+
<PageTitle>Not found</PageTitle>
8+
<LayoutView Layout="@typeof(MainLayout)">
9+
<p role="alert">Sorry, there's nothing at this address.</p>
10+
</LayoutView>
11+
</NotFound>
12+
</Router>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net7.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="CodeBeam.MudExtensions" Version="6.1.2" />
11+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.0" />
12+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.0" PrivateAssets="all" />
13+
<PackageReference Include="MudBlazor" Version="6.1.2" />
14+
</ItemGroup>
15+
16+
</Project>

MudProjectCountdown/Pages/Index.razor

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
@page "/"
2+
@using MudExtensions.Enums
3+
4+
<MudContainer MaxWidth="MaxWidth.Large" Class="d-flex flex-column align-center justify-center" Style="height: 100vh">
5+
6+
<MudIcon Icon="@Icons.Custom.Brands.MudBlazor" Style="width: 320px; height: 320px; color: orange"></MudIcon>
7+
<MudText Class="id1 mb-16" Typo="Typo.h1" Style="color: orange; cursor: default; user-select: none">Prepare Yourself</MudText>
8+
<div class="blurred-main d-flex flex-column align-center justify-center">
9+
<MudText Class="blurred-visible mb-1" Typo="Typo.h6" Style="color: orange;">for biggest unofficial Mud thing ever</MudText>
10+
<MudText Class="id2 blurred" Color="Color.Primary" Typo="Typo.h2" Style="font-weight: 700">Mud<MudText Inline="true" Typo="Typo.h2" Class="blurred-all">What</MudText></MudText>
11+
</div>
12+
<MudText Class="id2 mb-8" Typo="Typo.h2" Style="cursor: default; user-select: none">2023 / Q1*</MudText>
13+
<MudText Class="id2">*Join <MudLink Href="https://discord.com/invite/mudblazor" Target="_blank" Underline="Underline.Hover">MudBlazor Discord channel</MudLink> for follow countdown notification.</MudText>
14+
</MudContainer>
15+
16+
<MudAnimate Selector=".id1" AnimationType="AnimationType.Fade" Value="1" ValueSecondary="0" Duration="6"></MudAnimate>
17+
<MudAnimate Selector=".id2" AnimationType="AnimationType.Fade" Value="0" ValueSecondary="1" AnimationDirection="AnimationDirection.Reverse" AnimationFillMode="AnimationFillMode.Both" Duration="6" Delay="3"></MudAnimate>
18+
19+
<style>
20+
.blurred-main .blurred {
21+
filter: blur(12px);
22+
transition: filter 2s ease;
23+
cursor: default;
24+
}
25+
26+
.blurred-main .blurred-visible {
27+
opacity: 0;
28+
transition: opacity 1s ease;
29+
font-family: "Caveat";
30+
}
31+
32+
.blurred-main:hover .blurred-visible {
33+
opacity: 1;
34+
}
35+
36+
.blurred-main:hover .blurred {
37+
filter: blur(0px);
38+
cursor: default;
39+
}
40+
41+
.blurred-all {
42+
color: orange;
43+
filter: blur(12px);
44+
}
45+
</style>

MudProjectCountdown/Program.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using Microsoft.AspNetCore.Components.Web;
2+
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
3+
using MudBlazor.Services;
4+
using MudProjectCountdown;
5+
6+
var builder = WebAssemblyHostBuilder.CreateDefault(args);
7+
builder.RootComponents.Add<App>("#app");
8+
builder.RootComponents.Add<HeadOutlet>("head::after");
9+
10+
builder.Services.AddMudServices();
11+
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
12+
13+
await builder.Build().RunAsync();
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"iisSettings": {
3+
"windowsAuthentication": false,
4+
"anonymousAuthentication": true,
5+
"iisExpress": {
6+
"applicationUrl": "http://localhost:13260",
7+
"sslPort": 44364
8+
}
9+
},
10+
"profiles": {
11+
"http": {
12+
"commandName": "Project",
13+
"dotnetRunMessages": true,
14+
"launchBrowser": true,
15+
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
16+
"applicationUrl": "http://localhost:5084",
17+
"environmentVariables": {
18+
"ASPNETCORE_ENVIRONMENT": "Development"
19+
}
20+
},
21+
"https": {
22+
"commandName": "Project",
23+
"dotnetRunMessages": true,
24+
"launchBrowser": true,
25+
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
26+
"applicationUrl": "https://localhost:7022;http://localhost:5084",
27+
"environmentVariables": {
28+
"ASPNETCORE_ENVIRONMENT": "Development"
29+
}
30+
},
31+
"IIS Express": {
32+
"commandName": "IISExpress",
33+
"launchBrowser": true,
34+
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
35+
"environmentVariables": {
36+
"ASPNETCORE_ENVIRONMENT": "Development"
37+
}
38+
}
39+
}
40+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@inherits LayoutComponentBase
2+
3+
@Body
4+
5+
<MudThemeProvider />
6+
<MudDialogProvider />
7+
<MudSnackbarProvider />
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
.page {
2+
position: relative;
3+
display: flex;
4+
flex-direction: column;
5+
}
6+
7+
main {
8+
flex: 1;
9+
}
10+
11+
.sidebar {
12+
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
13+
}
14+
15+
.top-row {
16+
background-color: #f7f7f7;
17+
border-bottom: 1px solid #d6d5d5;
18+
justify-content: flex-end;
19+
height: 3.5rem;
20+
display: flex;
21+
align-items: center;
22+
}
23+
24+
.top-row ::deep a, .top-row ::deep .btn-link {
25+
white-space: nowrap;
26+
margin-left: 1.5rem;
27+
text-decoration: none;
28+
}
29+
30+
.top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
31+
text-decoration: underline;
32+
}
33+
34+
.top-row ::deep a:first-child {
35+
overflow: hidden;
36+
text-overflow: ellipsis;
37+
}
38+
39+
@media (max-width: 640.98px) {
40+
.top-row:not(.auth) {
41+
display: none;
42+
}
43+
44+
.top-row.auth {
45+
justify-content: space-between;
46+
}
47+
48+
.top-row ::deep a, .top-row ::deep .btn-link {
49+
margin-left: 0;
50+
}
51+
}
52+
53+
@media (min-width: 641px) {
54+
.page {
55+
flex-direction: row;
56+
}
57+
58+
.sidebar {
59+
width: 250px;
60+
height: 100vh;
61+
position: sticky;
62+
top: 0;
63+
}
64+
65+
.top-row {
66+
position: sticky;
67+
top: 0;
68+
z-index: 1;
69+
}
70+
71+
.top-row.auth ::deep a:first-child {
72+
flex: 1;
73+
text-align: right;
74+
width: 0;
75+
}
76+
77+
.top-row, article {
78+
padding-left: 2rem !important;
79+
padding-right: 1.5rem !important;
80+
}
81+
}

MudProjectCountdown/_Imports.razor

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@using System.Net.Http
2+
@using System.Net.Http.Json
3+
@using Microsoft.AspNetCore.Components.Forms
4+
@using Microsoft.AspNetCore.Components.Routing
5+
@using Microsoft.AspNetCore.Components.Web
6+
@using Microsoft.AspNetCore.Components.Web.Virtualization
7+
@using Microsoft.AspNetCore.Components.WebAssembly.Http
8+
@using Microsoft.JSInterop
9+
@using MudProjectCountdown
10+
@using MudProjectCountdown.Shared
11+
12+
@using MudBlazor
13+
@using MudExtensions
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
2+
3+
html, body {
4+
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
5+
}
6+
7+
h1:focus {
8+
outline: none;
9+
}
10+
11+
a, .btn-link {
12+
color: #0071c1;
13+
}
14+
15+
.btn-primary {
16+
color: #fff;
17+
background-color: #1b6ec2;
18+
border-color: #1861ac;
19+
}
20+
21+
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
22+
box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
23+
}
24+
25+
.content {
26+
padding-top: 1.1rem;
27+
}
28+
29+
.valid.modified:not([type=checkbox]) {
30+
outline: 1px solid #26b050;
31+
}
32+
33+
.invalid {
34+
outline: 1px solid red;
35+
}
36+
37+
.validation-message {
38+
color: red;
39+
}
40+
41+
#blazor-error-ui {
42+
background: lightyellow;
43+
bottom: 0;
44+
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
45+
display: none;
46+
left: 0;
47+
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
48+
position: fixed;
49+
width: 100%;
50+
z-index: 1000;
51+
}
52+
53+
#blazor-error-ui .dismiss {
54+
cursor: pointer;
55+
position: absolute;
56+
right: 0.75rem;
57+
top: 0.5rem;
58+
}
59+
60+
.blazor-error-boundary {
61+
background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUx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YgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
62+
padding: 1rem 1rem 1rem 3.7rem;
63+
color: white;
64+
}
65+
66+
.blazor-error-boundary::after {
67+
content: "An error has occurred."
68+
}
69+
70+
.loading-progress {
71+
position: relative;
72+
display: block;
73+
width: 8rem;
74+
height: 8rem;
75+
margin: 20vh auto 1rem auto;
76+
}
77+
78+
.loading-progress circle {
79+
fill: none;
80+
stroke: #e0e0e0;
81+
stroke-width: 0.6rem;
82+
transform-origin: 50% 50%;
83+
transform: rotate(-90deg);
84+
}
85+
86+
.loading-progress circle:last-child {
87+
stroke: #1b6ec2;
88+
stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
89+
transition: stroke-dasharray 0.05s ease-in-out;
90+
}
91+
92+
.loading-progress-text {
93+
position: absolute;
94+
text-align: center;
95+
font-weight: bold;
96+
inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
97+
}
98+
99+
.loading-progress-text:after {
100+
content: var(--blazor-load-percentage-text, "Loading");
101+
}

MudProjectCountdown/wwwroot/css/bootstrap/bootstrap.min.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MudProjectCountdown/wwwroot/css/bootstrap/bootstrap.min.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)