diff --git a/index.js b/index.js new file mode 100644 index 00000000..d3720daa --- /dev/null +++ b/index.js @@ -0,0 +1,21 @@ +let express = require("express"); +const app = express(); + +app.use(express.static('public')) + +app.listen(3000); + +//day 8 express code +// const express = require("express"); +// const bodyParser = require("body-parser"); + +// const app = express(); +// app.use(bodyParser.json()); + +// app.listen(3002, (err) => { +// if (err) { +// return console.log("Error", err); +// } +// console.log("Web server is now listening for messages", err); +// }); + diff --git a/public/index.css b/public/index.css new file mode 100644 index 00000000..a81c53fd --- /dev/null +++ b/public/index.css @@ -0,0 +1,37 @@ +*{ + box-sizing: border-box; +} +body{ + margin: 0; + padding: 0; +} +.searchbox{ + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + height: 40px; + border-radius: 40px; + padding: 10px; + color: black; +} +.search-btn{ + float: right; + width: 40px; + height: 40px; + padding: 10px; + border: 1px; + outline-color:black; +} +.search-txt{ + float: left; + padding: 0; + height: 30px; + outline-color: grey; + font-size: 16px; + width: 240px; +} + +.item{ + border: solid black 1px; +} \ No newline at end of file diff --git a/public/index.html b/public/index.html index 138da963..3347f256 100644 --- a/public/index.html +++ b/public/index.html @@ -4,11 +4,50 @@