Add prose and update copy and make better navbar

This commit is contained in:
2024-11-10 05:00:37 +01:00
parent a3de4dcb43
commit c1cce38148
5 changed files with 34 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,19 @@
const navbar = document.getElementById('navbar');
const navbarStyles =
'fixed z-20 flex flex-col items-center justify-center w-full p-4 bg-transparent md:flex-row';
const navbarStylesScrolled =
'fixed flex flex-col md:flex-row w-full justify-center items-center p-4 z-20 bg-gray-900/80 backdrop-blur-md';
const handleScroll = () => {
if (window.scrollY > 10) {
navbar.className = navbarStylesScrolled;
} else {
navbar.className = navbarStyles;
}
};
window.addEventListener('scroll', handleScroll);
window.addEventListener('load', () => {
navbar.className = navbarStyles;
});

View File

@@ -15,13 +15,19 @@
</div> </div>
<h1 class="mt-6 text-3xl font-extrabold">More info about me! 💡</h1> <h1 class="mt-6 text-3xl font-extrabold">More info about me! 💡</h1>
<div <div
class="flex flex-col items-center m-4 prose text-justify text-white md:text-left md:m-0 md:w-1/2 md:prose-lg lg:prose-xl" class="flex flex-col m-4 prose text-white md:text-left md:m-0 md:w-1/2 md:prose-lg lg:prose-xl prose-blue"
> >
<p> <p>
Hi! I am Gabriel and I am {{ age }} years old. I study Bioinformatics at the Hi! I am Gabriel and I am {{ age }} years old. I study Bioinformatics at the
University of Gdansk 🏫. I'm fluent in Polish and English and currently work University of Gdansk 🏫. I'm fluent in Polish and English and currently work
as a Python Developer at digimonkeys.com 🐒💻. as a Python Developer at digimonkeys.com 🐒💻.
</p> </p>
<p>
I have published one article you can read it
<a target="_blank" href="http://dx.doi.org/10.1038/s41598-023-44488-7">
here
</a>.
</p>
</div> </div>
<h1 class="mt-6 text-3xl font-extrabold">Hobbies 🎮🎸</h1> <h1 class="mt-6 text-3xl font-extrabold">Hobbies 🎮🎸</h1>
<div <div
@@ -39,7 +45,7 @@
🏅") }} {{ chip::chip(text="History 🏰")}} 🏅") }} {{ chip::chip(text="History 🏰")}}
</div> </div>
<h1 class="mt-6 text-3xl font-bold">FAQ ❓</h1> <h1 class="mt-6 text-3xl font-bold">FAQ ❓</h1>
<div class="flex flex-col gap-2 m-4"> <div id="faq" class="flex flex-col gap-2 m-4">
<div> <div>
<h6 class="text-xl font-bold"> <h6 class="text-xl font-bold">
How old were you when you started programming? How old were you when you started programming?

View File

@@ -1,3 +1,4 @@
<script src="/static/js/navbar.js" defer></script>
<nav <nav
class="fixed z-20 flex flex-col items-center justify-center w-full p-4 bg-transparent md:flex-row" class="fixed z-20 flex flex-col items-center justify-center w-full p-4 bg-transparent md:flex-row"
id="navbar" id="navbar"

View File

@@ -1,6 +1,10 @@
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
module.exports = { module.exports = {
content: ['./assets/**/*.html', './assets/**/*.js'], content: [
'./assets/**/*.html',
'./assets/**/*.js',
'./assets/static/js/*.js',
],
theme: { theme: {
extend: {}, extend: {},
}, },