Compare commits

...
7 Commits
Author SHA1 Message Date
douwe d745be248d Add mobile responsiveness for phone and landscape mode
- Reduced base font size on mobile (18px vs 25px)
- Made navigation bar responsive: smaller icons, wrapped layout
- Fixed header position on mobile (sticky at top)
- Adjusted scroll_container margin top to account for fixed header
- Disabled scroll-snap on mobile for better UX
- Made home section responsive: smaller title, tagline, images
- Project cards grid: smaller cards and text on mobile
- Apps carousel: responsive icon sizes and spacing
- Games grid: smaller cards and proper spacing
- Footer: centered layout on mobile
- All interactive elements maintain touch targets
2026-09-25 11:38:15 +02:00
douwe 5c20a6b747 Revert "Improve navigation scrolling to show full content"
This reverts commit a7ea82ff19.
2026-09-25 11:31:39 +02:00
douwe a7ea82ff19 Improve navigation scrolling to show full content
- Adjusted IntersectionObserver threshold to 0.7 for better section detection
- Added scroll-padding-top to scroll_container to account for header
- Added scroll-margin-top to scroll_section for better snap alignment
- Updated navigation click handler to scroll with header height offset
- Ensures sections are fully visible when navigating
2026-09-25 11:28:37 +02:00
douwe f9036a2644 Add placeholder screenshot images for apps section
- Added 5 service screenshots (Gitea, Nextcloud, Penpot, Beszel, Wattif)
- Created apps/ directory for organization
2026-09-25 11:26:15 +02:00
douwe c5dca7bb54 Implement games section with expandable cards
- Added responsive grid of game cards with dark-teal background
- Each card has: rounded gray image placeholder, white title, gray description, orange year badge
- Click to expand: shows full description + centered play button
- Play button opens game in new window
- Flat minimal design consistent with portfolio style
- Created placeholder images for 6 games
2026-09-25 11:25:58 +02:00
Douwe 2eef84eb03 Restructure to classic static-site layout, add project-card component, fix bugs
- Move wwwroot/ to public/ with assets/ grouping (css, js, img, fonts, vid)
- Inline section includes into index.html, drop runtime fetch loading
- Add project-card web component to replace repeated project markup
- Fix IntersectionObserver options placement bug in nav highlight
- Fix @font-face syntax, invalid 5-digit hex colors, 75x border-radius typo
- Remove dead css link (home.css), unused purple/orange color vars
- Fix typos, replace inline styles with classes, serve favicon
2026-09-24 14:22:54 +00:00
douwe 8ab6193103 Merge pull request 'Changed to nginx based server removing need for hosting software. Project is pure front-end.' (#1) from nginx into main
Reviewed-on: #1
2026-09-23 12:53:02 +00:00
52 changed files with 2033 additions and 529 deletions
+43
View File
@@ -2,3 +2,46 @@
The main landing page for all my projects. The main landing page for all my projects.
You can find it at [www.douwco.be](https://www.douwco.be) You can find it at [www.douwco.be](https://www.douwco.be)
Pure static front-end site served by nginx. No build step required.
## Structure
```
public/ Site root (served by nginx)
├── index.html Single page: home, about, apps, games
├── favicon.ico
└── assets/
├── css/ douwco.css (branding), style.css (layout)
├── js/ index.js (nav, copyright), project-card.js (web component)
├── img/ Logos, screenshots, icons
├── fonts/ Righteous + Montserrat (self-hosted)
└── vid/ Demo videos
```
## Development
Any static file server works, e.g.:
```bash
docker compose up # site on http://localhost:8080
```
or natively:
```bash
python3 -m http.server -d public 8080
```
## Adding a project card
Use the `project-card` component in `public/index.html`:
```html
<project-card
image="/assets/img/my_project.png"
image-alt="My Project"
title="My Project"
description="Some text with a [[link label|https://example.com]].">
</project-card>
```
+1 -1
View File
@@ -4,7 +4,7 @@ FROM nginx:alpine
RUN rm /usr/share/nginx/html/index.html RUN rm /usr/share/nginx/html/index.html
# Copy static website files # Copy static website files
COPY wwwroot/ /usr/share/nginx/html/ COPY public/ /usr/share/nginx/html/
# Expose port 80 # Expose port 80
EXPOSE 80 EXPOSE 80
+40
View File
@@ -0,0 +1,40 @@
@font-face {
font-family: 'Righteous';
src: url('/assets/fonts/Righteous-Regular.ttf') format('truetype');
font-display: swap;
}
@font-face {
font-family: 'Montserrat';
src: url('/assets/fonts/Montserrat-Regular.ttf') format('truetype');
font-display: swap;
}
@font-face {
font-family: 'Montserrat';
src: url('/assets/fonts/Montserrat-Bold.ttf') format('truetype');
font-weight: bold;
font-display: swap;
}
:root {
--background-clr: #283e3e;
--background-accent-clr: #324f4f;
--blue-clr: #47bcdf;
--green-clr: #6ede9a;
--white-clr: #ffffff;
--card-border-radius: 25px;
--dark-green: #1a3d2e;
--dark-teal: #2c5f5f;
--orange-clr: #f39c12;
}
body {
font-family: 'Montserrat', sans-serif;
background-color: var(--background-clr);
color: var(--white-clr);
}
.title {
font-family: 'Righteous', sans-serif;
}
File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 172 KiB

After

Width:  |  Height:  |  Size: 172 KiB

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 123 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 296 KiB

After

Width:  |  Height:  |  Size: 296 KiB

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Before

Width:  |  Height:  |  Size: 327 KiB

After

Width:  |  Height:  |  Size: 327 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 KiB

Before

Width:  |  Height:  |  Size: 8.1 MiB

After

Width:  |  Height:  |  Size: 8.1 MiB

Before

Width:  |  Height:  |  Size: 984 KiB

After

Width:  |  Height:  |  Size: 984 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 327 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

+263
View File
@@ -0,0 +1,263 @@
document.addEventListener('DOMContentLoaded', () => {
setupNavigationHighlight();
setupNavigationClicks();
setupCopyright();
setupProjectCards();
setupAppsCarousel();
setupGameCards();
});
function setupNavigationHighlight() {
const sections = document.querySelectorAll('.scroll_section');
const navOptions = document.querySelectorAll('.nav_option');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const sectionId = entry.target.id;
window.history.replaceState(null, null, `#${sectionId}`);
navOptions.forEach(link => {
link.classList.toggle('active', link.getAttribute('href') === `#${sectionId}`);
});
}
});
}, {
threshold: 0.5
});
sections.forEach(section => observer.observe(section));
}
function setupNavigationClicks() {
document.querySelectorAll('.nav_option').forEach(link => {
link.addEventListener('click', (event) => {
event.preventDefault();
const targetId = link.getAttribute('href');
const targetSection = document.querySelector(targetId);
if (targetSection) {
targetSection.scrollIntoView({
behavior: 'smooth'
});
}
});
});
}
function setupCopyright() {
document.getElementById('copyright').textContent = `© ${new Date().getFullYear()} - douwco.be`;
}
function setupProjectCards() {
const projectCards = document.querySelectorAll('.project-card-new');
projectCards.forEach(card => {
const shortDesc = card.querySelector('.project-card-short-desc');
const fullContent = card.querySelector('.project-card-content');
const toggleIcon = card.querySelector('.toggle-icon');
if (!shortDesc || !fullContent || !toggleIcon) return;
const toggleCard = (event) => {
if (event.target.tagName === 'A') {
return;
}
const isExpanded = card.classList.contains('expanded');
if (isExpanded) {
card.classList.remove('expanded');
toggleIcon.textContent = '+';
} else {
card.classList.add('expanded');
toggleIcon.textContent = '−';
}
event.stopPropagation();
};
card.addEventListener('click', toggleCard);
toggleIcon.addEventListener('click', toggleCard);
});
}
function setupAppsCarousel() {
const carousel = document.getElementById('apps-carousel');
const carouselContainer = carousel ? carousel.closest('.carousel-container-full') : null;
const items = document.querySelectorAll('#apps-carousel .carousel-item-full');
const prevBtn = carouselContainer ? carouselContainer.querySelector('.carousel-nav-full.prev') : null;
const nextBtn = carouselContainer ? carouselContainer.querySelector('.carousel-nav-full.next') : null;
const screenshotImg = document.getElementById('apps-screenshot-img');
const description = document.getElementById('apps-description');
const title = document.getElementById('apps-title');
const goToAppBtn = document.getElementById('apps-link');
if (!carousel || items.length === 0) return;
const services = [
{
name: 'Gitea',
screenshot: '/assets/img/gitea_screenshot.png',
description: 'Self-hosted Git service with a simple and lightweight interface.',
url: 'https://gitea.douwco.be'
},
{
name: 'Nextcloud',
screenshot: '/assets/img/nextcloud_screenshot.png',
description: 'Private file hosting and collaboration platform with powerful features.',
url: 'https://nextcloud.douwco.be'
},
{
name: 'Penpot',
screenshot: '/assets/img/penpot_screenshot.png',
description: 'Open-source design and prototyping platform for teams.',
url: 'https://penpot.douwco.be'
},
{
name: 'Beszel',
screenshot: '/assets/img/beszel_screenshot.png',
description: 'Custom service management and monitoring dashboard.',
url: 'https://beszel.douwco.be'
},
{
name: 'Wattif',
screenshot: '/assets/img/wattif_screenshot.png',
description: 'Energy monitoring and analysis tool for smart homes.',
url: 'https://wattif.douwco.be'
}
];
let currentIndex = 0;
let isAnimating = false;
function updateCarousel() {
if (isAnimating) return;
isAnimating = true;
items.forEach((item, index) => {
const isSelected = index === currentIndex;
item.setAttribute('data-selected', isSelected.toString());
});
const service = services[currentIndex];
if (description) description.classList.remove('active');
if (screenshotImg) screenshotImg.classList.remove('active');
if (title) title.classList.remove('active');
if (goToAppBtn) goToAppBtn.classList.remove('active');
setTimeout(() => {
if (screenshotImg) {
screenshotImg.src = service.screenshot;
}
if (title) {
title.textContent = service.name;
}
if (description) {
description.innerHTML = `<p>${service.description}</p>`;
}
if (goToAppBtn) {
goToAppBtn.href = service.url;
}
setTimeout(() => {
if (description) description.classList.add('active');
if (screenshotImg) screenshotImg.classList.add('active');
if (title) title.classList.add('active');
if (goToAppBtn) goToAppBtn.classList.add('active');
isAnimating = false;
}, 50);
}, 300);
}
function rotateCarousel(direction) {
if (isAnimating) return;
currentIndex = (currentIndex + direction + items.length) % items.length;
updateCarousel();
}
if (prevBtn) {
prevBtn.addEventListener('click', () => rotateCarousel(-1));
}
if (nextBtn) {
nextBtn.addEventListener('click', () => rotateCarousel(1));
}
items.forEach((item, index) => {
item.addEventListener('click', () => {
if (isAnimating) return;
currentIndex = index;
updateCarousel();
});
});
let touchStartX = 0;
let touchEndX = 0;
if (carousel) {
carousel.addEventListener('touchstart', (e) => {
touchStartX = e.changedTouches[0].screenX;
}, { passive: true });
carousel.addEventListener('touchend', (e) => {
touchEndX = e.changedTouches[0].screenX;
handleSwipe();
}, { passive: true });
}
function handleSwipe() {
if (isAnimating) return;
const swipeThreshold = 50;
const diff = touchStartX - touchEndX;
if (Math.abs(diff) > swipeThreshold) {
if (diff > 0) {
rotateCarousel(1);
} else {
rotateCarousel(-1);
}
}
}
if (carousel) {
carousel.addEventListener('wheel', (e) => {
if (isAnimating) return;
e.preventDefault();
if (e.deltaY > 0) {
rotateCarousel(1);
} else {
rotateCarousel(-1);
}
}, { passive: false });
}
updateCarousel();
}
function setupGameCards() {
const gameCards = document.querySelectorAll('.game-card');
gameCards.forEach(card => {
card.addEventListener('click', (event) => {
const isExpanded = card.classList.contains('expanded');
if (isExpanded) {
card.classList.remove('expanded');
} else {
gameCards.forEach(c => c.classList.remove('expanded'));
card.classList.add('expanded');
}
event.stopPropagation();
});
const playButton = card.querySelector('.play-button');
if (playButton) {
playButton.addEventListener('click', (event) => {
event.stopPropagation();
});
}
});
}
+101
View File
@@ -0,0 +1,101 @@
class ProjectCard extends HTMLElement {
static get observedAttributes() {
return ['image', 'image-alt', 'title', 'description'];
}
constructor() {
super();
this.attachShadow({ mode: 'open' });
this._rendered = false;
}
connectedCallback() {
this._render();
}
attributeChangedCallback() {
if (this._rendered) {
this._render();
}
}
_render() {
this._rendered = true;
const alt = this.getAttribute('image-alt') || '';
const title = this.getAttribute('title') || '';
const description = this.getAttribute('description') || '';
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
}
.content-box {
background-color: var(--background-accent-clr, #324f4f);
margin: 50px 20px 20px;
padding: 20px;
border-radius: 20px;
}
.content-box p {
margin: 0;
}
.intro-text {
font-weight: bolder;
font-size: 28px;
color: var(--green-clr, #6ede9a);
}
.project-thumb {
width: 150px;
height: 150px;
object-fit: cover;
margin-right: 15px;
border-radius: 75px;
float: left;
}
::slotted(p) { margin: 0; }
</style>
<div class="content-box">
<img class="project-thumb" src="${this._escapeAttribute(this.getAttribute('image') || '')}" alt="${this._escapeAttribute(alt)}">
<p><span class="intro-text"></span><slot></slot></p>
</div>`;
this.shadowRoot.querySelector('.intro-text').textContent = title;
this._renderDescription(description);
}
_renderDescription(description) {
const slot = this.shadowRoot.querySelector('slot');
slot.textContent = '';
const linkPattern = /\[\[([^|\]]+)\|([^\]]+)\]\]/g;
let lastIndex = 0;
let match;
while ((match = linkPattern.exec(description)) !== null) {
if (match.index > lastIndex) {
slot.appendChild(document.createTextNode(description.slice(lastIndex, match.index)));
}
const link = document.createElement('a');
link.href = match[2];
link.textContent = match[1];
if (match[2].startsWith('http')) {
link.target = '_blank';
link.rel = 'noopener';
}
slot.appendChild(link);
lastIndex = match.index + match[0].length;
if (linkPattern.lastIndex === match.index) {
linkPattern.lastIndex++;
}
}
if (lastIndex < description.length) {
slot.appendChild(document.createTextNode(description.slice(lastIndex)));
}
}
_escapeAttribute(value) {
return value
.replace(/&/g, '&amp;')
.replace(/"/g, '&quot;')
.replace(/</g, '&lt;');
}
}
customElements.define('project-card', ProjectCard);

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

+381
View File
@@ -0,0 +1,381 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="Douwco - portfolio and projects of Douwe, PhD student at KU Leuven and game developer."/>
<title>Douwco</title>
<link rel="icon" href="/favicon.ico"/>
<link rel="stylesheet" href="/assets/css/douwco.css"/>
<link rel="stylesheet" href="/assets/css/style.css"/>
<script src="/assets/js/project-card.js" defer></script>
<script src="/assets/js/index.js" defer></script>
<script>
// Parse [[text|url]] links in project card content
document.addEventListener('DOMContentLoaded', () => {
const projectCards = document.querySelectorAll('.project-card-content p');
projectCards.forEach(p => {
const linkPattern = /\[\[([^|\]]+)\|([^\]]+)\]\]/g;
let html = p.innerHTML;
html = html.replace(linkPattern, (match, text, url) => {
if (url.startsWith('http')) {
return `<a href="${url}" target="_blank" rel="noopener">${text}</a>`;
} else {
return `<a href="${url}">${text}</a>`;
}
});
p.innerHTML = html;
});
});
</script>
</head>
<body>
<header>
<nav>
<div class="vert_container centered">
<a class="nav_option" href="#home"><img class="icon medium" src="/assets/img/douwco_logo.png" alt="Douwco logo"></a>
<a class="nav_option" href="#about_me">
<img class="icon small" src="/assets/img/icons/user.png" alt="">
<p>About <span>Me</span></p>
</a>
<a class="nav_option" href="#apps">
<img class="icon small" src="/assets/img/icons/projects_icon.png" alt="">
<p>Douwco <span>Apps</span></p>
</a>
<a class="nav_option" href="#games">
<img class="icon small" src="/assets/img/icons/devicegamepad2.png" alt="">
<p>My <span>Games</span></p>
</a>
</div>
</nav>
</header>
<main class="scroll_container">
<section id="home" class="scroll_section">
<div class="vert_container revert start">
<div class="panel">
<div class="section-title">
<img class="icon large toggle" src="/assets/img/douwco_logo.png" alt="">
<div class="text-section">
<h1 class="title">Douwco</h1>
<div class="tagline">
<p class="green-text">Because</p>
<p class="normal-text">nerds build their own homeserver.</p>
</div>
</div>
</div>
<div class="content-box">
<p>
<span class="intro-text">Welcome to the Douwco website.</span> <br>
Ever wondered what machine the website you are visiting is run on? Well this time you know, just look to the image.
This small homeserver hosts several open-source services like Nextcloud, Gitea, Overleaf community and of course this
website. <br> <br>
Here I showcase my portfolio and all the games I've created over the years. If you are
a family member you can also find the different services in the Douwco Apps tab.
</p>
</div>
</div>
<img class="image stick large" src="/assets/img/server_image.png" alt="The homeserver running this website">
</div>
</section>
<section id="about_me" class="scroll_section">
<div class="vert_container start">
<img class="image stick small" src="/assets/img/me_img.png" alt="Portrait of Douwe">
<div class="panel">
<h1>Hi, I'm Douwe</h1>
<p>
A <span class="green-text">PhD student</span> at KU Leuven with a passion for game development and software independence.
</p>
<div class="about-me-section">
<h2>Currently I'm working on:</h2>
<div class="about-me-projects-grid" id="currently-working-grid">
<div class="project-card-new" data-full-desc="For my PhD research at KU Leuven, I'm developing RollAbility, a therapeutic exergame that bridges player autonomy with clinical guidelines to enhance wheelchair training. Developed in collaboration with therapists, RollAbility is a game built onto a clinical protocol and controlled by an actual powered wheelchair. The game connects to the RollAbility App which allows therapists to control the training session in real-time. [[Read the paper|https://dl.acm.org/doi/abs/10.1145/3748621]] or [[watch the video|https://www.youtube.com/watch?v=8y9XFdSN_04]].">
<div class="toggle-icon">+</div>
<div class="project-card-image-container">
<img class="project-card-image" src="/assets/img/rollability.png" alt="RollAbility">
</div>
<div class="project-card-title-container">
<div class="project-card-title-background"></div>
<h3 class="project-card-title">RollAbility</h3>
</div>
<div class="project-card-short-desc">
<p>Therapeutic exergame for wheelchair training with clinical protocol integration.</p>
</div>
<div class="project-card-content">
<p>For my PhD research at KU Leuven, I'm developing RollAbility, a therapeutic exergame that bridges player autonomy with clinical guidelines to enhance wheelchair training. Developed in collaboration with therapists, RollAbility is a game built onto a clinical protocol and controlled by an actual powered wheelchair. The game connects to the RollAbility App which allows therapists to control the training session in real-time. [[Read the paper|https://dl.acm.org/doi/abs/10.1145/3748621]] or [[watch the video|https://www.youtube.com/watch?v=8y9XFdSN_04]].</p>
</div>
</div>
<div class="project-card-new" data-full-desc="Alcove is an interreg project between Flemish, Walloon and French universities and hospitals that aims to build a device that detects lung cancer through a breath test. My role is to create a user interface for the device. This UI has to work both on android phones and on embedded linux devices. [[Read more about Alcove|https://alcove.crosss3.eu/nl/]].">
<div class="toggle-icon">+</div>
<div class="project-card-image-container">
<img class="project-card-image" src="/assets/img/alcove.png" alt="Alcove">
</div>
<div class="project-card-title-container">
<div class="project-card-title-background"></div>
<h3 class="project-card-title">Alcove</h3>
</div>
<div class="project-card-short-desc">
<p>Interreg project building a lung cancer detection device with cross-platform UI.</p>
</div>
<div class="project-card-content">
<p>Alcove is an interreg project between Flemish, Walloon and French universities and hospitals that aims to build a device that detects lung cancer through a breath test. My role is to create a user interface for the device. This UI has to work both on android phones and on embedded linux devices. [[Read more about Alcove|https://alcove.crosss3.eu/nl/]].</p>
</div>
</div>
</div>
</div>
<div class="about-me-section">
<h2><span class="green-text">However</span> in the past I also worked on:</h2>
<div class="about-me-projects-grid" id="past-projects-grid">
<div class="project-card-new" data-full-desc="I published two small addons to the godot asset library. One addon called [[Godot Visual Studio Debugger|https://godotengine.org/asset-library/asset/3505]] which allows you to dynamically run the current scene open in the Godot editor directly in Visual Studio Debugger. The second addon called [[Godot Test Scenes|https://godotengine.org/asset-library/asset/3420]] extends the Godot editor with an additional run mode, this mode runs an associated test scene to the currently open one in the editor. They are both open source: [[Godot Test Scenes|https://github.com/DouweRavers/godot_test_scene]] and [[Godot Visual Studio Debugger|https://github.com/DouweRavers/godot_visualstudio_debugger/tree/main]].">
<div class="toggle-icon">+</div>
<div class="project-card-image-container">
<img class="project-card-image" src="/assets/img/godot_addons.png" alt="Godot tools">
</div>
<div class="project-card-title-container">
<div class="project-card-title-background"></div>
<h3 class="project-card-title">Godot Addons</h3>
</div>
<div class="project-card-short-desc">
<p>Visual Studio Debugger and Test Scenes addons for the Godot engine.</p>
</div>
<div class="project-card-content">
<p>I published two small addons to the godot asset library. One addon called [[Godot Visual Studio Debugger|https://godotengine.org/asset-library/asset/3505]] which allows you to dynamically run the current scene open in the Godot editor directly in Visual Studio Debugger. The second addon called [[Godot Test Scenes|https://godotengine.org/asset-library/asset/3420]] extends the Godot editor with an additional run mode, this mode runs an associated test scene to the currently open one in the editor. They are both open source: [[Godot Test Scenes|https://github.com/DouweRavers/godot_test_scene]] and [[Godot Visual Studio Debugger|https://github.com/DouweRavers/godot_visualstudio_debugger/tree/main]].</p>
</div>
</div>
<div class="project-card-new" data-full-desc="The project [[Kingfisher|https://kingfisher-game.com/]] is a game built by PossilbyPixels that raises awareness about Autism. It is a story-based action / puzzle game for PC and mobile. My role in the project was to build minigames that occur throughout the story and also to develop tools to help development. One of the tools I made for this project was a suburban neighborhood generator. This tool allowed us to draw streets in the editor which then were automatically filled with procedurally generated houses and gardens. You can see a demo in [[this video|/assets/vid/procedural_streets.mp4]]. You can wishlist the game on [[Steam|https://store.steampowered.com/app/4197280/Kingfisher_An_Autism_Tale/]]!">
<div class="toggle-icon">+</div>
<div class="project-card-image-container">
<img class="project-card-image" src="/assets/img/kingfisher.png" alt="Kingfisher">
</div>
<div class="project-card-title-container">
<div class="project-card-title-background"></div>
<h3 class="project-card-title">Kingfisher</h3>
</div>
<div class="project-card-short-desc">
<p>Story-based action/puzzle game raising awareness about Autism.</p>
</div>
<div class="project-card-content">
<p>The project [[Kingfisher|https://kingfisher-game.com/]] is a game built by PossilbyPixels that raises awareness about Autism. It is a story-based action / puzzle game for PC and mobile. My role in the project was to build minigames that occur throughout the story and also to develop tools to help development. One of the tools I made for this project was a suburban neighborhood generator. This tool allowed us to draw streets in the editor which then were automatically filled with procedurally generated houses and gardens. You can see a demo in [[this video|/assets/vid/procedural_streets.mp4]]. You can wishlist the game on [[Steam|https://store.steampowered.com/app/4197280/Kingfisher_An_Autism_Tale/]]!</p>
</div>
</div>
<div class="project-card-new" data-full-desc="Between 2019 and 2024, I participated regularly in the Ludum Dare event. This event was all about creating games under tight deadlines of 48 hours and with no external resources such as audio or 3D art. After each event I published my game on [[Itch.io|https://coffeeplanet.itch.io/]] where they are still available for play. In the future I want to migrate them to this website. I want to especially highlight [[Cobor goes farming|https://coffeeplanet.itch.io/ludum-dare-51]] and [[Windy the Indie|https://coffeeplanet.itch.io/windy-the-indie]].">
<div class="toggle-icon">+</div>
<div class="project-card-image-container">
<img class="project-card-image" src="/assets/img/ludum_dare.png" alt="Ludum Dare">
</div>
<div class="project-card-title-container">
<div class="project-card-title-background"></div>
<h3 class="project-card-title">Ludum Dare</h3>
</div>
<div class="project-card-short-desc">
<p>Game jam participation with 48-hour deadlines and no external resources.</p>
</div>
<div class="project-card-content">
<p>Between 2019 and 2024, I participated regularly in the Ludum Dare event. This event was all about creating games under tight deadlines of 48 hours and with no external resources such as audio or 3D art. After each event I published my game on [[Itch.io|https://coffeeplanet.itch.io/]] where they are still available for play. In the future I want to migrate them to this website. I want to especially highlight [[Cobor goes farming|https://coffeeplanet.itch.io/ludum-dare-51]] and [[Windy the Indie|https://coffeeplanet.itch.io/windy-the-indie]].</p>
</div>
</div>
<div class="project-card-new" data-full-desc="For my Masterthesis at Group T KU Leuven I made a tool for Unity that creates a procedural planet terrain. The main challenge of this project was to optimize the algorithm to work as fast as possible. For this I leveraged GPU compute shaders to process large chunks of data at once. You can find the tool and my thesis paper [[here|https://github.com/DouweRavers/ThesisProject-ThePlanetEngine/tree/main]].">
<div class="toggle-icon">+</div>
<div class="project-card-image-container">
<img class="project-card-image" src="/assets/img/thesis_tool.png" alt="Planet Tool">
</div>
<div class="project-card-title-container">
<div class="project-card-title-background"></div>
<h3 class="project-card-title">Masterthesis: Planet Tool</h3>
</div>
<div class="project-card-short-desc">
<p>Procedural planet terrain generation with GPU compute shaders.</p>
</div>
<div class="project-card-content">
<p>For my Masterthesis at Group T KU Leuven I made a tool for Unity that creates a procedural planet terrain. The main challenge of this project was to optimize the algorithm to work as fast as possible. For this I leveraged GPU compute shaders to process large chunks of data at once. You can find the tool and my thesis paper [[here|https://github.com/DouweRavers/ThesisProject-ThePlanetEngine/tree/main]].</p>
</div>
</div>
<div class="project-card-new" data-full-desc="In another project during my masters we explored gesture-based interactions in virtual environments. For this project we developed a prototype using Unity and custom wearable hardware to enable magic-like hand gestures for interfacing with a story game. See the game [[here|/assets/vid/wizard_gloves.mp4]] or you can find the game and paper [[here|https://github.com/DouweRavers/MasterProject-WizardsGlovesAdventure/tree/main]].">
<div class="toggle-icon">+</div>
<div class="project-card-image-container">
<img class="project-card-image" src="/assets/img/wizard_gloves.png" alt="Wizard Gloves">
</div>
<div class="project-card-title-container">
<div class="project-card-title-background"></div>
<h3 class="project-card-title">Masterproject: Wizard Gloves</h3>
</div>
<div class="project-card-short-desc">
<p>Gesture-based interaction with wearable hardware for virtual environments.</p>
</div>
<div class="project-card-content">
<p>In another project during my masters we explored gesture-based interactions in virtual environments. For this project we developed a prototype using Unity and custom wearable hardware to enable magic-like hand gestures for interfacing with a story game. See the game [[here|/assets/vid/wizard_gloves.mp4]] or you can find the game and paper [[here|https://github.com/DouweRavers/MasterProject-WizardsGlovesAdventure/tree/main]].</p>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="apps" class="scroll_section">
<h1>Douwco Apps</h1>
<div class="apps-container">
<div class="carousel-container-full">
<div class="carousel-track-full" id="apps-carousel">
<div class="carousel-item-full" data-index="0" data-selected="true">
<div class="service-icon-large" style="--icon-bg: #e94e36;">
<span class="icon-placeholder-large">G</span>
</div>
<span class="service-label-large">Gitea</span>
</div>
<div class="carousel-item-full" data-index="1">
<div class="service-icon-large" style="--icon-bg: #0082c9;">
<span class="icon-placeholder-large">N</span>
</div>
<span class="service-label-large">Nextcloud</span>
</div>
<div class="carousel-item-full" data-index="2">
<div class="service-icon-large" style="--icon-bg: #f16521;">
<span class="icon-placeholder-large">P</span>
</div>
<span class="service-label-large">Penpot</span>
</div>
<div class="carousel-item-full" data-index="3">
<div class="service-icon-large" style="--icon-bg: #4a90d9;">
<span class="icon-placeholder-large">B</span>
</div>
<span class="service-label-large">Beszel</span>
</div>
<div class="carousel-item-full" data-index="4">
<div class="service-icon-large" style="--icon-bg: #7d3c98;">
<span class="icon-placeholder-large">W</span>
</div>
<span class="service-label-large">Wattif</span>
</div>
</div>
<button class="carousel-nav-full prev" aria-label="Previous">&#10094;</button>
<button class="carousel-nav-full next" aria-label="Next">&#10095;</button>
</div>
<div class="service-detail-full" id="apps-detail">
<div class="service-screenshot-full">
<img src="/assets/img/gitea_screenshot.png" alt="Gitea screenshot" id="apps-screenshot-img">
</div>
<div class="service-info-full">
<h2 class="service-title" id="apps-title">Gitea</h2>
<div class="service-description-full" id="apps-description">
<p>Self-hosted Git service with a simple and lightweight interface.</p>
</div>
<a href="https://gitea.douwco.be" target="_blank" rel="noopener" class="go-to-app-button" id="apps-link">Go to App</a>
</div>
</div>
</div>
</section>
<section id="games" class="scroll_section">
<h1>My Games</h1>
<div class="games-container">
<div class="games-grid" id="games-grid">
<div class="game-card" data-title="Ludum Dare 51: Cobor goes farming" data-year="2022" data-description="A farming game made in 48 hours for Ludum Dare 51." data-url="https://coffeeplanet.itch.io/ludum-dare-51">
<div class="game-card-image">
<img src="/assets/img/games/ludum51_placeholder.png" alt="Cobor goes farming">
</div>
<div class="game-card-content">
<h3 class="game-card-title">Cobor goes farming</h3>
<p class="game-card-description">A farming game made in 48 hours.</p>
<span class="game-year-badge">2022</span>
</div>
<div class="game-card-expanded">
<p class="game-card-full-description">A farming game made in 48 hours for Ludum Dare 51. Features crop planting, animal husbandry, and resource management.</p>
<a href="https://coffeeplanet.itch.io/ludum-dare-51" target="_blank" rel="noopener" class="play-button">Play Game</a>
</div>
</div>
<div class="game-card" data-title="Ludum Dare 50" data-year="2022" data-description="A puzzle platformer with a unique mechanic." data-url="https://coffeeplanet.itch.io/">
<div class="game-card-image">
<img src="/assets/img/games/ludum50_placeholder.png" alt="Ludum Dare 50">
</div>
<div class="game-card-content">
<h3 class="game-card-title">Platform Puzzler</h3>
<p class="game-card-description">A puzzle platformer game.</p>
<span class="game-year-badge">2022</span>
</div>
<div class="game-card-expanded">
<p class="game-card-full-description">A puzzle platformer with a unique mechanic. Solve puzzles by manipulating the environment and your character.</p>
<a href="https://coffeeplanet.itch.io/" target="_blank" rel="noopener" class="play-button">Play Game</a>
</div>
</div>
<div class="game-card" data-title="Ludum Dare 49" data-year="2021" data-description="A top-down adventure with exploration." data-url="https://coffeeplanet.itch.io/">
<div class="game-card-image">
<img src="/assets/img/games/ludum49_placeholder.png" alt="Ludum Dare 49">
</div>
<div class="game-card-content">
<h3 class="game-card-title">Adventure Quest</h3>
<p class="game-card-description">A top-down adventure game.</p>
<span class="game-year-badge">2021</span>
</div>
<div class="game-card-expanded">
<p class="game-card-full-description">A top-down adventure with exploration, enemies, and treasure collection. Made in 48 hours for Ludum Dare 49.</p>
<a href="https://coffeeplanet.itch.io/" target="_blank" rel="noopener" class="play-button">Play Game</a>
</div>
</div>
<div class="game-card" data-title="Ludum Dare 48" data-year="2021" data-description="A minimalist arcade game." data-url="https://coffeeplanet.itch.io/">
<div class="game-card-image">
<img src="/assets/img/games/ludum48_placeholder.png" alt="Ludum Dare 48">
</div>
<div class="game-card-content">
<h3 class="game-card-title">Arcade Shooter</h3>
<p class="game-card-description">A minimalist arcade shooter.</p>
<span class="game-year-badge">2021</span>
</div>
<div class="game-card-expanded">
<p class="game-card-full-description">A minimalist arcade shooter with wave-based gameplay and power-ups. Created for Ludum Dare 48.</p>
<a href="https://coffeeplanet.itch.io/" target="_blank" rel="noopener" class="play-button">Play Game</a>
</div>
</div>
<div class="game-card" data-title="Ludum Dare 47" data-year="2020" data-description="A story-driven puzzle game." data-url="https://coffeeplanet.itch.io/">
<div class="game-card-image">
<img src="/assets/img/games/ludum47_placeholder.png" alt="Ludum Dare 47">
</div>
<div class="game-card-content">
<h3 class="game-card-title">Story Puzzles</h3>
<p class="game-card-description">A story-driven puzzle game.</p>
<span class="game-year-badge">2020</span>
</div>
<div class="game-card-expanded">
<p class="game-card-full-description">A story-driven puzzle game where each level reveals part of the narrative. Made in 48 hours for Ludum Dare 47.</p>
<a href="https://coffeeplanet.itch.io/" target="_blank" rel="noopener" class="play-button">Play Game</a>
</div>
</div>
<div class="game-card" data-title="Windy the Indie" data-year="2024" data-description="A platformer about indie game development." data-url="https://coffeeplanet.itch.io/windy-the-indie">
<div class="game-card-image">
<img src="/assets/img/games/windy_placeholder.png" alt="Windy the Indie">
</div>
<div class="game-card-content">
<h3 class="game-card-title">Windy the Indie</h3>
<p class="game-card-description">A platformer about indie development.</p>
<span class="game-year-badge">2024</span>
</div>
<div class="game-card-expanded">
<p class="game-card-full-description">A platformer game about the journey of indie game development. Features challenging levels and a touching story.</p>
<a href="https://coffeeplanet.itch.io/windy-the-indie" target="_blank" rel="noopener" class="play-button">Play Game</a>
</div>
</div>
</div>
</div>
</section>
</main>
<footer>
<div class="vert_container">
<p id="copyright"></p>
<p>Made and hosted in <img class="flag" src="/assets/img/icons/europe.png" alt="the EU"></p>
</div>
</footer>
</body>
</html>
-37
View File
@@ -1,37 +0,0 @@
@font-face {
font-family: righteous;
src: url(/fonts/Righteous-Regular.ttf);
format('truetype');
}
@font-face {
font-family: monsterrat_regular;
src: url(/fonts/Montserrat-Regular.ttf);
format('truetype');
}
@font-face {
font-family: monsterrat_bold;
src: url(/fonts/Montserrat-Bold.ttf);
format('truetype');
}
:root {
--background-clr: #283e3e;
--background-accent-clr: #324f4f;
--blue-clr: #47bcdf;
--green-clr: #6ede9a;
--purple-clr: #a48da;
--orange-clr: #e2a661;
--white-clr: #ffffff;
}
body {
font-family: monsterrat_regular;
background-color: var(--background-clr);
color: var(--white-clr);;
}
.title{
font-family: righteous;
}
-243
View File
@@ -1,243 +0,0 @@
/* ===== Base Styles ===== */
html, body{
height: 100%;
margin: 0;
padding: 0;
font-size: 25px;
}
body{
display: flex;
flex-direction: column;
}
main {
flex: 1;
margin: 20px;
overflow-y: auto;
overflow-x: hidden;
scroll-behavior: smooth;
}
a {
color: var(--blue-clr)
}
footer {
flex-shrink: 0;
background: var(--background-clr);
width: 100%;
}
footer > Div {
justify-content: space-between
}
footer > Div > p {
font-size: 16px;
margin: 10px 25px 10px 25px;
}
/* ===== Container Layouts ===== */
.vert_container {
display: flex;
}
@media (max-width: 1000px) {
.vert_container.revert {
display: inherit;
}
}
.vert_container.centered{
align-items: center;
justify-content: space-around;
}
.vert_container.start{
align-items: flex-start;
justify-content: space-around;
}
.scroll_container {
overflow-y: auto;
scroll-snap-type: y mandatory;
}
.scroll_section {
min-height: 100vh;
scroll-snap-align: start;
}
/* ===== Navigationbar ===== */
.nav_option {
font-family: monsterrat_bold;
color: var(--white-clr);
text-decoration: none;
font-size: 36px;
border: none;
border-radius: 20px;
background-color: transparent;
display: flex;
align-items: center;
margin: 10px;
padding-right: 10px;
}
.nav_option:hover{
background-color: var(--background-accent-clr);
}
.nav_option.active {
background-color: var(--background-accent-clr);
}
.nav_option span {
color: var(--green-clr);
}
@media (max-width: 1100px) {
.nav_option p {
display: none;
}
}
/* ===== Layout ===== */
.panel {
width: 60%;
}
@media (max-width: 1000px) {
.panel {
width: 100%;
}
}
.section-title {
display: flex;
align-items: flex-start;
justify-content: space-around;
}
.text-section {
margin-left: 50px;
}
.title {
font-size: 128px;
margin: 0;
line-height: 1;
text-wrap: balance;
}
@media (max-width: 1200px) {
.title {
font-size: 100px;
}
}
.tagline {
display: flex;
font-size: 36px;
font-weight: bold;
width: 500px;
}
.tagline .green-text {
color: var(--green-clr);
}
.tagline .normal-text {
margin-left: 7px;
}
@media (max-width: 1200px) {
.title {
font-size: 100px;
}
.tagline {
font-size: 26px;
width: 400px;
}
}
.content-box {
background-color: var(--background-accent-clr);
margin: 50px 20px 20px;
padding: 20px;
border-radius: 20px;
}
.content-box p {
margin: 0;
}
.content-box .intro-text {
font-weight: bolder;
font-size: 28px;
color: var(--green-clr)
}
.project-thumb {
width: 150px;
height: 150px;
object-fit: cover;
margin-right: 15px;
border-radius: 75x;
float: left;
}
/* ===== Images ===== */
.icon {
vertical-align: middle;
padding: 10px;
}
.icon.small {
height: 45px;
}
.icon.medium {
height: 100px;
}
.icon.large {
height: 250px;
}
@media (max-width: 1200px) {
.icon.large.toggle {
height: 150px;
}
}
.image{
margin: 30px;
}
.image.large{
width: 40%;
}
.image.small{
width: 25%;
}
@media (max-width: 1000px) {
.image.large {
width: 80%;
}
.image.small{
width: 50%;
}
}
.image.stick {
position: sticky;
top: 20px
}
-82
View File
@@ -1,82 +0,0 @@
<div class="vert_container start">
<img class="image stick small" src="/img/me_img.png" alt="Image">
<div class="panel">
<h1>Hi, I'm Douwe</h1>
<p>
A <span style="color: var(--green-clr);">PhD student</span> at KU Leuven with a passion for game development and software independence.
<br><br>
Currently I'm working on:
</p>
<div class="content-box">
<img class="project-thumb" src="/img/rollability.png" alt="RollAbility">
<p>
<span class="intro-text">RollAbility</span> <br>
For my PhD research at KU Leuven, I'm developing RollAbility a therapeutic exergame that bridges player autonomy with clinical guidelines to enhance wheelchair training.
<br><br>Developed in collaboration with therapists, RollAbility is a game build onto a clinical protocol
and controlled by an actual powered wheelchair. The game connects to the RollAbility App which allows therapists
to control the training session in real-time.
<br><br><a href="https://dl.acm.org/doi/abs/10.1145/3748621" target="_blank">Read the paper</a> or <a href="https://www.youtube.com/watch?v=8y9XFdSN_04" target="_blank">Watch the video</a>.
</p>
</div>
<div class="content-box">
<img class="project-thumb" src="/img/alcove.png" alt="Alcove">
<p>
<span class="intro-text">Alcove</span> <br>
Alcove is a interreg project between Flemish, Walloon and French universities and hospitals that aims to build a device that detects lung cancer through a breath test.
<br><br>My role is to create a user interface for the device. This UI has to work on both android phones as on embedded linux devices.
<br><br><a href="https://alcove.crosss3.eu/nl/" target="_blank">Read more about Alcove</a>.
</p>
</div>
<p><span style="color: var(--green-clr);">However</span> in the past I also worked on:</p>
<div class="content-box">
<img class="project-thumb" src="/img/godot_addons.png" alt="Godot tools">
<p>
<span class="intro-text">Godot Addons</span> <br>
I published two small addons to the godot asset library.
<br><br>One addon called <a href="https://godotengine.org/asset-library/asset/3505">Godot Visual Studio Debugger</a> which allows you to dynammicaly run the current scene open in the Godot editor directly in Visual Studio Debugger.
<br><br>The second addons called <a href="https://godotengine.org/asset-library/asset/3420">Godot Test Scenes</a> extends the Godot editor with an additional run mode, this mode runs a associated test scene to the currently open one in the editor.
<br><br>They are both open source:
<br><a href="https://github.com/DouweRavers/godot_test_scene">Godot Test Scenes</a> and <a href="https://github.com/DouweRavers/godot_visualstudio_debugger/tree/main">Godot Visual Studio Debugger</a>
</p>
</div>
<div class="content-box">
<img class="project-thumb" src="/img/kingfisher.png" alt="Kingfisher">
<p>
<span class="intro-text">Kingfisher</span> <br>
The project <a href="https://kingfisher-game.com/">Kingfisher</a> is a game build by <a>PossilbyPixels</a> that rises awareness about Autism. It is a storybased action / puzzle game for PC and mobile.
<br><br>My role in the project was to build minigames that occur throughout the story and also to develop tools to help development.
<br><br>One of the tools I made for this project was a suburban neigborhood generator. This tool allowed us to draw streets in the editor which then were automaticly filled with procedural generated houses and gardens. You can see a demo in <a href="/vid/procedural_streets.mp4">this video</a>.
<br><br>You can wishlist the game on <a href="https://store.steampowered.com/app/4197280/Kingfisher_An_Autism_Tale/">Steam</a>!
</p>
</div>
<div class="content-box">
<img class="project-thumb" src="/img/ludum_dare.png" alt="Ludum Dare">
<p>
<span class="intro-text">Ludum Dare</span> <br>
Between 2019 and 2024, I participated regulary into the Ludum Dare Event. This event was all about creating games under tight deadlines of 48 hours and with no external resources such as audio or 3D art.
<br><br>After each event I published my game on <a href="https://coffeeplanet.itch.io/">Itch.io</a> where they are still availble for play. In the future I want to migrate them to this website.
<br><br>I want to especially highlight <a href="https://coffeeplanet.itch.io/ludum-dare-51">Cobor goes farming</a> and <a href="https://coffeeplanet.itch.io/windy-the-indie">Windy the Indy</a>
</p>
</div>
<div class="content-box">
<img class="project-thumb" src="/img/thesis_tool.png" alt="Planet Tool">
<p>
<span class="intro-text">Masterthesis: Planet Tool</span> <br>
For my Masterthesis at Group T KU Leuven I made a tool for Unity that creates a procedural planet terrain.
<br><br>The main challenge of this project was to optimize the algorithm to work as fast as possible. For this I leveraged GPU compute shaders to process large chunks of data at once.
<br><br>You can find the tool and my thesis paper <a href="https://github.com/DouweRavers/ThesisProject-ThePlanetEngine/tree/main">here</a>.
</p>
</div>
<div class="content-box">
<img class="project-thumb" src="/img/wizard_gloves.png" alt="Wizard Gloves">
<p>
<span class="intro-text">Masterproject: Wizard Gloves</span> <br>
In another project during my masters we explored gesture-based interactions in virtual environments.
<br><br>For this project we developed a prototype using Unity and custom wearable hardware to enable magic-like hand gestures for interfacing with a story game.
<br><br>See the game <a href="/vid/wizard_gloves.mp4">here</a> or you can find the game and paper <a href="https://github.com/DouweRavers/MasterProject-WizardsGlovesAdventure/tree/main">here</a>
</p>
</div>
</div>
</div>
-6
View File
@@ -1,6 +0,0 @@
<h1>Douwco Apps</h1>
<div class="content-box">
<p>
Under construction...
</p>
</div>
-6
View File
@@ -1,6 +0,0 @@
<h1>My Games</h1>
<div class="content-box">
<p>
Under construction...
</p>
</div>
-25
View File
@@ -1,25 +0,0 @@
<div class="vert_container revert start">
<div class="panel">
<div class="section-title">
<img class="icon large toggle" src="/img/douwco_logo.png" alt="Image">
<div class="text-section">
<h1 class="title">Douwco</h1>
<div class="tagline">
<p class="green-text">Because </p>
<p class="normal-text">nerds build their own homeserver.</p>
</div>
</div>
</div>
<div class="content-box">
<p>
<span class="intro-text">Welcome to the Douwco website.</span> <br>
Ever wondered what machine the website you are visiting is run on? Well this time you know, just look to the image.
This small homeserver hosts several open-source services like Nextcloud, Gitea, Overleaf community and ofcourse this
website. <br> <br>
Here I showcase my portfolio and all the games I've created over the years. If you are
a family member you can also find the different services in the Douwco Apps tab.
</p>
</div>
</div>
<img class="image stick large" src="/img/server_image.png" alt="Image">
</div>
-49
View File
@@ -1,49 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Douwco</title>
<link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/douwco.css" />
<link rel="stylesheet" href="css/home.css">
</head>
<body>
<header>
<nav>
<div class="vert_container centered">
<a class="nav_option" href="#home"><img class="icon medium" src="/img/douwco_logo.png"></a>
<a class="nav_option" href="#about_me">
<img class="icon small" src="/img/icons/user.png" alt="Icon">
<p>About <span>Me</span></p>
</a>
<a class="nav_option" href="#apps">
<img class="icon small" src="/img/icons/projects_icon.png" alt="Icon">
<p>Douwco <span>Apps</span></p>
</a>
<a class="nav_option" href="#games">
<img class="icon small" src="/img/icons/devicegamepad2.png" alt="Icon">
<p>My <span>Games</span></p>
</a>
</div>
</nav>
</header>
<main class="scroll_container">
<section id="home" class="scroll_section observed" data-section-name="home"></section>
<section id="about_me" class="scroll_section observed" data-section-name="about_me"></section>
<section id="apps" class="scroll_section observed" data-section-name="apps"></section>
<section id="games" class="scroll_section observed" data-section-name="games"></section>
</main>
<footer>
<div class="vert_container">
<p id="copyright"></p>
<p>Made and hosted in 🇪🇺</p>
</div>
</footer>
<script src="/js/main.js"></script>
<script src="/js/index.js"></script>
</body>
</html>
-47
View File
@@ -1,47 +0,0 @@
// Setup the navigation bar
function setupNavigationHighlight(){
const sections = document.querySelectorAll('.scroll_section');
const navOptions = document.querySelectorAll('.nav_option');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const sectionId = entry.target.id;
window.history.pushState(null, null, `#${sectionId}`);
navOptions.forEach(link => {
link.classList.remove('active');
if (link.getAttribute('href') === `#${sectionId}`) {
link.classList.add('active');
}
});
}
}), {threshold: 0.5};
})
sections.forEach(section => {
observer.observe(section);
});
}
function setupNavigationClickObserver() {
const navLinks = document.querySelectorAll('.nav_option');
navLinks.forEach(link => {
link.addEventListener('click', (event) => {
event.preventDefault();
const targetId = link.getAttribute('href');
const targetSection = document.querySelector(targetId);
if (targetSection) {
targetSection.scrollIntoView({
behavior: 'smooth'
});
}
});
});
}
setupNavigationHighlight();
setupNavigationClickObserver();
// Set copyright year
const currentYear = new Date().getFullYear();
document.getElementById('copyright').textContent = `© ${currentYear} - douwco.be`;
-32
View File
@@ -1,32 +0,0 @@
// JIT file loading
function include_file(filename, id) {
fetch(`includes/${filename}.html`)
.then(response => response.text())
.then(html => { document.getElementById(id).innerHTML = html; })
.catch(err => console.error('Error loading include:', err));
}
function setupIntersectionObserver() {
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const element = entry.target;
const name = element.getAttribute('data-section-name');
include_file(name, element.id);
observer.unobserve(element);
}
});
}, {
threshold: 0.05,
rootMargin: "0px 0px -50px 0px"
});
const observedSections = document.querySelectorAll('.observed');
if (observedSections.length === 0) {
console.error('No elements with class "observed" found!');
} else {
observedSections.forEach(section => { observer.observe(section); });
}
}
setupIntersectionObserver();