-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ajaynegi45:main' into feature/update-file-structure
- Loading branch information
Showing
8 changed files
with
798 additions
and
486 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
.modalOverlay { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgba(0, 0, 0, 0.5); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
z-index: 50; /* Lower than navbar */ | ||
|
||
} | ||
|
||
.modalContent { | ||
display: flex; | ||
width: 80%; | ||
max-width: 900px; | ||
background-color: white; | ||
border-radius: 8px; | ||
overflow: hidden; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); | ||
transform: translateY(calc(var(--navbar-height, 50px) + 10px)); /* Adjust height as necessary */ | ||
} | ||
|
||
.leftColumn { | ||
width: 90%; | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
} | ||
|
||
.mapContainer { | ||
width: 100%; | ||
height: 100%; /* Ensures the map fills the entire left column */ | ||
min-height: 400px; /* A minimum height to prevent collapsing */ | ||
position: relative; | ||
} | ||
|
||
.rightColumn { | ||
width: fit-content; | ||
padding: 16px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
} | ||
|
||
|
||
.subTitle{ | ||
width: fit-content; | ||
} | ||
|
||
.imageSection { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 8px; | ||
margin-top: 8px; | ||
width: fit-content; | ||
} | ||
|
||
.imageSection img { | ||
width: 250px; | ||
height: auto; | ||
border-radius: 4px; | ||
object-fit: cover; | ||
} | ||
|
||
.closeButton { | ||
margin-top: 16px; | ||
padding: 8px 16px; | ||
background-color: #333; | ||
color: white; | ||
border: none; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
background-color: #333; | ||
} | ||
.closeButton:hover{ | ||
background-color: black; | ||
} | ||
|
||
.mapLinks { | ||
margin-top: 10px; | ||
gap: 2px; | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
.mapLinks a { | ||
white-space: nowrap; | ||
color: white; | ||
background-color: #333; | ||
padding: 8px 16px; | ||
margin: 5px; | ||
justify-self: center; | ||
text-align: center; | ||
border-radius: 4px; | ||
font-weight: 500; | ||
} | ||
|
||
.mapLinks a:hover { | ||
background-color: black; | ||
} | ||
.mapLinks .icon { | ||
position: relative; | ||
display: inline-flex; | ||
margin-right: 2px; | ||
top: 2px; | ||
} | ||
@media (max-width: 768px) { | ||
.modalContent { | ||
flex-direction: column; /* Stack columns vertically */ | ||
width: 80%; /* Full width on mobile */ | ||
max-height: 80%; /* Prevent the modal from exceeding the viewport */ | ||
overflow-y: auto; /* Enable vertical scrolling */ | ||
|
||
} | ||
|
||
.leftColumn, | ||
.rightColumn { | ||
width: 100%; /* Full width for both columns */ | ||
padding: 12px; /* Adjust padding for mobile */ | ||
} | ||
|
||
.mapContainer { | ||
min-height: 200px; /* Reduce minimum height for mobile */ | ||
flex-grow: 1; /* Allow the map container to grow and take available space */ | ||
} | ||
|
||
.imageSection img { | ||
width: 100%; /* Full width for images on mobile */ | ||
height: auto; /* Maintain aspect ratio */ | ||
} | ||
|
||
.closeButton { | ||
margin-top: 12px; /* Adjust margin for mobile */ | ||
width: 100%; /* Full width for button */ | ||
} | ||
|
||
.mapLinks { | ||
flex-direction: column; /* Stack links vertically */ | ||
gap: 8px; /* Add spacing between links */ | ||
} | ||
|
||
.mapLinks a { | ||
width: 100%; /* Full width for each link */ | ||
text-align: center; /* Center text for links */ | ||
} | ||
} |
Oops, something went wrong.