Skip to content

Commit

Permalink
added about this site text hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-benoit committed Oct 14, 2016
1 parent 6e0f9aa commit 731c094
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
9 changes: 8 additions & 1 deletion app/assets/stylesheets/pages/_home.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
.vertically-align {
min-height: 90vh;
height: 95vh;
display: flex;
align-items: center;
}
#home {
padding-top: 120px;

h1 {
margin-top: 16px;
margin-bottom: 50px;
Expand Down Expand Up @@ -65,5 +67,10 @@
margin-top: 15px;
color: #7B7B7B;
}

#about-the-site {
opacity: 0;
margin-top: 25px;
}
}

19 changes: 10 additions & 9 deletions app/views/pages/home.html.erb
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
<div class="top-line"></div>
<div class="vertically-align">
<div id="home" class="container">
<div class="row">
<div class="col-xs-12 col-md-6 col-md-offset-3 text-center">
<%= image_tag("gitlang.png") %>
<h1>Github Languages</h1>
<div class='top-line'></div>
<div class='vertically-align'>
<div id='home' class='container'>
<div class='row'>
<div class='col-xs-12 col-md-6 col-md-offset-3 text-center'>
<%= image_tag('gitlang.png') %>
<h1>GitHub Languages</h1>
<div class='search-box'>
<form class='search-form' action='/user' method='get'>
<input class='form-control' placeholder='Github Username' type='text' name="user">
<input class='form-control' placeholder='Github Username' type='text' name='user'>
<button class='btn btn-link search-btn'>
<i class='fa fa-search'></i>
</button>
</form>
</div>
<p id="text-below-search">Discover your favorite programming languages. <a href="#">About this page</a>.</p>
<p>Discover your favorite programming languages. <a href='#'>About this site</a>.</p>
<p id='about-the-site'>This website is built by <a href='#'>Alex</a>. It finds your favorite programming languages using your <a href='#'>GitHub</a> username. You can find out more <a href='#'>here</a>.</p>
</div>
</div>
</div>
Expand Down

0 comments on commit 731c094

Please sign in to comment.