commit 0cde531a30537ceb148f5e401e8ad5602bd6fe2d
parent 95e5c2c8c250b9b9d5a60aa07614530e7b909436
Author: alex wennerberg <alex@alexwennerberg.com>
Date: Sat, 8 Apr 2023 16:29:51 -0400
re-do css, cleanup nav
Diffstat:
7 files changed, 62 insertions(+), 140 deletions(-)
diff --git a/build.sh b/build.sh
@@ -13,34 +13,12 @@ srcdir=src
mkdir -p $outdir
rm -rf $outdir/*
-htmlfiles=$(find $srcdir -name '*.html')
-
-# takes navdir as a parameter
-function nav () {
- navdir=$1
- echo "<nav><section class='site-nav'>"
- for file in $navdir/*; do
- if [[ $file == *.html || -d $file ]]; then
- fn=`basename ${file%.*}`
- realpath=`echo $file | sed -e "s/^${srcdir}\///"`
- echo "<li><a href='/$realpath'>$fn</a></li>"
- fi
- done
- if [[ $navdir != $srcdir ]]; then
- echo '<li><a href="../">^up</a></li>'
- fi
- echo "</section></ul></nav><main>"
-}
-
-
for file in $(find $srcdir); do
realpath=`echo $file | sed -e "s/^${srcdir}\///"`
fn=$outdir/$realpath
mkdir -p `dirname $fn`
if [[ $file == *.html ]]; then
cat templates/header.html > $fn
- dir=`dirname $file`
- echo `nav $dir` >> $fn
cat $file >> $fn
cat templates/footer.html >> $fn
else
diff --git a/src/about.html b/src/about.html
@@ -1,4 +1,4 @@
-<h1>About</h1>
+<h2>About</h2>
<p>Hello, I am Alex (he/him). I write and have written poetry, nonfiction and
prose, and my current primary interests are exploring alternatives to
mainstream software and computing (details below) and their ability to build
diff --git a/src/poetry/index.html b/src/poetry/index.html
@@ -1 +1,3 @@
-Blah Blah poems
+<h2>Poetry</h2>
+
+Sometimes I write poetry. You can see some of them in the sidebar.
diff --git a/src/style.css b/src/style.css
@@ -1,122 +1,54 @@
-*:focus { outline: none}
-::selection { background: #eee; opacity:1.0; color:#000; padding:10px; /* Safari */ }
+body {
+ font-size:18px;
+ background-color: black;
+ margin: auto;
+ font-family: "Roboto", Helvetica, Arial, Sans-serif;
+ word-wrap: break-word;
+ line-height: 1.5;
+}
+
+header { background: #00ffc3; color: black; padding: 25px; border-bottom: 1px solid black; }
+footer { color: white; line-height: 30px; clear:both; padding:15px; border-top: 1px solid #00ffc3; }
-body { background:#fff; color:#000; overflow-x: hidden; font-family: sans-serif; padding:0; margin:0; }
+nav { color: white; padding: 45px; float: left; }
+nav details summary { margin-bottom: 30px }
+main { color: white; padding: 25px; float:left; max-width:700px; }
-header { padding: 25px; border-bottom: 1px solid black; }
-header a img {}
+blockquote { font-style: italic; }
-td { vertical-align: bottom; }
+main a:hover { text-decoration: underline; background-color: white; }
-nav { padding: 45px; float: left; }
-nav details summary { margin-bottom: 30px }
-nav .site-nav section { line-height: 22px; margin-bottom: 40px;}
-nav .site-nav section h2 { margin: 20px 0 20px 0; }
-nav .site-nav section ul { margin: 0px; padding: 0px; }
-
-main { padding: 25px; float:left; max-width:700px; }
-main img { max-width: 700px; margin-bottom: 15px;}
-main > * { max-width: 600px; margin-bottom: 30px }
-main > h1 { font-size:45px; text-transform: capitalize; display: none}
-main > h2 { font-size:30px; text-transform: capitalize}
-main > h3 { font-size:20px; text-transform: capitalize}
-main > h4 { font-size:35px; text-transform: capitalize}
-main p { line-height: 25px; font-size:16px; margin-top: 0px; }
-main > ul { line-height: 25px;}
-
-svg.sprite { width:20px; height:20px; margin-bottom:0px }
-.empty { background:#efefef; }
-.bg0 { background:white; color:black; }
-.bg1 { background:black; color:white; }
-.bg2 { background:#72dec2; color:black; }
-.bg3 { background:#ff0000; color:black; }
-.fg0 { fill:white; }
-.fg1 { fill:black; }
-.fg2 { fill:#72dec2; }
-.fg3 { fill:#ff0000; }
-code.button { background: #000; color: white; font-size: smaller; display: inline-block; padding: 0px 6px; font-weight: bold; border-radius: 2px; line-height: 22px }
-
-main hr { border:1px; clear:both; }
-
-main > ul.jump { columns:2; line-height: 20px}
-main > ul.jump li { list-style-type: decimal-leading-zero; list-style-position: inside; text-transform: capitalize;}
-main img.medium { max-width: 300px;}
-main img.sm { max-width: 88px}
-
-main > q { font-size: 20px;max-width: 500px; display: block; margin-left:30px; }
-main > pre { font-family: monospace; background: black; color:white; padding:15px; }
-main > code { font-family: monospace; font-size:12px; margin-bottom: 30px; display: block; background:black; color:white; padding:15px; white-space: pre}
-main > code comment { color:#777}
-
-main ul.gallery { background:none}
-main ul.gallery li { clear: both; display: block; height: 260px; margin-top: -2px}
-main ul.gallery li:last-child { border-bottom: 0px}
-main ul.gallery li a { display: block; padding: 10px}
-main ul.gallery li img { width:250px; float:left; display: block ; margin-right: 15px;}
-
-main .project { border-left:2px solid black; padding-left:30px; max-width: 555px;}
-main .project > * { margin-bottom: 30px }
-main .project p { padding:0px; margin-top: 0px; margin-bottom: 30px; }
-main .project img { display: block; max-width: 100%; }
-
-main .button { background-color: #000;border: 2px solid white;color: white;padding: 13px 28px;text-align: center;text-decoration: none;display: inline-block;font-size: 14px;border-radius: 200px;font-weight: bold; margin-right: 15px; margin-bottom: 30px;}
-main .button:hover { background-color: #333 !important; color: white; }
-main .button small { color:black }
-main .button.patreon { border-color: #e75942}
-main .button.patreon:hover { background: #e75942 !important}
-
-body select { color: black; margin-bottom: 20px }
-main table.drpdown { padding-bottom: 15px; font-size: 18px}
-main table.drpdown td { padding-bottom: 15px; color: black;}
-
-main > table.col tr th { text-align: left}
-main > table.col tr td { border-right:1.5px solid black}
-main > table.col tr > * { padding:5px 20px}
-main > table.col tr td:last-child { border-right: 0px }
-main > table.col tr > *:first-child { padding-left: 0px }
-main > table.col b { font-weight: bold }
-
-main .progress {padding: 2px; width: 100%;max-width: 100%; border: 1px solid grey}
-main .progress > div { height: 100%; width: 55%; background-color: black}
-main .progress > div > span { color: white;padding: 0px 2px}
-
-main img.detail { max-width: 64px; float: left;border: 1px solid #777;padding: 20px;margin: 0px 20px 20px 0px;border-radius: 3px; }
-main .shortcut, main kbd { background: #fff; display: inline-block; padding: 2px 5px; margin: 0px; color: black; font-size: 12px; line-height: 16px; border-radius: 2px; font-weight: bold }
-main .shortcut-list dt, main .shortcut-list dd { display: inline; line-height: 25px; margin-left: 0; margin-right: 10px; }
-
-main > table.logbook tr td { padding-bottom: 15px;padding-top: 15px; }
-main > table img { max-width: 100%; display: block; margin:20px 0;}
-main > table tr th { text-align: left; font-weight: bold }
-main > table tr > * { padding:5px 15px; vertical-align: top;}
-
-footer { line-height: 30px; clear:both; padding:45px; border-top: 1px solid black; }
-footer hr { margin-bottom: 15px }
-
-/* Modular */
-
-a { color: blue }
-
-ul { margin:0px 0px 30px 0px; }
-
-.col2 { columns: 2 }
-.capital { text-transform: capitalize }
-.notice { padding:20px; border:2px solid black; }
-ul.nobull li {list-style-type: none}
-
-/* Theme */
-
-@media (prefers-color-scheme: dark) {
- body {background: #1b222c; color: white}
- body a { color: #21e6c1;}
- main > pre { background: white; color:#000}
- main > code { background:white; color:#000}
- body select { color: black; background-color: white;}
- main .project { border-left:2px solid white }
- .notice { border-color:white; }
- .mono { filter: invert(1) }
- main .progress > div { background-color: white}
- main .progress > div > span { color: black}
+a, a:visited {
+ color: inherit;
+}
+
+h1, h2, h3, h4, h5, h6{
+ margin-top:0;
+ margin-bottom:.2em;
+ font-family: monospace;
+}
+
+p {
+ margin-bottom: .2em;
+ line-height: 1.5;
+ margin-top: 0px;
+}
+
+a {
+ font-weight: bold;
+ text-decoration: underline;
+}
+
+pre {
+ line-height: 1.2;
+ font-size: 1rem;
+ overflow: auto;
+ word-wrap:normal;
+}
+a:hover {
+ background-color: black;
+ color: white
}
/* Mobile */
diff --git a/src/tech/index.html b/src/tech/index.html
@@ -0,0 +1 @@
+foo
diff --git a/templates/header.html b/templates/header.html
@@ -9,3 +9,12 @@
<td><h1>alexw.nyc</h1></td></tr></table>
</header>
<body>
+ <nav>
+ <section class="site-nav">
+ <ul>
+ <li><a href="/about.html">about</a></li>
+ <li><a href="/tech/index.html">tech</a></li>
+ </ul>
+ </section>
+ </nav>
+<main>
diff --git a/templates/nav.html b/templates/nav.html
@@ -1,8 +1,8 @@
<nav>
<section class="site-nav">
<ul>
- <li><a href="about.html">About</a></li>
- <li><a href="infrastructure.html">Infrastructure</a></li>
+ <li><a href="/about.html">About</a></li>
+ <li><a href="/infrastructure.html">Infrastructure</a></li>
</ul>
</section>
</nav>