Move contact page to blazor.

This commit is contained in:
2020-05-21 19:18:54 +01:00
parent b3094dfcbc
commit 0ff6b0b5c3
5 changed files with 12 additions and 64 deletions

View File

@@ -1,57 +0,0 @@
/******************************************************************************
// MARECHAI: Master repository of computing history artifacts information
// ----------------------------------------------------------------------------
//
// Filename : HomeController.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ Description ] ----------------------------------------------------------
//
// Home controller
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2020 Natalia Portillo
*******************************************************************************/
using System.Diagnostics;
using Marechai.Database.Models;
using Marechai.Models;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
namespace Marechai.Controllers
{
public class HomeController : Controller
{
readonly MarechaiContext _context;
readonly IWebHostEnvironment hostingEnvironment;
public HomeController(IWebHostEnvironment env, MarechaiContext context)
{
hostingEnvironment = env;
_context = context;
}
public IActionResult Contact() => View();
public IActionResult Error() => View(new ErrorViewModel
{
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier
});
}
}

View File

@@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web"> <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup> <PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework> <TargetFramework>netcoreapp3.1</TargetFramework>
<Version>3.0.99.936</Version> <Version>3.0.99.937</Version>
<Company>Canary Islands Computer Museum</Company> <Company>Canary Islands Computer Museum</Company>
<Copyright>Copyright © 2003-2020 Natalia Portillo</Copyright> <Copyright>Copyright © 2003-2020 Natalia Portillo</Copyright>
<Product>Canary Islands Computer Museum Website</Product> <Product>Canary Islands Computer Museum Website</Product>

View File

@@ -1,9 +1,9 @@
@{ @{
/****************************************************************************** /******************************************************************************
// MARECHAI: Master repository of computing history artifacts information // MARECHAI: Master repository of computing history artifacts information
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// //
// Filename : Contact.cshtml // Filename : Contact.razor
// Author(s) : Natalia Portillo <claunia@claunia.com> // Author(s) : Natalia Portillo <claunia@claunia.com>
// //
// --[ Description ] ---------------------------------------------------------- // --[ Description ] ----------------------------------------------------------
@@ -28,10 +28,10 @@
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Copyright © 2003-2020 Natalia Portillo // Copyright © 2003-2020 Natalia Portillo
*******************************************************************************/ *******************************************************************************/
ViewData["Title"] = "Contact";
} }
<h2>@ViewData["Title"]</h2>
@page "/contact"
<h2>Contact</h2>
<address> <address>
<strong>Support:</strong> <strong>Support:</strong>
<a href="mailto:museum@claunia.com"> <a href="mailto:museum@claunia.com">

View File

@@ -142,4 +142,8 @@
<value>Acerca de</value> <value>Acerca de</value>
<comment>About</comment> <comment>About</comment>
</data> </data>
<data name="Contact" xml:space="preserve">
<value>Contacto</value>
<comment>Contact</comment>
</data>
</root> </root>

View File

@@ -9,6 +9,7 @@
<div class="top-row px-4 auth"> <div class="top-row px-4 auth">
<LoginDisplay/> <LoginDisplay/>
<a href="/about" target="_blank">@L["About"]</a> <a href="/about" target="_blank">@L["About"]</a>
<a href="/contact" target="_blank">@L["Contact"]</a>
</div> </div>
<div class="content px-4"> <div class="content px-4">