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 @@ + + + + + + Lab Server + + + +

+ 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 @@ + + + + + + Lab Server + + + +

Hello! Welcome to Ed Sheeran's website!

+ ed Sheeran + + + \ 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 @@ + + + + + + Lab Server + + + +

+ 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: +

  • + “÷ (Divide)” (2017): Notable Tracks: “Shape of You,” “Castle on the + Hill,” “Perfect,” and “Galway Girl.” This album received critical + acclaim and topped charts worldwide1. +
  • + +
  • + “x (Multiply)” (2014): Notable Tracks: “Sing,” “Don’t,” “Thinking Out + Loud,” and “Photograph.” “x” showcased Ed Sheeran’s versatility and + cemented his status as a global superstar1. +
  • +
  • + “+” (Plus) (2011): Notable Tracks: “The A Team,” “Lego House,” “Drunk,” + and “Give Me Love.” His debut album, “+” introduced his soulful acoustic + sound and gained widespread recognition1. +
  • +
  • + “=” (Equals)" (2021): Notable Tracks: “Bad Habits,” “Shivers,” “First + Times,” and “Visiting Hours.” Released in 2021, this album continues to + showcase Ed Sheeran’s songwriting prowess1. +
  • + +
  • + “No.6 Collaborations Project” (2019): Notable Collaborations: Featuring + artists like Khalid, Camila Cabello, Justin Bieber, Eminem, and more. + This album explored various genres and highlighted Ed’s ability to + collaborate with other artists1. +
  • + Ed Sheeran’s discography reflects his evolution from a hidden gem to a + global sensation, and each album has left a lasting impact on music lovers + worldwide2. His sales figures and chart-topping success speak volumes + about his influence in the industry3. Whether you prefer his heartfelt + ballads or upbeat hits, there’s an Ed Sheeran album for everyone! 🎶🌟 +

    + +