Skip to content

Added a payment gateway integrated project in general project #421

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
135 changes: 135 additions & 0 deletions Payment gateway/Components/contact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<!DOCTYPE html>
<html lang="en">

<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous" />
<link href="https://fonts.googleapis.com/
css2?family=Roboto+Slab:wght@500&display=swap" rel="stylesheet">
<title>Contact Us</title>

<style>
.h1-tag{
text-align: center;
margin-top: 4%;
}
.form-content-section{
width: 50%;
margin-top: 3%;
margin-left: 25%;
}
@media screen and (max-width: 600px){
.form-content-section{
width: 100%;
margin-top: 10%;
margin-left: 0;
}
}

@media screen and (max-width: 800px){
.form-content-section{
width: 100%;
margin-top: 10%;
margin-left: 0;
}
}

@media screen and (max-width: 600px){
.form-group{
margin-left: 10px;
margin-right: 10px;
}
.btn-primary{
margin-left: 10px;
}
}
@media screen and (max-width: 800px){
.form-group{
margin-left: 20px;
margin-right: 20px;
}
.btn-primary{
margin-left: 20px;
}
}
.myclass{
border-radius: 20px;
margin-top: 10px;
}
</style>

</head>

<body>
<main>
<div class="container py-4">
<span id="head-container"></span>
<section id="form-section">
<h1 class="h1-tag text-primary">Your Feedback Is important For Us</h1>
<p class="text-primary" style="text-align: center;">We would love to hear your thoughts, concerns or problem with anything so we can improve!</p>
<form method="POST" autocomplete="off" name="google-sheet" class="form-content-section">
<div class="form-group">
<label for="exampleInputText">Name</label>
<input type="text" name="name" class="form-control" id="exampleInputText" placeholder="Enter Your Name">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" name="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp"
placeholder="Enter email">
<small id="emailHelp" class="form-text text-muted">
We'll never share your email with anyone
else.</small>
</div>
<div class="form-group">
<label for="exampleInputText">Contact Number(Optional)
</label>
<input type="text" name="contact" class="form-control" id="exampleInputText">
</div>
<div class="form-group">
<label for="exampleFormControlTextarea1">Describe Feedback
</label>
<textarea name="feedback" class="form-control" id="exampleFormControlTextarea1" rows="3"></textarea>
</div>
<button type="submit" class="btn btn-primary myclass">
Post Comment</button>
</form>
</section>

<span id="foot-container"></span>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="/scripts/index.js"></script>
</div>
</div>


</main>
<!-- submit on google sheet -->
<script>
const scriptURL = 'https://script.google.com/macros/s/AKfycbzv-_6af1iiMjRouD9WeMRWbRVztTf1kp0EGs8Q0uVvFTWT3P8/exec'
const form = document.forms['google-sheet']

form.addEventListener('submit', e => {
e.preventDefault()
fetch(scriptURL, { method: 'POST', body: new FormData(form)})
.then(response => alert("Thanks for Contacting us..! We Will Contact You Soon..."))
.catch(error => console.error('Error!', error.message))
})
</script>

<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj"
crossorigin="anonymous"></script>
<!-- jQuery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

</body>

</html>


Binary file added Payment gateway/Style/3284780.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
89 changes: 89 additions & 0 deletions Payment gateway/Style/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
*{
box-sizing: border-box;
margin: 0px;
padding: 0px;
}

body{
background-image: url(../Style/3284780.jpg);
background-repeat: no-repeat;
background-size: cover;
overflow: hidden;
height: 100vh;
font-family: sans-serif;
}

nav {
overflow: hidden;
}

nav a{
text-decoration: none;
padding: 20px;
text-align: center;
color: black;
float:right;
}

nav span{
font-weight: bold;
text-decoration: none;
padding: 20px;
text-align: center;
float: left;
color: black;
}

nav a:hover{
background-color: #02041a;;
color: #368bfa;;
}

div{
color: black;
text-align: right;
margin: 20vh 3vw;
margin-left: 33vw;
}

h1, h2, p{
padding: 10px;
margin: 3px;
}

h2{
color: white;
}

p{
font-weight: bold;
font-size: x-large;
}

.button{
text-decoration: none;
background-color: #02041a;
color: white;
padding: 12px 20px;
border: 3px solid white;
border-radius: 4px;
cursor: pointer;
width: fit-content;
text-align: center;
}

.button:hover{
color: #368bfa;
border: 3px solid #02041a;
}

@media only screen and (max-width:730px){
nav span{
display: none;
}

div{
text-align: center;
margin: 10vh 1vw;
}
}
26 changes: 26 additions & 0 deletions Payment gateway/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!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">
<link rel="stylesheet" href="./Style/index.css">
<title>Donation Website</title>
</head>
<body>
<main>
<nav>
<span>THE SPARKS FOUNDATION</span>
<a href="./Components/contact.html">CONTACT US</a>
<!-- <a href="">About us</a> -->
<a href="">HOME</a>
</nav>
<div class="conatiner">
<h1>Make a Donation!</h1>
<h2>WE CAN'T HELP EVRYONE BUT EVERYONE CAN HELP SOMEONE</h1>
<p>"Every donation, no matter how big or small, makes a significant difference to our cause. Thank you for doing your part to help."</p>
<button class="button" onclick="window.location.href='https://rzp.io/l/ddXUcNh'">Donate For A Cause</button>
</div>
</main>
</body>
</html>