Permalink
Browse files

fix layout for ad; social links;

  • Loading branch information...
1 parent 724485f commit 33f2a74c7bfd1ddc5357e128c04086b168bfd7f9 @ejc committed Nov 8, 2012
Showing with 25 additions and 24 deletions.
  1. +2 −2 i18n/en.yml
  2. +7 −7 public/css/screen.css
  3. +4 −1 views/footer.haml
  4. +10 −1 views/header.haml
  5. +1 −10 views/index.haml
  6. +1 −3 views/javascripts.haml
View
@@ -43,8 +43,8 @@ credits:
dutch: "Dutch by Ruben van Os"
turkish: "Turkish by Unknown"
japanese: "Japanese by Unknown"
- traditional_chinese: Traditional Chinese by xyeal.com"
- simplified_chinese: Simplified Chinese by xyeal.com"
+ traditional_chinese: "Traditional Chinese by xyeal.com"
+ simplified_chinese: "Simplified Chinese by xyeal.com"
swedish: "Svenska av Christoffer Sawicki"
site_source: "Code on GitHub"
contribute: "If you would like to provide additional translations ping me on Twitter"
View
@@ -32,19 +32,19 @@ body { background: url("http://abetterbrowser.s3.amazonaws.com/images
.meh .icon:hover { background-position: 0px -40px; }
.meh p { padding-left: 55px; padding-top: 10px;}
-.ad {position: relative; top: -15px;left: 90px;height:126px;display:block;width:285px;}
-.ad .noteless {background: url("http://abetterbrowser.s3.amazonaws.com/images/noteless_ad.png") no-repeat; height: 126px; width: 285px; display: block; position: absolute;}
+.ad {position: relative; top: 30px; display: block; width: 100%; text-align: center; height: 110px; }
-.social { position: absolute; display: block; left: 550px; top: 15px; width: 350px; overflow: hidden; height: 70px;}
+.social { position: relative; display: block; top: 55px; width: 100%; overflow: hidden; height: 70px; }
.social .twitter,
.social .google,
.social .facebook { position: absolute; display: block; }
-.social .twitter { left: 0px; top: 0px; }
-.social .google { left: 115px; top: 0px; color: #EEE;}
-.social .facebook { left: 0; top: 35px; }
+.social .twitter { left: 200px; top: 0px; }
+.social .google { left: 560px; top: 0px; }
+.social .google * { color: #FFF; }
+.social .facebook { left: 356px; top: 0px; }
-.footer { text-align: center; position: relative; top:40px; }
+.footer { text-align: center; position: relative; top:0; }
.footer ul { margin-bottom: 15px; }
.footer ul li { list-style: none; display: inline; }
.footer a,
View
@@ -10,5 +10,8 @@
%p.contribute
%a{ :href => "http://twitter.com/ejc", :target => "_blank"}= t.credits.contribute + " @ejc"
-
+
+.ad
+ %script{ :type => "text/javascript", :src => "http://pagead2.googlesyndication.com/pagead/show_ads.js"}
+
= partial ("javascripts")
View
@@ -26,6 +26,15 @@
%script{ :type => "text/javascript", :src => "http://use.typekit.com/pvj7jrd.js" }
:javascript
try{Typekit.load();}catch(e){}
+
+ :javascript
+ //<!--
+ google_ad_client = "ca-pub-3092256566794186";
+ /* abetterbrowser.org leaderboard */
+ google_ad_slot = "1094808505";
+ google_ad_width = 728;
+ google_ad_height = 90;
+ //-->
%body
.menu
@@ -68,4 +77,4 @@
%li
%a{:href => "/nl"}= t.menu.dutch
%li
- %a{:href => "/sv"}= t.menu.swedish
+ %a{:href => "/sv"}= t.menu.swedish
View
@@ -1,5 +1,5 @@
= partial ("header")
-
+
.wrapper
%h3= t.main.intro
%h1= t.main.headline
@@ -13,15 +13,6 @@
%a.firefox{ :href => "http://www.firefox.com", :target => "_blank" } Mozilla Firefox
%a.opera{ :href => "http://www.opera.com/download", :target => "_blank" } Opera
.wrapper
- .ad
- :javascript
- google_ad_client = "ca-pub-3092256566794186";
- /* abetterbrowser.org */
- google_ad_slot = "2471952078";
- google_ad_width = 336;
- google_ad_height = 280;
- //-->
-
.meh
%a.icon{ :href => "http://windows.microsoft.com/en-US/internet-explorer/downloads/ie", :target => "_blank" }
%p= t.main.ie_lover
@@ -19,6 +19,4 @@
:javascript
$(document).ready(function(){
$("ul.sf-menu").superfish();
- });
-
-%script{ :type => "text/javascript", :src => "http://pagead2.googlesyndication.com/pagead/show_ads.js"}
+ });

0 comments on commit 33f2a74

Please sign in to comment.