Skip to content

Commit

Permalink
responsive map box + change flex dir. on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
smalex-z committed Oct 31, 2024
1 parent 28809c8 commit 21f2670
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 16 deletions.
26 changes: 10 additions & 16 deletions pages/gm.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,22 +218,16 @@ function gm() {
<div className='content-container-tight text-center'>
<div id='info-wrapper'>
<h2>Relevant information</h2>
<div className='flex'>
<style>
{`
.map-container {
display: none;
}
@media (min-width: 600px) {
.map-container {
display: block;
}
}
`}
</style>
<div class="map-container">
<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>
<div className='flex map-container'>
<div style={{flexGrow: 1, width: "100%"}}>

Check failure on line 222 in pages/gm.js

View workflow job for this annotation

GitHub Actions / lint (16.x)

Strings must use singlequote
<iframe

Check failure on line 223 in pages/gm.js

View workflow job for this annotation

GitHub Actions / lint (16.x)

Trailing spaces not allowed
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"

Check failure on line 224 in pages/gm.js

View workflow job for this annotation

GitHub Actions / lint (16.x)

Trailing spaces not allowed
style={{ width: "100%", height: "100%"}}

Check failure on line 225 in pages/gm.js

View workflow job for this annotation

GitHub Actions / lint (16.x)

Strings must use singlequote

Check failure on line 225 in pages/gm.js

View workflow job for this annotation

GitHub Actions / lint (16.x)

Strings must use singlequote

Check failure on line 225 in pages/gm.js

View workflow job for this annotation

GitHub Actions / lint (16.x)

Trailing spaces not allowed
allowFullScreen=""
loading="lazy"

Check failure on line 227 in pages/gm.js

View workflow job for this annotation

GitHub Actions / lint (16.x)

Trailing spaces not allowed
title="google maps embed of ackerman grand ballroom"

Check failure on line 228 in pages/gm.js

View workflow job for this annotation

GitHub Actions / lint (16.x)

Trailing spaces not allowed
referrerPolicy="no-referrer-when-downgrade"
></iframe>
</div>
<div className='what-to-bring'>
<h3>How to get there</h3>
Expand Down
18 changes: 18 additions & 0 deletions styles/components/GM.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@
text-decoration: none;
}

.map-container {
height: 400px;
}

.flex {
display: flex;

Expand All @@ -141,6 +145,20 @@
}
}

@media (max-width: 640px) {
.map-container {
height: 450px;
flex-direction: column;
}

.flex {
.what-to-bring{
margin-left: 0;
margin-top: 15px;
}
}
}

#countdown-wrapper {
display: flex;
flex-wrap: wrap;
Expand Down

0 comments on commit 21f2670

Please sign in to comment.