-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
370 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<div className={styles.pathway}> | ||
<> | ||
<Navbar /> | ||
<Mainpage /> | ||
<CourseOverview /> | ||
<Whoshouldattend /> | ||
<Whatispathway /> | ||
<div className={styles.pathway}> | ||
<CourseOverview /> | ||
<Whoshouldattend /> | ||
<Whatispathway /> | ||
</div> | ||
<Contact /> | ||
</div> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.pathway { | ||
padding: 0 4rem; | ||
background-color: #F5F5F5; | ||
} | ||
|
||
@media(width<=820px) { | ||
.pathway { | ||
padding: 0 1rem; | ||
} | ||
} |
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
11 changes: 5 additions & 6 deletions
11
...nents/what_is_pathway/what_is_pathway.jsx → src/Pages/Pathway/components/About/About.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 15 additions & 17 deletions
32
.../Pathway/components/mainpage/mainpage.jsx → ...thway/components/HeroSection/mainpage.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<div ref={navbar} className={styles.menu_bar}> | ||
<div className={styles.logo}> | ||
<a href=""><img src={img4} alt="Logo" /></a> | ||
</div> | ||
<div className={styles.menu}> | ||
<a href="#heroSection">Home</a> | ||
<a href="#Course">Course Overview</a> | ||
<a href="#who">Who Should Attend?</a> | ||
<a href="#about">About Pathway</a> | ||
</div> | ||
<div className={styles.pre_rg}> | ||
<a href=""> | ||
<img src={pre} alt="Pre-register" /> | ||
Pre-register | ||
</a> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.