7-rows edit

events  edit

Upcoming AS Events

Aut et facilis nostrum nostrum sunt. Mollitia quis delectus facilis ducimus suscipit. Temporibus quo nisi perspiciatis id eum placeat aut aut eum corrupti.

Loading

Loading...

Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News

Upcoming AS Events

Aut et facilis nostrum nostrum sunt. Mollitia quis delectus facilis ducimus suscipit. Temporibus quo nisi perspiciatis id eum placeat aut aut eum corrupti.

Loading

Loading...

See all events

Upcoming AS Events

Aut et facilis nostrum nostrum sunt. Mollitia quis delectus facilis ducimus suscipit. Temporibus quo nisi perspiciatis id eum placeat aut aut eum corrupti.

Loading

Loading...

See all events

White Theme

Aut et facilis nostrum nostrum sunt. Mollitia quis delectus facilis ducimus suscipit. Temporibus quo nisi perspiciatis id eum placeat aut aut eum corrupti.

Loading

Loading...

See all events

All Griffin Orientation Events

Loading

No events currently available.

See all events
Copy
Edit
<!-- components/7-rows/events.php --> <!-- JS TESTS --> <!-- <h1 style="text-align: center; font-size: 24px; margin: 20px; color: black;">First 5 rows are feed pull tests</h1> --> <?php // check if $isRow is set if (!isset($isRow)) { $isRow = true; } if ($isRow) { function outputEventsLoadingCode($num) { $loadingCode = ' <li class="wm-image-card h-theme-card EventRow__card wm-slideshow__slide"> <div class="wm-image-card__image-section EventRow__image-section"> <div class="wm-image-card__image-wrapper EventRow__image-wrapper"> <img alt="" class="wm-image-card__image EventRow__image" src="https://www.wm.edu/images/default_cypher_background.jpg"> </div> </div> <div class="wm-image-card__text-section EventRow__text-section"> <div class="EventRow__eventMetadata"> <span class="EventRow__eventDate"></span> <span class="EventRow__eventTime"></span> </div> <h4 class="EventRow__eventTitle"><a class="EventRow__eventUrl" href="">Loading...</a></h4> <div class="wm-row__moreButton EventRow__eventButton" href="" target="#linktarget">Learn more</div> </div> </li>'; echo '<span class="sr-only">Loading</span> <ul class="wm-slideshow__slides wm-cards h-theme-cards EventRow__cards">'; for ($i = 0; $i < $num; $i++) { echo $loadingCode; } echo '</ul>'; } } ?> <!-- AS: ALL EVENTS --> <section class="page-theme-wrapper h-theme-green"> <div class="wm-row EventRow h-theme-green js-event-row -loading" data-id="aidoagdkjldsad" data-feed-type="allevents" data-calendar="as" id="feedContent-WM-Events-aidoagdkjldsad"> <div aria-labelledby="slideshow-heading" class="wm-slideshow wm-row__mainWrapper" role="group"> <h3 class="wm-row__title EventRow__title" id="slideshow-heading ">Upcoming AS Events</h3> <div class="wm-row__intro-text EventRow__intro-text"> <p>Aut et facilis nostrum nostrum sunt. Mollitia quis delectus facilis ducimus suscipit. Temporibus quo nisi perspiciatis id eum placeat aut aut eum corrupti.</p> </div> <div class="wm-slideshow__track EventRow__slideshow-track"> <?php if ($isRow) { outputEventsLoadingCode(4); } ?> </div> <div class="wm-slideshow__dots EventRow__slideshow-dots"> </div> <div class="EventRow__message h-theme-card"> <p>Loading...</p> </div> <a class="wm-row__moreButton EventRow__moreButton" href="">Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News Mo' News</a> </div> </div> </section> <!-- AS: ALL EVENTS --> <section class="page-theme-wrapper h-theme-silver"> <div class="wm-row EventRow h-theme-green js-event-row -loading" data-id="aidoagdkjldsad" data-feed-type="allevents" data-calendar="as" id="feedContent-WM-Events-aidoagdkjldsad"> <div aria-labelledby="slideshow-heading" class="wm-slideshow wm-row__mainWrapper" role="group"> <h3 class="wm-row__title EventRow__title" id="slideshow-heading ">Upcoming AS Events</h3> <div class="wm-row__intro-text EventRow__intro-text"> <p>Aut et facilis nostrum nostrum sunt. Mollitia quis delectus facilis ducimus suscipit. Temporibus quo nisi perspiciatis id eum placeat aut aut eum corrupti.</p> </div> <div class="wm-slideshow__track EventRow__slideshow-track"> <?php if ($isRow) { outputEventsLoadingCode(4); } ?> </div> <div class="wm-slideshow__dots EventRow__slideshow-dots"> </div> <div class="EventRow__message h-theme-card"> <p>Loading...</p> </div> <a class="EventRow__moreButton" href="">See all events</a> </div> </div> </section> <!-- AS: UPCOMING EVENTS --> <section class="page-theme-wrapper h-theme-green"> <div class="wm-row EventRow h-theme-silver js-event-row -loading" data-id="ER163q426134142ff784" data-feed-type="upcomingevents" data-calendar="as" id="feedContent-WM-Events-ER163q426134142ff784"> <div aria-labelledby="slideshow-heading" class="wm-slideshow wm-row__mainWrapper" role="group"> <h3 class="wm-row__title EventRow__title" id="slideshow-heading ">Upcoming AS Events</h3> <div class="wm-row__intro-text EventRow__intro-text"> <p>Aut et facilis nostrum nostrum sunt. Mollitia quis delectus facilis ducimus suscipit. Temporibus quo nisi perspiciatis id eum placeat aut aut eum corrupti.</p> </div> <div class="wm-slideshow__track EventRow__slideshow-track"> <?php if ($isRow) { outputEventsLoadingCode(4); } ?> </div> <div class="wm-slideshow__dots EventRow__slideshow-dots"> </div> <div class="EventRow__message h-theme-card"> <p>Loading...</p> </div> <a class="EventRow__moreButton" href="">See all events</a> </div> </div> </section> <!-- AS: UPCOMING EVENTS --> <section class="page-theme-wrapper h-theme-white"> <div class="wm-row EventRow h-theme-silver js-event-row -loading" data-id="askdghadskioasiurewu" data-feed-type="upcomingevents" data-calendar="as" id="feedContent-WM-Events-askdghadskioasiurewu"> <div aria-labelledby="slideshow-heading" class="wm-slideshow wm-row__mainWrapper" role="group"> <h3 class="wm-row__title EventRow__title" id="slideshow-heading ">White Theme</h3> <div class="wm-row__intro-text EventRow__intro-text"> <p>Aut et facilis nostrum nostrum sunt. Mollitia quis delectus facilis ducimus suscipit. Temporibus quo nisi perspiciatis id eum placeat aut aut eum corrupti.</p> </div> <div class="wm-slideshow__track EventRow__slideshow-track"> <?php if ($isRow) { outputEventsLoadingCode(4); } ?> </div> <div class="wm-slideshow__dots EventRow__slideshow-dots"> </div> <div class="EventRow__message h-theme-card"> <p>Loading...</p> </div> <a class="EventRow__moreButton" href="">See all events</a> </div> </div> </section> <!-- ORIENTATAIONGRIFFIN: UPCOMING EVENTS --> <div class="vims"> <section class="page-theme-wrapper h-theme-green"> <div class="wm-row EventRow h-theme-green js-event-row -loading" data-id="ER2ff784" data-feed-type="upcomingevents" data-calendar="orientationgriffin" id="feedContent-WM-Events-ER2ff784"> <div aria-labelledby="slideshow-heading" class="wm-slideshow wm-row__mainWrapper" role="group"> <h3 class="wm-row__title EventRow__title" id="slideshow-heading ">All Griffin Orientation Events</h3> <div class="wm-slideshow__track EventRow__slideshow-track"> <?php if ($isRow) { outputEventsLoadingCode(4); } ?> </div> <div class="wm-slideshow__dots EventRow__slideshow-dots"> </div> <div class="EventRow__message h-theme-card"> <p>No events currently available.</p> </div> <a class="EventRow__moreButton" href="">See all events</a> </div> </div> </section> </div> <!-- Uses wm/js/events-row-js.js --> <!-- events-row-js calls slideshow init (from wm-row-slideshow-js) after feed pull --> <script src="<?php echo $base_url; ?>/js/event-row-js.js" type="text/javascript"> </script> <script src="<?php echo $base_url; ?>/js/wm-row-slideshow-js.js" type="text/javascript"></script> <script> // use this if feeds are commented out // document.addEventListener("DOMContentLoaded", function() { // initWMRowSlideshow(); // }); </script>
Copy
Copy
Edit
/* scss/7-rows/_events.scss */ //====================================================================== // EVENTS ROW //====================================================================== .EventRow { // remove side padding @include wm-row__noSidePadding(); // overwrite .wm-image-card styles &__card { // gradient that covers bottom of long titles &:after { position: absolute; z-index: 2; bottom: 0; left: 0; width: 100%; height: 30px; content: ""; background: linear-gradient( 0deg, rgba(var(--theme-base-rgb-color), 1) 50%, rgba(var(--theme-base-rgb-color), 0) 100% ); } } &__image-section { transition: flex-shrink 200ms ease-in-out; transition: flex 0.2s ease-in-out; // make image area taller to account for static hover state on mobile aspect-ratio: 900 / 668; @include breakpoint($image-card-mobile-breakpoint) { aspect-ratio: 1000 / 668; } } &__image-wrapper { top: -9px; @include breakpoint($image-card-mobile-breakpoint) { top: -3px; } } &__image { image-rendering: auto; } &__text-section { overflow: visible; padding: 14px kspaces(sm); margin: 0; flex-basis: toRem(153); max-height: 153px; z-index: 1; // gets everything ready to move up on hover > *:not(.EventRow__eventButton) { position: relative; top: 0px; transition: $transition-default; } // background that gets taller (by adding border) on hover // this workaround is necessary to overlap the image on hover // when image height is variable due to adjusting for aspect ratio &:before { content: ""; position: absolute; bottom: -30px; left: 0; width: 100%; height: 153px; z-index: 0; transition: $transition-default; background-color: var(--theme-base-color); border-top: 30px solid var(--theme-base-color); } } // Event Content elements &__eventTitle, &__eventTitle a { margin-top: 0.5rem; text-align: left; color: var(--theme-title-color); font-family: font(alt-heading-serif); font-size: toRem(20); font-weight: font(serif-weight, medium); line-height: toRem(24); letter-spacing: toRem(0.16); font-feature-settings: "lnum"; &:hover { text-decoration: none; } } // we can't use this here because position: relative is used on the parent // making the whole card a link is done in the javascript // &__eventTitle > a:after { // // this makes the whole card act as the link // content: ""; // position: absolute; // top: 0; // bottom: 0; // left: 0; // right: 0; // } &__eventMetadata { text-align: left; line-height: 1.4; display: flex; justify-content: space-between; } &__eventDate, &__eventTime, &__eventButton { color: var(--theme-subtext-color); opacity: 0.65; font-family: font(text-sans); font-size: toRem(14); font-weight: font(sans-weight, medium); } &__eventDate { display: inline-block; margin-right: 11px; } &__eventButton { @include rightarrow( $color: var(--color-wmgold-55), $paddingfromtext: 6px, $movementamount: 6px, $useFontAwesome: true ); &:after { bottom: -1px; } position: absolute; bottom: toRem(3); left: kspaces(sm); display: block; min-height: toRem(33); transition: all 0.18s cubic-bezier(0.74, 0.01, 1, 1); transition-delay: 0s; opacity: 0; color: rgba(var(--theme-title-rgb-color), 1); line-height: toRem(33); } & > *:last-child { margin-bottom: 0; padding-bottom: 0; } &__moreButton { @include wm-row__moreButton; &:after { bottom: -2px; } } // hide slideshow on load &.-loading, &.-no-slides { .wm-slideshow__track, .wm-slideshow__dots { display: none; } } // no events message // hide message when loaded and there are slides &__message, &__message { display: none; } // show message when loaded or there are no slides .-loading &__message, .-no-slides &__message { display: flex; width: 90%; max-width: 300px; height: auto; margin: 45px auto 0; padding: 43px 50px; box-sizing: border-box; justify-content: center; align-items: center; font-family: font(text-sans); font-size: $base-text-size; line-height: $font-base-line_height; color: var(--theme-title-color); background-color: var(--theme-base-color); border: 1px solid rgba(var(--theme-base-accent-rgb-color), 0.4); } // Accessibility styles & [aria-busy="true"], & [aria-hidden="true"], &:not(.-loading) .sr-only { display: none; } } // mixin for hover/touchscreen display @mixin EventRowHoverState { text-decoration: none; // background-color: var(--theme-base-color); // border color set in theme-colors.scss // border: 1px solid rgba(var(--theme-base-accent-rgb-color), 1); &:after { // hide title gradient cover z-index: -1; } // move all the things up on hover .EventRow__text-section > *:not(.EventRow__eventButton) { top: -30px; z-index: 1; } // move white background up on hover to make it look like the text section is getting larger .EventRow__text-section:before { bottom: 0px; } &__eventDate, &__eventTime { opacity: 0.75; color: var(--theme-subtext-color); } .EventRow__eventButton { bottom: toRem(8); z-index: 1; opacity: 1; transition-delay: 0.15s; } } // for touchscreens // use hover state (with modifications) as default view // arrow buttons do not show @include breakpoint($mobile-to-wide-mobile-breakpoint, "max") { .EventRow__card { @include EventRowHoverState(); } } // card hover effects .EventRow__card:hover { @include EventRowHoverState(); cursor: pointer; }