Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -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)
26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
Empty file added public/about.css
Empty file.
4 changes: 4 additions & 0 deletions public/home.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#nav-bar{
display: flex;
justify-content: space-around;
}
Binary file added public/images/Ed-sheeran.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added public/works.css
Empty file.
18 changes: 18 additions & 0 deletions views/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lab Server</title>
<link rel="stylesheet" href="/public/about.css" />
</head>
<body>
<p>
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.
</p>
</body>
</html>
17 changes: 17 additions & 0 deletions views/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lab Server</title>
<link rel="stylesheet" href="/public/home.css">
</head>
<body>
<h1>Hello! Welcome to Ed Sheeran's website!</h1>
<img src="/public/images/Ed-sheeran.jpg" alt="ed Sheeran">
<div id="nav-bar">
<a href="/about">About him</a>
<a href="/works">his Most Famous Albums</a>
</div>
</body>
</html>
49 changes: 49 additions & 0 deletions views/works.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lab Server</title>
<link rel="stylesheet" href="/public/works.css" />
</head>
<body>
<p>
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:
<li>
“÷ (Divide)” (2017): Notable Tracks: “Shape of You,” “Castle on the
Hill,” “Perfect,” and “Galway Girl.” This album received critical
acclaim and topped charts worldwide1.
</li>

<li>
“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.
</li>
<li>
“+” (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.
</li>
<li>
“=” (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.
</li>

<li>
“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.
</li>
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! 🎶🌟
</p>
</body>
</html>