<div class="statistic-with-text">
<div class="statistic">
<h2 class="statistics__label">Class of 2025 Profile</h2>
<ul>
<li>
<h3 class="statistic__title">X,XXX</h3>
<div class="statistic__text">Enrolled Students</div>
</li>
<li>
<h3 class="statistic__title">XX%</h3>
<div class="statistic__text">Out of State or International Students</div>
</li>
<li>
<h3 class="statistic__title">1 in 4</h3>
<div class="statistic__text">Students are Black, Asian, Hispanic or Multiracial</div>
</li>
</ul>
</div>
<div class="statistic-with-text__text text-content">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
</div>
<div class="statistic-with-text{% if not text %} statistic-with-text--full-width{% endif %}">
{% include "@stat" with statistic %}
{% if text %}<div class="statistic-with-text__text text-content">{{text|raw}}</div>{% endif %}
</div>
{
"statistic": {
"statistics_label": "Class of 2025 Profile",
"statistics": [
{
"statistic_title": "X,XXX",
"statistic_text": "Enrolled Students"
},
{
"statistic_title": "XX%",
"statistic_text": "Out of State or International Students"
},
{
"statistic_title": "1 in 4",
"statistic_text": "Students are Black, Asian, Hispanic or Multiracial"
}
]
},
"text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea.</p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>"
}
.statistic-with-text {
@include media-breakpoint-up(md) {
display: flex;
align-items: flex-start;
}
&.statistic-with-text--full-width {
.statistic {
@include media-breakpoint-up(md) {
width: 100%;
}
}
}
.statistic {
margin-top: rem(28);
margin-bottom: rem(42);
@include media-breakpoint-up(md) {
flex: 0 0 auto;
width: rem(324);
margin: rem(10) rem(45) rem(10) 0;
}
@include media-breakpoint-up(lg) {
margin-right: rem(90);
}
}
.statistic-with-text__text {
margin-bottom: 0;
@include media-breakpoint-up(md) {
flex: 1 1 0;
}
}
&.statistic-with-text--right {
@include media-breakpoint-up(md) {
flex-direction: row-reverse;
}
.statistic {
@include media-breakpoint-up(md) {
margin: rem(10) 0 rem(10) rem(45);
}
@include media-breakpoint-up(lg) {
margin-left: rem(90);
}
}
}
}
This is a custom component (no class prefix in place as it does not conflict with bootstrap)
stat
, allowing for room for text (and floats the statistic box left or right) - this should typically be used for output globallydefault
floats the statistic box to the left, and the --right
variant floats the statistic box to the rightindex.scss
file as `@import “../components/statistic/statistic”;<div class="paragraph-widget paragraph-widget--statistic-with-text">
.