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

pathway responsive issue fixed #875

Merged
merged 2 commits into from
Oct 17, 2023
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
61 changes: 49 additions & 12 deletions src/Pages/Pathway/components/About/About.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.About{
.About {
padding: 1rem 0;
}

Expand Down Expand Up @@ -31,26 +31,63 @@
display: flex;
justify-content: center;
align-items: center;
padding-left: 3rem;
padding-right: 8rem;
margin: 3rem;
width: fit-content;
gap: 1rem;
}

.WhatIsPathway_img img {
width: 60%;
}

.WhatIsPathway_img {
display: flex;
justify-content: center;
align-items: center;
height: 20rem;
}

.WhatIsPathway_desc {
width: 80%;
width: 50%;
font-size: 1.2rem;
}

.WhatIsPathway_desc span {
font-weight: 800;
}

@media(width<=820px) {
.WhatIsPathway_main {
flex-direction: column;
}

.WhatIsPathway_img img {
height: 15rem;
}

.WhatIsPathway_desc {
width: 80%;
}
}

@media(width<=500px) {
.Overview_container_head p {
font-size: 2.5rem;
}

.WhatIsPathway_desc {
width: 100%;
font-size: 1rem;
}
}

@media(width<=300px) {
.Overview_container_head {
padding: 2rem;
}

.WhatIsPathway_img img {
height: 10rem;
}

.WhatIsPathway_desc {
font-size: .8rem;
}

.Overview_container_head p {
font-size: 1.5rem;
padding: 0;
}
}
12 changes: 12 additions & 0 deletions src/Pages/Pathway/components/Contact/Contact.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,16 @@
font-size: .9rem;
color: #3F3F46;
line-height: 1.1rem;
}

@media(width<=500px) {
.ContactUs {
flex-direction: column;
padding: 1.5rem;
padding-top: 3rem;
}

.ContactList {
width: 100%;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,55 @@
align-items: center;
gap: .5rem;
}

@media(width<=1280px) {
.Overview_desc {
gap: 1rem;
}

.Overview_desc .course {
width: 100%;
height: 18rem;
font-size: .9rem;
}
}

@media(width<=1024px) {
.Overview_desc {
display: grid;
grid-template-columns: repeat(3, 1fr);
}

.Overview_desc .course {
height: 14rem;
}
}

@media(width<=640px) {
.Overview_desc {
grid-template-columns: repeat(1, 1fr);
padding: .5rem;
}

.Overview_desc .course {
height: 12rem;
}

.Overview_container_head {
padding-bottom: 2rem;
}

.Overview_container_head p {
font-size: 2.5rem;
}
}

@media(width<=300px){
.Overview_container_head p {
font-size: 1.5rem;
}

.Overview_desc .course {
font-size: .7rem;
}
}
2 changes: 1 addition & 1 deletion src/Pages/Pathway/components/HeroSection/Mainpage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function mainpage() {
</div>
</div>
<p className={styles.desc}>
Join us on an exciting adventure into the world of <b>Artificial Intelligence (AI)</b> through our collaborative <br />
Join us on an exciting adventure into the world of <b>Artificial Intelligence (AI)</b> through our collaborative
initiative with Pathway. In this comprehensive course.
</p>
</section>
Expand Down
120 changes: 112 additions & 8 deletions src/Pages/Pathway/components/HeroSection/Mainpage.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
justify-content: flex-start;
align-items: flex-start;
flex-direction: column;
gap: 2rem;
gap: 1.5rem;
width: 50%;
}

Expand All @@ -59,10 +59,11 @@

.Container_head {
font-weight: 900;
font-size: 5rem;
font-size: 4.3rem;
font-family: 'Rubik', sans-serif;
line-height: 5rem;
width: max-content;
width: 100%;
}

.Head_two {
Expand Down Expand Up @@ -105,9 +106,10 @@
}

.desc {
width: 100%;
width: 70%;
text-align: center;
font-size: 1.2rem;
padding: 0 4rem;
}

.Lower_red {
Expand All @@ -127,29 +129,131 @@
padding: 0 .3rem;
}

@media(width<=1280px) {
.Container_head {
font-size: 4rem;
line-height: 4rem;
}

.desc {
font-size: 1rem;
}

.Lower_red {
font-size: .8rem;
}
}

@media(width<=1024px) {
.Container_head {
font-size: 3rem;
line-height: 3rem;
}

.Container_image_one img {
height: 25rem;
}

.desc {
margin-bottom: 2rem;
}
}

@media(width<=820px) {
.Container {
flex-direction: column;
}

.Container_image_one {
width: 100%;
.Container_head {
font-size: 4.5rem;
line-height: 4.5rem;
}

.Container_desc {
width: 100%;
}

.desc {
width: 100%;
text-align: left;
padding: 0 2rem;
}
}

@media(width<=640px) {
.Container {
padding: 0 1rem;
gap: 0;
}

.Container_head {
font-size: 4rem;
line-height: 4rem;
font-size: 3rem;
line-height: 3rem;
}

.Container_image_one img {
height: 20rem;
}
}

@media(width<=412px) {
.Container_image_one img {
height: 15rem;
}

.desc {
font-size: 1rem;
margin-bottom: 0rem;
}

.Lower_red {
font-size: .6rem;
}
}

@media(width<=360px) {
.Container_head {
font-size: 2.5rem;
line-height: 2.5rem;
}

.Container_image_one img {
height: 12rem;
}

.desc {
padding: 0 1rem;
}
}

@media(width<=300px) {
.Container_head {
font-size: 2rem;
line-height: 2rem;
}

.Container_image_one img {
height: 10rem;
}

.Container_img_two {
font-size: 1rem;
}

.Container_button_one,
.Container_button_two {
padding: .5rem;
font-size: .8rem;
}

.Container_button {
gap: 1rem;
}

.desc {
font-size: .8rem;
}

.Lower_red {
font-size: .5rem;
}
}
29 changes: 28 additions & 1 deletion src/Pages/Pathway/components/Menubar/Menubar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
top: 0;
display: flex;
width: 100%;
padding: 2rem;
padding: 1.5rem;
justify-content: space-between;
align-items: center;
background-color: #fff;
Expand Down Expand Up @@ -34,6 +34,7 @@

.pre_rg a {
display: flex;
align-items: center;
gap: .5rem;
border-radius: .8rem;
padding: .8rem 1.5rem;
Expand All @@ -46,6 +47,17 @@
background-color: #DC280B;
}

@media(width<=1280px) {
.menu_bar {
padding: 1rem 1.5rem;
}

.logo img {
height: 1.5rem;
}
}


@media(width<=820px) {
.menu_bar {
padding: 1rem;
Expand All @@ -63,4 +75,19 @@
border-radius: .4rem;
padding: .5rem 1rem;
}
}

@media(width<=300px){
.menu_bar {
padding: .5rem;
}

.logo img {
height: .8rem;
}

.pre_rg a {
padding: .5rem .8rem;
font-size: .5rem;
}
}
Loading