Update bio and remove CV link for privacy issues

This commit is contained in:
E 2024-04-29 12:47:49 +01:00
parent 80813d48e3
commit 4cfe084bb1
No known key found for this signature in database
GPG Key ID: 9D57A2D583601371
5 changed files with 73 additions and 64 deletions

View File

@ -1,27 +1,43 @@
var express = require('express'); var express = require("express");
const axios = require('axios'); const axios = require("axios");
var router = express.Router(); var router = express.Router();
/* GET home page. */ /* GET home page. */
router.get('/', function(req, res, next) { router.get("/", function (req, res, next) {
const GHOST_KEY = process.env.GHOST_KEY const GHOST_KEY = process.env.GHOST_KEY;
const base_url = `https://blog.pastel.codes/ghost/api/v3/content/posts/?key=${GHOST_KEY}` const base_url = `https://blog.pastel.codes/ghost/api/v3/content/posts/?key=${GHOST_KEY}`;
axios.all([ axios
axios.get(`${base_url}&limit=3`), .all([
axios.get(`${base_url}&limit=3&filter=tag:project`), axios.get(`${base_url}&limit=3`),
axios.get(`${base_url}&limit=3&filter=tag:project`),
]) ])
.then(axios.spread((response1, response2) => { .then(
var base = { title: 'About', description: 'Who??? What??? AAAAaaa, about me.'}; axios.spread((response1, response2) => {
var blog = JSON.parse(JSON.stringify(response1.data).split('"posts":').join('"blog":')); var base = {
var projects = JSON.parse(JSON.stringify(response2.data).split('"posts":').join('"project":')); title: "About",
var out = Object.assign(base, blog, projects); description: "Who??? What??? AAAAaaa, about me.",
};
var blog = JSON.parse(
JSON.stringify(response1.data).split('"posts":').join('"blog":')
);
var projects = JSON.parse(
JSON.stringify(response2.data).split('"posts":').join('"project":')
);
var out = Object.assign(base, blog, projects);
res.render('about', out); res.render("about", out);
})) })
.catch(error => { )
console.log(error); .catch((error) => {
}); var base = {
title: "About",
description: "Who??? What??? AAAAaaa, about me.",
};
var out = Object.assign(base);
console.log("error", error);
res.render("about", out);
});
}); });
module.exports = router; module.exports = router;

View File

@ -7,9 +7,6 @@ block nav-links
a(href='#') a(href='#')
li(class="py-3 bg-black text-green hover:bg-pink hover:text-black transition duration-500 ease-in-out") li(class="py-3 bg-black text-green hover:bg-pink hover:text-black transition duration-500 ease-in-out")
span About span About
a(href='#')
li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out")
span CV
a(href='https://github.com/aurora-dot') a(href='https://github.com/aurora-dot')
li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out") li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out")
span Projects span Projects
@ -20,43 +17,48 @@ block nav-links
li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out") li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out")
span Contact span Contact
block content block content
div.mt-5 div.mt-5
div.text-lg div.text-lg
h1.font-sans.text-6xl.wavy.mb-10 Hello. h1.font-sans.text-6xl.wavy.mb-10 Hello.
p.mb-5 Im 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 Im E, a 23 year year old full stack developer with three years experience, located in the UK.
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 Currently I'm working at Bounce Technologies working on various projects using various languages.
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 I also do UI, UX and DevOps! Currently learning Go and adjusting to TypeScript.
p.mb-5 Currently I am working as a freelance developer for Bounce Technologies! p.mb-5 I create digital art and electronic music-making, additionally in my free time, I play experimental and artistic video games.
div
h1.font-sans.text-6xl.wavy.my-10 Projects.
div if project
each val in project div
div(class="mb-10 text-center sm:text-left") h1.font-sans.text-6xl.wavy.my-10 Projects.
div.contents
a(href=val.url).contents div
if val.feature_image each val in project
img(class="sm:w-2/3 mx-auto sm:mx-0" src=val.feature_image) div(class="mb-10 text-center sm:text-left")
else div.contents
img(src="/images/logo.png") a(href=val.url).contents
div.mt-2 if val.feature_image
a(href=val.url) img(class="sm:w-2/3 mx-auto sm:mx-0" src=val.feature_image)
span(class="font-sans text-2xl sm:text-3xl mt-3 mb-3") #{val.title} else
p.text-lg #{val.excerpt} 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 if blog
h1.font-sans.text-6xl.wavy.my-10 Blog. div
div h1.font-sans.text-6xl.wavy.my-10 Blog.
each val in blog div
div(class="mb-10 text-center sm:text-left") each val in blog
div.contents div(class="mb-10 text-center sm:text-left")
a(href=val.url).contents div.contents
if val.feature_image a(href=val.url).contents
img(class="sm:w-2/3 mx-auto sm:mx-0" src=val.feature_image) if val.feature_image
else img(class="sm:w-2/3 mx-auto sm:mx-0" src=val.feature_image)
img(src="/images/logo.png") else
div.mt-2 img(src="/images/logo.png")
a(href=val.url) div.mt-2
span(class="font-sans text-2xl sm:text-3xl mt-3 mb-3") #{val.title} a(href=val.url)
p.text-lg #{val.excerpt} span(class="font-sans text-2xl sm:text-3xl mt-3 mb-3") #{val.title}
p.text-lg #{val.excerpt}

View File

@ -10,9 +10,6 @@ block nav-links
a(href='/about') a(href='/about')
li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out") li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out")
span About span About
a(href='#')
li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out")
span CV
a(href='https://github.com/aurora-dot') a(href='https://github.com/aurora-dot')
li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out") li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out")
span Projects span Projects

View File

@ -7,9 +7,6 @@ block nav-links
li.nav-item li.nav-item
a.nav-link(href='/about') a.nav-link(href='/about')
span About span About
li.nav-item
a.nav-link(href='#')
span CV
li.nav-item li.nav-item
a.nav-link(href='https://github.com/aurora-dot') a.nav-link(href='https://github.com/aurora-dot')
span Projects span Projects

View File

@ -7,9 +7,6 @@ block nav-links
a(href='/about') a(href='/about')
li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out") li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out")
span About span About
a(href='#')
li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out")
span CV
a(href='https://github.com/aurora-dot') a(href='https://github.com/aurora-dot')
li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out") li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out")
span Projects span Projects