@penskemediacorp/larva-patterns 1.9.0-alpha.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/__tests__/css/css.html +9 -0
- package/__tests__/css/css.prototype.js +1 -0
- package/__tests__/hub/hub.html +25 -0
- package/__tests__/hub/hub.prototype.js +30 -0
- package/__tests__/profile/profile.html +29 -0
- package/__tests__/profile/profile.prototype.js +17 -0
- package/__tests__/profile-index/profile-index.html +9 -0
- package/__tests__/profile-index/profile-index.prototype.js +6 -0
- package/__tests__/vlanding/vlanding.html +7 -0
- package/__tests__/vlanding/vlanding.prototype.js +11 -0
- package/_templates/pattern-nav.html +52 -12
- package/algorithms/a-carousel-grid/README.md +5 -0
- package/algorithms/a-carousel-grid/a-carousel-grid.html +25 -0
- package/algorithms/a-carousel-grid/a-carousel-grid.overlay.js +12 -0
- package/algorithms/a-carousel-grid/a-carousel-grid.prototype.js +0 -0
- package/algorithms/a-icon/a-icon.html +1 -0
- package/algorithms/a-icon/a-icon.prototype.js +0 -0
- package/base.html +62 -19
- package/components/c-button/README.md +3 -0
- package/components/c-button/c-button.black.js +7 -0
- package/components/c-button/c-button.brand-basic.js +8 -0
- package/components/c-button/c-button.ghost.js +10 -0
- package/components/c-button/c-button.prototype.js +10 -4
- package/components/c-button/c-button.stripped.js +8 -0
- package/components/c-button/c-button.twig +13 -7
- package/components/c-checkbox-input/c-checkbox-input.prototype.js +6 -0
- package/components/c-checkbox-input/c-checkbox-input.twig +4 -0
- package/components/c-dek/README.md +3 -0
- package/components/c-dek/c-dek.prototype.js +5 -0
- package/components/c-dek/c-dek.twig +9 -0
- package/components/c-email-field/README.md +0 -0
- package/components/c-email-field/c-email-field.ghost.js +10 -0
- package/components/c-email-field/c-email-field.prototype.js +8 -0
- package/components/c-email-field/c-email-field.twig +4 -0
- package/components/c-figcaption/c-figcaption.prototype.js +9 -0
- package/components/c-figcaption/c-figcaption.twig +16 -0
- package/components/c-heading/README.md +4 -0
- package/components/c-heading/c-heading.prototype.js +8 -3
- package/components/c-heading/c-heading.twig +11 -2
- package/components/c-hidden-field/c-hidden-field.prototype.js +5 -0
- package/components/c-hidden-field/c-hidden-field.twig +1 -0
- package/components/c-icon/c-icon.full.js +6 -5
- package/components/c-icon/c-icon.prototype.js +12 -10
- package/components/c-icon/c-icon.twig +22 -2
- package/components/c-input/c-input.prototype.js +8 -0
- package/components/c-input/c-input.twig +14 -0
- package/components/c-label/README.md +12 -0
- package/components/c-label/c-label.prototype.js +7 -0
- package/components/c-label/c-label.twig +19 -0
- package/components/c-lazy-image/README.md +35 -0
- package/components/c-lazy-image/c-lazy-image.prototype.js +17 -0
- package/components/c-lazy-image/c-lazy-image.twig +31 -0
- package/components/c-link/README.md +1 -0
- package/components/c-link/c-link.prototype.js +8 -5
- package/components/c-link/c-link.twig +11 -1
- package/components/c-logo/c-logo.prototype.js +7 -0
- package/components/c-logo/c-logo.twig +10 -0
- package/components/c-nav-link/c-nav-link.prototype.js +7 -0
- package/components/c-nav-link/c-nav-link.twig +10 -0
- package/components/c-play-badge/c-play-badge.prototype.js +3 -0
- package/components/c-play-badge/c-play-badge.twig +7 -0
- package/components/c-select-option/c-select-option.prototype.js +5 -0
- package/components/c-select-option/c-select-option.twig +5 -0
- package/components/c-span/c-span.prototype.js +6 -7
- package/components/c-span/c-span.tag.js +7 -0
- package/components/c-svg/c-svg.prototype.js +4 -0
- package/components/c-svg/c-svg.twig +3 -0
- package/components/c-tagline/README.md +3 -0
- package/components/c-tagline/c-tagline.prototype.js +4 -0
- package/components/c-tagline/c-tagline.twig +3 -3
- package/components/c-timestamp/c-timestamp.prototype.js +5 -4
- package/components/c-timestamp/c-timestamp.twig +9 -1
- package/components/c-title/README.md +7 -0
- package/components/c-title/c-title.prototype.js +7 -3
- package/components/c-title/c-title.twig +14 -2
- package/css.html +44 -0
- package/index.html +7 -25
- package/index.js +2 -1
- package/modules/age-gate/README.md +3 -0
- package/modules/age-gate/age-gate.prototype.js +68 -0
- package/modules/age-gate/age-gate.twig +37 -0
- package/modules/article-callout/article-callout.prototype.js +5 -0
- package/modules/article-callout/article-callout.twig +3 -0
- package/modules/article-excerpt/article-excerpt.prototype.js +4 -0
- package/modules/article-excerpt/article-excerpt.twig +1 -0
- package/modules/article-kicker/article-kicker.prototype.js +6 -0
- package/modules/article-kicker/article-kicker.twig +13 -0
- package/modules/article-tags/article-tags.prototype.js +9 -10
- package/modules/article-tags/article-tags.twig +1 -1
- package/modules/article-timestamp/article-timestamp.prototype.js +13 -0
- package/modules/article-timestamp/article-timestamp.twig +5 -0
- package/modules/article-title/article-title.prototype.js +4 -0
- package/modules/article-title/article-title.twig +1 -0
- package/modules/author/author.prototype.js +43 -0
- package/modules/author/author.twig +38 -0
- package/modules/author-blurb/author-blurb.prototype.js +56 -0
- package/modules/author-blurb/author-blurb.twig +27 -0
- package/modules/author-details/author-details.prototype.js +70 -0
- package/modules/author-details/author-details.twig +25 -0
- package/modules/back-to-list/back-to-list.prototype.js +11 -0
- package/modules/back-to-list/back-to-list.twig +5 -0
- package/modules/badge/badge.prototype.js +10 -6
- package/modules/badge/badge.twig +1 -1
- package/modules/banner/banner.prototype.js +10 -0
- package/modules/banner/banner.twig +10 -0
- package/modules/brands-most-popular/brands-most-popular.prototype.js +40 -0
- package/modules/brands-most-popular/brands-most-popular.twig +11 -0
- package/modules/breadcrumbs/breadcrumbs.prototype.js +4 -5
- package/modules/breadcrumbs/breadcrumbs.twig +1 -1
- package/modules/breaking-news/breaking-news.prototype.js +29 -0
- package/modules/breaking-news/breaking-news.twig +18 -0
- package/modules/button/button.prototype.js +9 -0
- package/modules/button/button.twig +7 -0
- package/modules/buy-now/buy-now.prototype.js +36 -0
- package/modules/buy-now/buy-now.twig +23 -0
- package/modules/carousel-grid/README.md +7 -0
- package/modules/carousel-grid/carousel-grid.overlay.js +26 -0
- package/modules/carousel-grid/carousel-grid.prototype.js +50 -0
- package/modules/carousel-grid/carousel-grid.twig +17 -0
- package/modules/carousel-slider/carousel-slider.prototype.js +56 -0
- package/modules/carousel-slider/carousel-slider.twig +11 -0
- package/modules/container/README.md +3 -0
- package/modules/container/container.prototype.js +7 -0
- package/modules/container/container.twig +1 -0
- package/modules/content-showcase/content-showcase.prototype.js +30 -0
- package/modules/content-showcase/content-showcase.the-moth.js +33 -0
- package/modules/content-showcase/content-showcase.twig +7 -0
- package/modules/expandable-search/expandable-search.prototype.js +19 -0
- package/modules/expandable-search/expandable-search.twig +9 -0
- package/modules/featured-stories/featured-stories.prototype.js +27 -0
- package/modules/featured-stories/featured-stories.twig +18 -0
- package/modules/featured-video/featured-video.prototype.js +33 -0
- package/modules/featured-video/featured-video.twig +8 -0
- package/modules/featured-video/featured-video.video-post.js +10 -0
- package/modules/footer/README.md +15 -0
- package/modules/footer/footer.prototype.js +14 -0
- package/modules/footer/footer.twig +22 -0
- package/modules/footer-button-list/footer-button-list.prototype.js +43 -0
- package/modules/footer-button-list/footer-button-list.twig +13 -0
- package/modules/footer-magazine-image/footer-magazine-image.prototype.js +15 -0
- package/modules/footer-magazine-image/footer-magazine-image.twig +3 -0
- package/modules/footer-menus/README.md +3 -0
- package/modules/footer-menus/footer-menus.prototype.js +9 -9
- package/modules/footer-menus/footer-menus.twig +2 -2
- package/modules/footer-newsletter/README.md +5 -0
- package/modules/footer-newsletter/footer-newsletter.prototype.js +21 -0
- package/modules/footer-newsletter/footer-newsletter.twig +5 -0
- package/modules/footer-social/README.md +3 -0
- package/modules/footer-social/footer-social.prototype.js +27 -20
- package/modules/footer-social/footer-social.twig +2 -2
- package/modules/footer-tip/footer-tip.prototype.js +21 -13
- package/modules/footer-tip/footer-tip.twig +2 -2
- package/modules/header/header.article.js +39 -0
- package/modules/header/header.prototype.js +90 -0
- package/modules/header/header.twig +74 -0
- package/modules/header-menu/header-menu.prototype.js +26 -0
- package/modules/header-menu/header-menu.twig +3 -0
- package/modules/header-sticky/header-sticky.article.js +43 -0
- package/modules/header-sticky/header-sticky.prototype.js +39 -0
- package/modules/header-sticky/header-sticky.twig +30 -0
- package/modules/heading/heading.h1.js +8 -0
- package/modules/heading/heading.h2.js +8 -0
- package/modules/heading/heading.h3.js +8 -0
- package/modules/heading/heading.h4.js +7 -0
- package/modules/heading/heading.h5.js +7 -0
- package/modules/heading/heading.h6.js +7 -0
- package/modules/heading/heading.prototype.js +9 -0
- package/modules/heading/heading.twig +3 -0
- package/modules/hero-image-story/hero-image-story.prototype.js +41 -0
- package/modules/hero-image-story/hero-image-story.twig +8 -0
- package/modules/injected-related-content/injected-related-content.prototype.js +61 -0
- package/modules/injected-related-content/injected-related-content.twig +23 -0
- package/modules/linked-gallery/linked-gallery.prototype.js +56 -0
- package/modules/linked-gallery/linked-gallery.twig +21 -0
- package/modules/list/list.ordered.js +7 -0
- package/modules/list/list.prototype.js +57 -0
- package/modules/list/list.twig +11 -0
- package/modules/listicle-item/listicle-item.prototype.js +11 -0
- package/modules/listicle-item/listicle-item.twig +3 -0
- package/modules/mega-menu/mega-menu.prototype.js +16 -0
- package/modules/mega-menu/mega-menu.twig +10 -0
- package/modules/mega-menu-content/mega-menu-content.prototype.js +10 -0
- package/modules/mega-menu-content/mega-menu-content.twig +5 -0
- package/modules/mega-menu-footer/mega-menu-footer.prototype.js +41 -0
- package/modules/mega-menu-footer/mega-menu-footer.twig +19 -0
- package/modules/mega-menu-footer-subscribe/mega-menu-footer-subscribe.prototype.js +20 -0
- package/modules/mega-menu-footer-subscribe/mega-menu-footer-subscribe.twig +4 -0
- package/modules/mega-menu-item/mega-menu-item.prototype.js +23 -0
- package/modules/mega-menu-item/mega-menu-item.twig +13 -0
- package/modules/more-stories-button/more-stories-button.profile.js +12 -0
- package/modules/more-stories-button/more-stories-button.prototype.js +29 -0
- package/modules/more-stories-button/more-stories-button.twig +13 -0
- package/modules/newsletter/newsletter.prototype.js +46 -0
- package/modules/newsletter/newsletter.twig +21 -0
- package/modules/newsletter-cta/newsletter-cta.prototype.js +21 -0
- package/modules/newsletter-cta/newsletter-cta.twig +22 -0
- package/modules/newswire/newswire.prototype.js +46 -0
- package/modules/newswire/newswire.twig +16 -0
- package/modules/page-404/page-404.prototype.js +44 -0
- package/modules/page-404/page-404.twig +32 -0
- package/modules/paragraph/paragraph.narrow.js +8 -0
- package/modules/paragraph/paragraph.prototype.js +8 -0
- package/modules/paragraph/paragraph.twig +3 -0
- package/modules/pmc-footer/pmc-footer.prototype.js +26 -24
- package/modules/pmc-footer/pmc-footer.twig +11 -9
- package/modules/post-content-image/post-content-image.prototype.js +14 -0
- package/modules/post-content-image/post-content-image.twig +3 -0
- package/modules/production-credits/production-credits.prototype.js +5 -0
- package/modules/production-credits/production-credits.twig +4 -0
- package/modules/profile-blurb/profile-blurb.card.js +28 -0
- package/modules/profile-blurb/profile-blurb.prototype.js +45 -0
- package/modules/profile-blurb/profile-blurb.twig +37 -0
- package/modules/profile-body/profile-body.prototype.js +20 -0
- package/modules/profile-body/profile-body.twig +15 -0
- package/modules/profile-browse-by/profile-browse-by.prototype.js +29 -0
- package/modules/profile-browse-by/profile-browse-by.twig +6 -0
- package/modules/profile-card-list/profile-card-list.prototype.js +25 -0
- package/modules/profile-card-list/profile-card-list.twig +7 -0
- package/modules/profile-filter/profile-filter.prototype.js +26 -0
- package/modules/profile-filter/profile-filter.twig +15 -0
- package/modules/profile-gallery/profile-gallery.prototype.js +28 -0
- package/modules/profile-gallery/profile-gallery.twig +13 -0
- package/modules/profile-header/profile-header.prototype.js +29 -0
- package/modules/profile-header/profile-header.twig +27 -0
- package/modules/profile-highlights/profile-highlights.prototype.js +22 -0
- package/modules/profile-highlights/profile-highlights.twig +17 -0
- package/modules/profile-landing-header/profile-landing-header.prototype.js +17 -0
- package/modules/profile-landing-header/profile-landing-header.twig +12 -0
- package/modules/profile-landing-river/profile-landing-river.prototype.js +21 -0
- package/modules/profile-landing-river/profile-landing-river.twig +13 -0
- package/modules/profile-related-stories/profile-related-stories.prototype.js +33 -0
- package/modules/profile-related-stories/profile-related-stories.twig +9 -0
- package/modules/pullquote/pullquote.prototype.js +8 -0
- package/modules/pullquote/pullquote.twig +3 -0
- package/modules/read-next/read-next.prototype.js +20 -0
- package/modules/read-next/read-next.twig +4 -0
- package/modules/search-form/search-form.prototype.js +8 -0
- package/modules/search-form/search-form.twig +11 -0
- package/modules/secondary-stories/secondary-stories.prototype.js +119 -0
- package/modules/secondary-stories/secondary-stories.twig +22 -0
- package/modules/separator/separator.prototype.js +4 -0
- package/modules/separator/separator.thick.js +7 -0
- package/modules/separator/separator.twig +1 -0
- package/modules/separator/separator.wide-thick.js +7 -0
- package/modules/separator/separator.wide.js +7 -0
- package/modules/social-share/social-share.prototype.js +43 -0
- package/modules/social-share/social-share.twig +30 -0
- package/modules/special-coverage/special-coverage.prototype.js +47 -0
- package/modules/special-coverage/special-coverage.twig +29 -0
- package/modules/story/story.borders.js +8 -0
- package/modules/story/story.center-vertical-borders.js +7 -0
- package/modules/story/story.center-vertical.js +11 -0
- package/modules/story/story.prototype.js +43 -0
- package/modules/story/story.right-borders.js +9 -0
- package/modules/story/story.right.js +14 -0
- package/modules/story/story.story-arc.js +9 -0
- package/modules/story/story.twig +88 -0
- package/modules/story/story.vertical-borders.js +7 -0
- package/modules/story/story.vertical.js +11 -0
- package/modules/story-arc-stories/story-arc-stories.prototype.js +21 -0
- package/modules/story-arc-stories/story-arc-stories.twig +14 -0
- package/modules/story-featured-quote/story-featured-quote.prototype.js +28 -0
- package/modules/story-featured-quote/story-featured-quote.twig +27 -0
- package/modules/story-grid/story-grid.prototype.js +24 -0
- package/modules/story-grid/story-grid.river.js +15 -0
- package/modules/story-grid/story-grid.twig +17 -0
- package/modules/sub-header/sub-header.prototype.js +8 -0
- package/modules/sub-header/sub-header.twig +7 -0
- package/modules/top-stories/top-stories.prototype.js +41 -0
- package/modules/top-stories/top-stories.twig +12 -0
- package/modules/top-stories/top-stories.xl.js +14 -0
- package/modules/vlanding-playlist/README.md +1 -0
- package/modules/vlanding-playlist/vlanding-playlist.prototype.js +34 -0
- package/modules/vlanding-playlist/vlanding-playlist.twig +20 -0
- package/modules/vlanding-video-card/README.md +1 -0
- package/modules/vlanding-video-card/vlanding-video-card.prototype.js +25 -0
- package/modules/vlanding-video-card/vlanding-video-card.twig +56 -0
- package/modules/vlanding-video-showcase/README.md +12 -0
- package/modules/vlanding-video-showcase/vlanding-video-showcase.prototype.js +68 -0
- package/modules/vlanding-video-showcase/vlanding-video-showcase.twig +46 -0
- package/objects/o-account-menu/o-account-menu.prototype.js +35 -0
- package/objects/o-account-menu/o-account-menu.twig +25 -0
- package/objects/o-author/o-author.prototype.js +13 -0
- package/objects/o-author/o-author.twig +13 -0
- package/objects/o-card/README.md +1 -0
- package/objects/o-card/o-card.prototype.js +25 -0
- package/objects/o-card/o-card.twig +75 -0
- package/objects/o-card-list/README.md +3 -0
- package/objects/o-card-list/o-card-list.prototype.js +13 -0
- package/objects/o-card-list/o-card-list.twig +7 -0
- package/objects/o-category-link/o-category-link.prototype.js +6 -0
- package/objects/o-category-link/o-category-link.twig +5 -0
- package/objects/o-checkbox-input-list/o-checkbox-input-list.prototype.js +16 -0
- package/objects/o-checkbox-input-list/o-checkbox-input-list.twig +15 -0
- package/objects/o-collection-item/o-collection-item.floated.js +8 -0
- package/objects/o-collection-item/o-collection-item.prototype.js +11 -0
- package/objects/o-collection-item/o-collection-item.twig +5 -0
- package/objects/o-email-capture-form/README.md +11 -0
- package/objects/o-email-capture-form/o-email-capture-form.minimal.js +15 -0
- package/objects/o-email-capture-form/o-email-capture-form.prototype.js +17 -0
- package/objects/o-email-capture-form/o-email-capture-form.twig +16 -0
- package/objects/o-figure/README.md +17 -0
- package/objects/o-figure/o-figure.prototype.js +15 -7
- package/objects/o-figure/o-figure.twig +22 -45
- package/objects/o-header/o-header.prototype.js +12 -10
- package/objects/o-header/o-header.twig +5 -1
- package/objects/o-header-buttons/o-header-buttons.column.js +10 -0
- package/objects/o-header-buttons/o-header-buttons.prototype.js +41 -0
- package/objects/o-header-buttons/o-header-buttons.twig +42 -0
- package/objects/o-icon-button/README.md +5 -0
- package/objects/o-icon-button/o-icon-button.prototype.js +21 -0
- package/objects/o-icon-button/o-icon-button.search.js +9 -0
- package/objects/o-icon-button/o-icon-button.twig +29 -0
- package/objects/o-indicator/README.md +1 -0
- package/objects/o-indicator/o-indicator.photos.js +12 -0
- package/objects/o-indicator/o-indicator.prototype.js +8 -0
- package/objects/o-indicator/o-indicator.twig +9 -0
- package/objects/o-input-group/o-input-group.prototype.js +11 -0
- package/objects/o-input-group/o-input-group.twig +5 -0
- package/objects/o-nav/README.md +2 -2
- package/objects/o-nav/o-nav.horizontal.js +6 -6
- package/objects/o-nav/o-nav.prototype.js +17 -13
- package/objects/o-nav/o-nav.twig +29 -3
- package/objects/o-select-nav/o-select-nav.prototype.js +17 -0
- package/objects/o-select-nav/o-select-nav.twig +9 -0
- package/objects/o-social-list/o-social-list.prototype.js +21 -31
- package/objects/o-social-list/o-social-list.twig +10 -2
- package/objects/o-span-group/README.md +1 -0
- package/objects/o-span-group/o-span-group.prototype.js +11 -0
- package/objects/o-span-group/o-span-group.twig +5 -0
- package/objects/o-sponsored-by/o-sponsored-by.prototype.js +9 -10
- package/objects/o-sponsored-by/o-sponsored-by.twig +2 -2
- package/objects/o-story-arc-item/o-story-arc-item.prototype.js +29 -0
- package/objects/o-story-arc-item/o-story-arc-item.twig +9 -0
- package/objects/o-sub-header/o-sub-header.prototype.js +39 -0
- package/objects/o-sub-header/o-sub-header.twig +9 -0
- package/objects/o-tease/o-tease.prototype.js +24 -20
- package/objects/o-tease/o-tease.twig +7 -3
- package/objects/o-tease-list/o-tease-list.prototype.js +12 -24
- package/objects/o-tease-list/o-tease-list.twig +5 -1
- package/objects/o-video-card/o-video-card.prototype.js +45 -0
- package/objects/o-video-card/o-video-card.twig +67 -0
- package/package.json +6 -9
- package/pattern.html +61 -9
- package/style-guide/colors.html +33 -0
- package/style-guide/fonts.html +22 -0
- package/style-guide/index.html +14 -0
- package/components/c-button/c-button.scss +0 -33
- package/components/c-tagline/c-tagline.json +0 -4
- package/components/c-tagline/c-tagline.scss +0 -19
- package/objects/o-figure/o-figure.scss +0 -46
- package/objects/o-tease/o-tease.scss +0 -30
- package/scratch-pad.css +0 -3
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{% if heading_markup %}
|
|
2
|
+
<h{{ heading_level_text }} class="heading larva // {{ heading_classes }} {{ heading_typography_class }} {{ heading_color_class }} {{ heading_background_color_class }} {{ heading_text_align_class }}">{{ heading_markup }}</h{{ heading_level_text }}>
|
|
3
|
+
{% endif %}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
|
|
3
|
+
const o_figure = clonedeep( require( '../../objects/o-figure/o-figure.prototype.js' ) );
|
|
4
|
+
const story = clonedeep( require( '../story/story.center-vertical' ) );
|
|
5
|
+
const article_kicker_prototype = clonedeep( require( '../article-kicker/article-kicker.prototype' ) );
|
|
6
|
+
|
|
7
|
+
o_figure.c_figcaption.c_figcaption_caption_markup = 'test';
|
|
8
|
+
o_figure.c_lazy_image.c_lazy_image_placeholder_url = 'https://picsum.photos/1000/1000';
|
|
9
|
+
o_figure.c_lazy_image.c_lazy_image_classes = 'lrv-a-wrapper-100vw@mobile-max';
|
|
10
|
+
o_figure.c_lazy_image.c_lazy_image_crop_class = 'lrv-a-crop-3x2';
|
|
11
|
+
o_figure.o_figure_classes = 'lrv-a-glue-parent@tablet';
|
|
12
|
+
o_figure.c_figcaption.c_figcaption_classes = 'lrv-u-color-white lrv-a-glue@tablet lrv-a-glue-parent@mobile-max lrv-u-flex lrv-u-flex-direction-column lrv-a-glue--b-0 lrv-a-glue--l-0 lrv-u-width-20p lrv-u-width-100p@mobile-max lrv-u-align-items-center';
|
|
13
|
+
o_figure.c_figcaption.c_figcaption_credit_classes = 'lrv-a-font-primary-xl lrv-u-padding-tb-125@mobile-max lrv-u-border-b-1@mobile-max lrv-u-text-align-center@tablet lrv-u-text-transform-uppercase lrv-u-font-family-secondary';
|
|
14
|
+
o_figure.c_figcaption.c_figcaption_credit_text = 'Prince Dead At 57';
|
|
15
|
+
o_figure.c_figcaption.c_figcaption_caption_classes = 'u-background-white@mobile-max lrv-a-glue@mobile-max lrv-a-glue--b-unset@mobile-max lrv-a-glue--t-0 lrv-a-glue--l-0 lrv-u-transform-translateY-n50p lrv-u-font-family-secondary lrv-u-font-size-20 u-line-height-18 u-letter-spacing-012 lrv-u-border-t-5 lrv-u-border-b-1 lrv-u-padding-tb-050 lrv-u-padding-lr-125';
|
|
16
|
+
o_figure.c_figcaption.c_figcaption_caption_markup = '1958 – 2021';
|
|
17
|
+
|
|
18
|
+
//story.c_lazy_image = false;
|
|
19
|
+
story.c_dek = false;
|
|
20
|
+
story.c_timestamp = false;
|
|
21
|
+
story.c_link_bottom = false;
|
|
22
|
+
story.c_span = false;
|
|
23
|
+
story.article_kicker = clonedeep( article_kicker_prototype );
|
|
24
|
+
story.story_grid_primary_classes = 'lrv-a-hidden@tablet lrv-u-margin-b-150@mobile-max';
|
|
25
|
+
story.story_classes = 'lrv-a-grid-item lrv-u-padding-t-125@mobile-max lrv-u-border-l-00@mobile-max';
|
|
26
|
+
story.c_title.c_title_classes = 'lrv-a-font-primary-xs';
|
|
27
|
+
story.story_links_classes = 'lrv-u-justify-content-center@tablet lrv-u-margin-b-00';
|
|
28
|
+
story.story_grid_secondary_classes = 'lrv-a-span2 lrv-u-color-brand-primary:hover lrv-u-padding-lr-1 lrv-u-padding-lr-2@desktop-xl lrv-u-text-align-center@tablet';
|
|
29
|
+
story.c_tagline_author_wrapper_classes = 'lrv-u-text-transform-uppercase lrv-u-font-size-12 lrv-u-line-height-copy u-letter-spacing-011';
|
|
30
|
+
story.story_nav_layout_classes = 'lrv-u-flex lrv-u-align-items-center lrv-a-space-children-horizontal lrv-a-space-children--2 lrv-u-margin-t-075';
|
|
31
|
+
story.story_nav_classes = 'lrv-u-font-size-12 lrv-u-font-family-body lrv-u-justify-content-center@tablet';
|
|
32
|
+
module.exports = {
|
|
33
|
+
wrapper_classes: 'lrv-u-padding-lr-150@mobile-max',
|
|
34
|
+
stories_outer_classes: 'lrv-a-grid lrv-a-cols3@tablet lrv-a-children-border-horizontal lrv-a-children-border-vertical@mobile-max lrv-u-padding-tb-150 lrv-u-padding-tb-00@mobile-max',
|
|
35
|
+
o_figure,
|
|
36
|
+
stories: [
|
|
37
|
+
story,
|
|
38
|
+
story,
|
|
39
|
+
story,
|
|
40
|
+
],
|
|
41
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<div class="hero-image-story-module // {{ wrapper_classes }}">
|
|
2
|
+
{% include "@larva/objects/o-figure/o-figure.twig" with o_figure %}
|
|
3
|
+
<div class="stories-outer {{ stories_outer_classes }}">
|
|
4
|
+
{% for item in stories %}
|
|
5
|
+
{% include "@larva/modules/story/story.twig" with item %}
|
|
6
|
+
{% endfor %}
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
const clonedeep = require('lodash.clonedeep');
|
|
2
|
+
|
|
3
|
+
const c_title_prototype = require('../../components/c-title/c-title.prototype');
|
|
4
|
+
const c_heading = clonedeep(c_title_prototype);
|
|
5
|
+
|
|
6
|
+
c_heading.c_title_text = 'Related';
|
|
7
|
+
c_heading.c_title_classes = 'lrv-a-font-primary-xxxs lrv-u-font-weight-bold lrv-u-color-black lrv-u-text-transform-uppercase lrv-u-border-b-1 lrv-u-padding-b-050 ';
|
|
8
|
+
c_heading.c_title_url = false;
|
|
9
|
+
|
|
10
|
+
const c_title = clonedeep(c_title_prototype);
|
|
11
|
+
|
|
12
|
+
c_title.c_title_text = 'Chronixx Says Some Dancehall Lyrics Are ‘Embarrassing’, Artists Should Stop Calling Him For Features';
|
|
13
|
+
c_title.c_title_classes = 'lrv-a-font-primary-xs lrv-u-color-black lrv-u-padding-t-125';
|
|
14
|
+
c_title.c_title_link_classes = 'lrv-a-font-primary-xs lrv-u-color-black lrv-a-truncate-ellipsis-4line@mobile-max lrv-a-truncate-ellipsis-5line@tablet-desktop-only lrv-a-truncate-ellipsis-3line@desktop-xl';
|
|
15
|
+
c_title.c_title_url = '#';
|
|
16
|
+
|
|
17
|
+
const c_lazy_image_prototype = require('../../components/c-lazy-image/c-lazy-image.prototype.js');
|
|
18
|
+
const c_lazy_image = clonedeep(c_lazy_image_prototype);
|
|
19
|
+
|
|
20
|
+
c_lazy_image.c_lazy_image_classes = 'lrv-a-floated-right@tablet lrv-u-width-154@desktop-xl lrv-u-width-177@tablet-and-desktop-only lrv-u-margin-l-125 lrv-u-margin-t-150@mobile-max lrv-u-margin-l-00@mobile-max';
|
|
21
|
+
c_lazy_image.c_lazy_image_crop_class = 'lrv-a-crop-1x1@tablet';
|
|
22
|
+
|
|
23
|
+
const o_card_prototype = require('../../objects/o-card/o-card.prototype');
|
|
24
|
+
const o_card_first = clonedeep(o_card_prototype);
|
|
25
|
+
|
|
26
|
+
o_card_first.o_card_classes = '';
|
|
27
|
+
o_card_first.c_title.c_title_text = 'Chronixx Draws Inspiration From These Capleton Lyrics';
|
|
28
|
+
o_card_first.c_title.c_title_classes = 'lrv-a-font-primary-xxxs lrv-u-color-black lrv-u-border-b-1 lrv-u-border-t-1@desktop-xl-max lrv-u-padding-b-1 lrv-u-padding-t-00@desktop-xl lrv-u-padding-t-1 ';
|
|
29
|
+
o_card_first.c_title.c_title_link_classes = 'lrv-a-font-primary-xxxs lrv-u-color-black lrv-a-truncate-ellipsis-3line@desktop-xl lrv-a-truncate-ellipsis-1line@tablet-desktop-only lrv-a-truncate-ellipsis-2line@mobile-max';
|
|
30
|
+
o_card_first.c_title.c_title_url = '#';
|
|
31
|
+
o_card_first.c_lazy_image = false;
|
|
32
|
+
o_card_first.c_span = false;
|
|
33
|
+
o_card_first.c_timestamp = false;
|
|
34
|
+
o_card_first.o_card_tag_text = 'div';
|
|
35
|
+
|
|
36
|
+
const o_card_last = clonedeep(o_card_prototype);
|
|
37
|
+
|
|
38
|
+
o_card_last.o_card_classes = '';
|
|
39
|
+
o_card_last.c_title.c_title_text = 'Chronixx calls for change in new video “Safe N Sound”';
|
|
40
|
+
o_card_last.c_title.c_title_classes = 'lrv-a-font-primary-xxxs lrv-u-color-black lrv-u-padding-b-00@desktop-xl lrv-u-padding-b-1 lrv-u-padding-t-1';
|
|
41
|
+
o_card_last.c_title.c_title_link_classes = 'lrv-a-font-primary-xxxs lrv-u-color-black lrv-a-truncate-ellipsis-3line@desktop-xl lrv-a-truncate-ellipsis-1line@tablet-desktop-only lrv-a-truncate-ellipsis-2line@mobile-max';
|
|
42
|
+
o_card_last.c_title.c_title_url = '#';
|
|
43
|
+
o_card_last.c_lazy_image = false;
|
|
44
|
+
o_card_last.c_span = false;
|
|
45
|
+
o_card_last.c_timestamp = false;
|
|
46
|
+
o_card_last.o_card_tag_text = 'div';
|
|
47
|
+
|
|
48
|
+
module.exports = {
|
|
49
|
+
injected_related_content_classes: 'lrv-u-border-t-1 lrv-u-padding-t-025',
|
|
50
|
+
injected_related_content_inner_classes: 'lrv-u-flex lrv-u-flex-direction-column@desktop-xl-max lrv-u-border-b-1 lrv-u-border-t-1 lrv-u-padding-b-150@desktop-xl lrv-u-padding-t-150',
|
|
51
|
+
injected_related_content_primary_classes: 'lrv-u-padding-b-1@mobile-max lrv-u-padding-b-150 lrv-u-padding-b-00@desktop-xl lrv-u-width-64p@desktop-xl',
|
|
52
|
+
injected_related_content_heading_classes: 'lrv-u-padding-b-00@desktop-xl lrv-u-display-inline-block',
|
|
53
|
+
injected_related_content_secondary_classes: 'lrv-u-padding-l-125@desktop-xl lrv-u-width-36p@desktop-xl lrv-u-flex lrv-u-flex-direction-column lrv-u-justify-content-center',
|
|
54
|
+
c_heading,
|
|
55
|
+
c_title,
|
|
56
|
+
c_lazy_image,
|
|
57
|
+
o_card_items: [
|
|
58
|
+
o_card_first,
|
|
59
|
+
o_card_last
|
|
60
|
+
]
|
|
61
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<div class="injected-related-content // {{injected_related_content_classes}}" >
|
|
2
|
+
<div class="injected-related-content-inner // {{injected_related_content_inner_classes}}">
|
|
3
|
+
<div class="injected-related-content-primary // {{injected_related_content_primary_classes}}">
|
|
4
|
+
<div class="injected-related-content-heading // {{injected_related_content_heading_classes}}">
|
|
5
|
+
{% include "@larva/components/c-title/c-title.twig" with c_heading %}
|
|
6
|
+
</div>
|
|
7
|
+
{% if c_lazy_image %}
|
|
8
|
+
{% include "@larva/components/c-lazy-image/c-lazy-image.twig" with c_lazy_image %}
|
|
9
|
+
{% endif %}
|
|
10
|
+
|
|
11
|
+
{% if c_title %}
|
|
12
|
+
{% include "@larva/components/c-title/c-title.twig" with c_title %}
|
|
13
|
+
{% endif %}
|
|
14
|
+
|
|
15
|
+
</div>
|
|
16
|
+
<div class="injected-related-content-secondary // {{injected_related_content_secondary_classes}}">
|
|
17
|
+
{% for item in o_card_items %}
|
|
18
|
+
{% include "@larva/objects/o-card/o-card.twig" with item %}
|
|
19
|
+
{% endfor %}
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
const clonedeep = require('lodash.clonedeep');
|
|
2
|
+
|
|
3
|
+
const c_lazy_image = clonedeep( require( '@penskemediacorp/larva-patterns/components/c-lazy-image/c-lazy-image.prototype' ) );
|
|
4
|
+
const article_kicker = clonedeep( require( '@penskemediacorp/larva-patterns/modules/article-kicker/article-kicker.prototype' ) );
|
|
5
|
+
const c_title = clonedeep( require( '@penskemediacorp/larva-patterns/components/c-title/c-title.prototype' ) );
|
|
6
|
+
const c_svg = clonedeep( require( '@penskemediacorp/larva-patterns/components/c-svg/c-svg.prototype' ) );
|
|
7
|
+
|
|
8
|
+
c_lazy_image.c_lazy_image_crop_class = 'lrv-a-crop-3x2';
|
|
9
|
+
c_lazy_image.c_lazy_image_img_classes += ' lrv-u-filter-grayscale-100';
|
|
10
|
+
|
|
11
|
+
const linked_gallery_item = { c_lazy_image, article_kicker, c_svg };
|
|
12
|
+
|
|
13
|
+
const linked_gallery_item_1 = clonedeep( linked_gallery_item );
|
|
14
|
+
const linked_gallery_item_2 = clonedeep( linked_gallery_item );
|
|
15
|
+
const linked_gallery_item_3 = clonedeep( linked_gallery_item );
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
article_kicker.article_kicker_url = '#';
|
|
19
|
+
article_kicker.article_kicker_link_classes = 'lrv-a-unstyle-link lrv-u-padding-b-050 lrv-u-border-b-1'
|
|
20
|
+
article_kicker.article_kicker_classes = 'lrv-u-text-align-center lrv-a-font-basic-xs lrv-u-margin-t-1@desktop lrv-u-text-transform-uppercase';
|
|
21
|
+
article_kicker.article_kicker_text = 'Photo Portfolio';
|
|
22
|
+
|
|
23
|
+
c_title.c_title_url = '';
|
|
24
|
+
c_title.c_title_text = 'The work of brad elterman';
|
|
25
|
+
c_title.c_title_classes = 'lrv-a-font-secondary-xl lrv-u-text-align-center lrv-u-margin-t-2@desktop lrv-u-margin-t-2@mobile-max lrv-u-text-transform-uppercase lrv-a-unstyle-inner-links';
|
|
26
|
+
|
|
27
|
+
const linked_gallery_items = [ linked_gallery_item_1, linked_gallery_item_2, linked_gallery_item_3 ];
|
|
28
|
+
|
|
29
|
+
for ( let i = 0; i < linked_gallery_items.length; i++ ) {
|
|
30
|
+
if ( 0 === i ) {
|
|
31
|
+
linked_gallery_items[i]['c_lazy_image']['c_lazy_image_classes'] = 'lrv-u-margin-r-2@desktop lrv-u-padding-r-2@desktop ';
|
|
32
|
+
linked_gallery_items[i]['linked_gallery_thumbnail_classes'] = 'lrv-u-display-none@mobile-max';
|
|
33
|
+
linked_gallery_items[i]['c_svg'] = false;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if ( 1 === i ) {
|
|
37
|
+
linked_gallery_items[i]['c_svg']['c_svg_classes'] = 'lrv-a-glue lrv-a-glue--r-0 lrv-u-display-none@desktop';
|
|
38
|
+
linked_gallery_items[i]['linked_gallery_thumbnail_classes'] = 'lrv-u-position-absolute@desktop lrv-u-width-38p@desktop lrv-u-top-n33@desktop lrv-a-glue@tablet lrv-u-transform-translateX-n50p@desktop lrv-u-left-50p@desktop lrv-u-text-align-center';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if ( 2 === i ) {
|
|
42
|
+
linked_gallery_items[i]['c_lazy_image']['c_lazy_image_classes'] = 'lrv-u-margin-l-2@desktop lrv-u-padding-l-2@desktop';
|
|
43
|
+
linked_gallery_items[i]['linked_gallery_thumbnail_classes'] = 'lrv-u-display-none@mobile-max';
|
|
44
|
+
linked_gallery_items[i]['c_svg']['c_svg_classes'] = 'lrv-a-glue lrv-a-glue--r-0';
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
module.exports = {
|
|
49
|
+
linked_gallery_classes: 'lrv-u-border-t-1 lrv-u-border-b-1',
|
|
50
|
+
linked_gallery_container_classes: 'lrv-u-border-t-1 lrv-u-margin-t-025 lrv-u-padding-tb-2@desktop lrv-u-padding-lr-125@desktop lrv-u-padding-lr-050@mobile-max lrv-u-padding-tb-125@mobile-max',
|
|
51
|
+
linked_gallery_thumbnails_classes: 'lrv-a-grid lrv-a-cols2@desktop lrv-u-position-relative lrv-u-margin-t-2@desktop',
|
|
52
|
+
linked_gallery_items,
|
|
53
|
+
linked_gallery_url: '#',
|
|
54
|
+
article_kicker,
|
|
55
|
+
c_title,
|
|
56
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<div class="linked-gallery // {{ linked_gallery_classes }}">
|
|
2
|
+
<div class="{{ linked_gallery_container_classes }}">
|
|
3
|
+
<a href="{{ linked_gallery_url }}" class="linked-gallery-thumbnails // {{ linked_gallery_thumbnails_classes }} ">
|
|
4
|
+
{% for item in linked_gallery_items %}
|
|
5
|
+
<div class="linked-gallery-thumbnail // {{ item['linked_gallery_thumbnail_classes'] }}">
|
|
6
|
+
{% if item['c_lazy_image'] %}
|
|
7
|
+
{% include "@larva/components/c-lazy-image/c-lazy-image.twig" with item['c_lazy_image'] %}
|
|
8
|
+
{% endif %}
|
|
9
|
+
|
|
10
|
+
{% if item['c_svg'] %}
|
|
11
|
+
{% include "@larva/components/c-svg/c-svg.twig" with item['c_svg'] %}
|
|
12
|
+
{% endif %}
|
|
13
|
+
</div>
|
|
14
|
+
{% endfor %}
|
|
15
|
+
</a>
|
|
16
|
+
{% if article_kicker %}
|
|
17
|
+
{% include "@larva/modules/article-kicker/article-kicker.twig" with article_kicker %}
|
|
18
|
+
{% endif %}
|
|
19
|
+
{% include "@larva/components/c-title/c-title.twig" with c_title %}
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
list_classes: 'a-font-body-m',
|
|
3
|
+
list_markup: 'Paragraph Text.',
|
|
4
|
+
list_type_name: 'u',
|
|
5
|
+
list_items: [
|
|
6
|
+
{
|
|
7
|
+
list_markup: 'item_one',
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
list_markup: 'item_two',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
list_classes: 'a-font-body-m',
|
|
14
|
+
list_markup: 'Paragraph Text with sub items woo.',
|
|
15
|
+
list_type_name: 'u',
|
|
16
|
+
list_item_classes: '',
|
|
17
|
+
list_items: [
|
|
18
|
+
{
|
|
19
|
+
list_markup: 'sub_item_one',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
list_markup: 'sub_item_two',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
list_classes: 'a-font-body-m',
|
|
26
|
+
list_markup: 'Paragraph Text.',
|
|
27
|
+
list_type_name: 'u',
|
|
28
|
+
list_item_classes: '',
|
|
29
|
+
list_items: [
|
|
30
|
+
{
|
|
31
|
+
list_markup: 'sub_sub_item_one',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
list_markup: 'sub_sub_item_two',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
list_classes: 'a-font-body-m',
|
|
38
|
+
list_markup: 'Paragraph Text.',
|
|
39
|
+
list_type_name: 'u',
|
|
40
|
+
list_item_classes: '',
|
|
41
|
+
list_items: [
|
|
42
|
+
{
|
|
43
|
+
list_markup: 'sub_sub_sub_item_one',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
list_markup: 'sub_sub_sub_item_two',
|
|
47
|
+
},
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
list_item_classes: ''
|
|
57
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<{{ list_type_name }}l class="list larva // {{ list_classes }}">
|
|
2
|
+
{% for item in list_items %}
|
|
3
|
+
<li class="list__item larva // {{ list_item_classes }}">
|
|
4
|
+
{{ item['list_markup'] }}
|
|
5
|
+
|
|
6
|
+
{% if item['list_items'] %}
|
|
7
|
+
{% include "@larva/modules/list/list.twig" with item %}
|
|
8
|
+
{% endif %}
|
|
9
|
+
</li>
|
|
10
|
+
{% endfor %}
|
|
11
|
+
</{{ list_type_name }}l>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
|
|
3
|
+
const o_collection_item = clonedeep( require( '../../objects/o-collection-item/o-collection-item.prototype' ) );
|
|
4
|
+
|
|
5
|
+
o_collection_item.o_collection_item_classes = 'a-floated-parent';
|
|
6
|
+
o_collection_item.o_figure.o_figure_classes = 'a-floated-left@tablet lrv-u-padding-r-1@tablet';
|
|
7
|
+
|
|
8
|
+
module.exports = {
|
|
9
|
+
listicle_item_classes: 'lrv-a-wrapper',
|
|
10
|
+
o_collection_item: o_collection_item
|
|
11
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
|
|
3
|
+
const mega_menu_footer_prototype = require( '../mega-menu-footer/mega-menu-footer.prototype.js' );
|
|
4
|
+
const mega_menu_footer = clonedeep( mega_menu_footer_prototype );
|
|
5
|
+
|
|
6
|
+
const mega_menu_content_prototype = require( '../mega-menu-content/mega-menu-content.prototype.js' );
|
|
7
|
+
const mega_menu_content = clonedeep( mega_menu_content_prototype );
|
|
8
|
+
|
|
9
|
+
module.exports = {
|
|
10
|
+
mega_menu_footer,
|
|
11
|
+
mega_menu_content,
|
|
12
|
+
mega_menu_classes: '',
|
|
13
|
+
mega_menu_outer_classes: 'lrv-a-wrapper',
|
|
14
|
+
mega_menu_inner_classes: 'lrv-u-background-color-white lrv-u-flex lrv-u-flex-direction-column lrv-u-border-b-2 lrv-u-border-r-2 lrv-u-border-l-2',
|
|
15
|
+
mega_menu_content_outer_classes: 'lrv-u-background-color-white lrv-u-padding-a-150 lrv-u-width-100p',
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<nav class="mega-menu // js-MegaMenu {{ mega_menu_classes }} ">
|
|
2
|
+
<div class="mega-menu-outer // {{ mega_menu_outer_classes }} ">
|
|
3
|
+
<div class="mega-menu-inner // {{ mega_menu_inner_classes }} ">
|
|
4
|
+
<div class="mega-menu-content-outer // {{ mega_menu_content_outer_classes }} ">
|
|
5
|
+
{% include "@larva/modules/mega-menu-content/mega-menu-content.twig" with mega_menu_content %}
|
|
6
|
+
</div>
|
|
7
|
+
{% include "@larva/modules/mega-menu-footer/mega-menu-footer.twig" with mega_menu_footer %}
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
</nav>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
const mega_menu_item = clonedeep( require( '../mega-menu-item/mega-menu-item.prototype' ) );
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
mega_menu_content_items: [
|
|
6
|
+
mega_menu_item,
|
|
7
|
+
mega_menu_item,
|
|
8
|
+
],
|
|
9
|
+
mega_menu_content_classes: 'lrv-u-flex lrv-u-flex-wrap-wrap lrv-a-unstyle-list lrv-u-background-color-white lrv-a-space-children--050 lrv-a-space-children-horizontal '
|
|
10
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
|
|
3
|
+
const mega_menu_subscribe = clonedeep( require( '../mega-menu-footer-subscribe/mega-menu-footer-subscribe.prototype' ) );
|
|
4
|
+
const social_heading = clonedeep( require( '../../modules/heading/heading.prototype' ) );
|
|
5
|
+
const newsletter_heading = clonedeep( require( '../../modules/heading/heading.prototype' ) );
|
|
6
|
+
const o_social_list = clonedeep( require( '../../objects/o-social-list/o-social-list.prototype' ) );
|
|
7
|
+
|
|
8
|
+
social_heading.heading_level_text = '3';
|
|
9
|
+
social_heading.heading_classes = 'lrv-a-font-body-xs lrv-u-margin-b-050 lrv-u-margin-t-025 lrv-u-font-weight-normal lrv-u-text-transform-uppercase lrv-u-text-align-center lrv-u-display-inline-block@mobile-max lrv-u-vertical-align-middle\@mobile-max';
|
|
10
|
+
social_heading.heading_markup = 'Follow Us';
|
|
11
|
+
|
|
12
|
+
newsletter_heading.heading_level_text = '3';
|
|
13
|
+
newsletter_heading.heading_classes = 'email-form-heading lrv-u-background-color-white lrv-a-font-body-xs lrv-u-width-70p lrv-u-margin-b-125 lrv-u-text-align-center lrv-u-font-weight-normal lrv-u-text-transform-uppercase lrv-u-padding-lr-075 lrv-u-border-r-1 lrv-u-border-l-1 lrv-u-border-r-00@mobile-max lrv-u-border-l-00@mobile-max';
|
|
14
|
+
newsletter_heading.heading_markup = 'Alerts & Newsletters';
|
|
15
|
+
|
|
16
|
+
const o_email_capture_form_prototype = require( '../../objects/o-email-capture-form/o-email-capture-form.prototype' );
|
|
17
|
+
const o_email_capture_form = clonedeep( o_email_capture_form_prototype );
|
|
18
|
+
|
|
19
|
+
o_email_capture_form.c_email_field.c_email_field_label_text = 'Email Address';
|
|
20
|
+
o_email_capture_form.c_email_field.c_email_field_input_placeholder_attr = 'ENTER E-MAIL';
|
|
21
|
+
o_email_capture_form.c_email_field.c_email_field_input_classes = 'lrv-u-width-100p';
|
|
22
|
+
o_email_capture_form.c_email_field.c_email_field_classes = 'lrv-u-border-b-1 lrv-u-border-r-1 lrv-a-font-body-xxs lrv-u-margin-b-125 lrv-u-margin-b-00@mobile-max lrv-u-text-align-left lrv-u-width-75p@mobile-max';
|
|
23
|
+
o_email_capture_form.c_email_field.c_email_field_label_classes = 'lrv-a-hidden';
|
|
24
|
+
o_email_capture_form.o_email_capture_form_inner_classes = 'lrv-u-text-align-right lrv-u-align-items-center';
|
|
25
|
+
o_email_capture_form.c_button.c_button_classes = 'lrv-a-font-body-xs lrv-a-icon-after lrv-u-text-transform-uppercase lrv-a-unstyle-button lrv-u-cursor-pointer lrv-u-flex lrv-u-justify-content-end lrv-u-width-100p@tablet lrv-a-glue-parent@tablet lrv-u-width-75p@mobile-max';
|
|
26
|
+
o_email_capture_form.c_button.c_button_inner_classes = 'lrv-u-background-color-white lrv-u-padding-l-050';
|
|
27
|
+
o_email_capture_form.c_button.c_button_text = 'Sign Up';
|
|
28
|
+
|
|
29
|
+
module.exports = {
|
|
30
|
+
o_email_capture_form,
|
|
31
|
+
o_social_list,
|
|
32
|
+
social_heading,
|
|
33
|
+
mega_menu_subscribe,
|
|
34
|
+
newsletter_heading,
|
|
35
|
+
mega_menu_footer_classes: 'lrv-u-border-t-2 lrv-u-background-color-white',
|
|
36
|
+
mega_menu_footer_inner_classes: 'lrv-u-flex lrv-u-flex-direction-column@mobile-max',
|
|
37
|
+
mega_menu_footer_subscribe_classes: 'lrv-u-flex lrv-u-flex-direction-column@desktop-max lrv-u-align-items-center lrv-u-width-30p lrv-a-hidden@mobile-max lrv-u-border-r-6 lrv-u-margin-r-025',
|
|
38
|
+
mega_menu_footer_social_classes: 'lrv-u-flex lrv-u-flex-direction-column lrv-u-align-items-center lrv-u-padding-tb-050 lrv-u-width-20p lrv-u-width-100p@mobile-max lrv-u-border-r-1 lrv-u-border-l-1 lrv-u-border-r-00@mobile-max lrv-u-border-l-00@mobile-max lrv-u-padding-lr-050 lrv-u-display-block@mobile-max lrv-u-text-align-center@mobile-max lrv-u-border-b-2@mobile-max',
|
|
39
|
+
mega_menu_social_list_classes:' lrv-u-display-inline-block@mobile-max lrv-u-vertical-align-middle@mobile-max lrv-u-flex@tablet lrv-u-justify-content-center',
|
|
40
|
+
mega_menu_footer_form_classes: 'lrv-u-flex lrv-u-flex-direction-column lrv-u-align-items-center lrv-u-padding-tb-1 lrv-u-width-50p lrv-u-width-100p@mobile-max lrv-u-flex-direction-column lrv-u-padding-lr-125',
|
|
41
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<footer class="mega-menu__footer // {{ mega_menu_footer_classes }} ">
|
|
2
|
+
<div class="mega-menu__footer-inner // {{ mega_menu_footer_inner_classes }} ">
|
|
3
|
+
<section class="mega-menu__footer-subscribe // {{ mega_menu_footer_subscribe_classes }} ">
|
|
4
|
+
{% include "@larva/modules/mega-menu-footer-subscribe/mega-menu-footer-subscribe.twig" with mega_menu_subscribe %}
|
|
5
|
+
</section>
|
|
6
|
+
<section class="mega-menu__footer-social // {{ mega_menu_footer_social_classes }} ">
|
|
7
|
+
{% include "@larva/modules/heading/heading.twig" with social_heading %}
|
|
8
|
+
<div class="mega-menu__social-list // {{ mega_menu_social_list_classes }}">
|
|
9
|
+
{% include "@larva/objects/o-social-list/o-social-list.twig" with o_social_list %}
|
|
10
|
+
</div>
|
|
11
|
+
</section>
|
|
12
|
+
<section class="mega-menu__footer-form // {{ mega_menu_footer_form_classes }} ">
|
|
13
|
+
{% include "@larva/modules/heading/heading.twig" with newsletter_heading %}
|
|
14
|
+
<div class="lrv-u-flex-grow-1 lrv-u-width-100p">
|
|
15
|
+
{% include "@larva/objects/o-email-capture-form/o-email-capture-form.twig" with o_email_capture_form %}
|
|
16
|
+
</div>
|
|
17
|
+
</section>
|
|
18
|
+
</div>
|
|
19
|
+
</footer>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
|
|
3
|
+
const c_lazy_image_prototype = require( '../../components/c-lazy-image/c-lazy-image.prototype.js' );
|
|
4
|
+
const c_lazy_image = clonedeep( c_lazy_image_prototype );
|
|
5
|
+
|
|
6
|
+
const c_icon_prototype = require( '../../components/c-icon/c-icon.prototype.js' );
|
|
7
|
+
const c_icon = clonedeep( c_icon_prototype );
|
|
8
|
+
|
|
9
|
+
c_icon.c_icon_classes = 'lrv-a-glue lrv-a-glue--l-0 lrv-a-glue--t-50p lrv-u-transform-translateY-n50p lrv-u-width-50';
|
|
10
|
+
|
|
11
|
+
c_lazy_image.c_lazy_image_src_url = 'https://cdn.shopify.com/s/files/1/0238/6647/products/2019_37_540x.jpg';
|
|
12
|
+
c_lazy_image.c_lazy_image_placeholder_url = 'https://cdn.shopify.com/s/files/1/0238/6647/products/2019_37_540x.jpg';
|
|
13
|
+
c_lazy_image.c_lazy_image_classes = 'lrv-u-padding-l-3';
|
|
14
|
+
c_lazy_image.c_lazy_image_crop_class = 'lrv-a-crop-2x3';
|
|
15
|
+
|
|
16
|
+
module.exports = {
|
|
17
|
+
footer_subscribe_classes: 'lrv-a-glue-parent lrv-u-width-100p',
|
|
18
|
+
c_lazy_image,
|
|
19
|
+
c_icon
|
|
20
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
|
|
3
|
+
const c_link = clonedeep( require( '../../components/c-link/c-link.prototype' ) );
|
|
4
|
+
const c_link__parent = clonedeep( c_link );
|
|
5
|
+
const c_link__child = clonedeep( c_link );
|
|
6
|
+
|
|
7
|
+
c_link__parent.c_link_text = 'Parent item';
|
|
8
|
+
c_link__parent.c_link_classes = 'lrv-a-unstyle-link lrv-u-color-brand-primary-dark:hover lrv-u-font-weight-bold lrv-a-font-body-xs lrv-u-text-transform-uppercase';
|
|
9
|
+
|
|
10
|
+
c_link__child.c_link_text = 'Child item';
|
|
11
|
+
c_link__child.c_link_classes = 'lrv-a-unstyle-link lrv-u-color-brand-primary-dark:hover lrv-u-padding-tb-025 lrv-u-display-block lrv-a-font-body-xs';
|
|
12
|
+
|
|
13
|
+
module.exports = {
|
|
14
|
+
c_link: c_link__parent,
|
|
15
|
+
mega_menu_item_children: [
|
|
16
|
+
c_link__child,
|
|
17
|
+
c_link__child,
|
|
18
|
+
c_link__child
|
|
19
|
+
],
|
|
20
|
+
mega_menu_item_classes:'lrv-a-unstyle-list',
|
|
21
|
+
mega_menu_item_link_classes:'lrv-u-flex lrv-u-color-black lrv-u-display-inline-block lrv-u-width-100p',
|
|
22
|
+
mega_menu_child_list_classes:'lrv-a-unstyle-list lrv-u-padding-t-1 lrv-u-margin-b-125'
|
|
23
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<li class="mega-menu-item // mega-menu__parent-list-item {{ mega_menu_item_classes }} ">
|
|
2
|
+
<div class="mega-menu__item-link // {{ mega_menu_item_link_classes }} ">
|
|
3
|
+
{% include "@larva/components/c-link/c-link.twig" with c_link %}
|
|
4
|
+
</div>
|
|
5
|
+
|
|
6
|
+
<ul class="mega-menu__child-list // {{ mega_menu_child_list_classes }} ">
|
|
7
|
+
{% for item in mega_menu_item_children %}
|
|
8
|
+
<li class="mega-menu__child-list-item ">
|
|
9
|
+
{% include "@larva/components/c-link/c-link.twig" with item %}
|
|
10
|
+
</li>
|
|
11
|
+
{% endfor %}
|
|
12
|
+
</ul>
|
|
13
|
+
</li>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
const more_stories_button_prototype = require( './more-stories-button.prototype' );
|
|
3
|
+
|
|
4
|
+
const more_stories_button_profile = clonedeep( more_stories_button_prototype );
|
|
5
|
+
|
|
6
|
+
more_stories_button_profile.c_button.c_button_classes = 'js-ProfileFilter-loadMore lrv-a-unstyle-button lrv-u-cursor-pointer lrv-u-padding-tb-050 lrv-u-padding-lr-1 lrv-u-background-color-black lrv-u-color-white lrv-u-color-white:hover lrv-u-text-align-center lrv-u-font-size-28 lrv-u-display-block lrv-u-border-radius-5 lrv-u-width-100p lrv-u-font-family-primary lrv-u-font-weight-bold';
|
|
7
|
+
more_stories_button_profile.c_button.c_button_url = false;
|
|
8
|
+
more_stories_button_profile.c_button.c_button_text = 'Load More';
|
|
9
|
+
more_stories_button_profile.c_button_prev = false;
|
|
10
|
+
more_stories_button_profile.c_button_next = false
|
|
11
|
+
|
|
12
|
+
module.exports = more_stories_button_profile;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
const c_button_basic_prototype = require( '../../components/c-button/c-button.brand-basic' );
|
|
3
|
+
|
|
4
|
+
const c_button_struct = clonedeep( c_button_basic_prototype );
|
|
5
|
+
|
|
6
|
+
c_button_struct.c_button_classes += ' lrv-u-color-white:hover lrv-u-border-radius-5 lrv-u-text-align-center lrv-u-font-size-28';
|
|
7
|
+
|
|
8
|
+
const c_button = clonedeep( c_button_struct );
|
|
9
|
+
const c_button_prev = clonedeep( c_button_struct );
|
|
10
|
+
const c_button_next = clonedeep( c_button_struct );
|
|
11
|
+
|
|
12
|
+
c_button.c_button_classes += ' lrv-u-display-block lrv-u-width-100p';
|
|
13
|
+
c_button.c_button_text = 'More Stories';
|
|
14
|
+
c_button.c_button_url = '#';
|
|
15
|
+
|
|
16
|
+
c_button_prev.c_button_classes += ' lrv-a-icon-arrow-left lrv-a-icon-invert lrv-a-icon-before lrv-u-font-size-18 lrv-u-justify-content-center';
|
|
17
|
+
c_button_prev.c_button_text = 'Previous';
|
|
18
|
+
c_button_prev.c_button_url = '#';
|
|
19
|
+
|
|
20
|
+
c_button_next.c_button_classes += ' lrv-a-icon-arrow-right lrv-a-icon-invert lrv-a-icon-after lrv-u-font-size-18 lrv-u-justify-content-center lrv-u-margin-l-auto';
|
|
21
|
+
c_button_next.c_button_text = 'Next';
|
|
22
|
+
c_button_next.c_button_url = '#';
|
|
23
|
+
|
|
24
|
+
module.exports = {
|
|
25
|
+
more_stories_button_classes: 'lrv-u-font-weight-bold lrv-u-font-family-primary',
|
|
26
|
+
c_button: c_button,
|
|
27
|
+
c_button_prev: c_button_prev,
|
|
28
|
+
c_button_next: c_button_next,
|
|
29
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<nav class="more-stories-button // lrv-u-flex lrv-u-justify-content-space-between {{ more_stories_button_classes }}">
|
|
2
|
+
{% if c_button %}
|
|
3
|
+
{% include "@larva/components/c-button/c-button.twig" with c_button %}
|
|
4
|
+
{% endif %}
|
|
5
|
+
|
|
6
|
+
{% if c_button_prev %}
|
|
7
|
+
{% include "@larva/components/c-button/c-button.twig" with c_button_prev %}
|
|
8
|
+
{% endif %}
|
|
9
|
+
|
|
10
|
+
{% if c_button_next %}
|
|
11
|
+
{% include "@larva/components/c-button/c-button.twig" with c_button_next %}
|
|
12
|
+
{% endif %}
|
|
13
|
+
</nav>
|