This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# Attach card library #} | |
{{ attach_library('demo/card') }} | |
{# Import icons macro #} | |
{% import '@demo/icons/icons.twig' as icons %} | |
<div class="card"> | |
<div class="card__image">{{ image }}</div> | |
<h2 class="card__name">{{ name }}</h2> | |
<div class="card__social-media"> | |
<div class="card__social-media--label">Follow on:</div> | |
<ul class="menu card__menu--social"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.movie-card { | |
background: $color-black; | |
color: $color-white; | |
max-width: 460px; | |
overflow: hidden; | |
position: relative; | |
transition: transform 1s ease-in-out; | |
a { | |
color: $color-white; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<article class="movie-card {{ modifier_class }}" | |
{{ attributes ? attributes.class }}" | |
{{ attributes ? attributes|without(class) }}> | |
{{ title_prefix }} | |
{{ title_suffix }} | |
{% if cover_image %} | |
<div class="movie-card__cover-image"> | |
{{ cover_image }} | |
</div> | |
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cover_image: <img src='/sites/default/files/action-3.jpg' alt='' /> | |
heading: | |
title: "I love this movie" | |
url: "#" | |
heading_level: 4 | |
modifier: | |
movie-card__header | |
average_rating: "3" | |
mpaa_rating: "PG-13" | |
synopsis: "Aenean lacinia bibendum nulla sed consectetur. Maecenas sed diam eget risus varius blandit sit amet non magna." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import site utilities. | |
@import '../../global/utils/init'; | |
.movie-card { | |
background: $color-black; | |
color: $color-white; | |
height: 250px; | |
max-width: 420px; | |
overflow: hidden; | |
position: relative; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- THEME DEBUG --> | |
<!-- THEME HOOK: 'menu__main' --> | |
<!-- FILE NAME SUGGESTIONS: | |
* menu--main.html.twig | |
x menu.html.twig | |
--> | |
<!-- BEGIN OUTPUT from 'core/themes/stable/templates/navigation/menu.html.twig' --> |