Skip to content

Commit

Permalink
fix: align the components in the page based on the browser width
Browse files Browse the repository at this point in the history
  • Loading branch information
manojava-gk committed May 15, 2024
1 parent b7087d3 commit 3a08061
Show file tree
Hide file tree
Showing 11 changed files with 167 additions and 6 deletions.
25 changes: 20 additions & 5 deletions src/components/AboutUsCard/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@
}

.container {
width: 60vw;
width: auto;
display: flex;
justify-content: space-between;
justify-content: center;
align-items: center;
gap: 0rem;
gap: 4rem;
margin: auto;
}

.img_container {
width: 100%;
width: auto;
display: flex;
justify-content: center;
align-items: center;
Expand All @@ -44,7 +45,7 @@
}

.information_container {
width: 100%;
width: 25%;
height: 80%;
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -143,3 +144,17 @@
margin-bottom: 20px;
}
}

@media screen and (min-width: 2200px) {
.about_us {
width: 60vw;
margin: auto;
}
}

@media screen and (min-width: 3200px) {
.about_us {
width: 40vw;
margin: auto;
}
}
14 changes: 14 additions & 0 deletions src/components/AboutUsHeader/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,17 @@
height: fit-content;
}
}

@media screen and (min-width: 2200px) {
.about_header {
margin: auto;
width: 70vw;
}
}

@media screen and (min-width: 3200px) {
.about_header {
margin: auto;
width: 60vw;
}
}
14 changes: 14 additions & 0 deletions src/components/CommunityComponent/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@
background: #1E1E1E;
}

@media screen and (min-width: 2200px) {
.conmmunity_info {
width: 70vw;
margin: auto;
}
}

@media screen and (min-width: 3200px) {
.conmmunity_info {
width: 60vw;
margin: auto;
}
}

.text_card_container {
margin-left: 210px;
width: 400px;
Expand Down
14 changes: 14 additions & 0 deletions src/components/DeepdiveHeader/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,17 @@
height: fit-content;
}
}

@media screen and (min-width: 2200px) {
.deepdive_header {
margin: auto;
width: 70vw;
}
}

@media screen and (min-width: 3200px) {
.deepdive_header {
margin: auto;
width: 60vw;
}
}
17 changes: 17 additions & 0 deletions src/components/HomePageHeader/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,20 @@
line-height: 16px;
}
}

@media screen and (min-width: 2200px) {
.heroBanner {
width: 70vw;
margin: auto;
display: flex;
}
}


@media screen and (min-width: 3200px) {
.heroBanner {
width: 60vw;
margin: auto;
display: flex;
}
}
19 changes: 19 additions & 0 deletions src/components/KitsGallery/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,22 @@
grid-template-columns: 1fr;
}
}

@media screen and (min-width: 2200px) {
.gallery_container {
grid-template-columns: repeat(6, 1fr);
}
.container {
width: 70vw;
}
}

@media screen and (min-width: 3200px) {
.gallery_container {
width: 60vw;
grid-template-columns: repeat(7, 1fr);
}
.container {
width: 60vw;
}
}
19 changes: 19 additions & 0 deletions src/components/KitsGalleryMDX/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,22 @@
grid-template-columns: 1fr;
}
}

@media screen and (min-width: 2200px) {
.gallery_container {
grid-template-columns: repeat(6, 1fr);
}
.container {
width: 70vw;
}
}

@media screen and (min-width: 3200px) {
.gallery_container {
width: 60vw;
grid-template-columns: repeat(7, 1fr);
}
.container {
width: 60vw;
}
}
19 changes: 19 additions & 0 deletions src/components/KitsGalleryWithFilters/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,22 @@
grid-template-columns: 1fr;
}
}

@media screen and (min-width: 2200px) {
.gallery_container {
grid-template-columns: repeat(6, 1fr);
}
.container {
width: 70vw;
}
}

@media screen and (min-width: 3200px) {
.gallery_container {
width: 60vw;
grid-template-columns: repeat(7, 1fr);
}
.container {
width: 60vw;
}
}
14 changes: 14 additions & 0 deletions src/components/RoleBasedEnrtyComponent/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@
padding: 10rem 0 0rem;
}

@media screen and (min-width: 2200px) {
.roles_based_entry {
width: 70vw;
margin: auto;
}
}

@media screen and (min-width: 3200px) {
.roles_based_entry {
width: 60vw;
margin: auto;
}
}

.card_container {
width: 380px;
height: 172px;
Expand Down
16 changes: 16 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -308,3 +308,19 @@
content: "head";
background-color: var(--ifm-color-secondary-darkest);
}

/* Media Queries */
@media screen and (min-width: 2200px) {
.navbar {
width: 70vw;
margin: auto;
}
}


@media screen and (min-width: 3200px) {
.navbar {
width: 60vw;
margin: auto;
}
}
2 changes: 1 addition & 1 deletion src/pages/Kits/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function KitsPage() {
>
<DeepdiveHeader {...headerInput} />
<main>
<RoleBasedEnrtyComponent showArrow={false} data={carouselKitdeepdive} />
<RoleBasedEnrtyComponent data={carouselKitdeepdive} />
<AboutUsCard {...aboutInput} />
<KitsGalleryWithFilters
itemsArray={kitsGallery}
Expand Down

0 comments on commit 3a08061

Please sign in to comment.