Compare commits
3 Commits
70806b80ee
...
e292a0352d
| Author | SHA1 | Date | |
|---|---|---|---|
| e292a0352d | |||
| 6a2b7d7743 | |||
| 478d84b0be |
@@ -1,4 +1,5 @@
|
||||
<div id="bottomnav">
|
||||
<link rel="stylesheet" href="assets/css/bottomnav.css">
|
||||
<ul>
|
||||
<li><a href="/">[/]</a></li>
|
||||
<li><a href="/projects.html">[/projects]</a></li>
|
||||
@@ -1,40 +1,3 @@
|
||||
@font-face {
|
||||
font-family: 'JetBrains-Mono';
|
||||
src: url('./jetbrains-mono-font/fonts/webfonts/JetBrainsMono-Regular.woff2') format('woff2');
|
||||
}
|
||||
|
||||
:root {
|
||||
font-family: 'JetBrains-Mono', sans-serif;
|
||||
}
|
||||
|
||||
/* * {
|
||||
outline: 1px black solid;
|
||||
} */
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
|
||||
height: 100dvh;
|
||||
width: 100dvw;
|
||||
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
main {
|
||||
flex: 1;
|
||||
padding: 32px;
|
||||
}
|
||||
|
||||
main div {
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
main img {
|
||||
box-shadow: 0px 0px 8px 4px black;
|
||||
}
|
||||
|
||||
#bottomnav {
|
||||
display: flex;
|
||||
25
assets/css/global.css
Normal file
25
assets/css/global.css
Normal file
@@ -0,0 +1,25 @@
|
||||
@font-face {
|
||||
font-family: 'JetBrains-Mono';
|
||||
src: url('/assets/jetbrains-mono-font/fonts/webfonts/JetBrainsMono-Regular.woff2') format('woff2');
|
||||
}
|
||||
|
||||
:root {
|
||||
font-family: 'JetBrains-Mono', sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
|
||||
height: 100dvh;
|
||||
width: 100dvw;
|
||||
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
main {
|
||||
flex: 1;
|
||||
padding: 32px;
|
||||
}
|
||||
32
assets/css/icon.css
Normal file
32
assets/css/icon.css
Normal file
@@ -0,0 +1,32 @@
|
||||
main {
|
||||
display: grid;
|
||||
|
||||
grid-template-columns: repeat( auto-fit, minmax(256px, 1fr) );
|
||||
overflow-x: hidden;
|
||||
gap: 32px;
|
||||
}
|
||||
|
||||
/* @media screen and (min-width: ){
|
||||
|
||||
} */
|
||||
|
||||
Icon {
|
||||
display: flex;
|
||||
|
||||
padding: 32px;
|
||||
text-align: end;
|
||||
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
outline: 1px solid black;
|
||||
}
|
||||
|
||||
Icon:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
Icon img {
|
||||
width: 8rem;
|
||||
height: 8rem;
|
||||
}
|
||||
7
assets/css/index.css
Normal file
7
assets/css/index.css
Normal file
@@ -0,0 +1,7 @@
|
||||
main div {
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
main img {
|
||||
box-shadow: 0px 0px 8px 4px black;
|
||||
}
|
||||
BIN
assets/images/cashapp.png
Normal file
BIN
assets/images/cashapp.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
BIN
assets/images/discord.ico
Normal file
BIN
assets/images/discord.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 279 KiB |
BIN
assets/images/tiktok.jpg
Normal file
BIN
assets/images/tiktok.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 58 KiB |
BIN
assets/images/tiktok.png
Normal file
BIN
assets/images/tiktok.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 298 KiB |
@@ -1,6 +1,6 @@
|
||||
const parser = new DOMParser();
|
||||
|
||||
fetch("/_bottomnav.html")
|
||||
fetch("/assets/components/_bottomnav.html")
|
||||
.then(response => response.text())
|
||||
.then(text => {
|
||||
const bottomNavHTML = parser.parseFromString(text, "text/html");
|
||||
35
assets/js/icon.js
Normal file
35
assets/js/icon.js
Normal file
@@ -0,0 +1,35 @@
|
||||
const main = document.querySelector("main");
|
||||
|
||||
const icons = main.querySelectorAll("Icon");
|
||||
|
||||
icons.forEach((icon) => {
|
||||
let iconImage = icon.getAttribute("image");
|
||||
let link = icon.getAttribute("href");
|
||||
let title = icon.getAttribute("title");
|
||||
|
||||
console.log(iconImage, link, title);
|
||||
|
||||
if (iconImage) {
|
||||
let imageElement = document.createElement("img");
|
||||
|
||||
imageElement.src = iconImage;
|
||||
imageElement.height = 64;
|
||||
imageElement.width = 64;
|
||||
|
||||
icon.appendChild(imageElement);
|
||||
}
|
||||
|
||||
if (link) {
|
||||
icon.addEventListener('click', (e) => {
|
||||
window.open(link, "_blank");
|
||||
});
|
||||
}
|
||||
|
||||
if (title) {
|
||||
let titleElement = document.createElement("span");
|
||||
|
||||
titleElement.textContent = title;
|
||||
icon.appendChild(titleElement);
|
||||
}
|
||||
|
||||
});
|
||||
@@ -4,8 +4,10 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Im bad at naming things</title>
|
||||
<link rel="stylesheet" href="assets/global.css">
|
||||
<script src="assets/global.js" defer></script>
|
||||
<link rel="stylesheet" href="assets/css/global.css">
|
||||
<link rel="stylesheet" href="assets/css/index.css">
|
||||
|
||||
<script src="assets/js/global.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
|
||||
15
links.html
15
links.html
@@ -4,12 +4,21 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Links are pretty cool</title>
|
||||
<link rel="stylesheet" href="assets/global.css">
|
||||
<script src="assets/global.js" defer></script>
|
||||
<link rel="stylesheet" href="assets/css/global.css">
|
||||
<link rel="stylesheet" href="assets/css/icon.css">
|
||||
|
||||
<script src="assets/js/global.js" defer></script>
|
||||
<script src="assets/js/icon.js" defer></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main>
|
||||
|
||||
<Icon href="https://lunarware.tech" image="/favicon.ico" title="Website"></Icon>
|
||||
<Icon href="https://git.lunarware.tech/lucielle" image="https://git.lunarware.tech/assets/img/favicon.png" title="Gitea"></Icon>
|
||||
<Icon href="#" image="assets/images/discord.ico" title="Discord"></Icon>
|
||||
<Icon href="https://www.tiktok.com/@lucielle.0x22" image="assets/images/tiktok.png" title="TikTok"></Icon>
|
||||
<Icon href="https://cash.app/$LuciEll00" image="assets/images/cashapp.png" title="Cashapp"></Icon>
|
||||
</main>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,15 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Projects 'n' stuff</title>
|
||||
<link rel="stylesheet" href="assets/global.css">
|
||||
<script src="assets/global.js" defer></script>
|
||||
<link rel="stylesheet" href="assets/css/global.css">
|
||||
<link rel="stylesheet" href="assets/css/icon.css">
|
||||
|
||||
<script src="assets/js/global.js" defer></script>
|
||||
<script src="assets/js/icon.js" defer></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main>
|
||||
|
||||
<Icon href="https://git.lunarware.tech/lucielle/website" image="/favicon.ico" title="Website"></Icon>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user