diff --git a/app.js b/app.js index e69de29bb..1cf50d6e5 100644 --- a/app.js +++ b/app.js @@ -0,0 +1,15 @@ +const express = require ('express') +const app = express() + +app.get('/', (req, res) =>{ + res.sendFile(__dirname + '/views/home.html'); +}) +app.get('/about', (req, res) =>{ + res.sendFile(__dirname + '/views/about.html'); +}) +app.get('/works', (req, res) =>{ + res.sendFile(__dirname + '/views/works.html'); +}) + + +app.listen(3000) \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 000000000..16051299d --- /dev/null +++ b/package.json @@ -0,0 +1,26 @@ +{ + "name": "lab", + "version": "1.0.0", + "description": "this is a practice", + "main": "app.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "dev": "nodemon app.js" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Bruno-Zamperoni/lab-express-basic-site.git" + }, + "author": "Bruno", + "license": "ISC", + "bugs": { + "url": "https://github.com/Bruno-Zamperoni/lab-express-basic-site/issues" + }, + "homepage": "https://github.com/Bruno-Zamperoni/lab-express-basic-site#readme", + "dependencies": { + "express": "^4.19.2" + }, + "devDependencies": { + "nodemon": "^3.1.0" + } +} diff --git a/public/about.css b/public/about.css new file mode 100644 index 000000000..e69de29bb diff --git a/public/home.css b/public/home.css new file mode 100644 index 000000000..fe1044557 --- /dev/null +++ b/public/home.css @@ -0,0 +1,4 @@ +#nav-bar{ + display: flex; + justify-content: space-around; +} \ No newline at end of file diff --git a/public/images/Ed-sheeran.jpg b/public/images/Ed-sheeran.jpg new file mode 100644 index 000000000..bfae1cffe Binary files /dev/null and b/public/images/Ed-sheeran.jpg differ diff --git a/public/works.css b/public/works.css new file mode 100644 index 000000000..e69de29bb diff --git a/views/about.html b/views/about.html new file mode 100644 index 000000000..87673771d --- /dev/null +++ b/views/about.html @@ -0,0 +1,18 @@ + + +
+ + ++ Edward Christopher Sheeran MBE (/ˈʃɪərən/ SHEER-ən; born 17 February 1991) + is an English singer-songwriter. Born in Halifax, West Yorkshire, and + raised in Framlingham, Suffolk, he began writing songs around the age of + eleven. In early 2011, Sheeran independently released the extended play + No. 5 Collaborations Project. He signed with Asylum Records the same year. +
+ + diff --git a/views/home.html b/views/home.html new file mode 100644 index 000000000..78b4f662e --- /dev/null +++ b/views/home.html @@ -0,0 +1,17 @@ + + + + + +
+
+
+
\ No newline at end of file
diff --git a/views/works.html b/views/works.html
new file mode 100644
index 000000000..d5c70fef8
--- /dev/null
+++ b/views/works.html
@@ -0,0 +1,49 @@
+
+
+
+
+
+ + Ed Sheeran, the talented singer-songwriter, has released several + successful albums throughout his career. Let’s take a look at some of his + most famous ones: +