Add blog pages and related links in nav

This commit is contained in:
Riley Housden 2022-11-08 00:34:46 -05:00
parent 064059dd30
commit cbae54f399
4 changed files with 179 additions and 0 deletions

130
blog-styles.css Normal file
View file

@ -0,0 +1,130 @@
body {
background-color: #293B2A;
}
#wrapper {
background-color: #647E5A;
margin-left: auto;
margin-right: auto;
border-left: 1px solid #101010;
border-right: 1px solid #101010;
width: 90%;
height: 100vh; /* remove once content grows enough */
display: flex;
flex-direction: column;
}
#content {
margin: 0;
padding-top: 0;
padding-left: 1vh;
padding-right: 1vh;
overflow: visible;
}
body {
margin: 0;
height: 100vh;
}
header {
background-color: #646D5A;
margin-bottom: 1vh;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #505948;
display: block;
}
nav li {
margin: 0;
display: inline;
float: left;
}
nav li a {
display: block;
color: #8CAA8C;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
nav li a:hover {
background-color: #464F3E;
}
footer {
background: linear-gradient(20deg, #ffadad, #ffd6a5, #fdffb6, #caffbf, #9bf6ff, #a0c4ff, #bdb2ff, #ffc6ff);
margin-top: auto;
}
footer hr {
border-width: 1px;
border-style: solid;
border-color: #101010;
margin: auto;
}
footer p {
text-align: center;
}
h1 {
text-align: center;
}
h2 {
margin-top: 1vh;
margin-bottom: 1vh;
}
p {
color: #101010;
margin-top: 1%;
margin-bottom: 1%;
}
hr {
border-width: 1px;
border-style: dashed;
border-color: #101010;
margin: auto;
}
.social {
color: #683655;
font-size: large;
font-weight: bold;
display: block;
}
#mastodon {
font-style: italic;
text-decoration: none;
color: #3088D4;
}
#discord {
font-style: italic;
text-decoration: none;
color: #7289DA;
}
#contact {
border-style: solid;
border-width: .2vh;
border-color: #101010;
padding: 1vh;
background-color: #646D5A;
display: block;
}
#contact h2 {
margin: 0;
}

43
blog.html Normal file
View file

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html">
<title>Quack! ur gay!</title>
<link rel="stylesheet" href="./blog-styles.css">
<link rel="icon" href="./res/icon.png">
</head>
<body>
<div id="wrapper">
<header>
<h1>Quack! Woah there's a blog?!!?</h1>
<nav>
<hr>
<ul>
<li>
<a href="/">Home</a>
</li>
<li>
<a href="./stoplight">Stoplight Schema</a>
</li>
<li>
<a href="./blog">Blog</a>
</li>
</ul>
<hr>
</nav>
</header>
<div id="content">
<h2>Posts</h2>
<ul>
<li>Looks like there's nothing here yet :(</li>
</ul>
</div>
<footer>
<hr>
<p>ur gay <3</p>
</footer>
</div>
</body>
</html>

View file

@ -21,6 +21,9 @@
<li>
<a href="./stoplight">Stoplight Schema</a>
</li>
<li>
<a href="./blog">Blog</a>
</li>
</ul>
<hr>
</nav>

View file

@ -20,6 +20,9 @@
<li>
<a href="./stoplight">Stoplight Schema</a>
</li>
<li>
<a href="./blog">Blog</a>
</li>
</ul>
</nav>
<hr>