minor theme work

This commit is contained in:
legitnull 2023-04-02 14:17:56 -06:00
parent 4746c59951
commit 1346694e3e
2 changed files with 29 additions and 9 deletions

View File

@ -13,12 +13,15 @@
<nav> <nav>
<ul> <ul>
<li><a href="/">Home</a></li> <li><a href="/">Home</a></li>
<!-- placeholder --> <!-- Add more links to your menubar here -->
<li><a href="/what">What</a></li>
<li><a href="/who">Who</a></li>
</ul> </ul>
</nav> </nav>
</header> </header>
<div id="content"> <main>
{{.Content}} {{ .Content }}
</div> </main>
</body> </body>
</html> </html>

View File

@ -1,8 +1,7 @@
/* assets/main.css */ /* assets/main.css */
/* placeholder for better sytle */
body { body {
font-family: Arial, sans-serif; font-family: 'Courier New', Courier, monospace;
line-height: 1.6; line-height: 1.6;
margin: 20px; margin: 20px;
background-color: #131313; background-color: #131313;
@ -24,29 +23,47 @@ a:hover {
header { header {
padding: 1em; padding: 1em;
background-color: #5555; background-color: #333;
border-bottom: 1px solid #555; border-bottom: 1px solid #555;
display: flex;
justify-content: space-between;
align-items: center;
} }
header h1 { header h1 {
display: inline-block;
margin-right: 1em; margin-right: 1em;
font-size: 1.5em;
} }
nav ul { nav ul {
list-style: none; list-style: none;
padding: 0; padding: 0;
margin: 0;
} }
nav ul li { nav ul li {
display: inline; display: inline;
margin-right: 1em; margin-right: 1em;
font-size: 1.1em;
} }
/* Add the following rule to improve code block appearance */
pre { pre {
background-color: #5555; background-color: #5555;
padding: 1em; padding: 1em;
border-radius: 3px; border-radius: 3px;
} }
/* Button styles */
nav ul li a {
display: inline-block;
padding: 8px 16px;
border: 1px solid #14ee00;
border-radius: 3px;
background-color: transparent;
font-size: 1.1em;
transition: background-color 0.3s, color 0.3s;
}
nav ul li a:hover {
background-color: #14ee00;
color: #131313;
}