-
Notifications
You must be signed in to change notification settings - Fork 0
Footer #158
base: master
Are you sure you want to change the base?
Footer #158
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,53 +7,42 @@ | |
| {# | ||
| * Renders a standard or simplified footer | ||
| #} | ||
| {% macro footer(simple=false, class=null, id=null, phone_number='888–498–0003') %} | ||
| {% macro footer(data, simple=false, class=null, id=null) %} | ||
| <footer class="footer{% if simple %} footer--simple{% endif %}{% if class %} {{ class }}{% endif %}"{% if id %} id="{{ id }}"{% endif %}> | ||
| <div class="footer-top r-inner"> | ||
| {{ caller() }} | ||
| </div> | ||
| <div class="footer-bottom"> | ||
| <nav class="footer-nav r-inner"> | ||
| <div class="footer-nav-group footer-nav-group--bottom"> | ||
| <span class="footer-nav-country-icons"> | ||
| <a class="footer-nav-group-link footer-nav-group-link--country" href="?country_id=49"> | ||
| {{ icon('usa', size='small') }} | ||
| <div class="footer-bottom-inner r-inner"> | ||
|
|
||
| <span class="footer-bottom-item site-copyright"> | ||
| © | ||
| <script>document.write(new Date().getFullYear());</script> | ||
| </span> | ||
|
|
||
| <span class="site-legal-links footer-bottom-item"> | ||
| <a class="" href="https://casper.com/privacy">{{ data.privacy }}</a> | ||
| <a class="" href="https://casper.com/terms">{{ data.terms }}</a> | ||
| </span> | ||
|
|
||
| <span class="site-address h-card footer-bottom-item"> | ||
| <span class="p-street-address">{{ data.address }}</span> | ||
|
|
||
| {% if not simple %} | ||
| <span class="site-address-meta"> | ||
| <a class="footer-bottom-item" href="tel:{{ data.phone_number|replace('-', '') }}"> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not so hot on
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we change
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree, no positional names in classes please.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Footer bottom seems a little redundant as well
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed re positional names. I'd like to find a name that reflects the On Mon, Jun 13, 2016 at 11:29 AM, Rob Wierzbowski notifications@github.com
|
||
| {{ icon('phone', size='x-small') }} | ||
| <span class="p-tel">{{ data.phone_number }}</span> | ||
| </a> | ||
| <a class="footer-nav-group-link footer-nav-group-link--country" href="?country_id=204"> | ||
| {{ icon('canada', size='small') }} | ||
|
|
||
| <a class="footer-bottom-item" target="_blank" href="/help"> | ||
| {{ icon('envelope', size='x-small') }} | ||
| <span class="u-url">{{ data.contact }}</span> | ||
| </a> | ||
| </span> | ||
| <div class="footer-nav-group-text--mobile"> | ||
| <span class="footer-nav-group-text--bottom"> | ||
| © | ||
| <script> | ||
| document.write(new Date().getFullYear()); | ||
| </script> | ||
| </span> | ||
| <span class="footer-nav-group-text--bottom footer-nav-group-text--address"> | ||
| 45 Bond St. New York, NY 10012 | ||
| </span> | ||
| <span> | ||
| <a class="footer-nav-group-link footer-nav-group-text--bottom" href="https://casper.com/privacy">Privacy</a> | ||
| <a class="footer-nav-group-link footer-nav-group-text--bottom" href="https://casper.com/terms">Terms</a> | ||
| </span> | ||
| </div> | ||
| </div> | ||
|
|
||
| {% if not simple %} | ||
| <div class="footer-nav-group footer-nav-group--right"> | ||
| <a class="footer-nav-group-link footer-nav-group-link--contact footer-nav-group-link--contact-phone" href="tel:1{{ phone_number|replace('-', '') }}"> | ||
| {{ icon('phone', size='x-small') }} | ||
| <span class="footer-nav-group-text--bottom footer-nav-group-text--contact">{{ phone_number }}</span> | ||
| </a> | ||
| <a target="_blank" class="footer-nav-group-link footer-nav-group-link--contact" href="/help"> | ||
| {{ icon('envelope') }} | ||
| <span class="footer-nav-group-text--bottom footer-nav-group-text--contact">CONTACT US</span> | ||
| </a> | ||
| </div> | ||
| {% endif %} | ||
|
|
||
| </nav> | ||
| {% endif %} | ||
| </span> | ||
| </div> | ||
| </div> | ||
| </footer> | ||
| {% endmacro %} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's a better class to replace
footer-bottom? I like the feel of the thesite-classes to describe the content, but it now feels disconnected from its parent class.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a huge fan of class names that describe position, since the positions could theoretically be made incorrect in certain media queries via CSS.
footer-bottomseems like navigation - could this befooter-nav?