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

I made changes in dropdown menu and made "BE" Link working. #625

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 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
4 changes: 2 additions & 2 deletions components/common/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const Navbar = () => {
{dropdown && (
<ul
className={styles.dropdownMenu}
onMouseLeave={() => setDropdown(false)}
onMouseLeave={() => setDropdown(true)}
>
<li>
<Link href='/courses/btech'>
Expand All @@ -225,7 +225,7 @@ const Navbar = () => {
</Link>
</li>
<li>
<Link href='/'>
<Link href='/courses/be'>
<a
onClick={() => setDropdown(false)}
className={styles.dropdownLink}
Expand Down
98 changes: 98 additions & 0 deletions pages/courses/be/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
import Header from "components/common/Header/Header";
import styles from "@styles/Btech.module.css";
import Footer from "components/common/Footer";
import links from "../config";

export default function BTech() {
const image = "/images/btech/top_bg.jpg";
return (
<>
<Header image={image} text="BE" />
{/* <!-- content of B.Sc section --> */}
<section id={styles.btcontent}>
<div className={styles.mission}>
<h2>BE</h2>
<p>
BE stands for Bachelor of Engineering. It's an undergraduate degree program typically spanning four years. BE courses offer students a comprehensive understanding of engineering disciplines such as Civil Engineering,
Mechanical Engineering, Electrical Engineering, Computer Engineering, Chemical Engineering, and more. Through theoretical studies and practical applications, BE programs equip students with the skills and knowledge necessary
for careers in various engineering fields.
</p>
</div>

<h2>Choose Your Branch</h2>
<div id={styles.branches}>

<a
href={links.biology}
target="_blank"
rel="noreferrer"
>
<div className={styles.brnch} id={styles.bio}>
<p>Biology</p>
</div>
</a>
<a
href={links.computerScience}
target="_blank"
rel="noreferrer"
>
<div className={styles.brnch} id={styles.csc}>
<p>Computer Science</p>
</div>
</a>
<a
href={links.chemistry}
target="_blank"
rel="noreferrer"
>
<div className={styles.brnch} id={styles.chem}>
<p>Chemistry</p>

</div>
</a>
<a
href={links.math}
target="_blank"
rel="noreferrer"
>
<div className={styles.brnch} id={styles.math}>
<p>Mathematics</p>

</div>
</a>
<a
href={links.physics}
target="_blank"
rel="noreferrer"
>
<div className={styles.brnch} id={styles.phy}>
<p>Physics</p>

</div>
</a>
<a
href={links.nursing}
target="_blank"
rel="noreferrer"
>
<div className={styles.brnch} id={styles.nur}>
<p>Nursing</p>
</div>
</a>
<a
href={links.agriculture}
target="_blank"
rel="noreferrer"
>
<div className={styles.brnch} id={styles.agr}>
<p>Agriculture</p>

</div>
</a>

</div>
</section>
<Footer />
</>
);
}
14 changes: 14 additions & 0 deletions pages/courses/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const links = {
biology: "https://drive.google.com/file/d/1SRfFI6MPyaJJXDp4LK7AgqgNGSSLP3L3/view?usp=sharing",
computerScience: "https://drive.google.com/file/d/1E8LgRucBaV1qHVovVjJc3c0JH7IRHmye/view?usp=sharing",
// Add other links similarly
chemistry:"https://drive.google.com/file/d/1MSu8-ViOvVEzfOoEY75a3mJkXoudRmxB/view?usp=sharing",
math:"https://drive.google.com/file/d/1gSnoQhkfyrFBJQMhXZjByJrN392XXhJq/view?usp=sharing",
physics:"https://drive.google.com/file/d/1odvzfXP4HAUBeY5z89N8z66UtNGxTpsb/view?usp=sharing",
nursing:"https://drive.google.com/file/d/18F5QwqkYzoLZm_BOQ74_0FRK-8J2C5AY/view?usp=sharing",
agriculture:"https://drive.google.com/file/d/1iuxcQrntJZw5q3zoQUiVSZ_bfAbyG0Y_/view?usp=sharing"


};

export default links;
19 changes: 13 additions & 6 deletions styles/Navbar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,26 +145,33 @@ navigation menu opens in mobile phones */
position: absolute;
top: 100%;
/* right: 10px; */
background-color: #fff;
background-color: rgb(62, 62, 252,1) ;
border-radius: 14px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 8px 0;
width: 160px;
z-index: 999;

}

.dropdownMenu li {
padding: 10px 16px;
border-radius: 5px;
}

.dropdownLink {
color: #333;
color: white;
text-decoration: none;

}

.dropdownLink:hover {
color: #0070f3;
text-shadow: 0 2px 4px #75b2f8;
.dropdownMenu li:hover {
color: white;
background-color:black;
transition: all 0.5s;


/* text-shadow: 0 2px 4px #75b2f8; */
}

.lnk {
Expand Down Expand Up @@ -316,4 +323,4 @@ navigation menu opens in mobile phones */

.imageContainer {
margin: 5px 1.5%;
}
}