Skip to content

Commit e9d662e

Browse files
committed
Agregando contenido y utilizando Boostrap5
1 parent 2bc52aa commit e9d662e

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

src/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ const __dirname = dirname(fileURLToPath(import.meta.url)); //direccionar ruta ab
99

1010
app.set('views', join(__dirname, 'views'));
1111
app.set('view engine', 'ejs');
12+
1213
app.use(indexRoutes);
1314

15+
app.use(express.static(join(__dirname, 'public')))
16+
1417
app.listen(3000);
1518

1619
console.log('server is listening on port', 3000)

src/public/main.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body{
2+
background: green;
3+
}

src/views/index.ejs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title><%=title%></title>
8+
<%- include('partials/head') %>
89
</head>
910
<body>
1011
<%- include('partials/navigation') %>

src/views/partials/head.ejs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<!-- Boostrap5 -->
2+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
3+
4+
<!-- custom CSS -->
5+
<link rel="stylesheet" href="/main.css">

0 commit comments

Comments
 (0)