added nodeinfo partial view

This commit is contained in:
Nicolas Constant 2021-02-17 20:49:17 -05:00
parent 56f0a3396a
commit 67801ea631
No known key found for this signature in database
GPG key ID: 1E9F677FB01A5688
4 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace BirdsiteLive.Component
{
public class NodeInfoViewComponent : ViewComponent
{
public IViewComponentResult Invoke()
{
return View(null);
}
}
}

View file

@ -0,0 +1,7 @@
@*
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
<div>
TEST
</div>

View file

@ -9,6 +9,7 @@
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/site.css" />
<link rel="stylesheet" href="~/css/birdsite.css" />
<link rel="stylesheet" href="~/css/pattern.css" />
</head>
<body>
<header>
@ -39,6 +40,11 @@
</div>
<footer class="border-top footer text-muted">
<div class="wrapper-nodeinfo">
<div class="container container-nodeinfo">
@await Component.InvokeAsync("NodeInfo")
</div>
</div>
<div class="container">
<a href="https://github.com/NicolasConstant/BirdsiteLive">Github</a> @*<a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>*@

View file

@ -0,0 +1,8 @@
.container-nodeinfo {
line-height: 30px;
}
.wrapper-nodeinfo {
border-bottom: 1px solid #dee2e6;
}