Footer

<footer class="footer" role="contentinfo">
    <div class="footer-top">
        <div class="university-info">
            <div class='college-logo'>

                <picture class="image lehigh-logo">
                    <a href="https://www.lehigh.edu" class="logo__link">
                        <img class="web" src="/images/lehigh-logo.svg" alt="Lehigh University logo" />
                        <img class="print" src="" alt="Lehigh University logo" />
                        <span class="sr-only">Go to homepage</span>
                    </a>
                </picture>
                <div class="college-name">
                    <a href="/">College of<br />Business</a>
                </div>
            </div>
            <address class="address">Business Innovation Building | 201 E. Packer Avenue | Bethlehem, PA 18015 USA</address>
            <address class="address">Rauch Business Center | 621 Taylor Street | Bethlehem, PA 18015 USA</address>
        </div>
        <!-- end university-info -->
        <div class="social-media">
            <ul class="sm-icons">

                <li>
                    <a href="https://www.instagram.com/lehighubusiness/" title="Like us on Instagram">
                        <i class="fab fa-instagram"></i>
                        <span class="sr-only">Instagram</span>
                    </a>
                </li>
                <li>
                    <a href="https://www.facebook.com/lehighubusiness/" title="Like us on Facebook">
                        <i class="fab fa-facebook-f"></i>
                        <span class="sr-only">Facebook</span>
                    </a>
                </li>
                <li>
                    <a href="https://www.linkedin.com/school/lehigh-college-of-business/" title="Like us on LinkedIn">
                        <i class="fab fa-linkedin"></i>
                        <span class="sr-only">LinkedIn</span>
                    </a>
                </li>
                <li>
                    <a href="https://www.youtube.com/channel/UCaGpjEtAnNgwbL11_QNGNFw" title="Like us on YouTube">
                        <i class="fab fa-youtube"></i>
                        <span class="sr-only">YouTube</span>
                    </a>
                </li>
            </ul>
        </div>
        <!-- end social-media -->
    </div>
    <!-- footer-top -->
    <div class="footer-bottom">
        <!-- LEHIGH FOOTER INCLUDED VIA SCRIPT DO NOT REMOVE -->
        <script type="text/javascript" src="//www.lehigh.edu/~inltswms/include/footer/lu-footer-min.js"></script>
    </div>
    <!-- end footer-bottom -->
    <button id="back_top">
        <a title="Back to top" href="#">&#10148;</a>
    </button>
</footer>
<footer class="footer" role="contentinfo">
	<div class="footer-top">
		<div class="university-info">
			<div class='college-logo'>
				{% block branding %}
					{# The `render` tag would be better here than `include()`
					                    because the former uses context from the included
					                    component, but `render` is Fractal-only, and using
					                    undefined tags (e.g., in a CMS like Drupal without
					                    `render`) prevents Twig compilation, even if it never
					                    gets called. If only Fractal had used a function! They
					                    are much easier to work with than tags. #}
					{% include "@branding" with branding only %}
				{% endblock branding %}
			</div>
			<address class="address">Business Innovation Building | 201 E. Packer Avenue | Bethlehem, PA 18015 USA</address>
			<address class="address">Rauch Business Center | 621 Taylor Street | Bethlehem, PA 18015 USA</address>
		</div>
		<!-- end university-info -->
		<div class="social-media">
			<ul
				class="sm-icons">
				{# Embed the social media data here instead of Fractal
				                context so that the CMS doesn't need to duplicate it. #}
				{% for fa_icon in [{
                        name: 'Instagram',
                        class: 'fab fa-instagram',
                        link: 'https://www.instagram.com/lehighubusiness/',
                    }, {
                        name: 'Facebook',
                        class: 'fab fa-facebook-f',
                        link: 'https://www.facebook.com/lehighubusiness/',
                    }, {
                        name: 'LinkedIn',
                        class: 'fab fa-linkedin',
                        link: 'https://www.linkedin.com/school/lehigh-college-of-business/',
                    }, {
                        name: 'YouTube',
                        class: 'fab fa-youtube',
                        link: 'https://www.youtube.com/channel/UCaGpjEtAnNgwbL11_QNGNFw'
                    }]
                %}
					<li>
						<a href="{{ fa_icon.link }}" title="Like us on {{ fa_icon.name }}">
							<i class="{{ fa_icon.class }}"></i>
							<span class="sr-only">{{ fa_icon.name }}</span>
						</a>
					</li>
				{% endfor %}
			</ul>
		</div>
		<!-- end social-media -->
	</div>
	<!-- footer-top -->
	<div
		class="footer-bottom">
		<!-- LEHIGH FOOTER INCLUDED VIA SCRIPT DO NOT REMOVE -->
		<script type="text/javascript" src="//www.lehigh.edu/~inltswms/include/footer/lu-footer-min.js"></script>
	</div>
	<!-- end footer-bottom -->
	<button id="back_top">
		<a title="Back to top" href="#">&#10148;</a>
	</button>
</footer>
{
  "branding": {
    "site_logo": "/images/lehigh-logo.svg",
    "site_name": "College of<br />Business",
    "url": "/"
  }
}
  • Content:
    .footer {
      background-color: $lehigh-brown;
      padding: $space-double;
    
      @media only screen and (min-width: $break-desktop) {
        padding: $space-double $space-triple;
      }
    
      &-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 0 $space-and-one-half 0;
        padding: 0 0 $space-and-one-half 0;
        border-bottom: 1px solid $gold;
    
        @media only screen and (min-width: $break-desktop) {
          flex-direction: row;
          flex-wrap: nowrap;
          align-items: flex-end;
        }
    
        .university-info {
          @media only screen and (max-width: $break-desktop) {
            order: 2;
          }
          flex-grow: 1;
          display: flex;
          flex-direction: column;
    
          .college-logo {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
          }
    
          .address {
            color: $white;
            font-size: 0.875rem;
            font-style: normal;
            margin: $space-one-half 0 0 0;
          }
        }
    
        .social-media {
          @media only screen and (max-width: $break-desktop) {
            order: 1;
            margin: 0 0 $space 0;
          }
          .sm-icons {
            @include reset-list-nav;
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
    
            li {
              margin: 0 $space-one-third;
              background-color: $white;
              height: 35px;
              width: 35px;
              padding: $space-one-half;
              border-radius: 35px;
              border: 1px solid $lehigh-brown;
              display: flex;
              align-content: center;
              justify-content: center;
              -webkit-transition: all 0.3s;
              -moz-transition: all 0.3s;
              -ms-transition: all 0.3s;
              -o-transition: all 0.3s;
              transition: all 0.3s;
    
              @media only screen and (min-width: $break-tablet) {
                height: 50px;
                width: 50px;
                border-radius: 50px;
                margin: 0 $space-one-half;
              }
    
              &:first-of-type {
                margin: 0 $space-one-half 0 0;
              }
    
              &:last-of-type {
                margin: 0 0 0 $space-one-half;
              }
    
              &:hover,
              &:focus,
              &:focus-within {
                background-color: $lehigh-brown;
                border: 1px solid $white;
    
                a {
                  color: $white;
                }
              }
    
              a {
                color: $lehigh-brown;
                font-size: 1.25rem;
                line-height: 1;
                -webkit-transition: all 0.3s;
                -moz-transition: all 0.3s;
                -ms-transition: all 0.3s;
                -o-transition: all 0.3s;
                transition: all 0.3s;
    
                @media only screen and (min-width: $break-tablet) {
                  font-size: 2rem;
                }
    
                &:hover,
                &:focus,
                &:focus-within {
                  color: $white;
                }
              }
            }
          }
        }
      }
    
      #fcb {
        li {
          border-right: 1px solid $white !important;
          font-size: 0.75rem;
          color: $white;
    
          &.last {
            border-right: 0 !important;
          }
    
          a {
            font-size: 0.75rem;
            color: $white;
    
            &:hover,
            &:focus {
              text-decoration: underline;
              color: $white;
            }
          }
        }
    
        ul {
          &:last-of-type {
            margin: $space-one-half 0 0 0 !important;
          }
        }
      }
    }
    
    #back_top {
      width: 40px;
      line-height: 40px;
      overflow: hidden;
      z-index: 999;
      display: none;
      cursor: pointer;
      -moz-transform: rotate(270deg);
      -webkit-transform: rotate(270deg);
      -o-transform: rotate(270deg);
      -ms-transform: rotate(270deg);
      transform: rotate(270deg);
      position: fixed;
      bottom: 25px;
      right: 10%;
      background-color: $lehigh-brown;
      color: $white;
      border: 1px solid $white;
      text-align: center;
      font-size: 30px;
      text-decoration: none;
      box-shadow: 0 0 55px 1px $grey_darkest;
      -webkit-border-radius: 5px;
      -moz-border-radius: 5px;
      border-radius: 5px;
      -webkit-transition: all .4s ease;
      transition: all .4s ease;
      padding: 3px;
    
      @media (min-width: $break-desktop) {
        width: 60px;
        line-height: 60px;
      }
    
      a {
        color: $white;
        -webkit-transition: all .4s ease;
        transition: all .4s ease;
      }
    
      &:hover,
      &:focus {
        background-color: $white;
        color: $lehigh-brown;
    
        a {
          color: $lehigh-brown;
        }
      }
    }
    
    
  • URL: /components/raw/footer/footer.scss
  • Filesystem Path: components/03-sections/02-footer/footer.scss
  • Size: 4.3 KB

No notes defined.