added layout.html and main.css

This commit is contained in:
legitnull 2023-04-02 14:06:15 -06:00
parent d9d071c169
commit 4746c59951
2 changed files with 76 additions and 0 deletions

24
assets/_layout.html Normal file
View File

@ -0,0 +1,24 @@
<!-- _layout.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TCP.WIKI</title>
<link rel="stylesheet" href="/assets/main.css">
</head>
<body>
<header>
<h1>TCP.WIKI</h1>
<nav>
<ul>
<li><a href="/">Home</a></li>
<!-- placeholder -->
</ul>
</nav>
</header>
<div id="content">
{{.Content}}
</div>
</body>
</html>

52
assets/main.css Normal file
View File

@ -0,0 +1,52 @@
/* assets/main.css */
/* placeholder for better sytle */
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 20px;
background-color: #131313;
color: #14ee00;
}
h1, h2, h3, h4, h5, h6 {
font-weight: bold;
}
a {
color: #059ce2;
text-decoration: none;
}
a:hover {
color: #f700ff;
}
header {
padding: 1em;
background-color: #5555;
border-bottom: 1px solid #555;
}
header h1 {
display: inline-block;
margin-right: 1em;
}
nav ul {
list-style: none;
padding: 0;
}
nav ul li {
display: inline;
margin-right: 1em;
}
/* Add the following rule to improve code block appearance */
pre {
background-color: #5555;
padding: 1em;
border-radius: 3px;
}