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
25 changes: 25 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -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');
});
16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "lab-express-basic-site",
"version": "1.0.0",
"description": "![logo_ironhack_blue 7](https://user-images.githubusercontent.com/23629340/40541063-a07a0a8a-601a-11e8-91b5-2f13e4e6b441.png)",
"main": "app.js",
"scripts": {
"start": "node app.js",
"dev": "node --watch"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.18.2"
}
}
Binary file added public/images/After-aquí-acaba-todo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/Maravilloso-desastre.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions public/stylesheets/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
body {
display: flex;
color: whitesmoke;
background-color: black;
padding: 2em;
flex-direction: column;
}

h1 {
display: flex;
justify-content: center;
}
14 changes: 14 additions & 0 deletions views/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>About</title>
<link rel="stylesheets" href="/public/stylesheets/main.css" />
</head>
<body>
<h1>About me</h1>

<a class="menu_bar" href="Home">Home Page</a>
<img>
</body>
</html>
Empty file added views/gallery.html
Empty file.
19 changes: 19 additions & 0 deletions views/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Raúl Pérez Sánchez</title>
<link rel="stylesheets" href="/public/stylesheets/main.css" />
</head>
<body>
<h1>Raúl Pérez Sánchez</h1>

<div class="menu_bar">
<a href="/views/about.html">About me</a>
<a href="/views/works.html">Works</a>
<a href="/views/gallery.html">Gallery</a>
</div>

<h2>Me llamo Raúl, soy actor de doblaje y locutor. En esta página podrás encontrar un breve resumen de algunos de mis trabajos.</h2>
</body>
</html>
46 changes: 46 additions & 0 deletions views/works.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Proyectos</title>
<link rel="stylesheets" href="/public/stylesheets/main.css" />
</head>
<body>
<h1>Proyectos</h1>

<a class="menu_bar" href="Home">Home Page</a>

<div>Doblaje</div>

<li>After: aquí acaba todo</li>
<ol>Mark</ol>
<!--<img src="/public/images/After-aquí-acaba-todo.png" />-->

<li>Maravilloso desastre</li>
<ol>Adam</ol>
<!--<img src="/public/images/Maravilloso-desastre.png" />-->

<li>La escuela del bien y del mal</li>
<ol>Eric</ol>

<li>Por mandato del cielo</li>
<ol>Samuel</ol>

<li>Curon</li>

<li>Papergirls</li>
<li>Daybreak</li>
<li>Full circle</li>
<li>Greenleaf</li>
<li>Las nadadoras</li>
<li>La guardia del león</li>
<li>Belle</li>
<li>La calle del terror - Parte 2: 1978</li>
<li>Beau tiene miedo</li>
<li>Calle dálmatas 101</li>
<li>Safety</li>
<li>Un fantasma anda suelto por casa</li>
<li>La escuela de la vida</li>

</body>
</html>