-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1e1f074
Showing
5 changed files
with
1,230 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const mongoose = require("mongoose"); | ||
|
||
const feedbackSchema = new mongoose.Schema({ | ||
name: String, | ||
contactNumber: String, | ||
email: String, | ||
feedback: String, | ||
}); | ||
|
||
module.exports = mongoose.model("Feedback", feedbackSchema); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<style> | ||
body{ | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
background-attachment: fixed; | ||
margin: 0; | ||
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; | ||
background-image: url('https://i.pinimg.com/736x/df/95/98/df95982825179a46e06f452c40590155.jpg'); | ||
} | ||
form{ | ||
background: rgba(225,225,225,.8); | ||
padding: 30px; | ||
max-width: 600px; | ||
margin: 100px auto; | ||
border-radius: 10px; | ||
|
||
} | ||
h1{ | ||
text-align: center; | ||
font-size: 2.5em; | ||
color: #feea0b; | ||
} | ||
label{ | ||
display: block; | ||
margin-top: 10px; | ||
font-weight: bold; | ||
|
||
} | ||
input,textarea,button{ | ||
width: calc(100%-22px); | ||
padding: 10px; | ||
margin-top: 5px; | ||
border: 1px solid gray; | ||
border-radius: 5px; | ||
} | ||
button{ | ||
background-color: #28a745; | ||
color: aliceblue; | ||
border: none; | ||
cursor: pointer; | ||
font-size: 16px; | ||
} | ||
button:hover{ | ||
background-color: #218838; | ||
} | ||
button:active{ | ||
background-color: yellowgreen; | ||
|
||
} | ||
|
||
|
||
</style> | ||
<title>FeedBack-Collection-Form 📩</title> | ||
</head> | ||
<body class="textc"> | ||
<h1>CoderOne Feedback System Form</h1> | ||
<form action="/submit-feedback" method="post"> | ||
<label for="name">Name:</label> | ||
<input type="text" id="name" name="name" /> | ||
<br /><br /> | ||
<label for="contactNumber">Contact Number:</label> | ||
<input type="text" id="contactNumber" name="contactNumber" /> | ||
<br /><br /> | ||
<label for="email">Email:</label> | ||
<input type="email" id="email" name="email" /> | ||
<br /><br /> | ||
<label for="feedback">Describe your feedback:</label> | ||
<textarea name="feedback" id="feedback"></textarea> | ||
<br><br> | ||
<button type="submit">Submit</button> | ||
<br /><br /> | ||
</form> | ||
</body> | ||
</html> |
Oops, something went wrong.