diff --git a/.gitignore b/.gitignore
index 749193b..114cad6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -64,4 +64,5 @@ UpImage/
archive/
public/assets/build/
.vscode/
-package-lock.json
\ No newline at end of file
+package-lock.json
+bun.lockb
\ No newline at end of file
diff --git a/routes/main.js b/routes/main.js
index b73302b..9f3f893 100644
--- a/routes/main.js
+++ b/routes/main.js
@@ -3,7 +3,34 @@ var router = express.Router();
/* GET home page. */
router.get('/', function (req, res, next) {
- res.render('main/2_0', { title: 'Nikola Petrov', disableBootStrap: true });
+
+ const categorys = ["web development", "applications", "web design"];
+
+ const entry = [
+ {
+ category: categorys[0],
+ img: "/images/logo.png",
+ title: "Title 0",
+ des: "desc",
+ link: "#"
+ },
+ {
+ category: categorys[1],
+ img: "/images/logo.png",
+ title: "Title 1",
+ des: "desc",
+ link: "#"
+ },
+ {
+ category: categorys[2],
+ img: "/images/logo.png",
+ title: "Title 2",
+ des: "desc",
+ link: "#"
+ }
+ ];
+
+ res.render('main/2_0', { title: 'Nikola Petrov', disableBootStrap: true, categorys, entry });
});
router.get('/old', function (req, res, next) {
diff --git a/views/main/2_0.hbs b/views/main/2_0.hbs
index 6b54e82..b7161b5 100644
--- a/views/main/2_0.hbs
+++ b/views/main/2_0.hbs
@@ -139,7 +139,7 @@
-
-
+
-
@@ -147,9 +147,9 @@
- {{!-- -
+
-
-
--}}
+
@@ -158,7 +158,7 @@
- #ABOUT
-->
-
+
About me
@@ -371,17 +371,11 @@
+ {{#each categorys}}
-
-
-
-
-
-
-
-
-
+
+ {{/each}}
@@ -402,187 +396,36 @@
-
+ {{#each categorys}}
-
+
-
-
-
-
-
-
-
-
-
+ {{/each}}