diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-30 12:40:08 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-30 12:40:08 -0400 |
| commit | 82cf9a4f0819bec96d1cf5050cc4e8dc17568be0 (patch) | |
| tree | 7bf12ba31911bf9db863ee74a746a42fadb3d6db /app/views | |
| parent | 4ef2c94a6da2854c0e39a0dc5da682fca2ed4b4d (diff) | |
| download | wittle-82cf9a4f0819bec96d1cf5050cc4e8dc17568be0.tar.gz wittle-82cf9a4f0819bec96d1cf5050cc4e8dc17568be0.tar.bz2 wittle-82cf9a4f0819bec96d1cf5050cc4e8dc17568be0.zip | |
main page! and other layout stuff
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/wittle/puzzles/about.html.haml | 27 | ||||
| -rw-r--r-- | app/views/wittle/puzzles/index.html.haml | 1 | ||||
| -rw-r--r-- | app/views/wittle/puzzles/show.html.haml | 1 |
3 files changed, 25 insertions, 4 deletions
| diff --git a/app/views/wittle/puzzles/about.html.haml b/app/views/wittle/puzzles/about.html.haml index 6a47972..a96fcf9 100644 --- a/app/views/wittle/puzzles/about.html.haml +++ b/app/views/wittle/puzzles/about.html.haml | |||
| @@ -1,4 +1,23 @@ | |||
| 1 | %p by Hatkirby, with help from Sigma144 and jbzdarkid | 1 | %p.summary <strong>Wittle</strong> gives you daily randomly-generated puzzles in the style of those from the 2016 indie game, <a href="http://the-witness.net">The Witness</a>. There are three difficulties of puzzles to choose from: |
| 2 | %p= link_to "Normal", @normal_puzzle | 2 | %h2#current-date= @normal_puzzle.created_at.strftime("%B %-d, %Y") |
| 3 | %p= link_to "Hard", @hard_puzzle | 3 | %nav#choose-difficulty |
| 4 | %p= link_to "Expert", @expert_puzzle | 4 | #normal-link |
| 5 | = link_to "Normal", @normal_puzzle | ||
| 6 | - if @normal_solved | ||
| 7 | %p.puzzle-status Solved! | ||
| 8 | - elsif @normal_started | ||
| 9 | %p.puzzle-status Started | ||
| 10 | #hard-link | ||
| 11 | = link_to "Hard", @hard_puzzle | ||
| 12 | - if @hard_solved | ||
| 13 | %p.puzzle-status Solved! | ||
| 14 | - elsif @hard_started | ||
| 15 | %p.puzzle-status Started | ||
| 16 | #expert-link | ||
| 17 | = link_to "Expert", @expert_puzzle | ||
| 18 | - if @expert_solved | ||
| 19 | %p.puzzle-status Solved! | ||
| 20 | - elsif @expert_started | ||
| 21 | %p.puzzle-status Started | ||
| 22 | %p.summary Wittle was created by <a href="https://www.fourisland.com/">Hatkirby</a>, with major help from <a href="https://github.com/sigma144/">Sigma144</a> (who wrote the puzzle generation code) and <a href="https://github.com/jbzdarkid">jbzdarkid</a> (who wrote the puzzle solving web interface). If you encounter any bugs, or have feedback regarding puzzle difficulty level, feel free to contact me! I am <code>hatkirby</code> on Discord, and you can also find me in the <a href="https://discord.gg/0nJwyUyYIfTEgSz0">Witness Speedrunning server</a>. | ||
| 23 | %p.summary There is an <a href="#{ archive_path }">archive of past puzzles</a> for those interested. | ||
| diff --git a/app/views/wittle/puzzles/index.html.haml b/app/views/wittle/puzzles/index.html.haml index 097eb87..fe497e4 100644 --- a/app/views/wittle/puzzles/index.html.haml +++ b/app/views/wittle/puzzles/index.html.haml | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | .breadcrumb= link_to "← Back to home page", root_path | ||
| 1 | %h1 Archive | 2 | %h1 Archive |
| 2 | %table#archive | 3 | %table#archive |
| 3 | %tr | 4 | %tr |
| diff --git a/app/views/wittle/puzzles/show.html.haml b/app/views/wittle/puzzles/show.html.haml index 8628298..7307152 100644 --- a/app/views/wittle/puzzles/show.html.haml +++ b/app/views/wittle/puzzles/show.html.haml | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | .breadcrumb= link_to "← Back to home page", root_path | ||
| 1 | %h1 Wittle ##{@puzzle.id} | 2 | %h1 Wittle ##{@puzzle.id} |
| 2 | .puzzle-description #{@puzzle.category.capitalize} - #{@puzzle.created_at.strftime("%B %-d, %Y")} | 3 | .puzzle-description #{@puzzle.category.capitalize} - #{@puzzle.created_at.strftime("%B %-d, %Y")} |
| 3 | #puzzle-container{ style: "display: flex; justify-content: center; align-items: center" } | 4 | #puzzle-container{ style: "display: flex; justify-content: center; align-items: center" } |
