From cade848b78d7f06b69a195f5a543b23c25eedd14 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tel=C3=A9rico=20Jones?=
Date: Sat, 29 May 2021 21:09:08 -0300
Subject: blog.sh project start
---
.gitignore | 1 +
footer.sh | 18 ++++
header.sh | 106 +++++++++++++++++++++
index.html | 9 ++
index.sh | 95 +++++++++++++++++++
nav.sh | 91 ++++++++++++++++++
pages/article.sh | 52 +++++++++++
pages/contato.sh | 13 +++
pages/home.sh | 25 +++++
styles.css | 279 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
10 files changed, 689 insertions(+)
create mode 100644 .gitignore
create mode 100755 footer.sh
create mode 100644 header.sh
create mode 100644 index.html
create mode 100755 index.sh
create mode 100755 nav.sh
create mode 100755 pages/article.sh
create mode 100644 pages/contato.sh
create mode 100755 pages/home.sh
create mode 100644 styles.css
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..eb2c80d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/pages/articles/*
diff --git a/footer.sh b/footer.sh
new file mode 100755
index 0000000..a7125bb
--- /dev/null
+++ b/footer.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+cat <
+ERR
+ exit 0
+fi
+
+cat <
+
+
+
+
+
+ ${ARTICLE_CONTENT}
+
+
+
+
+ARTICLE
diff --git a/pages/contato.sh b/pages/contato.sh
new file mode 100644
index 0000000..74d1ad4
--- /dev/null
+++ b/pages/contato.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+cat <
+ @media screen and (max-width: 600px) {
+ .contato-page {
+ text-align: center;
+ }
+ }
+
+
+
+
+PAGE
diff --git a/pages/home.sh b/pages/home.sh
new file mode 100755
index 0000000..ebb399d
--- /dev/null
+++ b/pages/home.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+print-all-articles () {
+ for i in $(find ./pages/articles -type f -name '*.txt'); do
+ ARTICLE_CONTENT=$(tail -n +3 $i)
+ cat <
+
+
+ $(echo "$ARTICLE_CONTENT" | head -c 120)...
+
+ Ler artigo completo
+
+POST
+ done
+}
+
+cat <
+ $(print-all-articles)
+
+PAGE
diff --git a/styles.css b/styles.css
new file mode 100644
index 0000000..b17d72f
--- /dev/null
+++ b/styles.css
@@ -0,0 +1,279 @@
+/* normalize.css */
+html {
+ line-height: 1.15; /* 1 */
+ -webkit-text-size-adjust: 100%; /* 2 */
+}
+body {
+ margin: 0;
+}
+main {
+ display: block;
+}
+h1 {
+ font-size: 2em;
+ margin: 0.67em 0;
+}
+hr {
+ box-sizing: content-box; /* 1 */
+ height: 0; /* 1 */
+ overflow: visible; /* 2 */
+}
+pre {
+ font-family: monospace, monospace; /* 1 */
+ font-size: 1em; /* 2 */
+}
+a {
+ background-color: transparent;
+}
+abbr[title] {
+ border-bottom: none; /* 1 */
+ text-decoration: underline; /* 2 */
+ text-decoration: underline dotted; /* 2 */
+}
+b,
+strong {
+ font-weight: bolder;
+}
+code,
+kbd,
+samp {
+ font-family: monospace, monospace; /* 1 */
+ font-size: 1em; /* 2 */
+}
+small {
+ font-size: 80%;
+}
+sub,
+sup {
+ font-size: 75%;
+ line-height: 0;
+ position: relative;
+ vertical-align: baseline;
+}
+sub {
+ bottom: -0.25em;
+}
+sup {
+ top: -0.5em;
+}
+img {
+ border-style: none;
+}
+button,
+input,
+optgroup,
+select,
+textarea {
+ font-family: inherit; /* 1 */
+ font-size: 100%; /* 1 */
+ line-height: 1.15; /* 1 */
+ margin: 0; /* 2 */
+}
+button,
+input { /* 1 */
+ overflow: visible;
+}
+button,
+select { /* 1 */
+ text-transform: none;
+}
+button,
+[type="button"],
+[type="reset"],
+[type="submit"] {
+ -webkit-appearance: button;
+}
+button::-moz-focus-inner,
+[type="button"]::-moz-focus-inner,
+[type="reset"]::-moz-focus-inner,
+[type="submit"]::-moz-focus-inner {
+ border-style: none;
+ padding: 0;
+}
+button:-moz-focusring,
+[type="button"]:-moz-focusring,
+[type="reset"]:-moz-focusring,
+[type="submit"]:-moz-focusring {
+ outline: 1px dotted ButtonText;
+}
+fieldset {
+ padding: 0.35em 0.75em 0.625em;
+}
+legend {
+ box-sizing: border-box; /* 1 */
+ color: inherit; /* 2 */
+ display: table; /* 1 */
+ max-width: 100%; /* 1 */
+ padding: 0; /* 3 */
+ white-space: normal; /* 1 */
+}
+progress {
+ vertical-align: baseline;
+}
+textarea {
+ overflow: auto;
+}
+[type="checkbox"],
+[type="radio"] {
+ box-sizing: border-box; /* 1 */
+ padding: 0; /* 2 */
+}
+[type="number"]::-webkit-inner-spin-button,
+[type="number"]::-webkit-outer-spin-button {
+ height: auto;
+}
+[type="search"] {
+ -webkit-appearance: textfield; /* 1 */
+ outline-offset: -2px; /* 2 */
+}
+[type="search"]::-webkit-search-decoration {
+ -webkit-appearance: none;
+}
+::-webkit-file-upload-button {
+ -webkit-appearance: button; /* 1 */
+ font: inherit; /* 2 */
+}
+details {
+ display: block;
+}
+summary {
+ display: list-item;
+}
+template {
+ display: none;
+}
+[hidden] {
+ display: none;
+}
+
+/* jefferson.sh */
+
+@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
+
+html {
+ --primary-bg: #2b2b2b;
+ --primary-fg: #65d84a;
+ background-color: var(--primary-bg);
+ color: var(--primary-fg);
+ font-family: 'VT323', monospace;
+ font-size: 14px;
+}
+
+
+.separator-wrap {
+ width: 100%;
+ display: flex;
+ justify-content: center;
+}
+
+.separator-wrap.left {
+ justify-content: flex-start;
+}
+
+.separator {
+ border-top: 1px solid var(--primary-fg);
+ width: 25px;
+ margin-left: 25px;
+ margin-right: 25px;
+}
+
+a {
+ color: var(--primary-fg);
+}
+
+ul {
+ padding: 0;
+ margin: 0;
+ list-style: none;
+}
+
+nav > * {
+ display: inline-block;
+}
+
+ul > li {
+ display: inline-block;
+}
+
+header, footer {
+ margin: 25px;
+}
+
+header > h1,
+header > h2 {
+ margin: 0;
+}
+
+@media screen and (max-width: 600px) {
+ h1 {
+ font-size: 1.4rem;
+ }
+}
+
+[class^=err-] {
+ text-align: left;
+ font-size: 2rem;
+ margin: 40px;
+}
+
+.container {
+ padding-left: 25px;
+ padding-right: 25px;
+}
+
+@media screen and (min-width: 1000px) {
+ .container {
+ padding-left: 215px;
+ padding-right: 215px;
+ }
+}
+
+.post-header {
+ border-left: 1px solid;
+ padding-left: 15px;
+}
+
+.post-title {
+ font-size: 1.4rem;
+ margin: 0;
+ margin-bottom: 10px;
+ line-break: anywhere;
+}
+
+.post-preview {
+ border-left: 1px solid;
+ padding-left: 10px;
+ margin: 25px 0px;
+}
+
+.post-header time,
+.post-header small {
+ font-size: 0.9rem;
+}
+
+.post-header-preview time,
+.post-header-preview small {
+ font-size: 0.9rem;
+}
+
+.post-header-preview .post-title {
+ margin: 0;
+ font-size: 1.1rem;
+}
+.post-header-preview time {
+ font-size: 0.8rem;
+}
+
+.tags {
+ margin-top: 15px;
+ margin-bottom: 15px;
+}
+
+.tag {
+ background-color: var(--primary-fg);
+ color: var(--primary-bg);
+ padding-left: 4px;
+ padding-right: 4px;
+ padding-top: 1.5px;
+ padding-bottom: 1.5px;
+}
--
cgit v1.2.3