Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/app/(open-house)/open-house/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,27 @@
z-index: 10;
}

.horizontalMap {
width: 100%;
display: block;
}

.verticalMap {
display: none;
}

@media (orientation: portrait) {
.horizontalMap {
display: none;
}

.verticalMap {
width: 100%;
display: block;
margin: 0 auto;
}
}

.boothMarker {
position: absolute;
background-color: rgb(255, 255, 255);
Expand Down
48 changes: 24 additions & 24 deletions src/app/(open-house)/open-house/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,30 +397,30 @@ export default function VenuePage() {

<div className={styles.mapAndDetailsContainer}>
<div>
<button
type="button"
onClick={handleClick}
aria-label="Interactive venue map. Click to select a booth."
style={{
background: 'none',
border: 'none',
padding: 0,
cursor: 'pointer',
width: '100%',
display: 'block',
}}
>
<img
src={isVertical ? '/oh_map_vertical.svg' : '/oh_map.svg'}
id="svg"
alt="Map of event venue showing booth locations"
style={{
width: '100%',
display: 'block',
margin: isVertical ? '0 auto' : undefined,
}}
/>
</button>
<button
type="button"
onClick={handleClick}
aria-label="Interactive venue map. Click to select a booth."
style={{
background: 'none',
border: 'none',
padding: 0,
cursor: 'pointer',
width: '100%',
display: 'block',
}}
>
<img
src="/oh_map.svg"
className={styles.horizontalMap}
alt="Map of event venue showing booth locations"
/>
<img
src="/oh_map_vertical.svg"
className={styles.verticalMap}
alt="Map of event venue showing booth locations"
/>
</button>
</div>

{selectedBooth && orgsConfigData[selectedBooth] && (
Expand Down