diff --git a/assets/assetpack.db b/assets/assetpack.db new file mode 100644 index 0000000..e69de29 diff --git a/assets/css/swagg.css b/assets/css/swagg.css new file mode 100644 index 0000000..7efe90b --- /dev/null +++ b/assets/css/swagg.css @@ -0,0 +1,75 @@ +body { + cursor: url('/misc/piz_normal_p1.cur'), auto; + background: #000; + margin: 0em; + color: #00FF00; + font: normal 16px/20px Courier, Courier New, monospace; +} + +a { + color: #FFF; + text-decoration: underline; +} + +a:hover { + color: #EEE; + text-decoration: none; +} + +form { + cursor: auto; + /* text-align: center; */ +} + +td { + text-align: left; +} + +th { + text-align: right; +} + +hr { + height: 2px; + color: #00FF00; + background-color: #00FF00; + border: none; +} + +.inner { + margin: 0 auto; + max-width: 90%; +} + +.outer { + margin: 0 auto; + max-width: 95%; +} + +#bonzi { + position: fixed; + right: 10%; + bottom: 10%; +} + +#gdpr { + top: 0; + position: relative; + padding: 0.75em; + text-align: center; + width: 100%; + background-color: #BEBEBE; + color: #000000; +} + +.win95button { + border: 0.25em solid; + border-color: #000000; + background-color: #BEBEBE; + padding: 0.75em; + width: 10em; +} + +img { + vertical-align: middle; +} diff --git a/cpanfile b/cpanfile index 022e3f4..d663315 100644 --- a/cpanfile +++ b/cpanfile @@ -4,3 +4,4 @@ requires 'Test::Mojo'; requires 'Mojolicious::Lite'; requires 'Mojo::Pg'; requires 'Mojolicious::Plugin::TagHelpers::Pagination'; +requires 'Mojolicious::Plugin::AssetPack'; diff --git a/guestbook-ng.pl b/guestbook-ng.pl index 64da015..019268d 100755 --- a/guestbook-ng.pl +++ b/guestbook-ng.pl @@ -12,6 +12,7 @@ use Data::Dumper; # Uncomment for debugging # Plugins plugin 'Config'; plugin 'TagHelpers::Pagination'; +plugin AssetPack => {pipes => [qw{Css JavaScript Combine}]}; # Helpers helper pg => sub { @@ -78,4 +79,7 @@ app->message->max_posts(app->config->{'max_posts'}) app->pg->migrations->from_dir('migrations')->migrate(3); +app->asset->store->paths(['assets']); +app->asset->process('swagg.css', 'css/swagg.css'); + app->start(); diff --git a/public/misc/piz_normal_p1.cur b/public/misc/piz_normal_p1.cur new file mode 100644 index 0000000..9f335e8 Binary files /dev/null and b/public/misc/piz_normal_p1.cur differ diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 1d8cb48..4785b80 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -2,6 +2,7 @@