Newer
Older
src="@/assets/images/hero_img_cutout_less-stylized_feather.png"
alt="Social vulnerability and water insecurity"
<p class="title"><strong>Unequal access to water</strong></p>
<p class="subtitle">
How societal factors shape exposure to water-related hazards, likelihood to suffer harm, and ability to cope and recover from losses
<div id="intro-container" :class="{ mobile: mobileView }"></div>
<script setup>
import { ref } from 'vue';
import { isMobile } from 'mobile-device-detect';
<style lang="scss" scoped>
#grid-container {
display: grid;
grid-template-columns: 1fr;
grid-template-areas:
"title"
"intro";
width: 100vw;
justify-content: center;
margin: auto;
@media screen and (max-width: 600px) {
#title-container {
grid-area: title;
#image-caption {
font-family: 'Source Sans Pro', sans-serif;
margin-top: -10px;
#intro-container {
grid-area: intro;
@media screen and (max-width: 600px) {
#title-image.mobile {
width: 100vw; /* Ensure the image takes up the full width on mobile */
}
#intro-container.mobile {
padding: 1px 0 0 5px; /* Specific padding for mobile view */
}