Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popup Modal on Landing Page is Now Responsive on Smaller Screens #791

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all 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: 19 additions & 2 deletions Css-files/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,52 @@

.popup-content {
display: flex;
flex-wrap: wrap;
background-color: #feaea5;
border-radius: 10px;
max-width: 800px;
height: 450px;
overflow: hidden;
position: relative;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
overflow-y: scroll;
width: 90%;
}

.popuplogo{
position: absolute;
top: 0;
right: 12px;
height: 50px;
/* height: 50px; */
margin: 0;
padding: 0.2rem .6rem;
border-radius: 10px;
background-color: #feaea5;
}
/* .popuplogo b{
margin: 0;
} */

.popup-left img {
width: 100%;
height: 100%;
object-fit: cover;
}

.popup-left {
flex-grow: 1;
width: 50%;
min-width: 250px;
}
.popup-right {
padding: 20px;
width: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex-grow: 1;
text-align: center;
/* min-width: 300px; */
}

.popup h1 {
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@
<div class="popup-left">
<img src="Images/popup.jpg" alt="Retro Vintage Charm">
</div>
<a href="#" class="no-thanks popuplogo" style="font-family: var(--ff-philosopher); color: black;"><b>Retro</b></a>
<a href="#" class="no-thanks popuplogo" style="font-family: var(--ff-philosopher); color: black;"><b class="popup-logo">Retro</b></a>
<div class="popup-right">
<h1>Discover the Past!</h1>
<p id="h2">Sign Up for Exclusive Vintage Deals</p>
Expand Down