Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding design, credits, etc.

  • Loading branch information...
commit bc284fbce92617cca1ab8ad53d36487550c50b51 1 parent 7f5b4d1
@gleuch authored
View
BIN  public/images/bubble_bottom.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/bubble_pointer.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/bubble_repeat.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/bubble_top.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/rt_bird.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
33 public/stylesheets/screen.css
@@ -0,0 +1,33 @@
+body {background: #f8ff00; font-family: Helvetica, Arial, Verdana, sans-serif; color: #444;}
+div {clear: both; display: block;}
+h1 {clear: both; display: block; padding: 0 0 12px 0; margin: 0; font-size: 24px; line-height: 28px; letter-spacing: -.03em; color: #444; font-weight: bold;}
+p {clear: both; display: block; padding: 0 0 8px 0; margin: 0; font-size: 20px; line-height: 24px; letter-spacing: -.03em; color: #444;}
+p a {color: #c900b7; text-decoration: underline; font-weight: bold;}
+p.small {font-size: 15px; line-height: 18px;}
+
+p.button {text-align: center; padding: 4px 0 22px 0;}
+p.button a.button {display: inline-block; padding: 6px 12px; margin: 0 3px; background: #c900b7; color: #fff; border: 3px solid #c900b7; text-decoration: none; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px;}
+p.button a.button:hover {background: #d800d8; border-color: #d800d8;}
+
+
+#container {width: 625px; margin: 0 auto;}
+#header {text-align: center; padding: 45px;}
+#header h1 {padding: 0; margin: 0; color: #c900b7; font-size: 42px; line-height: 42px; letter-spacing: -.03em;}
+#header h1 a {color: #c900b7; text-decoration: none;}
+
+
+#content_area {padding: 8px 0 0 0; background: url(../images/rt_bird.png) top right no-repeat; min-height: 150px;}
+#content_bubble {position: relative; width: 453px; background: url(../images/bubble_repeat.png) top left repeat-y;}
+#content {position: relative; width: 383px; padding: 24px 24px;}
+#bubble_top {position: absolute; top: 0; left: 0; width: 432px; height: 12px; background: url(../images/bubble_top.png) top left no-repeat;}
+#bubble_bottom {position: absolute; bottom: 0; left: 0; width: 432px; height: 14px; background: url(../images/bubble_bottom.png) bottom left no-repeat;}
+#bubble_pointer {position: absolute; top: 21px; right: 9px; width: 15px; height: 33px; background: url(../images/bubble_pointer.png) top left no-repeat;}
+
+
+.results_box {padding: 16px 0 0 0; margin: 6px 0 0 0; border-top: 1px solid #e0e0e0;}
+
+
+#footer {padding: 80px 0 30px 0; text-align: center; font-size: 16px; letter-spacing: -.02em;}
+#footer a.bold {font-weight: bold;}
+#footer a {color: #c900b7; text-decoration: underline;}
+#footer a:hover {color: #c900b7; text-decoration: none;}
View
4 retweet.rb
@@ -45,7 +45,7 @@ def launch_retweet_hell
twitter_connect(user)
unless @twitter_client.blank?
info = @twitter_client.info rescue nil
- unless info.blank? || @twitter_client.info['status']['text'].blank?
+ unless info.blank? || @twitter_client.info.blank? || @twitter_client.info['status']['text'].blank?
retweet = "RT: @#{info['screen_name']}: %s #{configatron.twitter_hashtag}"
retweet = retweet.gsub(/\%s/, (info['status']['text'])[0, (142-retweet.length) ])
@tweet = Tweet.create(:account_id => user.account_id, :tweet_id => info['status']['id'], :tweet => info['status']['text'], :retweet => retweet, :sent_at => Time.now)
@@ -146,7 +146,7 @@ def launch_retweet_hell
if params[:splat].to_s == configatron.secret_launch_code.to_s
launch_retweet_hell
else
- @error = 'WTF!? You ain\'t got access to this. Fuck off.'
+ @error = '<strong>WTF!?</strong> You ain\'t got access to this. Fuck off.'
haml :fail
end
end
View
3  settings.yml.default
@@ -13,8 +13,11 @@ development: &local
twitter_retweet_percent: 50
twitter_retweet_max: 10
+ use_g_analytics: false
+ g_analytics_code: UA-#######-##
db_connection: sqlite3:///ROOT/retweet.db
+
production:
<<: *local
View
5 views/home.haml
@@ -1 +1,4 @@
-%p Hello FFFFFattie! <a href="/connect">Connect now!</a>
+%p.button
+ %a.button{:href => "/connect"} Connect to Twitter now!
+%p.small Connect your Twitter account with #{configatron.site_name} and enter your chance to have one of your tweets sent out to the rest of the #{configatron.site_name} users. Winners chosen infrequently.
View
40 views/layout.haml
@@ -1,11 +1,45 @@
!!! Strict
%html{:xmlns=>'http://www.w3.org/1999/xhtml', :'xml:lang'=>'en', :lang=>'en'}
+ /
+ :plain
+ d8888b. d88888b d888888b db d8b db d88888b d88888b d888888b d88888b db db .o88b. db dD d88888b d8888b.
+ 88 `8D 88' `~~88~~' 88 I8I 88 88' 88' `~~88~~' 88' 88 88 d8P Y8 88 ,8P' 88' 88 `8D
+ 88oobY' 88ooooo 88 88 I8I 88 88ooooo 88ooooo 88 88ooo 88 88 8P 88,8P 88ooooo 88oobY'
+ 88`8b 88~~~~~ 88 Y8 I8I 88 88~~~~~ 88~~~~~ 88 88~~~ 88 88 8b 88`8b 88~~~~~ 88`8b
+ 88 `88. 88. 88 `8b d8'8b d8' 88. 88. 88 88 88b d88 Y8b d8 88 `88. 88. 88 `88.
+ 88 YD Y88888P YP `8b8' `8d8' Y88888P Y88888P YP YP ~Y8888P' `Y88P' YP YD Y88888P 88 YD
+
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+ Retweet Fucker by Greg Leuch <http://www.gleuch.com>
+ A Free Art & Technoloy Lab (F.A.T. Lab) production <http://www.fffff.at>
+ Copyfree 2009. http://www.rt-fuck.com
+
+ Source Code: http://github.com/gleuch/retweet-fucker
+
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
%head
%title= (!@title.blank? ? "#{@title} / " : '') + 'Re-tweet Fucker / A F.A.T. Lab Project'
%link{:rel=>'icon', :href=>'/favicon.ico'}
%link{:href=>'/stylesheets/screen.css', :media=>'all', :rel =>'stylesheet', :type=>'text/css'}
%body
- - if @title
- %h1= @title
- = yield
+ #header<>
+ %h1
+ %a{:href => '/'}= configatron.site_name
+
+ #content_area
+ #content_bubble
+ #content
+ = yield
+ #bubble_top
+ #bubble_bottom
+ #bubble_pointer
+
+ #footer a <a class="bold" href="http://www.fffff.at">F.A.T. Lab production</a> by <a class="bold" href="http://gleuch.com">Greg Leuch</a>. no rights reserved. <a href="http://github.com/gleuch/retweet-fucker">grab the code</a>\
+
+ - if configatron.use_g_analytics == true && !configatron.g_analytics_code.blank? && configatron.g_analytics_code != 'UA-#######-##'
+ %script{:type => "text/javascript"} var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+ %script{:type => "text/javascript"} try {var pageTracker = _gat._getTracker("#{configatron.g_analytics_code}"); pageTracker._trackPageview();} catch(err) {}
View
17 views/run.haml
@@ -1,6 +1,11 @@
-%p Re-tweet: #{@tweet.retweet}
-- unless @users.blank?
- %p A retweet was sent out to the following users:
- %p= @users.map{|u| u.screen_name}.join(', ')
-- else
- %p No users were used to retweet.
+ %p= @tweet.retweet.gsub(/^RT\:/i, '<strong>Re-tweet:</strong>')
+
+.results_box
+ - unless @users.blank?
+ %p.small
+ %strong A retweet was sent out to the following users:
+ %p.small= @users.map{|u| u.screen_name}.join(', ')
+
+ - else
+ %p.small No users were used to retweet.
View
3  views/thanks.haml
@@ -1 +1,2 @@
-%p Thanks for signing up. There is nothing else you need to do. If you want to remove this, then goto your Twitter Settings > Connections, and remove it.
+%p To remove this application, go to your Twitter Connections and revoke access.
Please sign in to comment.
Something went wrong with that request. Please try again.