Compare commits

..

4 Commits

Author SHA1 Message Date
Ray Elliott 5a6c031ad1 footer-2-1-1 styling 2020-04-22 11:28:39 +00:00
Ray Elliott c3811c0f47 move footer into component 2020-04-22 11:15:26 +00:00
Ray Elliott d9f381c125 tidy up formatting 2020-04-22 10:55:58 +00:00
Ray Elliott 98ef83b4f5 padding options for .l-section-block 2020-04-21 14:21:39 +00:00
6 changed files with 162 additions and 151 deletions

View File

@ -0,0 +1,47 @@
<div class="l-underlay footer-bg"></div>
<div class="l-wrapper">
<ul class="l-flex-list-row footer__body">
<li class="footer__body-section footer__body-section--m-left-align footer-section">
<h3 class="footer__heading">Let's keep in touch!</h3>
<p>Find us on any of these platforms. We respond in 1-2 business days.</p>
<ul class="l-flex-list-row footer__social-list">
<li><span class="social-icon"></span></li>
<li><span class="social-icon"></span></li>
<li><span class="social-icon"></span></li>
<li><span class="social-icon"></span></li>
</ul>
</li>
<li class="footer__body-section footer__body-section--m-left-align footer__body-section--narrow footer-section">
<h3 class="footer__heading--small footer__heading">Useful Links</h3>
<ul class="l-list-bare">
<li><a class="footer__link" href="#">Link One</a></li>
<li><a class="footer__link" href="#">Link Two</a></li>
<li><a class="footer__link" href="#">Link Three</a></li>
<li><a class="footer__link" href="#">Link Four</a></li>
</ul>
</li>
<li class="footer__body-section footer__body-section--m-left-align footer__body-section--narrow footer-section">
<h3 class="footer__heading--small footer__heading">Other Resources</h3>
<ul class="l-list-bare">
<li><a class="footer__link" href="#">Link One</a></li>
<li><a class="footer__link" href="#">Link Two</a></li>
<li><a class="footer__link" href="#">Link Three</a></li>
<li><a class="footer__link" href="#">Link Four</a></li>
</ul>
</li>
</ul>
<ul class="l-flex-list-row footer__footer">
<li class="footer__term"><a class="footer__link" href="{{ "terms-and-conditions" | relURL }}">Terms and Conditions</a></li>
<li class="footer__term"><a class="footer__link" href="{{ "privacy-policy" | relURL }}">Privacy Policy</a></li>
</ul>
<p class="footer__attr">Copyright &copy; <span id="js-copy-date">2019</span> &dash; <a class="footer__link" rel="nofollow" href="https://rayelliott.dev">rayelliott.dev</a></p>
</div>

View File

@ -4,7 +4,7 @@
<h2 class="section-header">Contact Us</h2> <h2 class="section-header">Contact Us</h2>
<div class="l-section-block no-margin"> <div class="l-section-block no-margin no-pad-top">
<div class="l-wrapper contact-section"> <div class="l-wrapper contact-section">
<p class="h5">Complete this form and we will get back to you within one working day.</p> <p class="h5">Complete this form and we will get back to you within one working day.</p>
<form action="https://mailthis.to/remailthis" method="POST" encType="multipart/form-data"> <form action="https://mailthis.to/remailthis" method="POST" encType="multipart/form-data">
@ -30,7 +30,7 @@
</div> </div>
</div> </div>
<div class="l-section-block no-margin"> <div class="l-section-block no-margin no-pad-top">
<div class="l-wrapper contact-section"> <div class="l-wrapper contact-section">
<h3 class="h4">Remember to Generate Access Token for URL</h3> <h3 class="h4">Remember to Generate Access Token for URL</h3>
<div id="mapbox"></div> <div id="mapbox"></div>

View File

@ -1,40 +1,3 @@
<footer class="footer transition-fade"> <footer class="footer transition-fade">
<div class="l-underlay footer-bg"></div> {{ partial "components/footer/footer-2-1-1.html" . }}
<div class="l-wrapper reduce-padding">
<ul class="l-flex-list-row footer__body">
<li class="footer__body-section footer__body-section--m-left-align footer-section">
<h3 class="footer__heading">Let's keep in touch!</h3>
<p>Find us on any of these platforms. We respond in 1-2 business days.</p>
<ul class="l-flex-list-row footer__social-list">
<li><span class="social-icon"></span></li>
<li><span class="social-icon"></span></li>
<li><span class="social-icon"></span></li>
<li><span class="social-icon"></span></li>
</ul>
</li>
<li class="footer__body-section footer__body-section--m-left-align footer__body-section--narrow footer-section">
<h3 class="footer__heading--small footer__heading">Useful Links</h3>
<ul class="l-list-bare">
<li><a class="footer__link" href="#">Link One</a></li>
<li><a class="footer__link" href="#">Link Two</a></li>
<li><a class="footer__link" href="#">Link Three</a></li>
<li><a class="footer__link" href="#">Link Four</a></li>
</ul>
</li>
<li class="footer__body-section footer__body-section--m-left-align footer__body-section--narrow footer-section">
<h3 class="footer__heading--small footer__heading">Other Resources</h3>
<ul class="l-list-bare">
<li><a class="footer__link" href="#">Link One</a></li>
<li><a class="footer__link" href="#">Link Two</a></li>
<li><a class="footer__link" href="#">Link Three</a></li>
<li><a class="footer__link" href="#">Link Four</a></li>
</ul>
</li>
</ul>
<ul class="l-flex-list-row footer__footer">
<li class="footer__term"><a class="footer__link" href="{{ "terms-and-conditions" | relURL }}">Terms and Conditions</a></li>
<li class="footer__term"><a class="footer__link" href="{{ "privacy-policy" | relURL }}">Privacy Policy</a></li>
</ul>
<p class="footer__attr">Copyright &copy; <span id="js-copy-date">2019</span> &dash; <a class="footer__link" rel="nofollow" href="https://rayelliott.dev">rayelliott.dev</a></p>
</div>
</footer> </footer>

View File

@ -0,0 +1,103 @@
$footer-bp-s: 28em;
$footer-bp-m: 60em;
$footer-attr-padding: $unit-size * 0.5;
.footer {
position: relative;
font-size: 0.9rem;
padding-top: $unit-size * 2;
padding-bottom: $footer-attr-padding;
}
.footer-bg {
background-color: rgba(indigo, 0.5);
}
.footer__term {
margin: 0 0.5em;
}
.footer__attr {
text-align: center;
margin-bottom: 0;
font-size: 0.8em;
}
.footer__body {
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
text-align: center;
margin-bottom: $unit-size * 2;
}
.footer__body-section {
flex: 0 0 100%;
margin-bottom: 1.6rem;
@media (min-width: $footer-bp-s) {
&--narrow {
flex: 0 0 50%;
}
}
@media (min-width: $footer-bp-m) {
flex: 0 0 60%;
margin-bottom: 0;
padding: 0 0.8rem;
&:first-child {
padding-left: 0;
}
&:last-child {
padding-right: 0;
}
&--narrow {
flex: 0 1 20%;
}
&--m-left-align {
text-align: left;
.footer__social-list {
justify-content: left;
}
}
}
}
.footer__footer {
position: relative;
font-size: 0.9em;
padding-top: $footer-attr-padding;
&::before {
content: "";
position: absolute;
width: 100%;
height: 1px;
left: 0;
top: 0;
background-color: currentColor;
opacity: 0.2;
}
}
.footer__heading {
font-size: 2.25em;
&--small {
@include font-body(bold);
font-size: 1em;
text-transform: uppercase;
}
}
.footer__social-list {
font-size: 3em;
justify-content: center;
}

View File

@ -1,111 +1 @@
$footer-bp-s: 28em; @import "components/footer/footer-2-1-1";
$footer-bp-m: 60em;
.footer {
position: relative;
font-size: 0.9rem;
}
.footer-bg {
background-color: rgba(indigo, 0.5);
}
.footer-section {
background-color: rgba(indigo, 0.5);
}
.footer__term {
margin: 0 0.5em;
}
.footer__attr {
text-align: center;
margin-bottom: 0;
font-size: 0.8em;
}
.footer__body {
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
text-align: center;
}
.footer__body-section {
flex: 0 0 100%;
margin-bottom: 1.6rem;
@media (min-width: $footer-bp-s) {
&--narrow {
flex: 0 0 50%;
}
}
@media (min-width: $footer-bp-m) {
flex: 0 0 60%;
margin-bottom: 0;
padding: 0 0.8rem;
&:first-child {
padding-left: 0;
}
&:last-child {
padding-right: 0;
}
&--narrow {
flex: 0 1 20%;
}
&--m-left-align {
text-align: left;
.footer__social-list {
justify-content: left;
}
}
}
}
//
// reduce padding bottom
.reduce-padding {
padding-bottom: 8px;
@media (min-width: $bp-m) {
padding-bottom: 16px;
}
}
.footer__footer {
position: relative;
font-size: 0.9em;
margin-top: 2.4rem;
&::before {
content: "";
position: absolute;
width: 100%;
height: 1px;
left: 0;
top: -1.2rem;
background-color: currentColor;
opacity: 0.2;
}
}
.footer__heading {
font-size: 2.25em;
&--small {
@include font-body(bold);
font-size: 1em;
text-transform: uppercase;
}
}
.footer__social-list {
font-size: 3em;
justify-content: center;
}

View File

@ -115,6 +115,14 @@
max-width: initial; max-width: initial;
} }
&.no-pad-top {
padding-top: 0;
}
&.no-pad-bottom {
padding-bottom: 0;
}
&.no-margin, &.no-margin,
> p:last-child, > p:last-child,
> .l-wrapper > p:last-child { > .l-wrapper > p:last-child {