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

Revert "Make burger menu functional and improve website responsiveness" #140

Merged
merged 1 commit into from
Oct 12, 2024
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
114 changes: 54 additions & 60 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,57 +37,61 @@
</head>

<body>
<header class="header">
<a href="#">
<img
src="./assets/images/4x/typography_logo.webp"
alt="Logo"
width="160px"
/>
</a>
<nav class="navbar">
<a href="./index.html" class="nav_button">HOME</a>
<a href="./index.html#donates" class="nav_button showPopupButton">DONATE</a>
<a href="./about.html" class="nav_button">ABOUT US</a>
<a href="./index.html#footer" class="nav_button">CONTACT US</a>
</nav>
<div class="bx bx-menu menu-button" id="burgerMenu"></div>
</header>
<div class="banner">
<div class="body">
<div class="container text">
<div class="row gy-3 gy-md-4 gy-lg-0 align-items-lg-center glass">
<div class="col-12 col-lg-6 col-xl-5">
<div class="banner section">
<nav>
<div class="logo">
<a class="footerLinks" href="./index.html">
<img
class="img-fluid rounded"
loading="lazy"
src="./assets/images/School.webp"
alt="About 1"
>
</div>
<div class="col-12 col-lg-6 col-xl-7">
<div class="row justify-content-xl-center">
<div class="col-12 col-xl-11">
<h2 class="mb-4">Who Are We?</h2>
<p class="fs-6 mb-3">
Tree2Hope is a purpose-driven initiative committed to
fostering global reforestation efforts and championing
environmental stewardship. Our platform enables
eco-conscious individuals and businesses to actively
participate in the restoration of our planet's green spaces.
</p>
<p class="fs-6 mb-3">
For the low, low price of one dollar, you can choose a
specific area in need of ecological attention and help fund
the planting of a tree there, having an immediate and
tangible effect on the world around you.
</p>
<p class="fs-6 mb-3">
Join us in our mission to create a sustainable and
flourishing ecosystem that supports biodiversity and
mitigates the effects of climate change for a brighter,
greener future.
</p>
src="./assets/images/4x/typography_logo.webp"
alt="Logo"
width="160px"
/>
</a>
</div>
<div id="nav-text" class="nav_buttons">
<a href="./index.html" class="nav_button">HOME</a>
<a href="./index.html#donates" class="nav_button showPopupButton">DONATE</a>
<a href="./about.html" class="nav_button">ABOUT US</a>
<a href="./index.html#footer" class="nav_button">CONTACT US</a>
</div>
</nav>
<!-- Menu Bar -->

<!-- -->
<div class="body">
<div class="container text">
<div class="row gy-3 gy-md-4 gy-lg-0 align-items-lg-center glass">
<div class="col-12 col-lg-6 col-xl-5">
<img
class="img-fluid rounded"
loading="lazy"
src="./assets/images/School.webp"
alt="About 1"
/>
</div>
<div class="col-12 col-lg-6 col-xl-7">
<div class="row justify-content-xl-center">
<div class="col-12 col-xl-11">
<h2 class="mb-4">Who Are We?</h2>
<p class="fs-6 mb-3">
Tree2Hope is a purpose-driven initiative committed to
fostering global reforestation efforts and championing
environmental stewardship. Our platform enables
eco-conscious individuals and businesses to actively
participate in the restoration of our planet's green spaces.
</p>
<p class="fs-6 mb-3">
For the low, low price of one dollar, you can choose a
specific area in need of ecological attention and help fund
the planting of a tree there, having an immediate and
tangible effect on the world around you.
</p>
<p class="fs-6 mb-3">
Join us in our mission to create a sustainable and
flourishing ecosystem that supports biodiversity and
mitigates the effects of climate change for a brighter,
greener future.
</p>
<!-- <div class="row gy-4 gy-md-0 gx-xxl-5X">
<div class="col-12 col-md-6">
<div class="d-flex">
Expand Down Expand Up @@ -145,7 +149,6 @@ <h2 class="h4 mb-3">Digital Agency</h2>
</div>
</div>
</div>
</div>
</div>
</div>

Expand Down Expand Up @@ -258,15 +261,6 @@ <h2 class="quick-links">Quick Links</h2>
</div>
</body>
<script>
const burgerMenu = document.querySelector("#burgerMenu");
const navbar = document.querySelector(".navbar");


burgerMenu.addEventListener("click", () => {
burgerMenu.classList.toggle('bx-x')
navbar.classList.toggle("active");
});

const showPopupButtons = document.querySelectorAll(".showPopupButton");
const closePopupButton = document.querySelector(".closePopupButton");
const popup = document.querySelector(".popup");
Expand Down
62 changes: 0 additions & 62 deletions assets/css/responsiveness.css
Original file line number Diff line number Diff line change
@@ -1,66 +1,4 @@
/*........................... Responsivness...........................*/
@media (max-width: 1272px){
.banner{
height: 120vh;
}
}
@media (max-width: 995px){
.banner{
height: 145vh;
}
}
@media (max-width: 900px) {
.navbar {
display: none;
flex-direction: column;
position: absolute;
top: 65px;
right: 45px;
width: 200px;
background-color: black;
z-index: 10;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 10px;
}

.navbar.active {
display: flex;
}

.navbar .nav_button::after {
content: "";
position: absolute;
top: 70%;
left: 15%;

height: 2.8px;
width: 0;

background-color: rgb(51, 175, 20);
border-radius: 20px;
transition: 0.3s;
}

/* Show the burger button on smaller screens */
.menu-button {
display: block;
font-size: 2rem;
cursor: pointer;
color: #046433;
border-radius: 20px;
}

.nav_button {
padding: 15px;
text-align: center;
color: white;
text-decoration: none;
display: block;
transition: 0.3s ease;
}

}

@media only screen and (min-width: 650px) and (max-width: 900px) {
.upper_part .links a {
text-decoration: none;
Expand Down
Loading