Skip to content

Commit

Permalink
added footer to main profile demo site
Browse files Browse the repository at this point in the history
  • Loading branch information
electric-el committed Aug 18, 2022
1 parent 1c482a7 commit 5ab5793
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<footer id="footer" class="footer">
This website is pure frontend hotness, created in Fepper.
</footer>
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
{{> components-sidebar }}
{{/ homepage? }}
</main>
{{> components-footer }}
11 changes: 10 additions & 1 deletion excludes/profiles/main/source/_styles/bld/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ header {
}
}
article {
min-height: calc(100vh - 21.5rem);
min-height: calc(100vh - 21.5rem - 8.4rem);
padding: 0 1.5rem 2rem 4rem;
width: calc(100vw - 28.8rem);
}
Expand Down Expand Up @@ -205,6 +205,15 @@ article {
right: 0;
}
}
footer {
background-color: #000;
color: #fff;
height: 8.4rem;
padding: 3rem 1.5rem;
position: relative;
text-align: center;
width: 100%;
}
main {
display: flex;
margin: 0 auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ $bp-xl-min = unit($bp-lg-max + 1, px) // 1281px.

// Colors
$black-less-contrast = #363636
$gray-light = #dddddd
$pink = #fae6e6
$white-translucent = rgba(255, 255, 255, 0.95)

// Typography
$font-main = "Fira Sans", sans-serif
Expand All @@ -21,3 +19,4 @@ $header-height = 21.5rem
$nav-submenu-height = 20rem
$nav-width = 28.8rem
$nav-width-small = 25rem
$footer-height = 8.4rem
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
article
min-height: 'calc(100vh - %s)' % $header-height
min-height: 'calc(100vh - %s - %s)' % ($header-height $footer-height)
padding: 0 1.5rem 2rem 4rem
width: 'calc(100vw - %s)' % $nav-width
@media all and (max-width: $bp-md-max)
Expand Down Expand Up @@ -28,3 +28,11 @@ article
transition: right 0.2s linear
&.active
right: 0
footer
background-color: black
color: white
height: $footer-height
padding: 3rem 1.5rem
position: relative
text-align: center
width: 100%

0 comments on commit 5ab5793

Please sign in to comment.