-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add preliminary multi-adventure support
There’s much still to be done in this direction but it’s a start at least. It seems like sometimes CMSy features are needed, like the site-specific images used for CR which should be configured for a particular instance rather than the adventure itself. The env-setting in tests is thanks to @jtomaszewski: https://elixirforum.com/t/using-application-get-env-application-put-env-in-exunit-tests/8019/3
- Loading branch information
Showing
24 changed files
with
159 additions
and
121 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
assets/css/email.scss → assets/css/clandestine-rendezvous-email.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
$global-width: 960px; | ||
$global-font-size: 120%; | ||
|
||
@import 'app'; | ||
@import 'clandestine-rendezvous'; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.jortle { | ||
color: blue; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import '../css/unmnemonic-devices.scss'; | ||
|
||
import $ from 'jquery'; | ||
|
||
$(() => { | ||
console.log("unmnemonic devices!"); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 111 additions & 0 deletions
111
lib/adventure_registrations_web/templates/page/clandestine-rendezvous.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
<div class='row title moving-highlight' data-highlight='h2'> | ||
<div class='small-4 columns'> | ||
<img src='/images/logo.png' class='logo'> | ||
</div> | ||
<div class='small-8 columns'> | ||
<h2>Clandestine</h2><h2>Rendezvous</h2> | ||
</div> | ||
</div> | ||
|
||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<p>You are a member of a secret society with a mission of the utmost importance.</p> | ||
<p>You will have encounters with other members around an undisclosed location where you will obtain information to get closer to fulfilling your mission.</p> | ||
</div> | ||
</div> | ||
|
||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<p>Clandestine Rendezvous is an adventure taking place at a to-be-confirmed Victoria location in the evening on <%= full_date() %>. Participants receive a set of appointment cards that direct them to specific locations at precise times at which they will meet other operatives and exchange information with them. Each rendezvous will provide a clue to solve the case.</p> | ||
</div> | ||
</div> | ||
|
||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<img src='/images/first-image.jpg'> | ||
</div> | ||
</div> | ||
|
||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<h4 class='moving-highlight'><i class='fa fa-white fa-clock-o'></i> When and where?</h4> | ||
<p>The secret society is so secret that the venue for initiation cannot be shared publicly. Once it is decided, it will be shared with those who <%= link "register", to: Routes.registration_path(@conn, :new) %>. If you have questions about travel, please write to us after registering.</p> | ||
<p>The adventure will begin at <%= start_time() %>. If you have obligations that prevent you from being present at the beginning let us know and we can discuss how to accommodate you.</p> | ||
</div> | ||
</div> | ||
|
||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<h4 class='moving-highlight'><i class='fa fa-white fa-user-secret'></i> Who?</h4> | ||
<p>Anyone is invited to attend. You should have a sense of adventure and stealth. You can go alone or with a partner.</p> | ||
</div> | ||
</div> | ||
|
||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<h4 class='moving-highlight'><i class='fa fa-white fa-dollar'></i> Cost</h4> | ||
<p>A $5 donation is requested to cover printing costs and labour. If that’s too much, any amount (including 0) is welcome.</p> | ||
</div> | ||
</div> | ||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<h4 class='moving-highlight'><i class='fa fa-white fa-universal-access'></i> Accessibility</h4> | ||
<p>Do you have accessibility needs we should know about? Please tell us <%= link "when you register", to: Routes.registration_path(@conn, :new) %> and we will work with you to ensure you can participate.</p> | ||
</div> | ||
</div> | ||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<h4 class='moving-highlight'><i class='fa fa-white fa-pencil'></i> Registration</h4> | ||
<p>You <em>must</em> <%= link "register", to: Routes.registration_path(@conn, :new) %> to attend the event, as scheduling each rendezvous depends on knowing who will attend. If you’re uncertain whether you can make it, register anyway; you can cancel up until the day before.</p> | ||
</div> | ||
</div> | ||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<h4 class='moving-highlight' id='questions'><i class='fa fa-white fa-question-circle'></i> Questions</h4> | ||
|
||
<p><strong>This is not the registration form, that’s <%= link "here", to: Routes.registration_path(@conn, :new) %>.</strong></p> | ||
|
||
<%= form_for @conn, Routes.page_path(@conn, :questions), [as: :question], fn f -> %> | ||
<div class='form-group'> | ||
<%= label f, :name %> | ||
<%= text_input f, :name, class: "form-control" %> | ||
</div> | ||
|
||
<div class='form-group'> | ||
<%= label f, :email %> | ||
<%= text_input f, :email, class: "form-control" %> | ||
</div> | ||
|
||
<div class='form-group'> | ||
<%= label f, :subject %> | ||
<%= text_input f, :subject, class: "form-control" %> | ||
</div> | ||
|
||
<div class='form-group'> | ||
<%= label f, :question %> | ||
<%= textarea f, :question, class: "form-control" %> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= submit "Submit", class: "button" %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
|
||
<div class='row card eye'> | ||
<div class='small-12 columns'> | ||
<p> | ||
<%= render "eye.html" %> | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<div class='zoom-container'> | ||
<img class='secret-image-container' src='/images/secret-cover.jpg'> | ||
<div class='secret'><div class='text'>you found a secret</div></div> | ||
</div> | ||
</div> | ||
</div> |
112 changes: 2 additions & 110 deletions
112
lib/adventure_registrations_web/templates/page/index.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,111 +1,3 @@ | ||
<div class='row title moving-highlight' data-highlight='h2'> | ||
<div class='small-4 columns'> | ||
<img src='/images/logo.png' class='logo'> | ||
</div> | ||
<div class='small-8 columns'> | ||
<h2>Clandestine</h2><h2>Rendezvous</h2> | ||
</div> | ||
</div> | ||
<%= %> | ||
|
||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<p>You are a member of a secret society with a mission of the utmost importance.</p> | ||
<p>You will have encounters with other members around an undisclosed location where you will obtain information to get closer to fulfilling your mission.</p> | ||
</div> | ||
</div> | ||
|
||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<p>Clandestine Rendezvous is an adventure taking place at a to-be-confirmed Victoria location in the evening on <%= full_date() %>. Participants receive a set of appointment cards that direct them to specific locations at precise times at which they will meet other operatives and exchange information with them. Each rendezvous will provide a clue to solve the case.</p> | ||
</div> | ||
</div> | ||
|
||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<img src='/images/first-image.jpg'> | ||
</div> | ||
</div> | ||
|
||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<h4 class='moving-highlight'><i class='fa fa-white fa-clock-o'></i> When and where?</h4> | ||
<p>The secret society is so secret that the venue for initiation cannot be shared publicly. Once it is decided, it will be shared with those who <%= link "register", to: Routes.registration_path(@conn, :new) %>. If you have questions about travel, please write to us after registering.</p> | ||
<p>The adventure will begin at <%= start_time() %>. If you have obligations that prevent you from being present at the beginning let us know and we can discuss how to accommodate you.</p> | ||
</div> | ||
</div> | ||
|
||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<h4 class='moving-highlight'><i class='fa fa-white fa-user-secret'></i> Who?</h4> | ||
<p>Anyone is invited to attend. You should have a sense of adventure and stealth. You can go alone or with a partner.</p> | ||
</div> | ||
</div> | ||
|
||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<h4 class='moving-highlight'><i class='fa fa-white fa-dollar'></i> Cost</h4> | ||
<p>A $5 donation is requested to cover printing costs and labour. If that’s too much, any amount (including 0) is welcome.</p> | ||
</div> | ||
</div> | ||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<h4 class='moving-highlight'><i class='fa fa-white fa-universal-access'></i> Accessibility</h4> | ||
<p>Do you have accessibility needs we should know about? Please tell us <%= link "when you register", to: Routes.registration_path(@conn, :new) %> and we will work with you to ensure you can participate.</p> | ||
</div> | ||
</div> | ||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<h4 class='moving-highlight'><i class='fa fa-white fa-pencil'></i> Registration</h4> | ||
<p>You <em>must</em> <%= link "register", to: Routes.registration_path(@conn, :new) %> to attend the event, as scheduling each rendezvous depends on knowing who will attend. If you’re uncertain whether you can make it, register anyway; you can cancel up until the day before.</p> | ||
</div> | ||
</div> | ||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<h4 class='moving-highlight' id='questions'><i class='fa fa-white fa-question-circle'></i> Questions</h4> | ||
|
||
<p><strong>This is not the registration form, that’s <%= link "here", to: Routes.registration_path(@conn, :new) %>.</strong></p> | ||
|
||
<%= form_for @conn, Routes.page_path(@conn, :questions), [as: :question], fn f -> %> | ||
<div class='form-group'> | ||
<%= label f, :name %> | ||
<%= text_input f, :name, class: "form-control" %> | ||
</div> | ||
|
||
<div class='form-group'> | ||
<%= label f, :email %> | ||
<%= text_input f, :email, class: "form-control" %> | ||
</div> | ||
|
||
<div class='form-group'> | ||
<%= label f, :subject %> | ||
<%= text_input f, :subject, class: "form-control" %> | ||
</div> | ||
|
||
<div class='form-group'> | ||
<%= label f, :question %> | ||
<%= textarea f, :question, class: "form-control" %> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= submit "Submit", class: "button" %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
|
||
<div class='row card eye'> | ||
<div class='small-12 columns'> | ||
<p> | ||
<%= render "eye.html" %> | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<div class='row card'> | ||
<div class='small-12 columns'> | ||
<div class='zoom-container'> | ||
<img class='secret-image-container' src='/images/secret-cover.jpg'> | ||
<div class='secret'><div class='text'>you found a secret</div></div> | ||
</div> | ||
</div> | ||
</div> | ||
<%= render "#{Application.get_env(:adventure_registrations, :adventure)}.html" %> |
3 changes: 3 additions & 0 deletions
3
lib/adventure_registrations_web/templates/page/unmnemonic-devices.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<h1>unmnemonic devices</h1> | ||
|
||
<p>Placeholder!</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters