Skip to content
Open
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
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
db/
assets/html/adminSignup.php
*.env
35 changes: 1 addition & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1 @@
# HopeBridge - Charity Website

HopeBridge is a charity donation platform built using **PHP**, enabling users to contribute seamlessly. It integrates **Razorpay Payment Gateway (Testing Mode)** to facilitate secure online donations.

![HopeBridge Logo](screenshots/image.png) <!-- Replace with actual image -->

## 🌟 Features
- User-friendly interface for seamless donations
- Secure payment processing via **Razorpay (Test Mode)**
- Admin panel to manage donations and user data
- Responsive design for all devices
- Contact and about sections to increase trust

## 🛠️ Technologies Used
- **Frontend**: HTML, CSS, JavaScript, Bootstrap
- **Backend**: PHP, MySQL
- **Payment Gateway**: Razorpay (Test Mode)

## 📂 Project Setup

### Prerequisites
- XAMPP / WAMP installed
- MySQL database setup
- Razorpay test API credentials

### Environmental Variable
- Rename `.env.example` to `.env`
- Fill in the environment variables by visiting the [Razorpay Dashboard](https://dashboard.razorpay.com/app/website-app-settings/api-keys)
- Acquire the API keys and paste them into the corresponding values

### Steps to Run
1. Clone this repository:
```sh
git clone https://github.com/OnkVerse/HopeBridge

59 changes: 51 additions & 8 deletions assets/css/indexStyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,53 @@
color: inherit;
}


.ngo-introduction {
background-color: #f8f9fa;
}

.ngo-introduction h2 {
color: #333;
font-weight: 600;
}

.mission-vision {
box-shadow: 0 0 20px rgba(0,0,0,0.1);
border-radius: 15px;
overflow: hidden;
padding: 20px;
background: #ffffff;
}

.mission, .vision {
transition: all 0.3s ease;
border: 2px solid #85A947;
border-radius: 12px;
margin-bottom: 20px;
background: #fff;
box-shadow: 0 5px 15px rgba(133, 169, 71, 0.1);
}

.mission:hover, .vision:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(133, 169, 71, 0.2);
}

.mission h4, .vision h4 {
border-bottom: 2px solid #85A947;
}

.text-success {
color: #85A947 !important;
font-weight: bold;
}

@media (max-width: 768px) {
.mission-vision {
margin-top: 2rem;
}
}

/*new styling for boxes*/
.section-2 {
background-color: #f9f9f9;
Expand Down Expand Up @@ -151,11 +198,7 @@
}

.section-2 img {
width: 120px;
height: 120px;
border-radius: 50%;
border: 4px solid #3E7B27;
margin-bottom: 15px;

}

.section-2 h3 {
Expand Down Expand Up @@ -183,7 +226,7 @@
.third_h2 {
font-size: 2.5rem;
font-weight: bold;
color: #3E7B27;
color: #85A947 !important;
margin-bottom: 30px;
}

Expand Down Expand Up @@ -260,10 +303,10 @@
.py-5 h2 {
font-size: 2.5rem;
font-weight: bold;
color: #3E7B27;
color: #85A947 !important;
margin-bottom: 20px;
}

/* Paragraph Styling */
.py-5 p {
font-size: 1.2rem;
Expand Down
153 changes: 153 additions & 0 deletions assets/html/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://kit.fontawesome.com/3bd17392ca.js" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<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=Fredericka+the+Great&family=Stylish&family=Zen+Antique&display=swap" rel="stylesheet">
<link rel="stylesheet" href="../css/indexStyle.css">

<title>About us</title>

<style>
.yelow>h2 {
color: white;
font-size: 6em;
text-align: center;
margin: auto;
}
</style>
</head>



<body>


<nav id="#navbar" class="navbar navbar-expand-lg bg-white py-0 fixed-top">
<div class="container">
<a href="../../index.html" class="navbar-brand text-dark logo">
Charity
</a>

<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navmenu" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navmenu">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a href="#" class="nav-link">About us</a>
</li>
<li class="nav-item hov">
<a href="donateEdu.php" class="nav-link">Donate</a>
<div class="">
<ul class="hidden">
<li>
<a href="donateEdu.html">Education</a>
</li>
<li>
<a href="donateHealth.html">Health</a>
</li>
<li>
<a href="donateConst.html">Construction</a>
</li>
</ul>
</div>
</li>

<li class="nav-item">
<a href="request.php" class="nav-link">Request Donation</a>
</li>

<li class="nav-item">
<a href="view.php" class="nav-link">View Donations</a>
</li>
</ul>
</div>
</div>
</nav>


<br> <br>


<section class="back-3">
<div class="yelow">
<h2>About Us</h2>
</div>
</section>


<section>
<div class="container">
<p class="lead p-5">
We recognize the **unique value** of children in our community and the urgent need for infrastructure improvements in various regions. Our mission is to expand and enhance our services, making them more accessible to ensure a **better quality of life** for all.

We are deeply concerned about the rising prevalence of **special needs** among children and young adults. Addressing this issue requires **immediate action** at multiple levels—including nurseries, schools, universities, and workplaces—to ensure that these individuals receive the **support and opportunities** needed to become active, contributing members of society.

By fostering inclusivity and accessibility, we aim to create a **healthier, more productive, and compassionate community** for future generations.
</p>
</div>
</section>

<footer>
<div class="container-fluid ">
<div class="row">
<div class="col-lg-6">
<h5>Contact us</h5>
<hr>
<p>Phone number: +971 78947084</p>
<p>Email: charityforeveryone@gmail.com</p>
</div>
<div class="col-lg-6" style="border-left: 1px solid grey;">
<h5>Social media</h5>
<div class="social mt-5">
<a href="https://www.facebook.com" target="_blank"><i class="fa-brands fa-facebook"></i></a>
<a href="https://www.twitter.com" target="_blank"><i class="fa-brands fa-twitter"></i></a>
<a href="https://www.instagram.com" target="_blank"><i class="fa-brands fa-instagram"></i></a>
</div>
</div>
</div>
</div>
</footer>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>

<script>
$(document).ready(function() {

/* Every time the window is scrolled ... */
$(window).scroll(function() {

/* Check the location of each desired element */
$('.card').each(function(i) {

var bottom_of_object = $(this).offset().top + $(this).outerHeight();
var bottom_of_window = $(window).scrollTop() + $(window).height();

/* If the object is completely visible in the window, fade it it */
if (bottom_of_window > bottom_of_object) {

$(this).animate({
'opacity': '1'
}, 750);

}

});

});

});
</script>

</body>

</html>
Loading