diff --git a/app/assets/css/main.css.less b/app/assets/css/main.css.less index 3e04897..a733a21 100644 --- a/app/assets/css/main.css.less +++ b/app/assets/css/main.css.less @@ -1,54 +1,30 @@ @import "./lib/bootstrap.less"; -/* Override some defaults */ -html, body { - background-color: #eee; -} - body { - padding-top: 40px; /* 40px to make the container go all the way to the bottom of the topbar */ -} - -.container > footer p { - text-align: center; /* center align it with the container */ -} -.container { - width: 820px; /* downsize our container to make the content feel a bit tighter and more cohesive. NOTE: this removes two full columns from the grid, meaning you only go to 14 columns and not 16. */ -} - -/* The white background content wrapper */ -.content { - background-color: #fff; - padding: 20px; - margin: 0 -20px; /* negative indent the amount of the padding to maintain the grid system */ - -webkit-border-radius: 0 0 6px 6px; - -moz-border-radius: 0 0 6px 6px; - border-radius: 0 0 6px 6px; - -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15); - -moz-box-shadow: 0 1px 2px rgba(0,0,0,.15); - box-shadow: 0 1px 2px rgba(0,0,0,.15); -} - -/* Page header tweaks */ -.page-header { - background-color: #f5f5f5; - padding: 20px 20px 10px; - margin: -20px -20px 20px; -} - -/* Styles you shouldn't keep as they are for displaying this base example only */ -.content .span10, .content .span4 { - min-height: 500px; -} - -/* Give a quick and non-cross-browser friendly divider */ -.content .span4, .topic-bar { - margin-left: 0; - padding-left: 19px; - border-left: 1px solid #eee; -} - -.topbar .btn { - border: 0; + padding-top: 60px; + padding-bottom: 40px; +} + +@import "./lib/responsive.less"; + +.jumbo { + background-color: @heroUnitBackground; + background-image: url("/images/grey.png"); + background-repeat: repeat; + + .container(); + padding-top: 40px; + padding-bottom: 40px; + margin-bottom: 30px; + + .border-radius(6px); + h1 { + margin-bottom: 0; + font-size: 60px; + line-height: 1; + color: @heroUnitHeadingColor; + letter-spacing: -1px; + } + } diff --git a/app/assets/js/home.js b/app/assets/js/home.js new file mode 100644 index 0000000..627f36a --- /dev/null +++ b/app/assets/js/home.js @@ -0,0 +1,10 @@ + +$(document).ready(function() { + $("#go").submit(function() { + var val = $("#topic").val() + if(val.length > 0) { + window.location = "/topics/" + val; + } + return false; + }); +}); diff --git a/app/views/home.hbs b/app/views/home.hbs index 755791f..8f5918f 100644 --- a/app/views/home.hbs +++ b/app/views/home.hbs @@ -1,24 +1,42 @@ -