Skip to content

Commit

Permalink
donatestuddaddded
Browse files Browse the repository at this point in the history
  • Loading branch information
Meghraj Deshmukh authored and Meghraj Deshmukh committed Apr 20, 2020
1 parent 72b2b91 commit 80f6ebe
Show file tree
Hide file tree
Showing 5 changed files with 198 additions and 1 deletion.
File renamed without changes
2 changes: 1 addition & 1 deletion controller/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports.login=function(req,res)

if(user.password==req.body.password)
{
res.redirect('/');
res.redirect('/donatepage');
}else{
res.send("password doesnt match");

Expand Down
13 changes: 13 additions & 0 deletions router/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,24 @@ router.get('/', function(req,res){
router.use('/registerUser',controller.register);

router.use('/login', controller.login);
router.use('/donatepage',function(req,res){

res.sendfile('/Users/meghrajdeshmukh/Desktop/WebDevelopment/SanketPro/DonateToCovid/view/donatepage.html');


})

router.use('/userlogin', function(req,res){

res.sendfile('/Users/meghrajdeshmukh/Desktop/WebDevelopment/SanketPro/DonateToCovid/view/login.html');

});

router.use('/donatestuff', function(req,res){

res.sendfile("/Users/meghrajdeshmukh/Desktop/WebDevelopment/SanketPro/DonateToCovid/view/donatestuff.html");

});


module.exports=router;
72 changes: 72 additions & 0 deletions view/donatepage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@

<!DOCTYPE html>
<html lang="en">
<head>
<title>DonateForCovid</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" href=" //Css//loginStyel.css">
</head>


<body style="background-image: url( /images/registercover.jpeg);
background-size: contain; "
>

<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">
<img src="/images//logo.png" style="max-width: 100%; max-height:100%;">
</img>
</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">About</a></li>

</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
</ul>
</div>
</div>
</nav>


<div class="main" style=" display: flex; flex-direction: column; width: 50%; margin:auto;
background-color: black;height: 50%;
" >

<button type="button" class="btn btn-success">Donate Money</button>
<a href="/donatestuff"><button type="button" style="margin-top: 20px;" class="btn btn-success">DonateStuff</button>


</div>









<footer class="container-fluid text-center" >
<p>Copyright@MIT</p>
</footer>

</body>


</html>
112 changes: 112 additions & 0 deletions view/donatestuff.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@

<!DOCTYPE html>
<html lang="en">
<head>
<title>DonateForCovid</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" href=" /Css//loginStyel.css">
</head>


<body style="background-image: url(images/register.jpeg);">

<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">
<img src="/images//logo.png" style="max-width: 100%; max-height:100%;">
</img>
</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">About</a></li>

</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
</ul>
</div>
</div>
</nav>


<div class="container" style="border: 1px solid black;
height:90% ;background-image: url(' /images/registercover.jpeg' ); display: flex;
position:absolute;
width: 100%;
background-repeat: no-repeat;
background-size: 100% 100%;
">

<div class='form ' style="border: 1px solid black;margin: auto;
font-size: larger; font-weight: bold;
width: 50%;
height: 70%;
"

>

<!-- Default form contact -->
<form class="text-center border border-light p-5" action="#!">

<p class="h1 mb-4">Fill the form</p>

<!-- Name -->
<input type="text" id="defaultContactFormName" name="pick" class="form-control mb-4" placeholder="PickUpLocation">

<!-- Email -->
<input type="email" id="defaultContactFormEmail" name="phone" class="form-control mb-4" placeholder="PhoneNo">
<input type="date"id="defaultContactFormDate" name="date" class="form-control mb-4" placeholder="date">
<!-- Subject -->


<!-- Message -->
<div class="form-group">
<textarea class="form-control rounded-0" id="exampleFormControlTextarea2" rows="3" name="stuff" placeholder="Stuff"></textarea>
</div>



<!-- Send button -->
<button class="btn btn-info btn-block" type="submit">Send</button>

</form>
<!-- Default form contact -->

</div>









</div>







</body>


</html>

0 comments on commit 80f6ebe

Please sign in to comment.