initial commit

This commit is contained in:
gome 2022-04-08 20:44:33 -05:00
commit fbbc146410
12 changed files with 316 additions and 0 deletions

25
bookmarks/index.html Normal file
View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<head>
<title>gome — bookmarks</title>
<meta charset='utf-8'/>
<meta name='theme-color' content='#fffcf7'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, shrink-to-fit=no'/>
<link rel='icon' type='image/x-icon' href='../favicon.ico'>
<link rel='preconnect' href='https://fonts.googleapis.com'>
<link rel='preconnect' href='https://fonts.gstatic.com' crossorigin>
<link href='https://fonts.googleapis.com/css2?family=Lora:ital@0;1&display=swap' rel='stylesheet'>
<link rel='stylesheet' type='text/css' href='../css/style.css'/>
</head>
<body>
<header id='header'>
<a id='back' href='..'>back to gomepage</a>
</header>
<h1>Bookmarks</h1>
<main>
<p>Just a stub for now.</p>
</main>
<footer>
<img src='../img/mushrooms_2.webp' />
</footer>
</body>
</html>

47
css/style.css Normal file
View File

@ -0,0 +1,47 @@
html {
color: #323a42;
background-color: #fffcf7;
font-family: 'Palatino Linotype', Optima, Lora, serif;
max-width: 70ch;
margin: 1em 0 1em auto;
line-height: 1.2;
font-size: 1.25em;
height: calc(100vh - 2em);
position: relative;
}
body {
margin: 0;
margin-left: 1.5em;
height: 100%;
display: flex;
flex-direction: column;
}
main {
flex-grow: 1;
margin-right: 1em;
}
#back-arrow {
position: absolute;
transform: translate(-23px, 3px);
}
a#back {
color: #323a42;
text-decoration: underline;
position: relative;
}
h1 {
font-size: 2em;
margin-top: 0.5em;
margin-bottom: 0.5em;
border-bottom: 2px solid #323a42;
}
footer {
margin-right: 1em;
}
footer img {
display: block;
bottom: 0;
margin: 0 auto;
max-width: 100%;
max-height: 160px;
}

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

BIN
img/desktop_gomes.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
img/hole_gome.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
img/mobile_gome.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

BIN
img/mushrooms_1.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
img/mushrooms_2.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
img/tablet_gomes.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

193
index.html Normal file
View File

@ -0,0 +1,193 @@
<!DOCTYPE html>
<head>
<title>gomepage</title>
<meta charset='utf-8'/>
<meta name='theme-color' content='#fffcf7'>
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"/>
<link rel='icon' type='image/x-icon' href='/favicon.ico'>
<link rel='preconnect' href='https://fonts.googleapis.com'>
<link rel='preconnect' href='https://fonts.gstatic.com' crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lora:ital@0;1&display=swap" rel="stylesheet">
<style type='text/css'>
html {
color: #323a42;
background-color: #fffcf7;
height: 100%;
}
body {
margin: 0;
min-height: 100%;
display: flex;
flex-direction: column;
}
*::selection {
background: #ebdcc97f;
}
header {
position: absolute;
top: 0;
right: 0;
width: min-content;
background-color: red;
}
main {
height: 100%;
background-color: green;
flex-grow: 1;
}
footer {
background-color: blue;
display: flex;
justify-content: flex-end;
max-height: 50%;
}
.title-box {
position: relative;
border: 2px solid #323a42;
border-top: none;
border-right: none;
font-size: 48px;
height: 3em;
width: 10em;
font-family: 'Palatino Linotype', Optima, Lora, serif;
background-color: #fffcf7;
}
.title-box .title {
background-image: linear-gradient(to top, #fffcf700 0 13px, #fffcf7 13px 100%);
position: absolute;
bottom: -16px;
padding: 0 0.25em 0 0.25em;
user-select: none;
}
nav {
font-size: 18px;
position: relative;
display: flex;
flex-direction: column;
padding-right: 0.5em;
left: 1em;
right: 0;
overflow: hidden;
border-bottom: 2px solid #323a42;
transition: opacity 50ms;
}
nav a {
margin: 0.25em 0.25em 0.25em 0;
padding: 0.25em 0.25em 0.25em 0;
color: #323a42;
text-decoration: none;
line-height: 1.2;
}
nav a:first-child {
margin-top: 1em;
}
nav a:last-child {
margin-bottom: 1em;
}
nav a:hover, nav a:focus {
color: #6d747a;
}
nav a .link-title {
font-weight: bold;
}
nav a .link-title:after {
font-weight: normal;
content: ' —';
}
.gome-img {
width: 1280px;
width: auto;
max-width: 100%;
max-height: 50vw;
}
.gome-img[src^='./img/tablet'] {
display: none;
}
.gome-img[src^='./img/mobile'] {
position: relative;
display: none;
right: 0;
}
@media only screen and (max-width: 960px) {
header {
position: relative;
width: 100%;
}
.title-box {
border-left: none;
height: 1em;
width: 100%;
}
nav {
opacity: 1;
}
.gome-img[src^='./img/desktop'] {
display: none;
}
.gome-img[src^='./img/tablet'] {
display: initial;
}
}
@media only screen and (max-width: 640px) {
footer {
max-height: 30%;
width: auto;
}
.gome-img[src^='./img/tablet'] {
display: none;
}
.gome-img[src^='./img/mobile'] {
display: initial;
}
}
</style>
</head>
<body>
<header id='header'>
<div class='title-box'>
<span class='title'>gomepage</span>
</div>
<nav>
<a href='journal'><span class='link-title'>Journal</span> <span class='link-description'>a collection of articles, essays, and posts authored by me.</span></a>
<a href='bookmarks'><span class='link-title'>Bookmarks</span> <span class='link-description'>some curated lists of web pages I want to keep track of and share with others.</span></a>
<a href='socials'><span class='link-title'>Socials</span> <span class='link-description'>other accounts of mine around the web.</span></a>
</nav>
</header>
<main>
<h3>Word of the day</h3>
</main>
<footer>
<img src='./img/desktop_gomes.webp' class='gome-img' />
<img src='./img/tablet_gomes.webp' class='gome-img' />
<img src='./img/mobile_gome.webp' class='gome-img' />
</footer>
<script>
const header = document.querySelector('#header');
const nav = header.querySelector('nav');
const revealNav = () => {
nav.classList.add('show');
}
const hideNav = () => {
nav.classList.remove('show');
}
header.addEventListener('click', e => {
if (!nav.contains(e.target) && nav !== e.target) {
if (nav.classList.contains('show')) {
hideNav();
}
else if (!nav.classList.contains('show')) {
revealNav();
}
}
});
window.addEventListener('click', e => {
if (!header.contains(e.target) && header !== e.target) {
hideNav();
}
});
</script>
</body>
</html>

25
journal/index.html Normal file
View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<head>
<title>gome — journal</title>
<meta charset='utf-8'/>
<meta name='theme-color' content='#fffcf7'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, shrink-to-fit=no'/>
<link rel='icon' type='image/x-icon' href='../favicon.ico'>
<link rel='preconnect' href='https://fonts.googleapis.com'>
<link rel='preconnect' href='https://fonts.gstatic.com' crossorigin>
<link href='https://fonts.googleapis.com/css2?family=Lora:ital@0;1&display=swap' rel='stylesheet'>
<link rel='stylesheet' type='text/css' href='../css/style.css'/>
</head>
<body>
<header id='header'>
<a id='back' href='..'>back to gomepage</a>
</header>
<h1>Journal</h1>
<main>
<p>Just a stub for now.</p>
</main>
<footer>
<img src='../img/mushrooms_1.webp' />
</footer>
</body>
</html>

26
socials/index.html Normal file
View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<head>
<title>gome — socials</title>
<meta charset='utf-8'/>
<meta name='theme-color' content='#fffcf7'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, shrink-to-fit=no'/>
<link rel='icon' type='image/x-icon' href='../favicon.ico'>
<link rel='preconnect' href='https://fonts.googleapis.com'>
<link rel='preconnect' href='https://fonts.gstatic.com' crossorigin>
<link href='https://fonts.googleapis.com/css2?family=Lora:ital@0;1&display=swap' rel='stylesheet'>
<link rel='stylesheet' type='text/css' href='../css/style.css'/>
</head>
<body>
<header id='header'>
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left" id='back-arrow'><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>
<a id='back' href='..'>back to gomepage</a>
</header>
<h1>Socials</h1>
<main>
<p>Just a stub for now.</p>
</main>
<footer>
<img src='../img/hole_gome.webp' />
</footer>
</body>
</html>