commit bfe221aaa221e5185ba30f2c7df9df40a63895db Author: William <x@linear.codes> Date: Thu, 12 Dec 2024 13:01:14 -0500 Well somethings happening Diffstat:
| A | favicon.ico | | | 0 | |
| A | static-shite | | | 61 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| A | style.css | | | 21 | +++++++++++++++++++++ |
3 files changed, 82 insertions(+), 0 deletions(-)
diff --git a/favicon.ico b/favicon.ico Binary files differ. diff --git a/static-shite b/static-shite @@ -0,0 +1,61 @@ +#!/bin/bash + +printf "Welcome to STATIC SHITE! \n" +printf "The Shell Static Site Generator \n" + +prompt(){ + printf "COMMAND>" +} + +lander(){ + printf "Static Shite landers -- simple, name and about.\n" + + printf 'Site name: ' + read sname; + printf 'About: ' + read sabout + mkdir $sname + touch $sname/index.html; + cp style.css $sname/; + cp favicon.ico $sname/; + printf "<!DOCTYPE html> +<html> + <head> + <title>$sname</title> + <meta charset="utf8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="stylesheet" href="style.css" type="text/css"> + <link media="screen" title="index" charset="utf-8"> + <link rel="icon" href="favicon.ico"> + </head>" >> $sname/index.html + printf \n"<p>$sabout</p>" >> $sname/index.html + + + +} + + +quit(){ + exit +} + + +comm(){ + prompt + while read -n 1 cmd; do + case $cmd in + + q) + quit + ;; + l) + lander + ;; + + esac + prompt +done +} + +comm + diff --git a/style.css b/style.css @@ -0,0 +1,21 @@ +:root { + --bg:#ffffff; + --head:#000000; + --hover:#e10032 +} + +body { + font-family: monospace; + font-size: 12px; + background-color: var(--bg); + color: var(--head); + margin: auto; +} +p { margin: auto } +a:link { color: var(--head) } +a:visited { color: var(--hover) } +a:hover { color: var(--hover) } +.left { text-align: left } +.greentext { color: #008700 } +.right { text-align: right } +code { color: var(--hover) }