Skip to content

Commit 05849ec

Browse files
authored
removes map when vw < 600px (#728)
* removes map when vw < 600px * responsive map box + change flex dir. on mobile * lint fixes * double quote -> single quote * single quotes + css classes
1 parent df5ff15 commit 05849ec

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

pages/gm.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,16 @@ function gm() {
218218
<div className='content-container-tight text-center'>
219219
<div id='info-wrapper'>
220220
<h2>Relevant information</h2>
221-
<div className='flex'>
222-
<div>
223-
<iframe src='https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d13219.85897956824!2d-118.4441451!3d34.070418!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x62f97fe423993f80!2sUCLA%20Ackerman%20Union!5e0!3m2!1sen!2sin!4v1663063464157!5m2!1sen!2sin' width='450' height='400' style={{border: 0}} allowfullscreen='' loading='lazy' title='google maps embed of ackerman grand ballroom' referrerPolicy='no-referrer-when-downgrade'></iframe>
221+
<div className='flex rel-info'>
222+
<div className='map-container'>
223+
<iframe
224+
src='https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d13219.85897956824!2d-118.4441451!3d34.070418!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x62f97fe423993f80!2sUCLA%20Ackerman%20Union!5e0!3m2!1sen!2sin!4v1663063464157!5m2!1sen!2sin'
225+
className='map-frame'
226+
allowFullScreen=''
227+
loading='lazy'
228+
title='google maps embed of ackerman grand ballroom'
229+
referrerPolicy='no-referrer-when-downgrade'
230+
></iframe>
224231
</div>
225232
<div className='what-to-bring'>
226233
<h3>How to get there</h3>

styles/components/GM.scss

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,20 @@
123123
text-decoration: none;
124124
}
125125

126+
.rel-info {
127+
height: 400px;
128+
}
129+
130+
.map-container {
131+
flex-grow: 1;
132+
width: 100%;
133+
}
134+
135+
.map-frame {
136+
height: 100%;
137+
width: 100%;
138+
}
139+
126140
.flex {
127141
display: flex;
128142

@@ -141,6 +155,20 @@
141155
}
142156
}
143157

158+
@media (max-width: 640px) {
159+
.rel-info {
160+
flex-direction: column;
161+
height: 450px;
162+
}
163+
164+
.flex {
165+
.what-to-bring {
166+
margin-left: 0;
167+
margin-top: 15px;
168+
}
169+
}
170+
}
171+
144172
#countdown-wrapper {
145173
display: flex;
146174
flex-wrap: wrap;

0 commit comments

Comments
 (0)