Skip to content

Commit

Permalink
Merge pull request #50 from AdityyaX/test
Browse files Browse the repository at this point in the history
mobile responsive schedule added
  • Loading branch information
AdityyaX authored Mar 25, 2024
2 parents bf3f0b1 + 3254a52 commit 58d4106
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/containers/Home/HomePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,12 @@ export default function HomePage() {
Schedule
</h1>
{/* <Schedule /> */}
<img src="https://s3.ap-south-1.amazonaws.com/innohacks3.0/Copy+of+Copy+of+Innohacks+3.0+brochure+(2)+(1).png" alt="" />
<div class="image-container">

<img src="https://s3.ap-south-1.amazonaws.com/innohacks3.0/mobileviewupdated.png" alt="" className="mobile-image"/>
<img src="https://s3.ap-south-1.amazonaws.com/innohacks3.0/Copy+of+Copy+of+Innohacks+3.0+brochure+(2)+(1).png" alt="" className="laptop-image"/>
</div>

</Row>
{/* Schedule section ends here */}

Expand Down
28 changes: 28 additions & 0 deletions src/containers/Home/about.css
Original file line number Diff line number Diff line change
Expand Up @@ -470,3 +470,31 @@ margin-top: 15vh;
scale: 0.6;
}



/* Default styles for both mobile and laptop views */
.image-container {
display: flex; /* Use flexbox for positioning images */
justify-content: center; /* Center images horizontally */
}

.mobile-image,
.laptop-image {
display: none; /* Hide all images by default */
max-width: 100%; /* Make images responsive */
height: auto; /* Maintain aspect ratio */
}

/* Styles for mobile view (max-width: 767px) */
@media only screen and (max-width: 767px) {
.mobile-image {
display: block; /* Display the mobile image */
}
}

/* Styles for laptop view (min-width: 768px) */
@media only screen and (min-width: 768px) {
.laptop-image {
display: block; /* Display the laptop image */
}
}

0 comments on commit 58d4106

Please sign in to comment.