Navigation Menu

Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
add more tests in the vain hope that modal will stop winning on share.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlkammerer committed Aug 3, 2012
1 parent 2799025 commit 80e0fe7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
15 changes: 15 additions & 0 deletions app/assets/stylesheets/test_thanks.css.scss
Expand Up @@ -57,4 +57,19 @@
}
}

.giantbox.smaller {
padding: 20px 55px;
.big_text {
font-size: 70px;
line-height: 80px;
}
.message {
font-size: 50px;
line-height: 60px;
}
.fb_button_big {
margin: 25px auto 15px;
}
}


20 changes: 15 additions & 5 deletions app/views/petitions/_share.html.haml
@@ -1,10 +1,20 @@
-# thanks_message = spin! "toggle thanks messages", :share, ["thanks_so_much", "youre_amazing", "profit", "great_success"]
- thanks_message = spin! "toggle message", :share, ["that_was_amazing_verbose", "text_from_modal"]
- hero_font_sizes = spin! "toggle font sizes within sharing hero", :share, ["larger", "smaller"]

.giantbox
.big_text
That was amazing,
.message
but we still need more people to make a <b>huge impact</b>. Help us spread the word:
.giantbox{class: [hero_font_sizes]}
- if thanks_message == 'that_was_amazing_verbose'
.big_text
That was amazing,
.message
but we still need more people to make a <b>huge impact</b>. Help us spread the word:
- else
.big_text
Thanks for Signing!
.message
Spread the word,
%br
share with your friends!
.fb_button_big.fb_popup_btn

-##thanks{class: [thanks_message]}
Expand Down

0 comments on commit 80e0fe7

Please sign in to comment.