commit 6b7bd4c66854a705feaf41dd2f1687224861dccf Author: Astoria Date: Fri Oct 21 20:31:11 2022 -0500 Initial Commit diff --git a/media/index.php b/media/index.php new file mode 100644 index 0000000..cff4141 --- /dev/null +++ b/media/index.php @@ -0,0 +1,10 @@ + diff --git a/news/wellThisIsAwkward.md b/news/wellThisIsAwkward.md new file mode 100644 index 0000000..b94b0b6 --- /dev/null +++ b/news/wellThisIsAwkward.md @@ -0,0 +1,46 @@ +# [Well, This is Awkward.](/news/wellThisIsAwkward) + +So, been a good few months. + +# Where you been Astoria? + +Well, mostly I have... not been tending to this website thats what. +This does not mean I have been resting on my feet! + +# So whats different + +>1. I have switched to linux. ([Mint](https://linuxmint.com/) specifically!) +>2. I **lost the source code to this website** when I switched to linux. +>3. I learned myself some better programming. +>4. I tried installing [Bedrock Linux](https://bedrocklinux.org/), goofed, + and reinstalled Linux Mint, then properly installed Bedrock. +>5. I installed a different linux. ([Arch](https://archlinux.org/) specifically!) +>6. Started working on a [discord bot](https://git.broken-moon.net/astoriafloyd/thembot/) for a friends server. +>7. Actually learned how to use an IDE. +>8. Stopped trying to use VIM (Don't use vim. I beg you.) + and switched to VSCode. +>9. Remembered this website exists. +>10. Started writing this new version of the site. + +# Why would you ever use vim? + +The ability to use it over SSH. +VSCode can do that too (I am doing it right now!) +Switch to VSCode. I beg you. +# Back to the point. +Oh yes, this is dragging on for a fair bit. +Most of the Minecraft server have been replaced. +(And why were they ever listed, they are mostly proprietary packs.) + +# Anything actually useful to know? + +Oh I know! Introducing the local [Gitea](http://git.broken-moon.net/) sever! +Its basically github but it goes down when this site does, feel free to use it I guess. + +# Closing notes +* New website +* New services +* New source code +* Less relevancy +* Removed Herobrine +* No longer Obsolete (Markdown for the win!) \ No newline at end of file diff --git a/news/wellThisIsAwkward.md.meta b/news/wellThisIsAwkward.md.meta new file mode 100644 index 0000000..f4c0945 --- /dev/null +++ b/news/wellThisIsAwkward.md.meta @@ -0,0 +1 @@ +2021.08.18 \ No newline at end of file diff --git a/public/css/default.css b/public/css/default.css new file mode 100755 index 0000000..14d7e0e --- /dev/null +++ b/public/css/default.css @@ -0,0 +1,582 @@ +:root { + --fg-col: #FFFFFF; + /*--main-col: #d2738a;*/ + --main-col:#b4a999; + --grey-col: #CCCCCC; + --bg-col: #1f1710; + --ver: calc(95vh - 50px); + --ver-btm: 10vh; + --ver-upr: 18px; + --shade: linear-gradient(to top, rgba(31,23,16,1), rgba(31,23,16,0.8), rgba(31,23,16,0)); +} + +body { + background: url("/images/backgrounds/earth.gif") no-repeat var(--bg-col); */ + /* broken randomization */ + background-size: cover; + background-attachment: fixed; + background-position: bottom left; + word-break: break-word; + display: grid; + grid-template-columns: min-content auto; + gap: 20px; +} + +ul { + list-style: none; + margin: 4px 0; +} + +li { + margin: 4px 0; +} + +img { + padding: 2px; + border: 3px double var(--main-col); +} + +table { + padding: 2px; + margin: 20px 0 20px 0; + border: 1px solid var(--main-col); +} + +th { + color: var(--fg-col); + font-weight: bold; +} + +tr:nth-child(odd) { + background-color: #150f0a; +} +tr:nth-child(even) { + background-color: #392a1d; +} + +input[type="submit" i] { + background: unset; + border: 3px double var(--main-col); + margin-left: 10px; + color: var(--main-col); + font-size: 1.5em; +} + +.aside, .article, .section, .mobilemenu, .banner { + opacity: 0.9; + transition: 0.3s; +} +.banner { + border: none; + width: 240px; + max-width: 100%; +} +.banner:hover { + opacity: 1; +} + +.bannerother, .bannergrave { + border: none; + height: 60px; + width: 240px; + max-width: 100%; +} + +.bannergrave { + filter: grayscale(1); + transition: 0.3s; +} + +.bannergrave:hover { + filter: grayscale(0); +} + +.bannerlarge { + border: none; + max-width: 100%; +} + +.imgnoborder { + max-width: 100%; + border: none; +} + +.aside, .article, .section, .mobilemenu { + background: var(--bg-col); + padding: 10px; + border: 1px solid var(--main-col); + box-shadow: 3px 3px 2px var(--main-col); +} + +.aside:hover, .article:hover, .section:hover, .mobilemenu:hover { + opacity: 1; + box-shadow: 6px 6px 4px var(--main-col); +} + +.aside { + width: 250px; + margin: 2px; + max-height: var(--ver); + align-self: start; + overflow-x: hidden; + position: sticky; + top: calc(2px + 8px); +} + +.aside > ul { + padding-inline-start: 20px; +} + +.aside > ul > ul { + padding-inline-start: 25px; +} + +.asideitem { + list-style-image: url("../images/list.gif"); + list-style-position: inside; + font-size: 1.2em; +} + +.asidesubitem { + list-style-image: url("../images/listsmall.gif"); + list-style-position: inside; + font-size: 1em; +} + +.openaside { + display: none; + position: fixed !important; + height: 1.5em; + padding: 6px 0 0 0 !important; + width: 100%; + top: 0; + left: 0; + right: 0; + background: var(--bg-col); + border-bottom: 3px double var(--main-col) !important; + border-top: none !important; + border-left: none !important; + border-right: none !important; + text-align: center; + box-shadow: none !important; + z-index: 1; +} + +.openaside a { + font-size: 1.2em; + letter-spacing: 8px; + margin-top: 4px; +} + +.bottom { + height: var(--ver-btm); + width: 100%; + bottom: 0; + left: 0; + position: fixed; + background-image: var(--shade); + display: table; +} + +.bottomcell { + display: table-cell; + vertical-align: bottom; + text-align: center; + opacity: 0.7; + transition: 0.3s; +} + +.bottomcell:hover { + opacity: 1; +} + +.cell { + width: 45%; + text-align: center; +} + +.cell > p { + height: 24px; + margin: 16px 0 0 0; +} + +.cell > h3 { + height: 48px; + margin: 16px 0 0 0; +} + +.mobilemenu { + width: 250px; + overflow-x: hidden; + padding-right: 25px; + margin-bottom: 80px; +} + +.mobilemenu > ul { + text-align: left; + position: relative; + right: 9px; +} + +.mobilemenu > ul > ul > p { + left: 25% !important; +} + +.content { + margin-bottom: var(--ver-btm); + margin-top: 2px; + margin-bottom: 0; + width: fit-content; +} + +.article { + margin: 2px 20px 0 20px; + padding: 25px !important; + margin-top: 30px; + margin-bottom: 55px; +} + +.article-headerless { + margin: 0 20px 55px 0 !important; +} + +.section { + max-height: 50vh; + overflow: hidden; + position: relative; +} + +.section1 { + margin: 20px 20px 20px 80px; +} + +.section2 { + margin: 20px 80px 20px 20px; +} + +.section3 { + margin: 20px 60px 20px 60px; +} + +.homesection { + margin-bottom: 60px; + width: 540px; + text-align: center; + max-height: unset; +} + +.homemessage, .homesubmessage { + font-style: italic; +} + +.homemessage { + font-size: 2em; +} + +.homesubmessage { + font-size: 1.2em; +} + +.homesmallimg { + display: none; +} + +.upperdirs { + width: 80%; + height: var(--ver-upr); + margin-bottom: 20px; + margin-left: auto; + margin-right: auto; + text-align: center; +} + +.numlist { + display: table; + margin-bottom: 20px; + margin-left: auto; + margin-right: auto; +} + +.seemore { + position: absolute; + bottom: 0; + width: calc(100% - 20px); + height: 60px; + background-image: var(--shade); +} + +.seedate { + float: left; + margin-top: 40px; +} + +.seemorelink { + float: right; + margin-top: 40px; +} + +.greyed { + color: var(--grey-col); +} + +.archivereturn { + margin: 20px 60px 20px 60px; + display: table; +} + +.search { + width: 25vw; + min-width: 300px; +} + +.titlecol { + width: 65%; +} + +.datecol { + width: 35%; +} + +.nothinghere { + width: 50vw; + height: 10vh; + margin: 20px 10vw 0 10vw; + text-align: center; +} + +.nothinghere > .notgood { + letter-spacing: 2px; + animation: notgood 4s ease-in-out infinite; + animation-play-state: running; +} + +.nothingreturn { + position: absolute; + bottom: 0; + right: 0; + font-size: 1.2em; + padding: 6px; +} + +.extlink { + background: url("../images/ext.gif") no-repeat; + background-position: right; + padding-right: 13px; +} + +.leftimg, .rightimg, .centerimg { + filter: grayscale(1); + transition: 0.2s; +} + +.leftimg:hover, .rightimg:hover, .centerimg:hover { + filter: none; +} + +.leftimg, .rightimg { + max-width: 50%; + max-height: 25em; + display: block; + margin: 10px; +} + +.leftimg { + float: left; +} + +.rightimg { + float: right; +} + +.centerimg { + max-width: 70%; + max-height: 30em; + display: block; + margin: 10px auto; +} + +.quote { + display: inline-block; + margin: 5px; + color: var(--grey-col); +} + +.quote:before { + content: "「"; + color: var(--main-col); + letter-spacing: 10px; +} + +.quote:after { + content: "」"; + color: var(--main-col); + letter-spacing: 10px; +} + +.scrollingcontentbtm { + margin-bottom: var(--ver-btm); + display: inline-block; +} + +.blogbox { + position: relative; + right: 11px; + border: 1px solid var(--main-col); + margin-left: 20px; + margin-bottom: 10px; +} + +.asidehometext { + font-size: 1.2em; + position: relative; + display: none; + text-align: center; +} + +.asidebottomimage { + height: 30px; + max-width: 30px; + margin: 0 3px; + transition: 0.5s; +} + +.asidebottomimage:hover { + box-shadow: var(--main-col) 1px 4px 5px; +} + +.archivespan { + margin: 30px; +} + +.codeblock { + font-family: 'pxplus_ibm_vga9regular', monospace; + border: 1px solid var(--main-col); + background-color: #1b1b1d; + color: #ffcccc; + font-size: 0.9em; + padding: 10px; + white-space: pre-wrap; + margin: 10px; + overflow-wrap: break-word; + word-break: break-all; +} + +.largefont { + font-size: 2em; +} + +.center { + text-align: center; + margin-left: auto; + margin-right: auto; +} + +.arrow { + border: none; + padding: 2px 0 0 0; +} + +.datetext { + text-align: center; + font-weight: bold; +} + +.webring-panel { + width: fit-content; + margin-left: auto; + margin-right: auto; +} + +.webring-text { + margin: 6px; +} + +.webring-table { + margin-top: 0; + margin-bottom: 0; +} + +@keyframes notgood { + 0% { + letter-spacing: 2px; + } + 50% { + letter-spacing: 4px; + } + 100% { + letter-spacing: 2px; + } +} + +@media (max-width: 900px) { + .aside > .asidehomeimage { + display: none; + } + + .aside > .asidehometext { + display: block; + } + + .aside { + width: 200px; + } + + .content { + } +} + +@media (max-height: 580px) { + .aside > .asidehomeimage { + display: none; + } + + .aside > .asidehometext { + display: block; + } +} + +@media (max-width: 850px) { + .homesection { + width: 220px; + } + .homelargeimg { + display: none; + } + .homesmallimg { + display: block; + } +} + +@media (max-width: 660px) { + .aside { + display: none; + } + + body { grid-template-columns: auto } + + .openaside { + display: block; + } + + body { + margin: 3em 8px 8px 8px; + } + + .content { + margin-left: unset; + } +} + +@media (max-width: 600px) { + .seedate { + display: none; + } + + .seemorelink { + float: left; + } + + .bottomcell > p { + font-size: 0.7em; + } +} diff --git a/public/css/fonts.css b/public/css/fonts.css new file mode 100755 index 0000000..2d4d1d9 --- /dev/null +++ b/public/css/fonts.css @@ -0,0 +1,105 @@ +:root { + --fg-col: #FFFFFF; + /*--main-col: #d2738a;*/ + --main-col: #b4a999; + --bg-col: #1f1710; +} + +@font-face { + font-family: 'pxplus_ibm_vga9regular'; + src: url('/css/pxplus_ibm_vga9-webfont.woff2') format('woff2'), + url('/css/pxplus_ibm_vga9-webfont.woff') format('woff'); + font-weight: normal; + font-style: normal; +} + +body { + color: var(--fg-col); + font-family: 'pxplus_ibm_vga9regular', monospace; +} + +h1 { + font-size: 1.8em; + text-align: center; + border-bottom: 1px solid var(--main-col); +} + +h2, h3 { + color: var(--fg-col); + font-style: italic; + font-weight: 500; + text-shadow: 0 0 5px var(--main-col); + clear: both; + margin-top: 50px; +} + +h2 { + font-size: 1.6em; + margin-left: 20px; + margin-right: 20px; +} + +h3 { + font-size: 1.3em; + margin-left: 25px; + margin-right: 25px; +} + +@keyframes wiredlink { + 50% { + color: var(--fg-col); + text-shadow: var(--main-col) 1px 4px 5px; + } +} + +a { + text-decoration: none; +} + +a:hover { + animation: wiredlink 1s ease-in-out infinite; +} + +a:link { + color: var(--main-col); +} + +a:visited { + color: var(--main-col); +} + +a:hover { + color: var(--main-col); +} + +.fakeLink { + color: var(--main-col); + text-decoration: none; +} + +@keyframes wiredarrow { + 50% { + filter: grayscale(1) brightness(2) blur(1px); + } +} + +.arrow:hover { + animation: wiredarrow 1s ease-in-out infinite; +} + +mark { + background-color:var(--main-col); + color: black; +} + +kbd { + font-feature-settings:normal; + color: rgba(0, 0, 0, 0.9); + background:var(--main-col); + margin:2px 2px; + font-family: 'pxplus_ibm_vga9regular'; + src: url('/css/pxplus_ibm_vga9-webfont.woff2') format('woff2'), + url('/css/pxplus_ibm_vga9-webfont.woff') format('woff'); + font-weight: normal; + font-style: normal; +} diff --git a/public/css/noscroll.css b/public/css/noscroll.css new file mode 100755 index 0000000..8ffdefd --- /dev/null +++ b/public/css/noscroll.css @@ -0,0 +1,9 @@ +::-webkit-scrollbar { + display: none; +} + +* { + -ms-overflow-style: none; + scrollbar-width: none; + overflow: -moz-scrollbars-none; +} diff --git a/public/css/pxplus_ibm_vga9-webfont.woff b/public/css/pxplus_ibm_vga9-webfont.woff new file mode 100755 index 0000000..bacfc4a Binary files /dev/null and b/public/css/pxplus_ibm_vga9-webfont.woff differ diff --git a/public/css/pxplus_ibm_vga9-webfont.woff2 b/public/css/pxplus_ibm_vga9-webfont.woff2 new file mode 100755 index 0000000..8d45d96 Binary files /dev/null and b/public/css/pxplus_ibm_vga9-webfont.woff2 differ diff --git a/public/css/scroll.css b/public/css/scroll.css new file mode 100755 index 0000000..650c16e --- /dev/null +++ b/public/css/scroll.css @@ -0,0 +1,22 @@ +:root { + --main-col: #94B1FF; +} + +/* Chromium-based */ +::-webkit-scrollbar { + width: 12px; +} +::-webkit-scrollbar-thumb { + background-color: var(--main-col); +} +::-webkit-scrollbar-track { + background-color: #000; +} +::-webkit-scrollbar-corner { + background-color: #000; +} + +/* Firefox-based */ +* { + scrollbar-color: var(--main-col) #000; +} diff --git a/public/css/splash.css b/public/css/splash.css new file mode 100755 index 0000000..6dfada5 --- /dev/null +++ b/public/css/splash.css @@ -0,0 +1,32 @@ +:root { + --fg-col: #FFFFFF; + --main-col: #94B1FF; + --bg-col: #000000; +} + +body { + /* background-image: url("../images/splash.gif"); + background-repeat: no-repeat; + background-size: 100% 100%; + background-attachment: fixed; */ + + background: var(--bg-col); +} + +h1 { + font-size: 2.4em !important; + border: none !important; + animation: none !important; + margin-top: 100px; +} + +h1 > span { + border-right: .5em solid var(--main-col); + animation: + blink-caret 1.5s step-end infinite; +} + +@keyframes blink-caret { + from, to { border-color: transparent } + 50% { border-color: var(--main-col); } +} diff --git a/public/favicon.gif b/public/favicon.gif new file mode 100644 index 0000000..a65d1cc Binary files /dev/null and b/public/favicon.gif differ diff --git a/public/images/404.gif b/public/images/404.gif new file mode 100644 index 0000000..b690ec5 Binary files /dev/null and b/public/images/404.gif differ diff --git a/public/images/back.gif b/public/images/back.gif new file mode 100755 index 0000000..cbbbb6c Binary files /dev/null and b/public/images/back.gif differ diff --git a/public/images/backgrounds/earth.gif b/public/images/backgrounds/earth.gif new file mode 100755 index 0000000..e824b76 Binary files /dev/null and b/public/images/backgrounds/earth.gif differ diff --git a/public/images/banner.gif b/public/images/banner.gif new file mode 100755 index 0000000..3263c8c Binary files /dev/null and b/public/images/banner.gif differ diff --git a/public/images/ext.gif b/public/images/ext.gif new file mode 100755 index 0000000..2fa6b75 Binary files /dev/null and b/public/images/ext.gif differ diff --git a/public/images/forward.gif b/public/images/forward.gif new file mode 100755 index 0000000..baeecdf Binary files /dev/null and b/public/images/forward.gif differ diff --git a/public/images/front.gif b/public/images/front.gif new file mode 100755 index 0000000..28089a0 Binary files /dev/null and b/public/images/front.gif differ diff --git a/public/images/frontsmall.gif b/public/images/frontsmall.gif new file mode 100755 index 0000000..d73f667 Binary files /dev/null and b/public/images/frontsmall.gif differ diff --git a/public/images/git.gif b/public/images/git.gif new file mode 100755 index 0000000..490f64b Binary files /dev/null and b/public/images/git.gif differ diff --git a/public/images/heads/head1.gif b/public/images/heads/head1.gif new file mode 100755 index 0000000..9d2701b Binary files /dev/null and b/public/images/heads/head1.gif differ diff --git a/public/images/heads/head2.gif b/public/images/heads/head2.gif new file mode 100755 index 0000000..9d2701b Binary files /dev/null and b/public/images/heads/head2.gif differ diff --git a/public/images/heads/head3.gif b/public/images/heads/head3.gif new file mode 100755 index 0000000..9d2701b Binary files /dev/null and b/public/images/heads/head3.gif differ diff --git a/public/images/heads/head4.gif b/public/images/heads/head4.gif new file mode 100755 index 0000000..9d2701b Binary files /dev/null and b/public/images/heads/head4.gif differ diff --git a/public/images/heads/head5.gif b/public/images/heads/head5.gif new file mode 100755 index 0000000..9d2701b Binary files /dev/null and b/public/images/heads/head5.gif differ diff --git a/public/images/heads/head6.gif b/public/images/heads/head6.gif new file mode 100755 index 0000000..9d2701b Binary files /dev/null and b/public/images/heads/head6.gif differ diff --git a/public/images/heads/head7.gif b/public/images/heads/head7.gif new file mode 100755 index 0000000..9d2701b Binary files /dev/null and b/public/images/heads/head7.gif differ diff --git a/public/images/heads/head8.gif b/public/images/heads/head8.gif new file mode 100755 index 0000000..9d2701b Binary files /dev/null and b/public/images/heads/head8.gif differ diff --git a/public/images/heads/head9.gif b/public/images/heads/head9.gif new file mode 100755 index 0000000..9d2701b Binary files /dev/null and b/public/images/heads/head9.gif differ diff --git a/public/images/image.erb b/public/images/image.erb new file mode 100644 index 0000000..16c0fd8 --- /dev/null +++ b/public/images/image.erb @@ -0,0 +1 @@ +<%= puts 'test' %> \ No newline at end of file diff --git a/public/images/list.gif b/public/images/list.gif new file mode 100755 index 0000000..9a1ecdc Binary files /dev/null and b/public/images/list.gif differ diff --git a/public/images/listsmall.gif b/public/images/listsmall.gif new file mode 100755 index 0000000..b5bcd63 Binary files /dev/null and b/public/images/listsmall.gif differ diff --git a/v5.rb b/v5.rb new file mode 100644 index 0000000..b3c64bd --- /dev/null +++ b/v5.rb @@ -0,0 +1,46 @@ +require 'sinatra' +require 'erb' + +get '/' do + erb :greetpage +end + +get '/home' do + erb :homepage +end + +get '/media' do + erb :folderpage +end + +get '/media/*' do + erb :blogpage +end + +get '/technology' do + erb :folderpage +end + +get '/technology/*' do + erb :blogpage +end + +get '/news' do + erb :folderpage +end + +get '/news/*' do + erb :blogpage +end + +get '/archive' do + erb :archivepage +end + +get '/about' do + erb :aboutpage +end + +get '/contact' do + erb :contactpage +end \ No newline at end of file diff --git a/views/aboutpage.erb b/views/aboutpage.erb new file mode 100644 index 0000000..b843766 --- /dev/null +++ b/views/aboutpage.erb @@ -0,0 +1,30 @@ + + + + About + + + + + <%= erb :headerBoilerplate %> + + + <%= erb :asidemenu %> +
+
+

About

+

I am Astoria.

+

What are you?

+

That's a loaded question.

+

Why did you make this website?

+

I lost the source code to the old one. It's a hobby.

+

Who made this websites art?

+

It's all me, and some edited public domain images.

+

How did you make this website?

+

This website is actually a fork of another, by Nixx. Sadly that website appears to be down now.

+

What is the meaning of life?

+

Fliburdiscurp

+
+
+ <%= erb :bottom %> + \ No newline at end of file diff --git a/views/asideFolderBox.erb b/views/asideFolderBox.erb new file mode 100644 index 0000000..c8ff143 --- /dev/null +++ b/views/asideFolderBox.erb @@ -0,0 +1,12 @@ +<% +folders =["Media", "Technology", "News"] +%> + \ No newline at end of file diff --git a/views/asideImage.erb b/views/asideImage.erb new file mode 100644 index 0000000..70479a5 --- /dev/null +++ b/views/asideImage.erb @@ -0,0 +1,6 @@ +
+ Home +
+ + Home + \ No newline at end of file diff --git a/views/asideListButtons.erb b/views/asideListButtons.erb new file mode 100644 index 0000000..070d9f7 --- /dev/null +++ b/views/asideListButtons.erb @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/views/asidemenu.erb b/views/asidemenu.erb new file mode 100644 index 0000000..9a75488 --- /dev/null +++ b/views/asidemenu.erb @@ -0,0 +1,11 @@ +
+ Navigation +
+
+ <%= erb :asideImage %> + <%= erb :asideFolderBox %> + <%= erb :asideListButtons %> +
+ Git Server +
+
\ No newline at end of file diff --git a/views/blogbar.erb b/views/blogbar.erb new file mode 100644 index 0000000..cd86830 --- /dev/null +++ b/views/blogbar.erb @@ -0,0 +1,7 @@ +
+ + + Home > <%= title %> + + +
\ No newline at end of file diff --git a/views/blogpage.erb b/views/blogpage.erb new file mode 100644 index 0000000..585224e --- /dev/null +++ b/views/blogpage.erb @@ -0,0 +1,30 @@ + + +<% title = request.path_info[1..-1].capitalize %> +<% title = title.slice(0..(title.index('/') - 1)) %> + + <%= title %> + + + + + <%= erb :headerBoilerplate %> + + + <%= erb :asidemenu %> +
+ <%= erb :blogbar, locals: {title: title} %> +
+ <% if File.exist?("." + request.path_info) && request.path_info.end_with?(".erb") %> + <%= ERB.new(File.read("." + request.path_info)).result(binding) %> + <% elsif File.exist?("." + request.path_info + ".erb") %> + <%= ERB.new(File.read("." + request.path_info + ".erb")).result(binding) %> + <% elsif File.exist?("." + request.path_info) && request.path_info.end_with?(".md") %> + <%= markdown(File.read("." + request.path_info)) %> + <% elsif File.exist?("." + request.path_info + ".md") %> + <%= markdown(File.read("." + request.path_info + ".md")) %> + <% end %> +
+
+ <%= erb :bottom %> + \ No newline at end of file diff --git a/views/blogpageERB.erb b/views/blogpageERB.erb new file mode 100644 index 0000000..c3a44ba --- /dev/null +++ b/views/blogpageERB.erb @@ -0,0 +1,11 @@ +
+ <%= ERB.new(File.read(file)).result(binding) %> + + <% if defined?(meta) %> + + <%= File.read(meta) %> + + <% end %> + Article Page + +
\ No newline at end of file diff --git a/views/blogpageMD.erb b/views/blogpageMD.erb new file mode 100644 index 0000000..7ca8da7 --- /dev/null +++ b/views/blogpageMD.erb @@ -0,0 +1,11 @@ +
+ <%= markdown(File.read(file)) %> + + <% if defined?(meta) %> + + <%= File.read(meta) %> + + <% end %> + Article Page + +
\ No newline at end of file diff --git a/views/bottom.erb b/views/bottom.erb new file mode 100644 index 0000000..47bf232 --- /dev/null +++ b/views/bottom.erb @@ -0,0 +1,5 @@ +
+
+

Send me something interesting: netadmin@broken-moon.net

+
+
\ No newline at end of file diff --git a/views/contactpage.erb b/views/contactpage.erb new file mode 100644 index 0000000..8cab339 --- /dev/null +++ b/views/contactpage.erb @@ -0,0 +1,22 @@ + + + + Contact + + + + + <%= erb :headerBoilerplate %> + + + <%= erb :asidemenu %> +
+
+

Contact

+

E-Mail Address

+
+

Netadmin@broken-moon.net

+
+
+ <%= erb :bottom %> + \ No newline at end of file diff --git a/views/folderIndex.erb b/views/folderIndex.erb new file mode 100644 index 0000000..0efc803 --- /dev/null +++ b/views/folderIndex.erb @@ -0,0 +1,18 @@ +<% contents = Dir.children("." + request.path_info)%> +<% contents.each do |content| %> + <% if content.end_with?(".erb") %> + <% file = content %> + <% if File.exists?("." + request.path_info + "/" + file + ".meta") %> + <%= erb :blogpageERB, locals: {file: "." + request.path_info + "/" + content, meta: "." + request.path_info + "/" + file + ".meta"} %> + <% else %> + <%= erb :blogpageERB, locals: {file: "." + request.path_info + "/" + content} %> + <% end %> + <% elsif content.end_with?(".md") %> + <% file = content %> + <% if File.exists?("." + request.path_info + "/" + file + ".meta") %> + <%= erb :blogpageMD, locals: {file: "." + request.path_info + "/" + content, meta: "." + request.path_info + "/" + file + ".meta"} %> + <% else %> + <%= erb :blogpageMD, locals: {file: "." + request.path_info + "/" + content} %> + <% end %> + <% end %> +<% end %> \ No newline at end of file diff --git a/views/folderpage.erb b/views/folderpage.erb new file mode 100644 index 0000000..6522872 --- /dev/null +++ b/views/folderpage.erb @@ -0,0 +1,34 @@ + + +<% title = request.path_info[1..-1].capitalize %> + + <%= title %> + + + + + <%= erb :headerBoilerplate %> + + + <%= erb :asidemenu %> +
+ <% if Dir.exist?("." + request.path_info) %> + <% if !Dir.children("." + request.path_info).grep(/erb/).empty? || !Dir.children("." + request.path_info).grep(/md/).empty? %> +
+ <%= title %> + <% if File.exists?("." + request.path_info + "/tagline") %> +
+ <% file = File.open("." + request.path_info + "/tagline") %> + <%= file.read %> + <% end %> +
+ <%= erb :folderIndex %> + <% else %> + <%= erb :noFile %> + <% end %> + <% else %> + <%= erb :noFolder %> + <% end %> +
+ <%= erb :bottom %> + \ No newline at end of file diff --git a/views/greetpage.erb b/views/greetpage.erb new file mode 100644 index 0000000..2d37895 --- /dev/null +++ b/views/greetpage.erb @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + +

~$ Connect to the Broken-Moon Network

+ + \ No newline at end of file diff --git a/views/headerBoilerplate.erb b/views/headerBoilerplate.erb new file mode 100644 index 0000000..6b56517 --- /dev/null +++ b/views/headerBoilerplate.erb @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/views/homeImage.erb b/views/homeImage.erb new file mode 100644 index 0000000..a0dc7e8 --- /dev/null +++ b/views/homeImage.erb @@ -0,0 +1,16 @@ +
+ Welcome Image - Large + Welcome Image - Small + Broken-Moon.net +
+ + <% messages = ["Under the Broken Moon, and all the lights in the night sky.", + "Presently not Experiencing an outage… Probably.", + "As eternally incomplete as September.", + "The Internet is Serious Business™.", + "Everyone on the planet is an accomplice to something.", + "Once you eliminate the impossible… whatever remains must be the truth. No matter how improbable it may seem.", + "I am free, therefore I am."] %> + <%= messages[rand(0..6)] %> + +
\ No newline at end of file diff --git a/views/homeIndex.erb b/views/homeIndex.erb new file mode 100644 index 0000000..8c27a83 --- /dev/null +++ b/views/homeIndex.erb @@ -0,0 +1,23 @@ +<% foldersOfInterest = ["media", "technology", "news"] %> +<% foldersOfInterest.each do |folder| %> + <% if Dir.exists? folder %> + <% contents =Dir.children("./" + folder) %> + <% contents.each do |content| %> + <% if content.end_with?(".erb") %> + <% file = content %> + <% if File.exists?("./" + folder + "/" + file + ".meta") %> + <%= erb :blogpageERB, locals: {file: "./" + folder+ "/" + content, meta: "./" + folder + "/" + file + ".meta"} %> + <% else %> + <%= erb :blogpageERB, locals: {file: "./" + folder + "/" + content} %> + <% end %> + <% elsif content.end_with?(".md") %> + <% file = content %> + <% if File.exists?("./" + folder+ "/" + file + ".meta") %> + <%= erb :blogpageMD, locals: {file: "./" + folder + "/" + content, meta: "./" + folder + "/" + file + ".meta"} %> + <% else %> + <%= erb :blogpageMD, locals: {file: "./" + folder + "/" + content} %> + <% end %> + <% end %> + <% end %> + <% end %> +<% end %> \ No newline at end of file diff --git a/views/homepage.erb b/views/homepage.erb new file mode 100644 index 0000000..3cc4b8d --- /dev/null +++ b/views/homepage.erb @@ -0,0 +1,18 @@ + + + + Home + + + + + <%= erb :headerBoilerplate %> + + + <%= erb :asidemenu %> +
+ <%= erb :homeImage %> + <%= erb :homeIndex %> +
+ <%= erb :bottom %> + \ No newline at end of file diff --git a/views/noFile.erb b/views/noFile.erb new file mode 100644 index 0000000..521340f --- /dev/null +++ b/views/noFile.erb @@ -0,0 +1,12 @@ +<%= erb :topbar %> +
+ +
\ No newline at end of file diff --git a/views/noFolder.erb b/views/noFolder.erb new file mode 100644 index 0000000..1ea6115 --- /dev/null +++ b/views/noFolder.erb @@ -0,0 +1,12 @@ +<%= erb :topbar %> +
+ +
\ No newline at end of file diff --git a/views/topbar.erb b/views/topbar.erb new file mode 100644 index 0000000..a6bcbc0 --- /dev/null +++ b/views/topbar.erb @@ -0,0 +1,7 @@ +
+ + + Home > <%= request.path_info[1..-1].downcase.capitalize %> + + +
\ No newline at end of file