Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
amareshkannan authored Jan 23, 2025
0 parents commit 1e1f074
Show file tree
Hide file tree
Showing 5 changed files with 1,230 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fb.js
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);
79 changes: 79 additions & 0 deletions index.html
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>
Loading

0 comments on commit 1e1f074

Please sign in to comment.