mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Move contact page to blazor.
This commit is contained in:
@@ -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
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -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>
|
||||||
|
|||||||
@@ -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">
|
||||||
@@ -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>
|
||||||
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user