Configure navigation bar.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -0,0 +1 @@
|
|||||||
|
test-image.jpg
|
||||||
68
index.html
68
index.html
@@ -0,0 +1,68 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en-ca">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
|
||||||
|
<title>Home | Cuiteguwu</title>
|
||||||
|
<img class="titleimg" src="" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||||
|
|
||||||
|
<meta name="description" content="Cutieguwu's Official website" />
|
||||||
|
<meta
|
||||||
|
name="viewport"
|
||||||
|
content="width=device-width, height=device-height, initial-scale=1.0"
|
||||||
|
/>
|
||||||
|
<meta name="keywords" content="cutieguwu" />
|
||||||
|
</head>
|
||||||
|
<body class="viewport">
|
||||||
|
<nav class="navigation_pane">
|
||||||
|
<h2 class="navigation_logo">Cutieguwu</h2>
|
||||||
|
|
||||||
|
<div class="navigation_menu">
|
||||||
|
<a class="nav_title nav_body" href="">HOME</a>
|
||||||
|
<a class="nav_title nav_body" href="#">ABOUT</a>
|
||||||
|
<a class="nav_title nav_body" href="#">BEAROCK</a>
|
||||||
|
<div class="dropdown">
|
||||||
|
<div class="dropdown_header nav_body">
|
||||||
|
<p class="nav_title">LINKS</p>
|
||||||
|
<ion-icon name="chevron-forward-outline"></ion-icon>
|
||||||
|
</div>
|
||||||
|
<div class="dropdown_body">
|
||||||
|
<a class="nav_title" href="https://gitea.cutieguwu.ca"
|
||||||
|
>GITEA</a
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
class="nav_title"
|
||||||
|
href="https://jellyfin.cutieguwu.ca"
|
||||||
|
>JELLYFIN</a
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a class="nav_title nav_body" href="#">OTHER</a>
|
||||||
|
<a class="nav_title nav_body" href="#">OTHER 2</a>
|
||||||
|
<a class="nav_title nav_body" href="#">SUPER LONG TITLE</a>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<div class="main_pane">
|
||||||
|
<ul>
|
||||||
|
<li><a>asd</a></li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
lorem ipsum etc idk what else there is in this latin phrase so
|
||||||
|
here's a bunch of generic stuff the quick brown fox jumps over
|
||||||
|
the lazy dog blah blah blah more text here as I continue to type
|
||||||
|
random shit out hoping that I can fill this block and track
|
||||||
|
something down but likely only to fail miserably because css is
|
||||||
|
such a pain in the ass
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<script
|
||||||
|
type="module"
|
||||||
|
src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"
|
||||||
|
></script>
|
||||||
|
<script
|
||||||
|
nomodule
|
||||||
|
src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"
|
||||||
|
></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|||||||
119
style.css
119
style.css
@@ -0,0 +1,119 @@
|
|||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
outline: 1px solid red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewport {
|
||||||
|
height: 100vh;
|
||||||
|
width: 100vw;
|
||||||
|
background-image: url(test-image.jpg);
|
||||||
|
background-color: rgba(0, 0, 0, 50%);
|
||||||
|
background-position: center;
|
||||||
|
background-size: cover;
|
||||||
|
align-content: start;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 3fr;
|
||||||
|
grid-auto-flow: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navigation_pane {
|
||||||
|
padding: 1em;
|
||||||
|
gap: 1em;
|
||||||
|
width: fit-content;
|
||||||
|
align-content: start;
|
||||||
|
display: grid;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navigation_logo {
|
||||||
|
color: lightpink;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
text-align: center;
|
||||||
|
height: fit-content;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navigation_menu {
|
||||||
|
min-width: fit-content;
|
||||||
|
display: grid;
|
||||||
|
grid-auto-flow: row;
|
||||||
|
row-gap: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav_body {
|
||||||
|
background-color: rgba(0, 0, 0, 50%);
|
||||||
|
list-style: none;
|
||||||
|
font-size: 100%;
|
||||||
|
border-radius: 50cqh;
|
||||||
|
height: auto;
|
||||||
|
transition: 0.4s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav_body:hover {
|
||||||
|
transform: scaleX(1.15);
|
||||||
|
transition: 0s ease-in;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navigation_menu .nav_title {
|
||||||
|
padding-left: 1cqw;
|
||||||
|
padding-right: 1cqw;
|
||||||
|
text-decoration: none;
|
||||||
|
color: lightpink;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
|
transition: 0.4s ease-out;
|
||||||
|
white-space: nowrap;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navigation_menu .nav_title:hover {
|
||||||
|
color: darkviolet;
|
||||||
|
transition: 0s ease-in;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown .dropdown_header {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto min-content;
|
||||||
|
grid-auto-flow: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown_header ion-icon {
|
||||||
|
margin-right: 0.5vw;
|
||||||
|
align-self: center;
|
||||||
|
float: right;
|
||||||
|
color: white;
|
||||||
|
transition-duration: 0.25s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown_body {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown:hover .dropdown_body {
|
||||||
|
display: grid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown:hover .dropdown_header {
|
||||||
|
transform: scaleX(1.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown:hover .dropdown_header ion-icon {
|
||||||
|
rotate: 90deg;
|
||||||
|
transition-duration: 0.25s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown_body:hover {
|
||||||
|
display: grid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main_pane {
|
||||||
|
padding: 1rem;
|
||||||
|
width: auto;
|
||||||
|
background-color: rgba(0, 0, 0, 50%);
|
||||||
|
color: white;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user