Skip to content

Commit

Permalink
clase 14
Browse files Browse the repository at this point in the history
  • Loading branch information
andreybejarano committed Jul 1, 2022
1 parent 4521f8a commit c920289
Show file tree
Hide file tree
Showing 13 changed files with 3,817 additions and 0 deletions.
15 changes: 15 additions & 0 deletions clase14/app.js
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');
});
23 changes: 23 additions & 0 deletions clase14/flex.html
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>
Loading

0 comments on commit c920289

Please sign in to comment.