diff options
author | Ben Morrison <ben@gbmor.dev> | 2020-06-30 00:31:04 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2020-06-30 02:19:24 -0400 |
commit | 5db8118b173d9ff0c4bc2d2c55e72967090ad991 (patch) | |
tree | 6dd25bce475286335bd3089c076b80d7b569c029 /assets | |
parent | 603ac04ec07b8140a147e1eafaf0e3fc6baeee68 (diff) | |
download | site-5db8118b173d9ff0c4bc2d2c55e72967090ad991.tar.gz |
reducing use of php in favor of shellscript build
Diffstat (limited to 'assets')
-rw-r--r-- | assets/helloworld.c | 16 | ||||
-rwxr-xr-x | assets/helloworld.cgi | bin | 0 -> 410784 bytes | |||
-rw-r--r-- | assets/icon.png | bin | 0 -> 1059 bytes | |||
-rw-r--r-- | assets/kcgi-starter.tar.gz | bin | 0 -> 2208 bytes | |||
-rw-r--r-- | assets/tilde.css | 196 |
5 files changed, 212 insertions, 0 deletions
diff --git a/assets/helloworld.c b/assets/helloworld.c new file mode 100644 index 0000000..fcae386 --- /dev/null +++ b/assets/helloworld.c @@ -0,0 +1,16 @@ +#include <err.h> +#include <stdlib.h> +#include <stdio.h> +#include <unistd.h> + +int +main(void) +{ + if (-1 == pledge("stdio", NULL)) + err(EXIT_FAILURE, "pledge"); + puts("Status: 200 OK\r"); + puts("Content-Type: text/html\r"); + puts("\r"); + puts("Hello, world!\n"); + return(EXIT_SUCCESS); +} diff --git a/assets/helloworld.cgi b/assets/helloworld.cgi new file mode 100755 index 0000000..72d7a16 --- /dev/null +++ b/assets/helloworld.cgi Binary files differdiff --git a/assets/icon.png b/assets/icon.png new file mode 100644 index 0000000..d54a060 --- /dev/null +++ b/assets/icon.png Binary files differdiff --git a/assets/kcgi-starter.tar.gz b/assets/kcgi-starter.tar.gz new file mode 100644 index 0000000..9875fb5 --- /dev/null +++ b/assets/kcgi-starter.tar.gz Binary files differdiff --git a/assets/tilde.css b/assets/tilde.css new file mode 100644 index 0000000..416c6e7 --- /dev/null +++ b/assets/tilde.css @@ -0,0 +1,196 @@ +body { + background-color: #0B173B; + font-family: sans-serif; + color: #ffffff; + margin: 0 auto; + max-width: 90%; + font-size: 1.0em; +} + +pre { + display: block; + white-space: pre; + word-break: break-all; + overflow-x: auto; +} + +.date { + font-weight: bold; +} + +#logo { + text-align: center; + font-family: monospace; + font-size: 1em; +} + +#navigation { + display: flex; + flex-wrap: wrap; + text-decoration: none; + margin: 0; + padding: 0; +} + +#navigation div { + background-color: #0B3861; + flex-grow: 1; + min-width: 3.2rem; + padding: .2em; + margin: .05em; + text-align: center; +} + +#navigation div:hover { + background-color: #045fb4; +} + +#navigation div a { + color: white; + text-align: center; + text-decoration: none; +} + +#content { + margin: 0 auto; +} + +@media (min-width: 1024px) { + body { + max-width: 75%; + } + #news { + float: right; + max-width: 29%; + } + #front-content { + max-width: 69%; + float: left; + } + #sshfp { + float: left; + } +} + +#code { + font-family: monospace; + font-size: 1.0em; + max-width: 75%; + margin: 0 auto; +} + +.code { + font-family: monospace; + font-size: 1.0em; + max-width: 50%; + margin: 0 auto; +} + +.faq { + width: 75%; +} + +.faq .q { + margin-top: 3rem; + font-weight: bold; + font-style: italic; + text-indent: 0rem; + font-size: 1.2em; +} + +.faq p { + text-indent: 2rem; +} + +.faq h1 { + font-size: 1.75em; + text-align: center; + margin-bottom: -1.5rem; +} + +a:link { + text-decoration: underline; + color:#ffffff; +} + +a:visited { + color:#ffffff; + text-decoration: underline; +} + +a:hover { + color:#a4a4a4; + text-decoration: underline; +} + +p { + text-indent: 15px; +} + +code { + text-indent: 2rem; + font-family: monospace; + font-size: 1.0em; + padding-left: 0.3rem; + padding-right: 0.3rem; +} + +em { + font-weight: bold; +} + +h1 { + font-size: 1.75em; + text-align: center; +} + +h2 { + font-size: 1.4em; +} + +h3 { + font-size: 1.2em; +} + +h4 { + font-size: 1.1em; + margin-top: 0.2rem; +} + +.userlist { + margin: 0 auto; +} + +.userlist ul { + list-style-position: inside; + display: flex; + flex-flow: row wrap; + justify-content: space-evenly; + list-style-type: "\00BB\0020"; + padding-left: 3em; +} + +.userlist li { + white-space: nowrap; + flex: 10em; +} + +.userlist p { + text-align: center; +} + +.signup { + text-align: center; +} + +.signup input { + margin-bottom: 1.6rem; +} + +.signup h3 { + margin: 0.5rem; +} + +.signup p { + padding-bottom: 0.3rem; +} |