diff --git a/src/Pages/Pathway/Pathway.jsx b/src/Pages/Pathway/Pathway.jsx index 7e8f108d9..72a0e6838 100644 --- a/src/Pages/Pathway/Pathway.jsx +++ b/src/Pages/Pathway/Pathway.jsx @@ -1,21 +1,23 @@ import React from 'react' -import styles from "./Pathway.module.css" -import Navbar from './components/menuBar/menubar' -import Mainpage from './components/mainpage/mainpage' -import Whatispathway from './components/what_is_pathway/what_is_pathway' +import styles from './Pathway.module.css' +import Navbar from './components/Navbar/menubar' +import Mainpage from './components/HeroSection/mainpage' +import Whatispathway from './components/About/About' import CourseOverview from './components/course Overview/CourseOverview' import Whoshouldattend from './components/WhoShouldAttend/WhoShouldAttend' import Contact from './components/contact/Contact' export default function Pathway() { return ( -
What is Pathway
-diff --git a/src/Pages/Pathway/components/what_is_pathway/whatIsPathway.module.css b/src/Pages/Pathway/components/About/About.module.css similarity index 50% rename from src/Pages/Pathway/components/what_is_pathway/whatIsPathway.module.css rename to src/Pages/Pathway/components/About/About.module.css index fdbd1ca79..c38d6ea7f 100644 --- a/src/Pages/Pathway/components/what_is_pathway/whatIsPathway.module.css +++ b/src/Pages/Pathway/components/About/About.module.css @@ -1,20 +1,30 @@ +.About{ + padding: 1rem 0; +} + .Overview_container_head { display: flex; justify-content: center; align-items: center; - padding: 3rem; + padding: 5rem; gap: 2rem; + position: relative; } .Overview_container_head hr { - width: 25%; - color: blue; + width: 100%; + background-color: #1C1CF0; + height: .25rem; } .Overview_container_head p { + position: absolute; + background-color: #F5F5F5; + padding: 0 1.5rem; color: #000; font-size: 3rem; - font-weight: 700; + font-weight: 900; + width: max-content; } .WhatIsPathway_main { @@ -24,7 +34,6 @@ padding-left: 3rem; padding-right: 8rem; margin: 3rem; - } .WhatIsPathway_img img { @@ -45,37 +54,3 @@ .WhatIsPathway_desc span { font-weight: 800; } - -@media (width<1000px) { - .Overview_container_head p { - font-size: 1rem; - } - - /* .Overview_container_head hr{ - width: 7rem; - }*/ - .Overview_container_head { - padding: 1rem; - gap: 1rem; - - } - - .WhatIsPathway_main { - font-size: .8rem; - gap: 2rem; - padding: 1.5rem; - margin: 0; - padding-left: 1rem; - padding-right: .6rem; - flex-direction: column; - - } - - .WhatIsPathway_desc { - width: 100%; - } - - .WhatIsPathway_img { - margin-left: -2rem; - } -} \ No newline at end of file diff --git a/src/Pages/Pathway/components/mainpage/mainpage.jsx b/src/Pages/Pathway/components/HeroSection/mainpage.jsx similarity index 51% rename from src/Pages/Pathway/components/mainpage/mainpage.jsx rename to src/Pages/Pathway/components/HeroSection/mainpage.jsx index 43d29d55f..eb82a2ff3 100644 --- a/src/Pages/Pathway/components/mainpage/mainpage.jsx +++ b/src/Pages/Pathway/components/HeroSection/mainpage.jsx @@ -1,38 +1,36 @@ import React from "react" import styles from "./mainpage.module.css" -import img2 from "./assets/img2.webp"; -import pre from "./assets/pre.png"; +import img2 from "../../assets/img2.webp"; +import pre from "../../assets/pre.png"; export default function mainpage() { return ( -
- Join us on an exciting adventure into the world of Artificial Intelligence (AI) through our collaborative
- initiative with Pathway. In this comprehensive course.
-
+ Join us on an exciting adventure into the world of Artificial Intelligence (AI) through our collaborative
+ initiative with Pathway. In this comprehensive course.
+
Only 20 individuals will be selected for the beta cohort, while the remaining applicants will be placed on a waiting list. diff --git a/src/Pages/Pathway/components/mainpage/mainpage.module.css b/src/Pages/Pathway/components/HeroSection/mainpage.module.css similarity index 84% rename from src/Pages/Pathway/components/mainpage/mainpage.module.css rename to src/Pages/Pathway/components/HeroSection/mainpage.module.css index 5867c5aa8..4c32e22ec 100644 --- a/src/Pages/Pathway/components/mainpage/mainpage.module.css +++ b/src/Pages/Pathway/components/HeroSection/mainpage.module.css @@ -15,6 +15,7 @@ justify-content: center; align-items: center; flex-direction: column; + gap: 1rem; } .Container { @@ -23,6 +24,7 @@ align-items: center; flex-direction: row; padding: 0 4rem; + gap: 1rem; } .Container_image_one { @@ -102,11 +104,8 @@ gap: 2rem; } -.Lower_desc { - display: flex; - justify-content: center; - align-items: center; - flex-direction: column; +.desc { + width: 100%; text-align: center; font-size: 1.2rem; } @@ -126,4 +125,31 @@ .Lower_red b { background-color: #DC280B; padding: 0 .3rem; +} + +@media(width<=820px) { + .Container { + flex-direction: column; + } + + .Container_image_one { + width: 100%; + } + + .Container_desc { + width: 100%; + } + + .Container_head { + font-size: 4rem; + line-height: 4rem; + } + + .desc { + font-size: 1rem; + } + + .Lower_red { + font-size: .8rem; + } } \ No newline at end of file diff --git a/src/Pages/Pathway/components/Navbar/menubar.jsx b/src/Pages/Pathway/components/Navbar/menubar.jsx new file mode 100644 index 000000000..dcef0eab5 --- /dev/null +++ b/src/Pages/Pathway/components/Navbar/menubar.jsx @@ -0,0 +1,41 @@ +import React from "react"; +import styles from './menubar.module.css'; +import img4 from "../../assets/logo.webp"; +import pre from '../../assets/pre.png'; + +export default function Menubar() { + const navbar = React.useRef(null) + + React.useEffect(() => { + var prevScrollpos = window.pageYOffset; + window.onscroll = function () { + var currentScrollPos = window.pageYOffset; + if (prevScrollpos > currentScrollPos) { + navbar.current.style.top = "0"; + } else { + navbar.current.style.top = "-150px"; + } + prevScrollpos = currentScrollPos; + } + }, []) + + return ( +
+ ); +} diff --git a/src/Pages/Pathway/components/menuBar/menubar.module.css b/src/Pages/Pathway/components/Navbar/menubar.module.css similarity index 68% rename from src/Pages/Pathway/components/menuBar/menubar.module.css rename to src/Pages/Pathway/components/Navbar/menubar.module.css index 21a3276d8..92110c802 100644 --- a/src/Pages/Pathway/components/menuBar/menubar.module.css +++ b/src/Pages/Pathway/components/Navbar/menubar.module.css @@ -3,12 +3,13 @@ top: 0; display: flex; width: 100%; - padding: 2rem 0; - justify-content: space-around; + padding: 2rem; + justify-content: space-between; align-items: center; background-color: #fff; box-shadow: 0px 0px 10px rgba(0, 0, 0, .25); z-index: 1; + transition: all .5s ease-in-out; } .menu_bar a { @@ -43,4 +44,23 @@ .pre_rg a img { background-color: #DC280B; +} + +@media(width<=820px) { + .menu_bar { + padding: 1rem; + } + + .logo img { + height: 1rem; + } + + .menu { + display: none; + } + + .pre_rg a { + border-radius: .4rem; + padding: .5rem 1rem; + } } \ No newline at end of file diff --git a/src/Pages/Pathway/components/WhoShouldAttend/WhoShouldAttend.jsx b/src/Pages/Pathway/components/WhoShouldAttend/WhoShouldAttend.jsx index 43f1dfc84..9c72cc65b 100644 --- a/src/Pages/Pathway/components/WhoShouldAttend/WhoShouldAttend.jsx +++ b/src/Pages/Pathway/components/WhoShouldAttend/WhoShouldAttend.jsx @@ -1,74 +1,58 @@ import React from "react" import styles from './WhoShouldAttend.module.css' -import line from './assets/line.webp'; +import line from '../../assets/line.webp'; + +const content = [ + { + id: 1, + title: "Students interested in AI and machine learning.", + desc: "I need latency to be milliseconds or seconds, but my batch job is taking minutes or hours to run each time." + }, + { + id: 2, + title: "Professionals seeking to upskill in AI.", + desc: "I need latency to be milliseconds or seconds, but my batch job is taking minutes or hours to run each time." + }, + { + id: 3, + title: "Enthusiasts eager to explore LLMs and AI frameworks.", + desc: "I need latency to be milliseconds or seconds, but my batch job is taking minutes or hours to run each time." + }, + { + id: 4, + title: "Anyone looking to break into the exciting world of AI", + desc: "I need latency to be milliseconds or seconds, but my batch job is taking minutes or hours to run each time." + } +] export default function WhoShouldAttend() { return ( -Who should Attend?
-Students interested in AI and machine learning.
-I need latency to be
milliseconds or seconds, but my
batch job is taking minutes or
hours to run each time.
Students interested in AI and machine learning.
-I need latency to be
milliseconds or seconds, but my
batch job is taking minutes or
hours to run each time.
Students interested in AI and machine learning.
-
- I need latency to be
milliseconds or seconds, but my
batch job is taking minutes or
hours to run each time.
-
Students interested in AI and machine learning.
-I need latency to be
milliseconds or seconds, but my
batch job is taking minutes or
hours to run each time.
Who should Attend?
+{item.desc}
+Course Overview
-{item.desc}
+ ++ {item.desc} + {item.bold} + {item.desc2 ? item.desc2 : null} +