Compare commits

..

7 Commits

Author SHA1 Message Date
e292a0352d add icons functionality 2025-12-03 10:56:56 -06:00
6a2b7d7743 move html into assets 2025-12-03 10:08:21 -06:00
478d84b0be adjust file structure 2025-12-03 09:59:01 -06:00
70806b80ee bottom navigation functionality 2025-12-02 11:46:59 -06:00
8af6ee7cd5 load bottomnav from js 2025-12-02 10:22:42 -06:00
2d391dab21 create base page 2025-12-02 08:01:09 -06:00
240c4ba875 Add JetBrainsMono font 2025-12-02 08:01:03 -06:00
35 changed files with 332 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<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>
<li><a href="/links.html">[/links]</a></li>
</ul>
<span>PWD: [%PATH%]</span>
</div>

43
assets/css/bottomnav.css Normal file
View File

@@ -0,0 +1,43 @@
#bottomnav {
display: flex;
justify-content: space-between;
padding: 32px;
margin: 0;
outline: 1px solid black;
}
#bottomnav span {
align-self: center;
}
#bottomnav ul {
display: flex;
flex-direction: row;
list-style: none;
padding: 0;
gap: 16px;
}
#bottomnav li {
padding: 0px;
}
#bottomnav a {
color: black;
background: white;
text-decoration: none;
padding: 4px;
outline: 1px black solid;
}
#bottomnav a:hover {
text-decoration: underline;
background: black;
color: white;
}

25
assets/css/global.css Normal file
View 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
View 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
View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
assets/images/discord.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB

BIN
assets/images/tiktok.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
assets/images/tiktok.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 KiB

View File

@@ -0,0 +1,10 @@
# This is the official list of project authors for copyright purposes.
# This file is distinct from the CONTRIBUTORS.txt file.
# See the latter for an explanation.
#
# Names should be added to this file as:
# Name or Organization <email address>
JetBrains <>
Philipp Nurullin <philipp.nurullin@jetbrains.com>
Konstantin Bulenkov <kb@jetbrains.com>

View File

@@ -0,0 +1,93 @@
Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

13
assets/js/global.js Normal file
View File

@@ -0,0 +1,13 @@
const parser = new DOMParser();
fetch("/assets/components/_bottomnav.html")
.then(response => response.text())
.then(text => {
const bottomNavHTML = parser.parseFromString(text, "text/html");
const bottomNav = bottomNavHTML.getElementById("bottomnav");
const pathSpan = bottomNav.querySelector("span");
pathSpan.innerText = pathSpan.innerText.replace("%PATH%", document.location.pathname);
document.body.appendChild(bottomNav);
});

35
assets/js/icon.js Normal file
View 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);
}
});

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB

20
index.html Normal file
View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<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/css/global.css">
<link rel="stylesheet" href="assets/css/index.css">
<script src="assets/js/global.js" defer></script>
</head>
<body>
<main>
<div>
<img src="/favicon.ico" alt="lucielle_avatar" width="256" height="256">
Lucielle
</div>
</main>
</body>
</html>

24
links.html Normal file
View File

@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<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/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>

21
projects.html Normal file
View File

@@ -0,0 +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/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>