Skip to content

Commit

Permalink
Merge pull request #88 from AaronLindsayDaisy/landing
Browse files Browse the repository at this point in the history
Landing
  • Loading branch information
aaronwiggins committed Jul 23, 2015
2 parents b092972 + 13e42d9 commit 45d3ea2
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 28 deletions.
7 changes: 3 additions & 4 deletions app/assets/stylesheets/concepts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,10 @@
width: 80%;
margin: 0.5em auto;
padding: 0.5em;
font-size: 1em;
font-size: 2em;
line-height: 1.6em;
background-color: #F9F9F9;
border: 0.1em solid #323232;
border-radius:5px;
border-radius: 5px;
text-align: center;
}


Expand Down
28 changes: 14 additions & 14 deletions app/assets/stylesheets/landing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,39 @@
#landing {
/*position: relative;*/
z-index: 1;
padding: 3.5em;
}

#bg {
background-image: image-url("discovery-crop.jpg");
width: 100%;
min-height: 50vh;
position: relative;
padding: 5% 2em;
}

#bg:before {
background-image: image-url("discovery-crop.jpg");
background-position: bottom left;
background-size: cover;
height: 102vh;
margin-top: -14.5em;
opacity: 0.2;
position: fixed;
content: ' ';
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: -5;
bottom: 0;
z-index: -1;
}

/*hero text*/

.landing-intro {
margin: 1em auto;
width: 100%;
text-align: center;
}

.landing-logo {
padding-top: 0.5em;
font-family: 'Chelsea Market', sans-serif;
font-size: 5.5em;
margin: 0 auto;
width: 32%;
color: #323232;
}

Expand All @@ -42,14 +44,14 @@
color: #323232;
margin: 0.2em auto;
font-size: 2em;
width: 17%;
font-weight: bold;
}

.landing-search {
margin: 1em auto;
width: 25em;
position: relative;
display: inline-block;
}

#landing-search-form {
Expand Down Expand Up @@ -87,8 +89,6 @@
background-color: #F2F3F4;
border: 1px solid #D6D6D6;
clear: both;
margin-top: 12em;
position: fixed;
}

.suggested-container {
Expand Down
2 changes: 1 addition & 1 deletion app/views/concepts/concept_tree.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $(function() {
</script>

<div class="concept-tree-description">
This Concept Tree connects one concept to the next based on approximate complexity. Experiments at the top of the tree are the most appropriate for younger kids, while the ones at the bottom of the tree are more geared toward older children. With that said, we firmly believe, with the help of an adult, every experiment here can enrich a child of any age.
Concepts ordered from least to most complex
</div>

<span class="container">
Expand Down
19 changes: 10 additions & 9 deletions app/views/experiments/landing_page.html.erb
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<div id="landing">
<div id="bg"></div>
<div class="landing-intro">
<h1 class="landing-logo">stempirical</h1>
<div id="bg">
<div class="landing-intro">
<h1 class="landing-logo">stempirical</h1>

<p class="stempirical-tagline">share the wonder</p>
<div class="landing-search">
<%= form_tag experiments_path, :method => "get", id: "landing-search-form" do %>
<%= text_field_tag "query", params[:query], placeholder: "Search Experiments", class: "landing-exp-search" %>
<button class="fa fa-search landing-fa-search"></button>
<% end %>
<p class="stempirical-tagline">share the wonder</p>
<div class="landing-search">
<%= form_tag experiments_path, :method => "get", id: "landing-search-form" do %>
<%= text_field_tag "query", params[:query], placeholder: "Search Experiments", class: "landing-exp-search" %>
<button class="fa fa-search landing-fa-search"></button>
<% end %>
</div>
</div>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@
</header>

<div class="main-content">
<% if notice || alert %>
<div class="messages">
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
</div>
<% end %>
<%= yield %></div>
</body>
</html>

0 comments on commit 45d3ea2

Please sign in to comment.