Message board
-Racism not allowed
Remember, be kind to each other
diff --git a/public/static/img/TB1SKn6MAY2gK0jSZFgXXc5OFXa-249-40.jpg b/public/static/img/TB1SKn6MAY2gK0jSZFgXXc5OFXa-249-40.jpg deleted file mode 100644 index c4e7391..0000000 Binary files a/public/static/img/TB1SKn6MAY2gK0jSZFgXXc5OFXa-249-40.jpg and /dev/null differ diff --git a/public/static/img/darkskullsbg.png b/public/static/img/darkskullsbg.png new file mode 100644 index 0000000..89a5986 Binary files /dev/null and b/public/static/img/darkskullsbg.png differ diff --git a/public/static/js/jarring.js b/public/static/js/jarring.js index 841c386..62979fd 100644 --- a/public/static/js/jarring.js +++ b/public/static/js/jarring.js @@ -5,8 +5,8 @@ onclick = (e) => { let element = e.target; if (element.tagName == 'A') { - navigate(element.href).then(function () { - window.history.pushState('', '', element.href); + navigate(element.href).then(function(url) { + window.history.pushState('', '', url); }); return false; // prevent default action and stop event propagation } @@ -17,17 +17,19 @@ onpopstate = () => { }; function navigate(href) { + document.body.className = 'leaving'; return new Promise((resolve) => { fetch(href) - .then((response) => { - return response.text(); - }).then(function (html) { + .then(async (response) => { + html = await response.text(); //var parser = new DOMParser(); //var doc = parser.parseFromString(html, 'text/html'); //document.getElementById('pageContent').innerHTML = doc.getElementById('pageContent').innerHTML; - - document.body.parentNode.innerHTML = html; - resolve(); + setTimeout(() => { + document.body.parentNode.innerHTML = html; + document.body.className = 'entering'; + }, 250); + resolve(response.url); }).catch(function (err) { // There was an error console.warn('Something went wrong.', err); diff --git a/public/static/style/fonts.css b/public/static/style/fonts.css index ec06126..ca0f724 100644 --- a/public/static/style/fonts.css +++ b/public/static/style/fonts.css @@ -1,7 +1,8 @@ body { font-size: 1rem; - font-family: DejaVu Serif, Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; + font-family: Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; line-height: 1.5; + font-weight: bold; } code, pre { diff --git a/public/static/style/main.css b/public/static/style/main.css index 1e14680..eb42b66 100644 --- a/public/static/style/main.css +++ b/public/static/style/main.css @@ -4,7 +4,7 @@ html, body { body { background-color: darkblue; - background: url('../img/stars.png'); + background: url('../img/darkskullsbg.png'); text-align: center; color: white; image-rendering: pixelated; diff --git a/routes/start.php b/routes/start.php index 519cf78..2ea0e91 100644 --- a/routes/start.php +++ b/routes/start.php @@ -35,12 +35,5 @@ App::group('/chat', function() { ChatController::sync(...)); }); -App::group('/blog', function() { - App::get('/', - fn() => view('pages/blog/home')); - App::get('/test', - fn() => view('pages/blog/test')); -}); - http_response_code(404); view('errors/404'); \ No newline at end of file diff --git a/views/pages/blog/home.php b/views/pages/blog/home.php deleted file mode 100644 index 0e5618e..0000000 --- a/views/pages/blog/home.php +++ /dev/null @@ -1,5 +0,0 @@ -=view('templates/blog/header')?> -
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam commodo dignissim orci faucibus pellentesque. Cras sit amet leo libero. Morbi at maximus arcu, ac consectetur nunc. Nunc pharetra semper augue sed aliquet. Nunc pretium lorem quis nulla interdum, vestibulum sollicitudin lectus eleifend. Duis leo erat, consectetur nec convallis vitae, faucibus vel ipsum. Donec sed lectus ut lorem pellentesque posuere. Vivamus et iaculis ante, nec elementum sapien. Donec semper magna a nisi porttitor varius. Cras consequat pharetra sapien interdum finibus.
-Read more -=view('templates/blog/footer')?> \ No newline at end of file diff --git a/views/pages/blog/test.php b/views/pages/blog/test.php deleted file mode 100644 index 7523174..0000000 --- a/views/pages/blog/test.php +++ /dev/null @@ -1,8 +0,0 @@ -=view('templates/blog/header')?> -Or is it? Maybe. I'm just trying to fill this with some text right now using the noise from my brain but I'm not really that good at it.. FUCK
-This is a code block
-go back
-=view('templates/blog/footer')?>
\ No newline at end of file
diff --git a/views/pages/home.php b/views/pages/home.php
index 6f73430..0713a82 100644
--- a/views/pages/home.php
+++ b/views/pages/home.php
@@ -47,11 +47,12 @@
We love you! xoxo
+Awesome webring -Check out any of these other aweeesome websites!
-Check out any of these other aweeesome websites!
+?> - =view('templates/footer')?> \ No newline at end of file diff --git a/views/templates/blog/footer.php b/views/templates/blog/footer.php deleted file mode 100644 index d89f2fb..0000000 --- a/views/templates/blog/footer.php +++ /dev/null @@ -1,194 +0,0 @@ - - - - - - -There are no limits to what you can accomplish, except the limits you place on your own thinking.
-Racism not allowed
Remember, be kind to each other