Initial AssetPack setup

This commit is contained in:
swag 2021-12-22 23:18:35 -05:00
parent fbd569a3c2
commit 9a9a8e2cc1
6 changed files with 81 additions and 0 deletions

0
assets/assetpack.db Normal file
View File

75
assets/css/swagg.css Normal file
View File

@ -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;
}

View File

@ -4,3 +4,4 @@ requires 'Test::Mojo';
requires 'Mojolicious::Lite';
requires 'Mojo::Pg';
requires 'Mojolicious::Plugin::TagHelpers::Pagination';
requires 'Mojolicious::Plugin::AssetPack';

View File

@ -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();

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>Guestbook-NG - <%= title %></title>
<%= asset 'swagg.css' %>
</head>
<body>
<center>