<div class="c-event-details o-container" data-bkg-theme="base">
<h2 class="u-sr-only">Information</h2>
<div class="o-row c-event-details__row">
<div class="c-event-details__col c-event-details__col--dates o-col o-col-xs-6 o-col-md-3">
<h3 class="u-sr-only">Dates</h3>
<div class="c-event-details__icon" aria-hidden="true">
<svg width="38" height="43" viewBox="0 0 38 43" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1 5.14307H37V41.1431H1V5.14307Z" class="u-ct-stroke--dark" stroke-width="2" />
<path d="M11.2856 0V9" class="u-ct-stroke--dark" stroke-width="2" />
<path d="M26.7139 0V9" class="u-ct-stroke--dark" stroke-width="2" />
<path d="M1 17.3569H37" class="u-ct-stroke--dark" stroke-width="2" />
</svg>
</div>
<div class="c-event-details__content">
<p class="f-text--small c-event-details__date"><strong>Weekends</strong>
<br />11 a.m. – 12 p.m.
<br />4 p.m. – 5 p.m.
</p>
</div>
</div>
<div class="c-event-details__col c-event-details__col--location o-col o-col-xs-6 o-col-md-3">
<h3 class="u-sr-only">Location</h3>
<div class="c-event-details__icon" aria-hidden="true">
<svg width="28" height="42" viewBox="0 0 28 42" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M25.1261 20.1624C21.8468 26.4734 17.8649 33.3487 14 39.3275C10.1351 33.238 5.8018 26.1412 2.63964 19.7195C1.81982 17.948 1 15.8444 1 13.9621C1 7.2083 6.85586 1.67236 14 1.67236C21.1441 1.67236 27 7.2083 27 13.9621C27 16.0658 26.0631 18.2802 25.1261 20.1624Z" class="u-ct-stroke--dark" stroke-width="2" />
<circle cx="14.4503" cy="15.1209" r="4.48276" class="u-ct-stroke--dark" stroke-width="2" />
</svg>
</div>
<div class="c-event-details__content">
<p class="f-text--small c-event-details__location"><strong>Location title</strong>
<br />1234 Name Street, Suite 123
<br />City, State 12345
</p>
</div>
</div>
<div class="c-event-details__col c-event-details__col--cost o-col o-col-xs-6 o-col-md-3">
<h3 class="u-sr-only">Cost</h3>
<div class="c-event-details__icon" aria-hidden="true">
<svg width="20" height="42" viewBox="0 0 20 42" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M10 0.857422L10 42.0003" class="u-ct-stroke--dark" stroke-width="2" />
<path d="M18.61 13.4909C18.61 9.61436 14.6604 6.46045 9.8052 6.46045C4.95003 6.46045 1 9.61436 1 13.4909C1 17.3675 3.76677 21.0434 10.0004 21.0434C16.234 21.0434 19 25.1248 19 29.0014C19 32.878 15.05 36.0319 10.1948 36.0319C5.33963 36.0319 1.38998 32.878 1.38998 29.0014" class="u-ct-stroke--dark" stroke-width="2" />
</svg>
</div>
<div class="c-event-details__content">
<p class="f-text--small c-event-details__cost"><strong>Kids 12 and under:</strong>
$14
</p>
</p>
<p class="f-text--small c-event-details__cost"><strong>Adults (12+):</strong>
$17
</p>
</p>
</div>
</div>
<div class="c-event-details__col c-event-details__col--cta o-col o-col-xs-6 o-col-md-3">
<div class="c-event-details__cta">
<a href="#" class="o-btn o-btn--primary" target="blank">Reserve Tickets</a>
</div>
</div>
</div>
<div class="o-row">
<div class="o-col">
<div class="c-event-details__sep"></div>
</div>
</div>
</div>
<div class="c-event-details o-container" data-bkg-theme="base">
<h2 class="u-sr-only">Information</h2>
<div class="o-row c-event-details__row">
<div class="c-event-details__col c-event-details__col--dates o-col o-col-xs-6 o-col-md-3">
<h3 class="u-sr-only">Dates</h3>
<div class="c-event-details__icon" aria-hidden="true">
{% include "03-icons/calendar-event" %}
</div>
<div class="c-event-details__content">
{% for date in dates %}
{% if loop.index < 4 %}
<p class="f-text--small c-event-details__date"><strong>{{ date.day }}</strong>
{% for time in date.times %}
<br />{{ time }}
{% endfor %}
</p>
{% endif %}
{% endfor %}
{% if dates|length > 3 %}
{% embed "04-objects/accordion" with {
buttonClasses: 'o-btn',
classes: 'c-event-details__accordion',
btnAfter: true
} %}
{% block buttonContent %}
<span class="f-text--cta c-event-details__accordion-text c-event-details__accordion-text--closed">
View All Dates
<span class="c-event-details__accordion-icon" aria-hidden="true">
{% include "03-icons/plus" %}
</span>
</span>
<span class="f-text--cta c-event-details__accordion-text c-event-details__accordion-text--open">
View Less Dates
<span class="c-event-details__accordion-icon" aria-hidden="true">
{% include "03-icons/minus" %}
</span>
</span>
{% endblock buttonContent %}
{% block accordionContent %}
{% for date in dates %}
{% if loop.index > 3 %}
<p class="f-text--small c-event-details__date"><strong>{{ date.day }}</strong><br />{{ date.time }}</p>
{% endif %}
{% endfor %}
{% endblock accordionContent %}
{% endembed %}
{% endif %}
</div>
</div>
{% if location.title or location.address_line_one or location.address_line_two %}
<div class="c-event-details__col c-event-details__col--location o-col o-col-xs-6 o-col-md-3">
<h3 class="u-sr-only">Location</h3>
<div class="c-event-details__icon" aria-hidden="true">
{% include "03-icons/location-event" %}
</div>
<div class="c-event-details__content">
<p class="f-text--small c-event-details__location"><strong>{{ location.title }}</strong>
{% if location.address_line_one %}<br />{{ location.address_line_one }}{% endif %}
{% if location.address_line_two %}<br />{{ location.address_line_two }}{% endif %}
</p>
</div>
</div>
{% endif %}
{% if cost %}
<div class="c-event-details__col c-event-details__col--cost o-col o-col-xs-6 o-col-md-3">
<h3 class="u-sr-only">Cost</h3>
<div class="c-event-details__icon" aria-hidden="true">
{% include "03-icons/dollar-event" %}
</div>
<div class="c-event-details__content">
{% for item in cost %}
<p class="f-text--small c-event-details__cost"><strong>{{ item.title }}{% if item.amount %}:{% endif %}</strong>
{% if item.amount %}${{ item.amount }}{% endif %}
</p>
</p>
{% endfor %}
</div>
</div>
{% endif %}
{% if ctaLink %}
{% set ctaText = ctaTitle is defined ? ctaTitle : 'Register' %}
<div class="c-event-details__col c-event-details__col--cta o-col o-col-xs-6 o-col-md-3">
<div class="c-event-details__cta">
<a href="{{ ctaLink }}" class="o-btn o-btn--primary" target="blank">{{ ctaText }}</a>
</div>
</div>
{% endif %}
</div>
<div class="o-row">
<div class="o-col">
<div class="c-event-details__sep"></div>
</div>
</div>
</div>
{
"pageColorTheme": "teal",
"dates": [
{
"day": "Weekends",
"times": [
"11 a.m. – 12 p.m.",
"4 p.m. – 5 p.m."
]
}
],
"location": {
"title": "Location title",
"address_line_one": "1234 Name Street, Suite 123",
"address_line_two": "City, State 12345"
},
"cost": [
{
"title": "Kids 12 and under",
"amount": "14"
},
{
"title": "Adults (12+)",
"amount": "17"
}
],
"ctaTitle": "Reserve Tickets",
"ctaLink": "#"
}
.c-event-details {
margin-top: 5rem;
margin-bottom: 8rem;
}
// .c-event-details__row {
// width: 100%;
// }
.c-event-details__sep {
margin-top: 5rem;
border-bottom: 0.1rem solid var(--ct-dark);
}
.c-event-details__col {
display: flex;
margin-top: 2.4rem;
@include break($xs) {
margin-top: 0;
}
&:nth-child(n+3) {
@include break($xs) {
margin-top: 2.4rem;
}
@include break($md) {
margin-top: 0;
}
}
&:first-child {
margin-top: 0;
}
}
.c-event-details__icon {
padding-right: 2.4rem;
svg {
display: block;
}
}
.c-event-details__content {
padding-top: 0.8rem;
}
.c-event-details__col--cta {
justify-content: center;
@include break($xs) {
margin-left: auto;
justify-content: flex-start;
}
@include break($md) {
justify-content: flex-end;
}
}
.c-event-details__cta {
width: 100%;
@include break($xs) {
width: auto;
}
.o-btn {
width: 100%;
justify-content: center;
@include break($xs) {
width: auto;
}
}
}
.c-event-details__date {
& + & {
margin-top: 0.8rem;
}
}
.c-event-details__accordion {
.o-accordion__button {
margin-top: 0.8rem;
}
.c-event-details__date {
margin-top: 0.8rem;
}
}
.c-event-details__accordion-text {
color: var(--ct-dark);
display: inline-flex;
}
.c-event-details__accordion-text--open {
display: none;
.is-open & {
display: block;
}
}
.c-event-details__accordion-text--closed {
.is-open & {
display: none;
}
}
.c-event-details__accordion-icon {
margin-left: 0.8rem;
}
No notes defined.