Code cleanup and About page update
This commit is contained in:
@@ -6,6 +6,7 @@ namespace MyWebsite.Controllers
|
|||||||
{
|
{
|
||||||
public class HomeController : Controller
|
public class HomeController : Controller
|
||||||
{
|
{
|
||||||
|
// TODO: Add more specific OpenGraph meta tags
|
||||||
public IActionResult Index() =>
|
public IActionResult Index() =>
|
||||||
View();
|
View();
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,9 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h1>@((ViewData["CurrentImage"] as Image).Title)</h1>
|
<h1>@((ViewData["CurrentImage"] as Image).Title)</h1>
|
||||||
<p class="date">Creation date: <a>@((ViewData["CurrentImage"] as Image).CreationDate.ToShortDateString())</a></p>
|
<span>Creation date: @((ViewData["CurrentImage"] as Image).CreationDate.ToShortDateString())</span>
|
||||||
<p>@((ViewData["CurrentImage"] as Image).Description)</p>
|
<p>@((ViewData["CurrentImage"] as Image).Description)</p>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="~/css/Gallery.css" />
|
||||||
@@ -12,4 +12,6 @@
|
|||||||
{
|
{
|
||||||
<a asp-action="Details" asp-route-id="@image.FileName"><img title="@image.Title" src="~/images/Gallery/@image.FileName"/></a>
|
<a asp-action="Details" asp-route-id="@image.FileName"><img title="@image.Title" src="~/images/Gallery/@image.FileName"/></a>
|
||||||
}
|
}
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="~/css/Gallery.css" />
|
||||||
@@ -1,10 +1,47 @@
|
|||||||
|
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "About me";
|
ViewData["Title"] = "Hello, World!";
|
||||||
}
|
}
|
||||||
|
|
||||||
<article>
|
<article>
|
||||||
|
<div class="block intro">
|
||||||
|
<div class="content">
|
||||||
|
<p style="font-family: 'Press Start 2P'">Hello, World!</p>
|
||||||
|
<p>My name is Michael<br/>
|
||||||
|
and I'm a C# developer.</p>
|
||||||
|
</div>
|
||||||
|
<img class="background" src="~/images/cvbg.png"/>
|
||||||
|
</div>
|
||||||
|
<!--<div class="block">
|
||||||
|
<div class="content">
|
||||||
|
<p>I was born in Russian town Lispetsk in 00's. At the age of 14 I discovered the magic of programming</p>
|
||||||
|
</div>
|
||||||
|
</div>-->
|
||||||
|
<div class="block sut">
|
||||||
|
<div class="content">
|
||||||
|
<p>Now I'm studying at The Bonch-Bruevich Saint-Petersburg State University of Telecommunications on Infocommunication Systems bachelor's degree</p>
|
||||||
|
</div>
|
||||||
|
<img class="background" src="~/images/sut.jpg"/>
|
||||||
|
</div>
|
||||||
|
<!--<div class="block">
|
||||||
|
<div class="content">
|
||||||
|
<p>I was born in Russian town Lispetsk in 00's. At the age of 14 I discovered the magic of programming</p>
|
||||||
|
</div>
|
||||||
|
</div>-->
|
||||||
|
<!--<div class="goto">
|
||||||
|
<div class="keyword">goto </div>
|
||||||
|
<div class="currentItem">Introduction;</div>
|
||||||
|
<div class="list">
|
||||||
|
<a href="#intro">Introduction</a>;<br/>
|
||||||
|
<a href="#about">About_me</a>;<br/>
|
||||||
|
<a href="#skills">My_skills</a>;<br/>
|
||||||
|
<a href="#portfolio">My_projects</a>;<br/>
|
||||||
|
<a href="#contact">Contact_me</a>;<br/>
|
||||||
|
</div>
|
||||||
|
</div>-->
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="~/css/AboutMe.css" />
|
||||||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Press+Start+2P&display=swap&subset=cyrillic">
|
||||||
|
|
||||||
<partial name="~/Views/Shared/ContactsBlock.cshtml"/>
|
<partial name="~/Views/Shared/ContactsBlock.cshtml"/>
|
||||||
@@ -25,7 +25,8 @@
|
|||||||
</head>
|
</head>
|
||||||
<body onload="UpdateProjects()">
|
<body onload="UpdateProjects()">
|
||||||
<nav class="navbar">
|
<nav class="navbar">
|
||||||
<a id="header" asp-controller="Home" asp-action="Index">XFox111.NET</a>
|
<a asp-controller="Home" asp-action="Index">XFox111.NET</a>
|
||||||
|
|
||||||
<menu type="toolbar" class="main-menu">
|
<menu type="toolbar" class="main-menu">
|
||||||
<li><a asp-controller="About" asp-action="Index">AboutMe();</a></li>
|
<li><a asp-controller="About" asp-action="Index">AboutMe();</a></li>
|
||||||
<li><a asp-controller="CV" asp-action="Index">CV();</a></li>
|
<li><a asp-controller="CV" asp-action="Index">CV();</a></li>
|
||||||
@@ -33,10 +34,17 @@
|
|||||||
<li><a asp-controller="Gallery" asp-action="Index">Arts();</a></li>
|
<li><a asp-controller="Gallery" asp-action="Index">Arts();</a></li>
|
||||||
<li><a asp-controller="Contacts" asp-action="Index">Contacts();</a></li>
|
<li><a asp-controller="Contacts" asp-action="Index">Contacts();</a></li>
|
||||||
</menu>
|
</menu>
|
||||||
<div class="sideheader">
|
|
||||||
<button style="display:none;" type="button" class="navbar-toggle">Menu</button>
|
<a asp-controller="Home" asp-action="SwitchLanguage" lang="ru">РУС </a>
|
||||||
<a asp-controller="Home" asp-action="SwitchLanguage" lang="ru">РУС </a>
|
<a style="cursor: pointer; display:none;" class="menu-toggle" onclick="ToggleMenu();"></a>
|
||||||
</div>
|
|
||||||
|
<menu type="toolbar" id="compact-menu" style="display:none">
|
||||||
|
<li><a asp-controller="About" asp-action="Index">AboutMe();</a></li>
|
||||||
|
<li><a asp-controller="CV" asp-action="Index">CV();</a></li>
|
||||||
|
<li><a asp-controller="Projects" asp-action="Index">Projects();</a></li>
|
||||||
|
<li><a asp-controller="Gallery" asp-action="Index">Arts();</a></li>
|
||||||
|
<li><a asp-controller="Contacts" asp-action="Index">Contacts();</a></li>
|
||||||
|
</menu>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
@@ -44,7 +52,7 @@
|
|||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<p class="comment">// Copyright ©2019 <b>Michael "XFox" Gordeev</b></p>
|
<span class="comment">// Copyright ©2019 <b>Michael "XFox" Gordeev</b></span>
|
||||||
|
|
||||||
<a class="socicon-mailru" href="mailto:michael.xfox@outlook.com" target="_blank" title="Mailbox"></a>
|
<a class="socicon-mailru" href="mailto:michael.xfox@outlook.com" target="_blank" title="Mailbox"></a>
|
||||||
<a class="socicon-linkedin" href="https://linkedin.com/in/xfox" target="_blank" title="LinkedIn"></a>
|
<a class="socicon-linkedin" href="https://linkedin.com/in/xfox" target="_blank" title="LinkedIn"></a>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"FileName": "FirstAvatar.png",
|
"FileName": "cvbg.png",
|
||||||
"Title": "First avatar I ever made",
|
"Title": "About me background image",
|
||||||
"CreationDate": "2016-07-31T00:00:00",
|
"CreationDate": "2016-07-31T00:00:00",
|
||||||
"Description": ""
|
"Description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. In viverra velit tellus, in lacinia elit venenatis sed. Nullam eget enim condimentum, aliquet orci eget, pretium risus. Ut convallis auctor magna non pharetra. Sed et lacus metus. Ut lobortis et velit id tempor. Fusce suscipit at justo in volutpat. Donec facilisis sollicitudin ligula, vitae volutpat ligula rhoncus sit amet. In viverra elit sodales bibendum volutpat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. "
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"FileName": "VectorAvatar.svg",
|
"FileName": "VectorAvatar.svg",
|
||||||
|
|||||||
@@ -0,0 +1,46 @@
|
|||||||
|
article {
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.block {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.block .content {
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
.block .background {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*.goto {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 20px;
|
||||||
|
right: 20px;
|
||||||
|
background-color: #1e1e1e;
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 5px;
|
||||||
|
color: white;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
.intro {
|
||||||
|
color: white;
|
||||||
|
background-color: #00a7dc;
|
||||||
|
font-size: 36px;
|
||||||
|
text-shadow: 2px 2px 1px black;
|
||||||
|
}
|
||||||
|
.intro .content {
|
||||||
|
bottom: 50px;
|
||||||
|
left: 50px;
|
||||||
|
max-width: 65%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sut {
|
||||||
|
color: white;
|
||||||
|
background-color: #ff8000;
|
||||||
|
font-size: 24px;
|
||||||
|
text-shadow: 2px 2px 1px black;
|
||||||
|
}
|
||||||
|
.sut .content {
|
||||||
|
margin: 50px 50px;
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
.gallery img {
|
||||||
|
object-fit: cover;
|
||||||
|
max-height: 200px;
|
||||||
|
max-width: 100%;
|
||||||
|
margin: 2px;
|
||||||
|
transition: .25s;
|
||||||
|
}
|
||||||
|
.gallery img:hover {
|
||||||
|
filter: brightness(125%);
|
||||||
|
transform: scale(1.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-overview-block img {
|
||||||
|
max-height: 50vh;
|
||||||
|
max-width: 100%;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.image-overview-block div {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
.image-overview-block h1 {
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
@@ -16,20 +16,16 @@
|
|||||||
src: url("/fonts/segoeUI.eot?#iefix") format("embedded-opentype"), url("/fonts/segoeUI.otf") format("opentype"), url("/fonts/segoeUI.svg") format("svg"), url("/fonts/segoeUI.ttf") format("truetype"), url("/fonts/segoeUI.woff") format("woff"), url("/fonts/segoeUI.woff2") format("woff2");
|
src: url("/fonts/segoeUI.eot?#iefix") format("embedded-opentype"), url("/fonts/segoeUI.otf") format("opentype"), url("/fonts/segoeUI.svg") format("svg"), url("/fonts/segoeUI.ttf") format("truetype"), url("/fonts/segoeUI.woff") format("woff"), url("/fonts/segoeUI.woff2") format("woff2");
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
/*Header styles*/
|
||||||
margin: 0px;
|
|
||||||
font-family: Consolas, 'Segoe MDL2 Assets';
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto 1fr auto auto;
|
||||||
|
grid-column-gap: 10px;
|
||||||
|
grid-template-rows: auto auto;
|
||||||
background-color: #343434;
|
background-color: #343434;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
top: 0%;
|
|
||||||
right: 0%;
|
|
||||||
left: 0%;
|
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
min-height: 35px;
|
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37,44 +33,57 @@ body {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
.navbar a:hover {
|
.navbar a:hover {
|
||||||
color: gray;
|
color: gray;
|
||||||
}
|
|
||||||
|
|
||||||
footer a {
|
|
||||||
text-decoration: none;
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
footer a:hover {
|
|
||||||
color: orangered;
|
|
||||||
}
|
|
||||||
|
|
||||||
.main-menu {
|
|
||||||
display: inline;
|
|
||||||
list-style: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.main-menu { margin: 0px; }
|
||||||
.main-menu li {
|
.main-menu li {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sideheader {
|
#compact-menu {
|
||||||
float: right;
|
grid-row: 2/2;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
#compact-menu li {
|
||||||
|
font-size: 20px;
|
||||||
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*Footer styles*/
|
||||||
footer {
|
footer {
|
||||||
padding: 0px 10px;
|
padding: 10px;
|
||||||
display: grid;
|
display: grid;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
grid-template-columns: 1fr auto auto auto;
|
grid-template-columns: 1fr auto auto auto;
|
||||||
grid-column-gap: 10px;
|
grid-column-gap: 10px;
|
||||||
}
|
}
|
||||||
footer svg { width: 1.4em; }
|
footer a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
footer a:hover {
|
||||||
|
color: orangered;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*Body styles*/
|
||||||
|
body {
|
||||||
|
margin: 0px;
|
||||||
|
font-family: Consolas, 'Segoe MDL2 Assets';
|
||||||
|
}
|
||||||
main {
|
main {
|
||||||
min-height: calc(100vh - 130px);
|
min-height: calc(100vh - 115px); /*Page height minus footer requred space*/
|
||||||
|
}
|
||||||
|
|
||||||
|
header a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
header a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
article, header {
|
article, header {
|
||||||
@@ -85,43 +94,6 @@ article a:visited, article a:link {
|
|||||||
color: blue;
|
color: blue;
|
||||||
}
|
}
|
||||||
|
|
||||||
header a {
|
|
||||||
text-decoration: none;
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
header a:hover {
|
|
||||||
color: black;
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
.image-overview-block img {
|
|
||||||
max-height: 50vh;
|
|
||||||
float: left;
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
.image-overview-block div {
|
|
||||||
margin: 10px;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
.image-overview-block div h1 {
|
|
||||||
margin-bottom: 0px;
|
|
||||||
}
|
|
||||||
.image-overview-block .date {
|
|
||||||
margin: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gallery img {
|
|
||||||
transition: .25s;
|
|
||||||
object-fit: cover;
|
|
||||||
max-width: 300px;
|
|
||||||
height: 200px;
|
|
||||||
margin: 2px;
|
|
||||||
}
|
|
||||||
.gallery img:hover {
|
|
||||||
filter: brightness(125%);
|
|
||||||
transform: scale(1.25);
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment, .comment:visited {
|
.comment, .comment:visited {
|
||||||
color: #57a64a;
|
color: #57a64a;
|
||||||
}
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 897 KiB |
@@ -1,11 +1,21 @@
|
|||||||
function ToggleImageSize()
|
function ToggleMenu()
|
||||||
|
{
|
||||||
|
var menu = document.getElementById("compact-menu");
|
||||||
|
|
||||||
|
if (menu.style.display == "none")
|
||||||
|
menu.style.display = "initial";
|
||||||
|
else
|
||||||
|
menu.style.display = "none";
|
||||||
|
}
|
||||||
|
|
||||||
|
function ToggleImageSize()
|
||||||
{
|
{
|
||||||
var image = document.getElementById("image");
|
var image = document.getElementById("image");
|
||||||
|
|
||||||
if (image.style.maxHeight == "none")
|
if (image.style.maxHeight == "none")
|
||||||
{
|
{
|
||||||
image.style.maxHeight = "50vh";
|
image.style.maxHeight = "50vh";
|
||||||
image.style.maxWidth = "initial";
|
image.style.maxWidth = "100%";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user