From b3094dfcbc848ea4b73e19bb196a5e31513d3ad7 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Thu, 21 May 2020 19:09:20 +0100 Subject: [PATCH] Move about page to blazor. --- Marechai/Controllers/HomeController.cs | 2 -- Marechai/Marechai.csproj | 5 ++--- .../Home/About.cshtml => Pages/Home/About.razor} | 11 +++++------ Marechai/Shared/MainLayout.razor | 2 +- 4 files changed, 8 insertions(+), 12 deletions(-) rename Marechai/{Views/Home/About.cshtml => Pages/Home/About.razor} (94%) diff --git a/Marechai/Controllers/HomeController.cs b/Marechai/Controllers/HomeController.cs index 502d2d98..fc447923 100644 --- a/Marechai/Controllers/HomeController.cs +++ b/Marechai/Controllers/HomeController.cs @@ -47,8 +47,6 @@ namespace Marechai.Controllers _context = context; } - public IActionResult About() => View(); - public IActionResult Contact() => View(); public IActionResult Error() => View(new ErrorViewModel diff --git a/Marechai/Marechai.csproj b/Marechai/Marechai.csproj index 3f8620fe..280e5d3a 100644 --- a/Marechai/Marechai.csproj +++ b/Marechai/Marechai.csproj @@ -2,7 +2,7 @@ netcoreapp3.1 - 3.0.99.934 + 3.0.99.936 Canary Islands Computer Museum Copyright © 2003-2020 Natalia Portillo Canary Islands Computer Museum Website @@ -54,8 +54,7 @@ - - + diff --git a/Marechai/Views/Home/About.cshtml b/Marechai/Pages/Home/About.razor similarity index 94% rename from Marechai/Views/Home/About.cshtml rename to Marechai/Pages/Home/About.razor index f97aa4c3..5d586463 100644 --- a/Marechai/Views/Home/About.cshtml +++ b/Marechai/Pages/Home/About.razor @@ -1,9 +1,9 @@ -@{ - /****************************************************************************** +@{ +/****************************************************************************** // MARECHAI: Master repository of computing history artifacts information // ---------------------------------------------------------------------------- // -// Filename : About.cshtml +// Filename : About.razor // Author(s) : Natalia Portillo // // --[ Description ] ---------------------------------------------------------- @@ -28,10 +28,9 @@ // ---------------------------------------------------------------------------- // Copyright © 2003-2020 Natalia Portillo *******************************************************************************/ - - ViewData["Title"] = "About"; } -

@ViewData["Title"]

+@page "/about" +

About

Who are we

We are a non-profit organization with the goal of conserve and restore old computers, video-consoles and arcade machines as well as to expose these machines in an office disposed for that purpose with information about computing history.

Where are we

diff --git a/Marechai/Shared/MainLayout.razor b/Marechai/Shared/MainLayout.razor index f9ed0564..305b220c 100644 --- a/Marechai/Shared/MainLayout.razor +++ b/Marechai/Shared/MainLayout.razor @@ -8,7 +8,7 @@