summaryrefslogtreecommitdiffhomepage
path: root/template
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-04-21 08:51:32 -0400
committerrealtradam <[email protected]>2022-04-21 08:51:32 -0400
commit3249a3a131ae5d28b42ba70b85839314ed7c227c (patch)
treea9094a63f2a6e1b89c7c87b1ff0dbf8e01b2cef8 /template
parent8c0569bf34405dfdf0968b26f33dd70976866943 (diff)
downloadJusticar-3249a3a131ae5d28b42ba70b85839314ed7c227c.tar.gz
Justicar-3249a3a131ae5d28b42ba70b85839314ed7c227c.zip
prettifiedv0.1.1
Diffstat (limited to 'template')
-rw-r--r--template/Gemfile9
-rw-r--r--template/Gemfile.lock29
-rw-r--r--template/public/favicon.icobin0 -> 15406 bytes
-rw-r--r--template/public/favicon.pngbin0 -> 1566 bytes
-rw-r--r--template/public/justicar.pngbin0 -> 38093 bytes
-rw-r--r--template/src/index.html.rb2
-rw-r--r--template/src/style.css.rb13
7 files changed, 53 insertions, 0 deletions
diff --git a/template/Gemfile b/template/Gemfile
new file mode 100644
index 0000000..be6f9dc
--- /dev/null
+++ b/template/Gemfile
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+source "https://rubygems.org"
+
+gem "webrick", "~> 1.7"
+
+gem "opal-browser", "~> 0.3.3"
+
+gem "Justicar", "~> 0.1.0"
diff --git a/template/Gemfile.lock b/template/Gemfile.lock
new file mode 100644
index 0000000..7072eae
--- /dev/null
+++ b/template/Gemfile.lock
@@ -0,0 +1,29 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ Justicar (0.1.0)
+ opal (~> 1.5)
+ opal-browser (~> 0.3.3)
+ paggio (~> 0.3.0)
+ ast (2.4.2)
+ opal (1.5.0)
+ ast (>= 2.3.0)
+ parser (~> 3.0, >= 3.0.3.2)
+ opal-browser (0.3.3)
+ opal (>= 1.0, < 2.0)
+ paggio (>= 0.3.0)
+ paggio (0.3.0)
+ parser (3.1.2.0)
+ ast (~> 2.4.1)
+ webrick (1.7.0)
+
+PLATFORMS
+ x86_64-linux
+
+DEPENDENCIES
+ Justicar (~> 0.1.0)
+ opal-browser (~> 0.3.3)
+ webrick (~> 1.7)
+
+BUNDLED WITH
+ 2.3.12
diff --git a/template/public/favicon.ico b/template/public/favicon.ico
new file mode 100644
index 0000000..0ec3748
--- /dev/null
+++ b/template/public/favicon.ico
Binary files differ
diff --git a/template/public/favicon.png b/template/public/favicon.png
new file mode 100644
index 0000000..5a99253
--- /dev/null
+++ b/template/public/favicon.png
Binary files differ
diff --git a/template/public/justicar.png b/template/public/justicar.png
new file mode 100644
index 0000000..252bac4
--- /dev/null
+++ b/template/public/justicar.png
Binary files differ
diff --git a/template/src/index.html.rb b/template/src/index.html.rb
index cefcf6f..9c34064 100644
--- a/template/src/index.html.rb
+++ b/template/src/index.html.rb
@@ -1,6 +1,8 @@
Paggio.html do
script type: "text/javascript", src: "script.js"
link rel: "stylesheet", href: "style.css"
+ link rel: 'icon', type: 'image/x-icon', href: 'favicon.ico'
+ img.justicar(src: 'justicar.png', alt: 'Justicar', height: '400px')
h1 { "Hello world from Justicar" }
hr
h2.paggio do
diff --git a/template/src/style.css.rb b/template/src/style.css.rb
index d9684e3..9a41dad 100644
--- a/template/src/style.css.rb
+++ b/template/src/style.css.rb
@@ -1,4 +1,17 @@
Paggio.css do
+ rule 'body' do
+ height 100.vh
+ end
+
+ rule '.justicar' do
+ top 134.px
+ left 360.px
+ opacity 0.7
+ position 'absolute'
+ width 400.px
+ height 'auto'
+ end
+
rule '.opal' do
color :dodgerblue
end