app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));
+//setup places
+app.use('/public/stylesheets', express.static('stylesheets'));
+app.use('/public/images', express.static('images'));
+app.use('/public/javascripts', express.static('javascripts'));
+app.use('/favicon.ico', express.static('/public/images/favicon.ico'));
app.use('/', indexRouter);
app.use('/users', usersRouter);
--- /dev/null
+<header>
+ <link rel="stylesheet" type="text/css" href="stylesheets/header.css" />
+ <div class="pane">
+ <img src="http://www.utesa.edu/webutesa/IMAGES/LogoUtesaSC.gif" alt="">
+ <h1>UNIVERSIDAD TECNOLOGICA DE SANTIAGO</h1>
+ </div>
+ <div class="navbar">
+ <a href="index">Inicio</a>
+ <a href="message">Mensaje del rector</a>
+ <a href="posts">Publicaciones</a>
+ <a href="activities">Actividades</a>
+ <a href="news">Noticias</a>
+ <a href="mail">E-Mail</a>
+ </div>
+</header>
--- /dev/null
+*{
+ box-sizing: border-box;
+ padding: 0;
+ margin: 0;
+}
+.pane{
+ display: flex;
+ background: #FFCC00;
+ color: white;
+ align-content: space-around;
+ align-items: center;
+}
+
+.pane > img {
+ height: 6em;
+}
+.pane > h1 {
+ text-shadow: 2px 2px #000000;
+ padding-left: 6em;
+}
+
+.navbar {
+ background: #dddddd;
+ display: flex;
+ flex-flow: row nowrap;
+ align-items: center;
+ height: 2em;
+}
+.navbar > a{
+ height: 100%;
+ flex-grow: 1;
+ text-align: center;
+ color: black;
+ text-decoration: none;
+ padding-top: 0.5em;
+ transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
+}
+.navbar > a:hover {
+ color: white;
+ background: green;
+ box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
+}
res.render('index', { title: 'Express' });
});
+
module.exports = router;
+<meta name="viewport" content="width=device-width, initial-scale=1">
<!DOCTYPE html>
-<html>
+<html lang="en" dir="ltr">
<head>
- <title><%= title %></title>
- <link rel='stylesheet' href='/stylesheets/style.css' />
+ <meta charset="utf-8">
+ <title>UTESA</title>
</head>
+ <%include ../partials/header%>
<body>
- <h1><%= title %></h1>
- <p>Welcome to <%= title %></p>
+ <aside class="">
+
+ </aside>
+ <main>
+
+ </main>
+ <aside class="">
+
+ </aside>
</body>
+ <%include ../partials/footer%>
</html>