diff --git a/routes/about.js b/routes/about.js index eda7c08..2806c49 100644 --- a/routes/about.js +++ b/routes/about.js @@ -1,5 +1,5 @@ -var express = require('express'); -const axios = require('axios'); +var express = require("express"); +const axios = require("axios"); var router = express.Router(); /* GET home page. */ @@ -30,7 +30,13 @@ router.get('/', function (req, res, _next) { }) ) .catch((error) => { - console.log(error); + var base = { + title: 'About', + description: 'Who??? What??? AAAAaaa, about me.', + }; + var out = Object.assign(base); + console.log('error', error); + res.render('about', out); }); }); diff --git a/views/about.pug b/views/about.pug index 352b322..5063396 100644 --- a/views/about.pug +++ b/views/about.pug @@ -20,43 +20,47 @@ block nav-links li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out") span Contact + + block content div.mt-5 div.text-lg h1.font-sans.text-6xl.wavy.mb-10 Hello. - p.mb-5 I’m E, a 20 year old student in 3rd year of university, who studies computer science & artificial intelligence, somehow achieved a 1:1 for the previous two years. - p.mb-5 In my free time, I create small projects to learn new skills to be helpful for others, recently i have been focusing on Django and tailwind for my job. - p.mb-5 Graphic design is also very fun and i enjoy making small projects to post on instagram, it has helped a lot with UX/UI design for applications. - p.mb-5 Currently I am working as a freelance developer for Bounce Technologies! - div - h1.font-sans.text-6xl.wavy.my-10 Projects. - - div - each val in project - div(class="mb-10 text-center sm:text-left") - div.contents - a(href=val.url).contents - if val.feature_image - img(class="sm:w-2/3 mx-auto sm:mx-0" src=val.feature_image) - else - img(src="/images/logo.png") - div.mt-2 - a(href=val.url) - span(class="font-sans text-2xl sm:text-3xl mt-3 mb-3") #{val.title} - p.text-lg #{val.excerpt} + p.mb-5 I’m E, a 23-year-old full-stack developer with three years’ professional experience. I live in the UK. + p.mb-5 I’m currently working at Bounce Technologies, where I contribute to or lead various projects using a bunch of different languages and technologies. + p.mb-5 I also do UI/UX design and DevOps! I’m currently learning Go and adjusting to TypeScript. + p.mb-5 In my spare time I create digital art and make electronic music. I also like to discover and play experimental and artistic video games. + if project + div + h1.font-sans.text-6xl.wavy.my-10 Projects. + + div + each val in project + div(class="mb-10 text-center sm:text-left") + div.contents + a(href=val.url).contents + if val.feature_image + img(class="sm:w-2/3 mx-auto sm:mx-0" src=val.feature_image) + else + img(src="/images/logo.png") + div.mt-2 + a(href=val.url) + span(class="font-sans text-2xl sm:text-3xl mt-3 mb-3") #{val.title} + p.text-lg #{val.excerpt} - div - h1.font-sans.text-6xl.wavy.my-10 Blog. - div - each val in blog - div(class="mb-10 text-center sm:text-left") - div.contents - a(href=val.url).contents - if val.feature_image - img(class="sm:w-2/3 mx-auto sm:mx-0" src=val.feature_image) - else - img(src="/images/logo.png") - div.mt-2 - a(href=val.url) - span(class="font-sans text-2xl sm:text-3xl mt-3 mb-3") #{val.title} - p.text-lg #{val.excerpt} + if blog + div + h1.font-sans.text-6xl.wavy.my-10 Blog. + div + each val in blog + div(class="mb-10 text-center sm:text-left") + div.contents + a(href=val.url).contents + if val.feature_image + img(class="sm:w-2/3 mx-auto sm:mx-0" src=val.feature_image) + else + img(src="/images/logo.png") + div.mt-2 + a(href=val.url) + span(class="font-sans text-2xl sm:text-3xl mt-3 mb-3") #{val.title} + p.text-lg #{val.excerpt}