diff --git a/app.js b/app.js index e69de29bb..11f9d72ab 100644 --- a/app.js +++ b/app.js @@ -0,0 +1,25 @@ +const express = require('express'); + +const app = express(); + +app.use(express.static('public')); + +app.get('/home', (req, res) =>{ + res.send('/views/home.html'); +}); + +app.get('/about', (req, res) => { + res.send('/views/about.html'); +}) + +app.get('/works', (req, res) => { + res.send('/views/works.html'); +}); + +app.get('/gallery', (req, res) => { + res.send('/views/gallery.html'); +}); + +app.listen(3000, () => { + console.log('My first app listener'); +}); \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 000000000..ff8510b05 --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "name": "lab-express-basic-site", + "version": "1.0.0", + "description": "", + "main": "app.js", + "scripts": { + "start": "node app.js", + "dev": "node --watch" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "express": "^4.18.2" + } +} diff --git "a/public/images/After-aqu\303\255-acaba-todo.png" "b/public/images/After-aqu\303\255-acaba-todo.png" new file mode 100644 index 000000000..339be6e15 Binary files /dev/null and "b/public/images/After-aqu\303\255-acaba-todo.png" differ diff --git a/public/images/Maravilloso-desastre.png b/public/images/Maravilloso-desastre.png new file mode 100644 index 000000000..8e42e348a Binary files /dev/null and b/public/images/Maravilloso-desastre.png differ diff --git a/public/stylesheets/main.css b/public/stylesheets/main.css new file mode 100644 index 000000000..0e059e36a --- /dev/null +++ b/public/stylesheets/main.css @@ -0,0 +1,12 @@ +body { + display: flex; + color: whitesmoke; + background-color: black; + padding: 2em; + flex-direction: column; +} + +h1 { + display: flex; + justify-content: center; +} \ No newline at end of file diff --git a/views/about.html b/views/about.html new file mode 100644 index 000000000..b2d554678 --- /dev/null +++ b/views/about.html @@ -0,0 +1,14 @@ + + +
+ +