fix position of homepage top element

This commit is contained in:
Lee Lawlor
2014-05-22 12:50:16 -04:00
parent f22bfd1cbc
commit 1be5325040
7 changed files with 119 additions and 17 deletions

View File

@ -10,10 +10,11 @@ code { word-wrap: break-word; white-space: normal; }
.tablesorter thead tr th:hover i { visibility: visible; }
/* homepage */
#home-motto { font-size: 2em; padding-top: 100px; }
#home-motto { font-size: 2em; }
#home-motto h1 { font-size: 2em; color: #fff; }
#home-top { height: 500px; width: 100%; background: url('<%= asset_path("thingspeak_stars_bg.jpg") %>') no-repeat; background-size: 100% 500px; text-align: center; color: #fff; }
#home-top { display: table; height: 500px; width: 100%; background: url('<%= asset_path("thingspeak_stars_bg.jpg") %>') no-repeat; background-size: 100% 500px; text-align: center; color: #fff; }
#home-top a { color: #fff; }
#home-top-center { display: table-cell; vertical-align: middle; position: relative; top: -20px; }
.panel-home { min-height: 180px; }
/* misc */

View File

@ -1,20 +1,22 @@
<div id="home-top">
<div id="home-motto">
<h1><%= t(:home_motto) %></h1>
<%= t(:home_tagline) %>
</div>
<div id="home-top-center">
<div id="home-motto">
<h1><%= t(:home_motto) %></h1>
<%= t(:home_tagline) %>
</div>
<br><br>
<div>
<%= link_to t(:get_started), new_user_registration_path, :class => 'btn btn-danger btn-lg' %>
<br><br>
<a href="/docs" target="_blank"><%= t(:documentation) %></a>
&nbsp; | &nbsp;
<a href="http://community.thingspeak.com/forum/" target="_blank"><%=t(:support)%></a>
&nbsp; | &nbsp;
<a href="https://github.com/iobridge/thingspeak" target="_blank">GitHub</a>
<div>
<%= link_to t(:get_started), new_user_registration_path, :class => 'btn btn-danger btn-lg' %>
<br><br>
<a href="/docs" target="_blank"><%= t(:documentation) %></a>
&nbsp; | &nbsp;
<a href="http://community.thingspeak.com/forum/" target="_blank"><%=t(:support)%></a>
&nbsp; | &nbsp;
<a href="https://github.com/iobridge/thingspeak" target="_blank">GitHub</a>
</div>
</div>
</div>