Merge branch 'main' of github.com:MCorange99/personal_website

This commit is contained in:
Gvidas Juknevičius 2024-03-28 01:24:08 +02:00
commit 3c34a5e407
4 changed files with 135 additions and 18 deletions

BIN
static/assets/bg.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -0,0 +1 @@

89
static/global.css Normal file
View File

@ -0,0 +1,89 @@
body {
background: url(/static/assets/bg.gif);
color: white;
font-family: monospace;
height: 100vh;
margin: 0;
display: flex;
justify-content: center;
}
.titlebar {
text-align: center;
}
.box {
background: rgba(0, 0, 0, 0.8);
border: 2px solid purple;
padding: 10px;
box-sizing: border-box;
text-align: center;
width: 100%;
margin: 5px;
}
a:link {
color: purple;
text-decoration: none;
}
#content {
width: 50%;
}
#main-pane {
width: 100%;
padding: 10px;
display: flex;
flex-direction: row;
}
#content-pane, #sidenav {
height: 80vh;
}
#sidenav {
width: 25%;
font-size: 12pt;
display: flex;
flex-direction: column;
}
@media only screen and (max-width: 1080px) {
#content {
width: 90%;
}
#main-pane {
flex-direction: column;
width: 96%;
}
#content-pane, #sidenav {
height: 100%;
width: 100%;
}
#sidenav {
flex-direction: row;
}
#sidenav a {
margin-left: 10px;
}
}

View File

@ -1,20 +1,47 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <script src="https://unpkg.com/htmx.org@1.9.11"></script> -->
</head>
<body>
<div id="nav">
<a class="nav-logo" href="#home"> <img src="/static/logo.svg" alt="Website Logo"> </a>
<a class="nav-btn nav-btn-active" href="#home">Home</a>
<a class="nav-btn" href="#projects">Projects</a>
<a class="nav-btn" href="#contact">Contact</a>
<a class="nav-btn" href="#supportme">Support Me</a>
</div>
<html>
<!-- <h1>{{placeholder}}</h1> -->
</body>
</html>
<head>
<title>placeholder</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="static/global.css">
</head>
<body>
<div id="content">
<div class="box titlebar">
<h1>Placeholder</h1>
</div>
<div id="main-pane">
<div class="box" id="sidenav">
<a href="#">Home</a>
<a href="#">Home</a>
<a href="#">Home</a>
<a href="#">Home</a>
</div>
<div class="box" id="content-pane">
<p>{{placeholder}}</p>
</div>
</div>
</div>
</body>
</html>