Skip to content

Commit

Permalink
Progress on the thank you page
Browse files Browse the repository at this point in the history
  • Loading branch information
neauoire committed Jun 19, 2017
1 parent 2eaac0b commit e0c7d43
Show file tree
Hide file tree
Showing 15 changed files with 44 additions and 52 deletions.
8 changes: 6 additions & 2 deletions core/pages/thank.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class ThankPage

include Page

def initialize loc_text = nil, body = "Missing"
def initialize loc_text = nil, story

@type = "thank"
@text = loc_text
Expand All @@ -17,8 +17,12 @@ def initialize loc_text = nil, body = "Missing"
@style["p"] = "padding:40px; font-size:26px; line-height:36px"
@style["h1"] = "font-weight: normal;text-transform: uppercase;display: block;text-align: center;font-size: 36px;margin-top: 120px;margin-bottom: 40px"

story.each do |lang,content|
p "#{content[:language]} -> #{content[:translator]}"
end

@thanks = loc_text
@names = body
@names = "" # body

end

Expand Down
7 changes: 3 additions & 4 deletions lang.ar.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Author : Devine Lu Linvega
# Contact : @neauoire(Twitter)
# Contact : @HazzaRAlkaabi

$lang_ar = {
:translator => "",
:language => "",
:translator => "Hazza Alkaabi",
:language => "Arabic",
:title => "ألف غرفة",
:title_page => [
"ألف غرفة",
Expand Down
7 changes: 3 additions & 4 deletions lang.ch.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Author : Devine Lu Linvega
# Contact : @neauoire(Twitter)
# Contact : @HumbleRay_CN

$lang_ch = {
:translator => "",
:language => "",
:translator => "Humble Ray",
:language => "Chinese",
:title => "千间房",
:title_page => [
"千间房",
Expand Down
7 changes: 3 additions & 4 deletions lang.de.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Author : Devine Lu Linvega
# Contact : @neauoire(Twitter)
# Contact :

$lang_de = {
:translator => "",
:language => "",
:translator => "Max H<trema>a</trema>ß­lein",
:language => "German",
:title => "Tausend R<trema>a</trema>ume",
:title_page => [
"Tausend R<trema>a</trema>ume",
Expand Down
7 changes: 3 additions & 4 deletions lang.el.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Author : Devine Lu Linvega
# Contact : @neauoire(Twitter)
# Contact : @enc_io

$lang_el = {
:translator => "",
:language => "",
:translator => "Paris K.",
:language => "Greek",
:title => "Χιλια Δωματια",
:title_page => [
"Χιλια Δωματια",
Expand Down
7 changes: 3 additions & 4 deletions lang.en.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Author : Devine Lu Linvega
# Contact : @neauoire(Twitter)
# Contact : @neauoire

$lang_en = {
:translator => "",
:language => "",
:translator => "Devine Lu Linvega",
:language => "English",
:title => "Thousand Rooms",
:title_page => [
"Thousand Rooms",
Expand Down
7 changes: 3 additions & 4 deletions lang.fr.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Author : Devine Lu Linvega
# Contact : @neauoire(Twitter)
# Contact : @RekkaBell

$lang_fr = {
:translator => "",
:language => "",
:translator => "Rekka Bellum",
:language => "French",
:title => "Mille Pi<grave>e</grave>ces",
:title_page => [
"Mille Pi<grave>e</grave>ces",
Expand Down
7 changes: 3 additions & 4 deletions lang.hu.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Author : Devine Lu Linvega
# Contact : @neauoire(Twitter)
# Contact :

$lang_hu = {
:translator => "",
:language => "",
:translator => "Attila Magyar",
:language => "Hungarian",
:title => "Ezer Szoba",
:title_page => [
"Ezer Szoba",
Expand Down
7 changes: 3 additions & 4 deletions lang.it.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Author : Devine Lu Linvega
# Contact : @neauoire(Twitter)
# Contact : @no_faith_left

$lang_it = {
:translator => "",
:language => "",
:translator => "Federico Salvador",
:language => "Italian",
:title => "Mille stanze",
:title_page => [
"Mille stanze",
Expand Down
7 changes: 3 additions & 4 deletions lang.jp.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Author : Devine Lu Linvega
# Contact : @neauoire(Twitter)
# Contact : @chasecolburn

$lang_jp = {
:translator => "",
:language => "",
:translator => "Chase & Yuka",
:language => "Japanese",
:title => "せんのへや",
:title_page => [
"せんのへや",
Expand Down
7 changes: 3 additions & 4 deletions lang.li.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Author : Devine Lu Linvega
# Contact : @neauoire(Twitter)
# Contact : @neauoire

$lang_li = {
:translator => "",
:language => "",
:translator => "Devine Lu Linvega",
:language => "Lietal",
:title => "Lae'Doi",
:title_page => [
"Lae'Doi",
Expand Down
7 changes: 3 additions & 4 deletions lang.nl.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Author : Devine Lu Linvega
# Contact : @neauoire(Twitter)
# Contact : @ctrlaltdefeat_

$lang_nl = {
:translator => "",
:language => "",
:translator => "Vincent",
:language => "Dutch",
:title => "Duizend Kamers",
:title_page => [
"Duizend Kamers",
Expand Down
7 changes: 3 additions & 4 deletions lang.ru.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Author : Devine Lu Linvega
# Contact : @neauoire(Twitter)
# Contact : @tema_ra

$lang_ru = {
:translator => "",
:language => "",
:translator => "RA",
:language => "Russian",
:title => "Тысяча Комнат",
:title_page => [
"Тысяча Комнат",
Expand Down
2 changes: 1 addition & 1 deletion main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
book.add_page(IllustrationPage.new("you.1",target_story[:lesson7][1]))
book.add_page(BlankPage.new)

book.add_page(ThankPage.new(target_story[:thanks]))
book.add_page(ThankPage.new(target_story[:thanks],$story))
book.add_page(BlankPage.new)

book.build
2 changes: 1 addition & 1 deletion thousand.en.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ <h1>What would you do?</h1>
</page>

<page class='thank'>
<h1>Thanks</h1><p>Missing</p>
<h1>Thanks</h1><p></p>
</page>

<page class='blank'>
Expand Down

0 comments on commit e0c7d43

Please sign in to comment.