Recreated webstie in Dotnet
This commit is contained in:
8
DouwcoWebsite.NET/DouwcoWebsite/Pages/AboutMe.cshtml
Normal file
8
DouwcoWebsite.NET/DouwcoWebsite/Pages/AboutMe.cshtml
Normal file
@@ -0,0 +1,8 @@
|
||||
@page
|
||||
@model AboutMeModel
|
||||
@{
|
||||
ViewData["Title"] = "Douwe Ravers";
|
||||
}
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
|
||||
<p>To be constructed</p>
|
||||
11
DouwcoWebsite.NET/DouwcoWebsite/Pages/AboutMe.cshtml.cs
Normal file
11
DouwcoWebsite.NET/DouwcoWebsite/Pages/AboutMe.cshtml.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace DouwcoWebsite.Pages;
|
||||
|
||||
public class AboutMeModel : PageModel
|
||||
{
|
||||
public void OnGet()
|
||||
{
|
||||
}
|
||||
}
|
||||
8
DouwcoWebsite.NET/DouwcoWebsite/Pages/DouwcoApps.cshtml
Normal file
8
DouwcoWebsite.NET/DouwcoWebsite/Pages/DouwcoApps.cshtml
Normal file
@@ -0,0 +1,8 @@
|
||||
@page
|
||||
@model DouwcoWebsite.Pages.DouwcoApps
|
||||
@{
|
||||
ViewData["Title"] = "Douwco Apps";
|
||||
}
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
|
||||
<p>To be constructed</p>
|
||||
11
DouwcoWebsite.NET/DouwcoWebsite/Pages/DouwcoApps.cshtml.cs
Normal file
11
DouwcoWebsite.NET/DouwcoWebsite/Pages/DouwcoApps.cshtml.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace DouwcoWebsite.Pages;
|
||||
|
||||
public class DouwcoApps : PageModel
|
||||
{
|
||||
public void OnGet()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
26
DouwcoWebsite.NET/DouwcoWebsite/Pages/Error.cshtml
Normal file
26
DouwcoWebsite.NET/DouwcoWebsite/Pages/Error.cshtml
Normal file
@@ -0,0 +1,26 @@
|
||||
@page
|
||||
@model ErrorModel
|
||||
@{
|
||||
ViewData["Title"] = "Error";
|
||||
}
|
||||
|
||||
<h1 class="text-danger">Error.</h1>
|
||||
<h2 class="text-danger">An error occurred while processing your request.</h2>
|
||||
|
||||
@if (Model.ShowRequestId)
|
||||
{
|
||||
<p>
|
||||
<strong>Request ID:</strong> <code>@Model.RequestId</code>
|
||||
</p>
|
||||
}
|
||||
|
||||
<h3>Development Mode</h3>
|
||||
<p>
|
||||
Swapping to the <strong>Development</strong> environment displays detailed information about the error that occurred.
|
||||
</p>
|
||||
<p>
|
||||
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
|
||||
It can result in displaying sensitive information from exceptions to end users.
|
||||
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
|
||||
and restarting the app.
|
||||
</p>
|
||||
19
DouwcoWebsite.NET/DouwcoWebsite/Pages/Error.cshtml.cs
Normal file
19
DouwcoWebsite.NET/DouwcoWebsite/Pages/Error.cshtml.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Diagnostics;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace DouwcoWebsite.Pages;
|
||||
|
||||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||||
[IgnoreAntiforgeryToken]
|
||||
public class ErrorModel : PageModel
|
||||
{
|
||||
public string? RequestId { get; set; }
|
||||
|
||||
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||
|
||||
public void OnGet()
|
||||
{
|
||||
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
|
||||
}
|
||||
}
|
||||
32
DouwcoWebsite.NET/DouwcoWebsite/Pages/Index.cshtml
Normal file
32
DouwcoWebsite.NET/DouwcoWebsite/Pages/Index.cshtml
Normal file
@@ -0,0 +1,32 @@
|
||||
@page
|
||||
@model IndexModel
|
||||
@{
|
||||
ViewData["Title"] = "Home";
|
||||
}
|
||||
|
||||
<div>
|
||||
<h1 style="font-family: righteous; font-size: 100px">Douwco</h1>
|
||||
<p>Ow, you are already here? I didnt expect you to be here so soon. I am still working on this website.</p>
|
||||
<br>
|
||||
<p>Here is a link to my design, so you can see what it will be:
|
||||
<a style="color: #0dcaf0" href="https://design.penpot.app/#/view?file-id=5b786374-066f-8104-8007-0b19376c435e&page-id=acf819fe-142a-80da-8007-875a6f9f5e61§ion=interactions&index=0&share-id=9ebbf814-01a1-8050-8007-89e30d4ac951">
|
||||
Penpot Design
|
||||
</a></p>
|
||||
|
||||
<nav>
|
||||
<div class="vert_container" style="justify-content: space-around">
|
||||
<a class="nav_option" asp-page="/AboutMe">
|
||||
<img class="icon" src="~/img/icons/user.png" alt="About Me">
|
||||
<p>About <span>Me</span></p>
|
||||
</a>
|
||||
<a class="nav_option" asp-page="/DouwcoApps">
|
||||
<img class="icon" src="~/img/icons/projects_icon.png" alt="Douwco Apps">
|
||||
<p>Douwco <span>Apps</span></p>
|
||||
</a>
|
||||
<a class="nav_option" asp-page="/MyGames">
|
||||
<img class="icon" src="~/img/icons/devicegamepad2.png" alt="My Games">
|
||||
<p>My <span>Games</span></p>
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
11
DouwcoWebsite.NET/DouwcoWebsite/Pages/Index.cshtml.cs
Normal file
11
DouwcoWebsite.NET/DouwcoWebsite/Pages/Index.cshtml.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace DouwcoWebsite.Pages;
|
||||
|
||||
public class IndexModel : PageModel
|
||||
{
|
||||
public void OnGet()
|
||||
{
|
||||
}
|
||||
}
|
||||
8
DouwcoWebsite.NET/DouwcoWebsite/Pages/MyGames.cshtml
Normal file
8
DouwcoWebsite.NET/DouwcoWebsite/Pages/MyGames.cshtml
Normal file
@@ -0,0 +1,8 @@
|
||||
@page
|
||||
@model DouwcoWebsite.Pages.MyGames
|
||||
@{
|
||||
ViewData["Title"] = "My Games";
|
||||
}
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
|
||||
<p>To be constructed</p>
|
||||
11
DouwcoWebsite.NET/DouwcoWebsite/Pages/MyGames.cshtml.cs
Normal file
11
DouwcoWebsite.NET/DouwcoWebsite/Pages/MyGames.cshtml.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace DouwcoWebsite.Pages;
|
||||
|
||||
public class MyGames : PageModel
|
||||
{
|
||||
public void OnGet()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
44
DouwcoWebsite.NET/DouwcoWebsite/Pages/Shared/_Layout.cshtml
Normal file
44
DouwcoWebsite.NET/DouwcoWebsite/Pages/Shared/_Layout.cshtml
Normal file
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>@ViewData["Title"] - Douwco</title>
|
||||
<script type="importmap"></script>
|
||||
<link rel="stylesheet" href="~/css/layout.css" asp-append-version="true"/>
|
||||
<link rel="stylesheet" href="~/css/structure.css" asp-append-version="true"/>
|
||||
<link rel="stylesheet" href="~/css/douwco.css" asp-append-version="true"/>
|
||||
</head>
|
||||
<body>
|
||||
<header class="@(ViewData["Title"] == "Home" ? "hide_header" : "")">
|
||||
<nav>
|
||||
<div class="vert_container" style="justify-content: space-around">
|
||||
<a class="nav_option" asp-page="/Index"><img class="logo" src="~/img/douwco_logo.png"></a>
|
||||
<a class="nav_option" asp-page="/AboutMe">
|
||||
<img class="icon" src="~/img/icons/user.png" alt="About Me">
|
||||
<p>About <span>Me</span></p>
|
||||
</a>
|
||||
<a class="nav_option" asp-page="/DouwcoApps">
|
||||
<img class="icon" src="~/img/icons/projects_icon.png" alt="Douwco Apps">
|
||||
<p>Douwco <span>Apps</span></p>
|
||||
</a>
|
||||
<a class="nav_option" asp-page="/MyGames">
|
||||
<img class="icon" src="~/img/icons/devicegamepad2.png" alt="My Games">
|
||||
<p>My <span>Games</span></p>
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main role="main">
|
||||
@RenderBody()
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<div class="vert_container">
|
||||
<p>© 2026 - douwco.be</p>
|
||||
<p>Made and hosted in 🇪🇺</p>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,2 @@
|
||||
<script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/dist/jquery.validate.unobtrusive.min.js"></script>
|
||||
@@ -0,0 +1,3 @@
|
||||
@using DouwcoWebsite
|
||||
@namespace DouwcoWebsite.Pages
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
3
DouwcoWebsite.NET/DouwcoWebsite/Pages/_ViewStart.cshtml
Normal file
3
DouwcoWebsite.NET/DouwcoWebsite/Pages/_ViewStart.cshtml
Normal file
@@ -0,0 +1,3 @@
|
||||
@{
|
||||
Layout = "_Layout";
|
||||
}
|
||||
Reference in New Issue
Block a user