Skip to content

Commit

Permalink
feat(footer): fix position at the bottom (#82)
Browse files Browse the repository at this point in the history
* feat(footer): fix position at the bottom

* del the home page scss

out of use
  • Loading branch information
andreybakanovsky committed Sep 8, 2023
1 parent 86584eb commit 4b8385a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 49 deletions.
9 changes: 7 additions & 2 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,15 @@ $text-strong: hsl(270, 50%, 21%);
}

.is-primary {
background-color: rgb(102, 51, 153) !important ;
color: rgb(102, 51, 153);
background-color: hsl(270, 50%, 40%) !important ;
color: hsl(270, 50%, 40%);
}

.is-light {
color: $text-light !important ;
}

html,
body {
height: 100vh;
}
34 changes: 0 additions & 34 deletions app/assets/stylesheets/home.scss

This file was deleted.

23 changes: 10 additions & 13 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
</head>

<body>
<nav class="navbar is-spaced" role="navigation" aria-label="main navigation">
<div class="container">
<div class="container hero is-fullheight">
<nav class="navbar is-spaced" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<%= link_to root_path, class: "navbar-item" do %>
<%= image_tag 'logo.svg', width: 112, height: 28 %>
Expand Down Expand Up @@ -49,18 +49,15 @@
</div>
</div>
</div>
</div>
</nav>
</nav>

<section class="section">
<div class="container">
<section class="section is-fullheight">
<%= yield %>
</div>
</section>
<footer class="footer">
<div class="container">
Copyright © 2021 WideFix. All rights reserved.
</div>
</footer>
</section>

<footer class="footer is-flex-align-items-flex-end mt-auto">
<%= "Copyright © #{Time.current.year} WideFix. All rights reserved." %>
</footer>
</div>
</body>
</html>

0 comments on commit 4b8385a

Please sign in to comment.