about summary refs log tree commit diff stats
path: root/app/views
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-28 00:16:07 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-28 00:16:07 -0400
commitb496a29a7de381765f3c45ced9fa18f026b2e314 (patch)
tree34f6558ffed34b0ec922c90e6407d165e9256b59 /app/views
parentd09db2d6d0727faba8e5078900f2fbd1e18ea49f (diff)
downloadwittle-b496a29a7de381765f3c45ced9fa18f026b2e314.tar.gz
wittle-b496a29a7de381765f3c45ced9fa18f026b2e314.tar.bz2
wittle-b496a29a7de381765f3c45ced9fa18f026b2e314.zip
serve
Diffstat (limited to 'app/views')
-rw-r--r--app/views/layouts/wittle/application.html.erb15
-rw-r--r--app/views/layouts/wittle/application.html.haml9
-rw-r--r--app/views/wittle/puzzles/index.html.haml12
3 files changed, 21 insertions, 15 deletions
diff --git a/app/views/layouts/wittle/application.html.erb b/app/views/layouts/wittle/application.html.erb deleted file mode 100644 index ba450d1..0000000 --- a/app/views/layouts/wittle/application.html.erb +++ /dev/null
@@ -1,15 +0,0 @@
1<!DOCTYPE html>
2<html>
3<head>
4 <title>Wittle</title>
5 <%= csrf_meta_tags %>
6 <%= csp_meta_tag %>
7
8 <%= stylesheet_link_tag "wittle/application", media: "all" %>
9</head>
10<body>
11
12<%= yield %>
13
14</body>
15</html>
diff --git a/app/views/layouts/wittle/application.html.haml b/app/views/layouts/wittle/application.html.haml new file mode 100644 index 0000000..945ffc0 --- /dev/null +++ b/app/views/layouts/wittle/application.html.haml
@@ -0,0 +1,9 @@
1!!! 5
2%html
3 %head
4 %title Wittle
5 = csrf_meta_tags
6 = csp_meta_tag
7 = stylesheet_link_tag "wittle/application", media: "all"
8 = javascript_include_tag "wittle/application"
9 %body= yield
diff --git a/app/views/wittle/puzzles/index.html.haml b/app/views/wittle/puzzles/index.html.haml new file mode 100644 index 0000000..dfeac3c --- /dev/null +++ b/app/views/wittle/puzzles/index.html.haml
@@ -0,0 +1,12 @@
1%h1 Puzzles#index
2%p Find me in app/views/wittle/puzzles/index.html.haml
3:javascript
4 loadHeader("Unnamed Puzzle")
5%div{ style: "display: flex; justify-content: center; align-items: center"}
6 %svg#puzzle{ style: "pointer-events: auto"}
7:javascript
8 window.onload = function() {
9 var puzzle = window.deserializePuzzle("_AAAAAA8PCQAAAEdlbmVyYXRlZAABAAAACAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAgAAQAAAAACAAAA/wABAAAAAAgAAQAAAAAIAAEAAAAACAABAAAAAAgAAQAAAAAIAAEAAQAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQABAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAAIAAEAAAAACAABAAAAAAgAAQAAAAAIAAEAAAAAAv////8AAQAAAAAIAAEAAAAAAv////8AAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAQEAAAAAAQAAAAABAAAAAAEAAQAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAIAAAD/AAEAAAAACAABAAAAAAgAAQAAAAAIAAEAAAAACAABAAAAAAgAAQAAAAAIAAEAAAAAAQAAAAEBAAAAAAEAAAAAAQAAAAABAAAAAQEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAAIAAEAAQAAAv////8AAQAAAAAIAAEAAAAAAv////8AAQAAAAACAAAA/wABAAAAAAIAAAD/AAEAAAAAAgAAAP8AAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAEAAAAAAQAAAAABAAAAAAL/////AAEAAAAAAv////8AAQAAAAAIAAEAAAAACAABAAAAAAgAAQA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