Skip to content

Instantly share code, notes, and snippets.

@neoskitties
Created July 11, 2024 16:48
Show Gist options
  • Save neoskitties/3320e8327eb779585dbffb54566c68f9 to your computer and use it in GitHub Desktop.
Save neoskitties/3320e8327eb779585dbffb54566c68f9 to your computer and use it in GitHub Desktop.
:root {
--azure: #e1f1f4;
--ash-grey: #a7c9ba;
--thistle: #dcbedb;
--royal-purple: #7c5aa0;
--ultra-violet: #553e7d;
--licorice: #1e110d;
}
* {
box-sizing: border-box;
image-rendering: pixelated;
scroll-behavior: smooth;
scrollbar-width: thin;
font-family: arial;
transition:0.4s;
}
html {
background: var(--ash-grey);
color: var(--licorice);
scrollbar-color: var(--ultra-violet) var(--royal-purple);
}
hr {
width:90%;
border-top:0;
border-bottom:4px dashed var(--ultra-violet);
}
a {
color:var(--ultra-violet);
font-weight:bold;
}
a:hover {
color:var(--licorice);
}
.container {
max-width:1000px;
min-height:600px;
margin:auto;
}
.grid {
display: grid;
grid-template-columns: 200px 1fr 200px;
grid-template-rows: 120px 1fr 40px;
gap: 0px 0px;
grid-auto-flow: row;
grid-template-areas:
"header header header"
"left main right"
"footer footer footer";
}
.header {
background:var(--royal-purple);
color: var(--azure);
text-align:center;
border: 4px solid var(--licorice);
border-radius:40px 40px 0px 0px;
grid-area: header;
}
.header h1 {
padding:12px;
font-size:40px;
}
.sidebar {
background:var(--ultra-violet);
color: var(--azure);
border: 4px solid var(--licorice);
border-top:0;
}
.sidebar p {
padding:8px 16px;
}
.sidebar h2 {
background: var(--thistle);
color:var(--licorice);
border:4px solid var(--licorice);
border-left:0;
border-right:0;
}
.sidebar button {
background: var(--thistle);
color:var(--licorice);
border:4px solid var(--licorice);
border-radius:8px;
width:80%;
height:30px;
font-size:20px;
margin-bottom:16px;
}
.sidebar button:hover {
border-left:20px solid var(--licorice);
margin-bottom:16px;
}
.updates {
background:var(--thistle);
color:var(--licorice);
border-top:4px solid var(--licorice);
border-bottom:4px solid var(--licorice);
height:100px;
text-align:left;
padding:8px;
overflow-y:auto;
scrollbar-color: var(--royal-purple) var(--ultra-violet);
}
.updates ul {
margin-top:0px;
padding-left:16px;
}
.left {
grid-area: left;
}
.right {
grid-area: right;
}
.main {
background:var(--thistle);
padding:24px;
border-bottom: 4px solid var(--licorice);
min-height:400px;
grid-area: main;
}
.box {
background:var(--ultra-violet);
color:var(--azure);
width:100%;
padding:8px;
margin-top:8px;
margin-bottom:8px;
border: 4px solid var(--licorice);
border-radius:8px;
}
.footer {
background:var(--royal-purple);
color:var(--thistle);
border: 4px solid var(--licorice);
border-top:0;
padding:8px;
grid-area: footer;
}
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<title>Page Title</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="">
<style>
</style>
<body>
<div class="container">
<div class="grid">
<div class="header">
<h1>Potion</h1>
</div>
<div class="sidebar left">
<center>
<h2>Links</h2>
<a href="#"><button>Link One</button></a>
<a href="#"><button>Link Two</button></a>
<a href="#"><button>Link Three</button></a>
<a href="#"><button>Link Four</button></a>
<a href="#"><button>Link Five</button></a>
<a href="#"><button>Link Six</button></a>
<a href="#"><button>Link Seven</button></a>
</center>
</div>
<div class="sidebar right">
<center>
<h2>Updates</h2>
<div class="updates">
<ul>
<li>Updates go here</li>
<li>Updates go here</li>
<li>Updates go here</li>
<li>Updates go here</li>
<li>Updates go here</li>
</ul>
</div>
<h2>Text</h2>
<p>You can add text here too! The sidebars will get taller to fit your content as well.</p>
</center>
</div>
<div class="main">
This site's container will get taller as you add content! It can be as tall as you want/need!
<hr>
You can also put a box here.
<div class="box">A box! it can be any height you want. It will automatically get taller!</div>
</div>
<div class="footer">
A footer! The footer will NOT expand to fit your text, so keep it brief.
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment