-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4521f8a
commit c920289
Showing
13 changed files
with
3,817 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const express = require('express'); | ||
const path = require('path'); | ||
|
||
const app = express(); | ||
|
||
const pathPublic = path.resolve(__dirname, './public'); | ||
app.use(express.static(pathPublic)); | ||
|
||
app.get('/', (req,res)=>{ | ||
res.sendFile(__dirname + '/views/home.html'); | ||
}); | ||
|
||
app.listen(3000, ()=>{ | ||
console.log('Servidor funcionando en: http://localhost:3000'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
<link rel="stylesheet" href="/styles.css"> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="wrap"> | ||
<div class="element box1">1</div> | ||
<div class="element box2">2</div> | ||
<div class="element box3">3</div> | ||
<div class="element box4">4</div> | ||
<div class="element box1">5</div> | ||
<div class="element box2">6</div> | ||
<div class="element box3">7</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.