Skip to content

Commit 2928bff

Browse files
committed
Adding more styles
1 parent cf10c8e commit 2928bff

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

SURVEY FORM/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ app.get("/", function(req, res) {
88
res.sendFile(__dirname + "/index.html");
99
});
1010

11-
app.post("/index.html", (req, res) => {
12-
res.send("<h1> Thankyou for filling up this feedback form</h1>");
11+
app.post("/", (req, res) => {
12+
res.send("<h1> Thankyou for filling up this feedback form. Go back to the previous page =) </h1>");
1313
})
1414

1515
app.listen(3000, function() {

SURVEY FORM/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</head>
99
<body>
1010
<h1>Please fill this Survey-Form.</h1>
11-
11+
<header>
1212
<form method="POST">
1313
<div>
1414
<label for="name"><b>Name:</b></label>
@@ -34,5 +34,6 @@ <h1>Please fill this Survey-Form.</h1>
3434
<button type="submit" class="btn">Submit</button>
3535
</div>
3636
</form>
37+
</header>
3738
</body>
3839
</html>

SURVEY FORM/public/css/style.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
body{
22
background-color: rgb(246, 167, 181);
33
}
4+
h1{
5+
text-align: center;
6+
}
47
div{
58
background-color: #fff;
69
text-align: center;
710
width: 600px;
8-
height: 570px;
11+
/* height: 570px; */
12+
height: auto;
913
position: absolute;
1014
left: 21%;
1115
margin: 50px;
1216
padding: 50px;
1317
}
1418

19+
header {
20+
margin-bottom: 50px;
21+
}
22+
1523
input, textarea{
1624
display: block;
1725
margin: 10px auto;

0 commit comments

Comments
 (0)