Skip to content

Commit

Permalink
Welcome block closing
Browse files Browse the repository at this point in the history
  • Loading branch information
wyppeter committed Oct 31, 2017
1 parent e8b3d4b commit 357eadb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/javascripts/indexscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,9 @@ $(document).ready(function() {

// Testimonials
setInterval(changeTestimonial, 3000);

// Temporary welcome block
$('#close-welcome').click(function() {
$('#welcome-block').fadeOut(200);
});
});
16 changes: 16 additions & 0 deletions public/stylesheets/indexstyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,28 @@ along with the RDB code. If not, see <http://www.gnu.org/licenses/>.
height: 60px;
}
}
@media (max-width: 400px) {
#welcome-block>p {
font-size: 13px;
}
}
#welcome-block>p {
display: block;
line-height: 20px;
font-weight: bold;
color: #fff;
text-align: center;
margin-right: 25px;
margin-bottom: 0px;
}
#welcome-block>i {
margin: 5px;
width: 10px;
line-height: 10px;
position: absolute;
right: 10px;
top: 10px;
color: #fff;
}

/* General layout */
Expand Down
1 change: 1 addition & 0 deletions views/index.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<div id="welcome-block">
<p>Psst! Welcome to the RDB version 2.0, to be publicly released this week!</p>
<i class="fa fa-times" id="close-welcome"></i>
</div>
<div class="page-wrapper">
<div class="main" id="indexmain">
Expand Down

0 comments on commit 357eadb

Please sign in to comment.