From eb74988c1e243efa24e3a7221d702a4673488efa Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sat, 27 Feb 2021 01:14:38 -0500 Subject: [PATCH] Implemented `fortune` --- public/css/swagg.css | 1 - templates/index.html.ep | 15 ++------------- www-swagg.pl | 5 +++-- 3 files changed, 5 insertions(+), 16 deletions(-) diff --git a/public/css/swagg.css b/public/css/swagg.css index 98c46e0..f90604c 100644 --- a/public/css/swagg.css +++ b/public/css/swagg.css @@ -3,7 +3,6 @@ body { background: #000; margin: 8px; color: #00FF00; - font: normal 16px/20px Courier, Courier New, monospace; } a { diff --git a/templates/index.html.ep b/templates/index.html.ep index 9c28bb2..983f059 100644 --- a/templates/index.html.ep +++ b/templates/index.html.ep @@ -108,7 +108,7 @@ +--------------------------+
- +
<%= $fortune %>
+--------------------------+
@@ -121,19 +121,8 @@
+--------------------------+
-
-

Please sign the guestbook and let SwaggNet know what you really - think.

- - Sign the Guestbook! - -
-
-
- +--------------------------+
-
- +

TODO: visitor count goes here

+--------------------------+
diff --git a/www-swagg.pl b/www-swagg.pl index ca853d2..c899beb 100755 --- a/www-swagg.pl +++ b/www-swagg.pl @@ -4,8 +4,9 @@ use Mojolicious::Lite; get '/' => sub { my ($c) = @_; - - $c->render() + my $fortune = `fortune`; + + $c->render(fortune => $fortune) } => 'index'; app->start();