Skip to content

Commit

Permalink
page finishes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Crowley committed Mar 4, 2024
1 parent edaf373 commit 1c45f4e
Show file tree
Hide file tree
Showing 10 changed files with 443 additions and 205 deletions.
11 changes: 0 additions & 11 deletions getStarted.html

This file was deleted.

26 changes: 20 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,32 @@
<link href="https://fonts.googleapis.com/css2?family=Comfortaa&display=swap" rel="stylesheet">

<link rel="stylesheet" href="./styles/index.css">
<link rel="stylesheet" href="./styles/nav.css">

<title>De Dil Se</title>
</head>

<body>
<nav>
<ul class="topLeft">
<li><a href="ourStory.html">OUR STORY</a></li>
<li><a href="ourStory.html" class="ourStory">OUR STORY</a></li>
<div class="dropdown">
<a href="ourStory.html">ABOUT US</a>
<a href="timeline.html">TIMELINE</a>
</div>
<li><a href="ourProjects.html">OUR PROJECTS</a></li>
</ul>
<img class="logo" src="img/dedilseLogo.png" alt="De Dil Se Logo">
<ul class="topRight">
<li><a href="donate.html">DONATE</a></li>
<li><a href="getStarted.html">GET STARTED</a></li>
<li><a href="contactUs.html">CONTACT US</a></li>
</ul>
</nav>

<img src="./img/Community-Foodbank-of-New-Jersey-distribution.webp" id="navImg"
alt="Community Food Bank Distribution">
alt="Community Food Bank Distribution" class="headerImg">
<hr>

<div id="dedilse">
<h1 class="centeredText">DE DIL SE</h1>
<!-- Add breaks given text -->
Expand Down Expand Up @@ -62,13 +67,22 @@ <h2 class="centeredText" id="ourpartnerstext">OUR PARTNERS</h2>
<hr>
<footer>
<ul class="bottom-links">
<li><a href="ourStory.html">OUR STORY</a></li>
<li><a href="ourProjects.html">OUR PROJECTS</a></li>
<li>
<a href="ourStory.html">OUR STORY</a>
<a href="ourStory.html" class="bottom-footer bottom-footer-1">ABOUT US</a>
<a href="timeline.html" class="bottom-footer">TIMELINE</a>
</li>
<li>
<a href="ourProjects.html">OUR PROJECTS</a>
<a href="ourProjects.html#p1" class="bottom-footer bottom-footer-1">PROJECT #1</a>
<a href="ourProjects.html#p2" class="bottom-footer">PROJECT #2</a>
</li>
<li><a href="donate.html">DONATE</a></li>
<li><a href="getStarted.html">GET STARTED</a></li>
<li><a href="contactUs.html">CONTACT US</a></li>
</ul>
</footer>

<script src="./scripts/nav.js"></script>
</body>

</html>
101 changes: 43 additions & 58 deletions ourProjects.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,40 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Our Projects</title>

<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">

<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

<link href="https://fonts.googleapis.com/css2?family=Comfortaa&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./styles/ourProjects.css">
<link rel="stylesheet" href="./styles/ourStory.css">
<link rel="stylesheet" href="./styles/nav.css">
</head>
<body>
<nav>
<div class="nav-wrapper">
<ul class="left">
<li><a href="ourStory.html">OUR STORY</a></li>
<li><a href="ourProjects.html">OUR PROJECTS</a></li>
</ul>
<ul class="right">
<li><a href="donate.html">DONATE</a></li>
<li><a href="getStarted.html">GET STARTED</a></li>
<li><a href="contactUs.html">CONTACT US</a></li>
</ul>
</div>
<ul class="topLeft">
<li><a href="ourStory.html" class="ourStory">OUR STORY</a></li>
<div class="dropdown">
<a href="ourStory.html">ABOUT US</a>
<a href="timeline.html">TIMELINE</a>
</div>
<li><a href="ourProjects.html">OUR PROJECTS</a></li>
</ul>
<img class="logo" src="img/dedilseLogo.png" alt="De Dil Se Logo">
<ul class="topRight">
<li><a href="donate.html">DONATE</a></li>
<li><a href="contactUs.html">CONTACT US</a></li>
</ul>
</nav>

<h5 align="center" class="title">PROJECTS</h5>
<hr>
<img src="./img/Community-Foodbank-of-New-Jersey-distribution.webp" id="navImg"
alt="Community Food Bank Distribution" class="headerImg">

<div class="imgText">
<h1>OUR PROJECTS</h1>
</div>


<div class="row">
<div class="row" id="p1">
<div class="">
<div class="img imgLeft">
<img class="responsive-img" src="img/sample.png">
Expand All @@ -44,7 +51,7 @@ <h5>Project Name #1</h5>
</div>
</div>
</div>
<div class="row">
<div class="row" id="p2">

<div class="">
<div class="project-desc">
Expand All @@ -58,7 +65,7 @@ <h5>Project Name #2</h5>
</div>
</div>
</div>
<div class="row">
<div class="row" id="p3">
<div class="">
<div class="img imgLeft">
<img class="responsive-img" src="img/sample.png">
Expand All @@ -71,7 +78,7 @@ <h5>Project Name #3</h5>
</div>
</div>
</div>
<div class="row">
<div class="row" id="p4">
<div class="">
<div class="project-desc">
<h5>Project Name #4</h5>
Expand All @@ -87,45 +94,23 @@ <h5>Project Name #4</h5>
</div>


<footer class="page-footer">
<div class="container">
<div class="row">
<footer>
<ul class="bottom-links">
<li>
<a href="ourStory.html">OUR STORY</a>
<a href="ourStory.html" class="bottom-footer bottom-footer-1">ABOUT US</a>
<a href="timeline.html" class="bottom-footer">TIMELINE</a>
</li>
<li>
<a href="ourProjects.html">OUR PROJECTS</a>
<a href="donate.html">DONATE</a>
<a href="getStarted.html">GET STARTED</a>
<a href="contactUs.html">CONTACT US</a>
</div>
<div class="row">
<div class="row2-col1">
<div class="col s2">
<p>ABOUT US</p>
</div>
</div>
<div class="row2-col2">
<div class="col s3">
<p>PROJECT #1</p>
</div>
</div>
</div>
<div class="row">
<div class="row3-col1">
<div class="col s2">
<p>TIMELINE</p>
</div>
</div>
<div class="row3-col2">
<div class="col s3">
<p>PROJECT #2</p>
</div>
</div>
</div>
</div>
<a href="ourProjects.html#p1" class="bottom-footer bottom-footer-1">PROJECT #1</a>
<a href="ourProjects.html#p2" class="bottom-footer">PROJECT #2</a>
</li>
<li><a href="donate.html">DONATE</a></li>
<li><a href="contactUs.html">CONTACT US</a></li>
</ul>
</footer>
<!-- Materialize JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>

<!-- Auto-initialize Materialize elements (Note - more specific initialization may be required for certain elements)-->
<script> M.AutoInit();</script>
<script src="./scripts/nav.js"></script>
</body>
</html>
87 changes: 39 additions & 48 deletions ourStory.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,38 @@
<title>Our Projects</title>

<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">

<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

<link href="https://fonts.googleapis.com/css2?family=Comfortaa&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./styles/ourProjects.css">
<link rel="stylesheet" href="./styles/ourStory.css">
<link rel="stylesheet" href="./styles/nav.css">
</head>
<body>
<nav>
<div class="nav-wrapper">
<ul class="left">
<li><a href="ourStory.html">OUR STORY</a></li>
<li><a href="ourProjects.html">OUR PROJECTS</a></li>
</ul>
<ul class="right">
<li><a href="donate.html">DONATE</a></li>
<li><a href="getStarted.html">GET STARTED</a></li>
<li><a href="contactUs.html">CONTACT US</a></li>
</ul>
</div>
<ul class="topLeft">
<li><a href="ourStory.html" class="ourStory">OUR STORY</a></li>
<div class="dropdown">
<a href="ourStory.html">ABOUT US</a>
<a href="timeline.html">TIMELINE</a>
</div>
<li><a href="ourProjects.html">OUR PROJECTS</a></li>
</ul>
<img class="logo" src="img/dedilseLogo.png" alt="De Dil Se Logo">
<ul class="topRight">
<li><a href="donate.html">DONATE</a></li>
<li><a href="contactUs.html">CONTACT US</a></li>
</ul>
</nav>

<h5 align="center" class="title">PROJECTS</h5>
<img src="./img/Community-Foodbank-of-New-Jersey-distribution.webp" id="navImg"
alt="Community Food Bank Distribution" class="headerImg">

<div class="imgText">
<h1>ABOUT US</h1>
</div>

<hr>

<div class="row">
Expand Down Expand Up @@ -79,45 +87,28 @@ <h5>Founder Name #3</h5>
</div>


<footer class="page-footer">
<div class="container">
<div class="row">
<footer>
<ul class="bottom-links">
<li>
<a href="ourStory.html">OUR STORY</a>
<a href="ourStory.html" class="bottom-footer bottom-footer-1">ABOUT US</a>
<a href="timeline.html" class="bottom-footer">TIMELINE</a>
</li>
<li>
<a href="ourProjects.html">OUR PROJECTS</a>
<a href="donate.html">DONATE</a>
<a href="getStarted.html">GET STARTED</a>
<a href="contactUs.html">CONTACT US</a>
</div>
<div class="row">
<div class="row2-col1">
<div class="col s2">
<p>ABOUT US</p>
</div>
</div>
<div class="row2-col2">
<div class="col s3">
<p>PROJECT #1</p>
</div>
</div>
</div>
<div class="row">
<div class="row3-col1">
<div class="col s2">
<p>TIMELINE</p>
</div>
</div>
<div class="row3-col2">
<div class="col s3">
<p>PROJECT #2</p>
</div>
</div>
</div>
</div>
<a href="ourProjects.html#p1" class="bottom-footer bottom-footer-1">PROJECT #1</a>
<a href="ourProjects.html#p2" class="bottom-footer">PROJECT #2</a>
</li>
<li><a href="donate.html">DONATE</a></li>
<li><a href="contactUs.html">CONTACT US</a></li>
</ul>
</footer>
<!-- Materialize JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>

<!-- Auto-initialize Materialize elements (Note - more specific initialization may be required for certain elements)-->
<script> M.AutoInit();</script>

<script src="./scripts/nav.js"></script>
</body>
</html>
26 changes: 26 additions & 0 deletions scripts/nav.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
story = document.querySelector(".ourStory")
dropdown = document.querySelector(".dropdown")

story.addEventListener("mouseover", () => {
const storyRect = story.getBoundingClientRect();

// Set the dropdown position based on the story position
dropdown.style.position = "absolute";
dropdown.style.top = storyRect.bottom + "px";
dropdown.style.left = storyRect.left + "px";

dropdown.style.width = storyRect.right-storyRect.left + "px"


// Add the active class to show the dropdown
dropdown.classList.add("dropdown-active");
})

document.addEventListener("mousemove", (e) => {
const storyRect = story.getBoundingClientRect();

if (dropdown.classList.contains("dropdown-active") && !(e.clientX >= storyRect.left && e.clientX <= storyRect.right && e.clientY >= storyRect.top && e.clientY <= storyRect.bottom+100)) {
dropdown.classList.remove("dropdown-active")
}

});
Loading

0 comments on commit 1c45f4e

Please sign in to comment.