Zdruzil headerje

This commit is contained in:
Nikola Petrov 2023-06-25 13:59:31 +02:00
parent 4303625b54
commit f945d1524e
9 changed files with 788 additions and 865 deletions

2
app.js
View File

@ -75,7 +75,7 @@ app.use(function(err, req, res, next) {
// render the error page // render the error page
res.status(err.status || 500); res.status(err.status || 500);
res.render('error'); res.render('error', {title:'Error'});
}); });
const port = 80; const port = 80;

View File

@ -3,7 +3,7 @@ var router = express.Router();
/* GET home page. */ /* GET home page. */
router.get('/', function(req, res, next) { router.get('/', function(req, res, next) {
res.render('main/1_0'); res.render('main/1_0', {title:'Nikola Petrov'});
}); });
module.exports = router; module.exports = router;

View File

@ -3,7 +3,7 @@ var router = express.Router();
/* GET home page. */ /* GET home page. */
router.get('/', function(req, res, next) { router.get('/', function(req, res, next) {
res.render('main/2_0'); res.render('main/2_0', {title:'Nikola Petrov'});
}); });
module.exports = router; module.exports = router;

View File

@ -3,7 +3,7 @@ var router = express.Router();
/* GET home page. */ /* GET home page. */
router.get('/', function(req, res, next) { router.get('/', function(req, res, next) {
res.render('movies/show'); res.render('movies/show', { title: 'Movies' });
}); });
module.exports = router; module.exports = router;

View File

@ -1,17 +1,2 @@
<!DOCTYPE html> <h1>{{message}}</h1>
<html lang="en" data-bs-theme="dark"> <h2>{{error.status}}</h2>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<title>Document</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
</head>
<body>
<h1>{{message}}</h1>
<h2>{{error.status}}</h2>
</body>
</html>

View File

@ -1 +1,15 @@
{{{body}}} <!doctype html>
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
<title>{{title}}</title>
</head>
<body>
{{{body}}}
</body>
</html>

View File

@ -1,36 +1,21 @@
<!DOCTYPE html>
<html>
<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>Portfolio</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
<link rel="stylesheet" href="/1_0/assets/fontawesome/css/all.css">
<link rel="stylesheet" href="/1_0/css/intro.css">
<link rel="stylesheet" href="/1_0/css/styles.css">
<script defer src="/1_0/assets/WinBox/winbox.bundle.js"></script>
<script defer src="/1_0/js/main.js"></script>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
</head>
<body>
<link rel="stylesheet" href="/1_0/assets/fontawesome/css/all.css">
<link rel="stylesheet" href="/1_0/css/intro.css">
<link rel="stylesheet" href="/1_0/css/styles.css">
<script defer src="/1_0/assets/WinBox/winbox.bundle.js"></script>
<script defer src="/1_0/js/main.js"></script>
<section class="intro"> <section class="intro">
<h1 class="section__title"> <h1 class="section__title">
Hi, I am <strong>Nikola Petrov</strong> Hi, I am <strong>Nikola Petrov</strong>
</h1> </h1>
<p class="section__subtitle">2. Year RIT</p> <p class="section__subtitle">2. Year RIT</p>
<img src="/images/Jaz.jpg" alt="a picture of Nikola Petrov" class="intro__img"> <img src="/images/Jaz.jpg" alt="a picture of Nikola Petrov" class="intro__img">
</section> </section>
<div class="container"> <div class="container">
<div class="text-center" id="buttons"> <div class="text-center" id="buttons">
<a class="btn btn-info btn-lg" id="git" href="https://gitlab.com/nikolape7">Git</a> <a class="btn btn-info btn-lg" id="git" href="https://gitlab.com/nikolape7">Git</a>
@ -80,9 +65,9 @@
</table> </table>
</div> </div>
</div> </div>
</div> </div>
<section class="hidden"> <section class="hidden">
<div id="work-experience-content"> <div id="work-experience-content">
<div class="container margin-top"> <div class="container margin-top">
<div class="row"> <div class="row">
@ -185,7 +170,6 @@
</div> </div>
</div> </div>
</section> </section>
</body>
</html>

View File

@ -1,58 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head> <script defer src="/2_0/js/script.js"></script>
<meta charset="UTF-8"> <link rel="stylesheet" href="/2_0/css/style.css">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <link rel="preconnect" href="https://fonts.googleapis.com">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<title>Nikola Petrov</title> <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap" rel="stylesheet">
<script defer type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<!-- <script defer nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
- favicon
-->
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<!--
- custom css link
-->
<link rel="stylesheet" href="/2_0/css/style.css">
<!--
- google font link
-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap" rel="stylesheet">
<!--
- custom js link
-->
<script defer src="/2_0/js/script.js"></script>
<!--
- ionicon link
-->
<script defer type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script defer nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
</head>
<body>
<!--
- #MAIN
-->
<main>
<!--
- #SIDEBAR
-->
<main>
<aside class="sidebar" data-sidebar> <aside class="sidebar" data-sidebar>
<div class="sidebar-info"> <div class="sidebar-info">
<figure class="avatar-box"> <figure class="avatar-box">
<img src="/images/Jaz.jpg" alt="Nikola Petrov" width="80"> <img src="/images/Jaz.jpg" alt="Nikola Petrov" width="80">
</figure> </figure>
@ -652,8 +609,4 @@
</div> </div>
</main> </main>
</body>
</html>

View File

@ -1,24 +1,11 @@
<!doctype html>
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Movies</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
</head> <script defer src="/p_movies/script.js"></script>
<body> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<script defer src="/p_movies/script.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<div class="album py-5 bg-body-tertiary"> <div class="album py-5 bg-body-tertiary">
<div class="container"> <div class="container">
<div id="movie_tbody" class="row row-cols-3 row-cols-sm-4 row-cols-md-5 row-cols-lg-6 g-3"> <div id="movie_tbody" class="row row-cols-3 row-cols-sm-4 row-cols-md-5 row-cols-lg-6 g-3">
<!-- JS puts images here --> <!-- JS puts images here -->
</div> </div>
</div> </div>
</div> </div>
</body>
</html>