Newer
Older
<section id="narrativeIntro">
<div id="grid-container">
<div id="text2" class="text-container">
<p v-html="introText.paragraph1"></p>
</div>
<img src="@/assets/images/water_security_less-stylized.png" class="img" alt = "Stylized city-scape image with buildings in background and lush green grass surrouding pond in foreground."/>
<img src="@/assets/images/water_insecurity_less-stylized.png" class="img right-align" alt = "Stylized image with an orange hue displaying a home surrounded by sagebrush, barren land, and a nearby road."/>
<div id="text3" class="text-container quote">
<p v-html="introText.paragraph2"></p>
</div>
</div>
<div id="text4" class="text-container">
</div>
<div id="text5" class="text-container">
</div>
</section>
</template>
import text from './../assets/text/text.js';
const introText = text.components.introNarrative;
</script>
display: inline-block;
}
.tooltiptext {
visibility: hidden;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 100%; /* Position the tooltip above the text */
left: 50%;
transform: translateX(-50%);
opacity: 0;
transition: opacity 0.3s;
.text-container {
margin-bottom: 20px; /* Add some space between text containers */
}
#narrativeIntro img {
width: 45%; /* Reduce the size of the images */
}
#grid-container {
display: grid;
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
margin: auto;
height: auto;
vertical-align: middle;
overflow: hidden;
grid-template-columns: 1fr;
grid-template-areas:
"text2"
"image1"
"image2"
"text3";
}
@media screen and (min-width: 551px) {
#grid-container {
grid-template-columns: 1fr 1fr;
grid-template-areas:
"text2 image1"
"image2 text3";
}
#text2 {
grid-area: text2;
}
#text3 {
grid-area: text3;
}
#grid-container .img:nth-of-type(1) {
grid-area: image1;
}
#grid-container .img:nth-of-type(2) {
grid-area: image2;
}
}
@media screen and (max-width: 700px) {
#grid-container {
grid-template-columns: 1fr;
grid-template-areas:
"image1"
"text2"
"image2"
"text3";
}
#text2 {
grid-area: text2;
}
#text3 {
grid-area: text3;
}
#grid-container .img:nth-of-type(1),
#grid-container .img:nth-of-type(2) {
width: 100%;
}
}
.right-align {