Compare commits

...

10 Commits

1148 changed files with 7626 additions and 392 deletions

View File

@@ -0,0 +1,15 @@
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/contentModel.xml
/projectSettingsUpdater.xml
/modules.xml
/.idea.DouwcoWebsite.iml
# Ignored default folder with query files
/queries/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
</project>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
</component>
</project>

10
App.razor Normal file
View File

@@ -0,0 +1,10 @@
<Router AppAssembly="typeof(App).Assembly">
<Found Context="routeData">
<RouteView RouteData="routeData" />
<FocusOnNavigate RouteData="routeData" Selector="h1" />
</Found>
<NotFound>
<PageTitle>Not found</PageTitle>
<p role="alert">Sorry, there's nothing at this address.</p>
</NotFound>
</Router>

View File

@@ -1,30 +0,0 @@
# Specify the minimum required version of CMake
cmake_minimum_required(VERSION 3.10)
# Set the name of the project
project(douwco_web)
# Find required packages
find_package(Crow)
find_package(OpenSSL REQUIRED)
find_package(ZLIB REQUIRED)
# Set C++ standard to C++17
set(CMAKE_CXX_STANDARD 17)
# Add the executable
add_executable(douwco_web
src/main.cpp
src/server.cpp
)
# Specify include directories
target_include_directories(douwco_web PRIVATE
${PROJECT_SOURCE_DIR}/include
${OPENSSL_INCLUDE_DIR}
)
target_link_libraries(douwco_web PUBLIC
Crow::Crow
${OPENSSL_LIBRARIES} ${ZLIB_LIBRARIES}
)

View File

@@ -1,32 +0,0 @@
# Use an official Ubuntu as a parent image
FROM ubuntu:latest
# Set the working directory in the container to /app
WORKDIR /server
# Install necessary packages, including CMake, a C++ compiler, and wget
RUN apt-get update && \
apt-get install -y cmake g++ make wget zlib1g-dev && \
apt-get clean;
# Download Crow library
RUN wget https://github.com/CrowCpp/Crow/releases/download/v1.2.1.2/Crow-1.2.1-Linux.deb && \
apt-get install -y ./Crow-1.2.1-Linux.deb
# Copy the current directory contents into the container at /app
COPY . /server
# Make the build directory
RUN mkdir -p build && cd build
# Run CMake to configure the build
RUN cmake .
# Build the project
RUN cmake --build .
# Expose port 8888 for the web server
EXPOSE 8888
# Command to run the executable
CMD ["./douwco_web"]

15
DouwcoWebsite.csproj Normal file
View File

@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.0" PrivateAssets="all" />
</ItemGroup>
</Project>

21
DouwcoWebsite.sln Normal file
View File

@@ -0,0 +1,21 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DouwcoWebsite", "DouwcoWebsite.csproj", "{CCF6B1B7-9CEB-485C-BDE4-BB6A2D1BC9A5}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{694925D6-4EC4-41C4-A53D-E2EB3B80A0F7}"
ProjectSection(SolutionItems) = preProject
compose.yaml = compose.yaml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CCF6B1B7-9CEB-485C-BDE4-BB6A2D1BC9A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CCF6B1B7-9CEB-485C-BDE4-BB6A2D1BC9A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CCF6B1B7-9CEB-485C-BDE4-BB6A2D1BC9A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CCF6B1B7-9CEB-485C-BDE4-BB6A2D1BC9A5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

40
Pages/Index.razor Normal file
View File

@@ -0,0 +1,40 @@
@page "/"
@inject ScrollService ScrollService
<PageTitle>Douwco</PageTitle>
<header>
<NavMenu />
</header>
<main class="scroll_container">
<section id="home" class="scroll_section observed" data-section-name="home">
<HomeSection />
</section>
<section id="about_me" class="scroll_section observed" data-section-name="about_me">
<AboutMeSection />
</section>
<section id="apps" class="scroll_section observed" data-section-name="apps">
<AppsSection />
</section>
<section id="games" class="scroll_section observed" data-section-name="games">
<GamesSection />
</section>
</main>
<footer>
<Footer />
</footer>
@code {
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
await ScrollService.InitializeAsync();
}
}
}

12
Program.cs Normal file
View File

@@ -0,0 +1,12 @@
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using DouwcoWebsite;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");
// Register the scroll service for navigation
builder.Services.AddScoped<ScrollService>();
await builder.Build().RunAsync();

View File

@@ -1,18 +1,2 @@
# douwco.be
My personal website
## Instructions
Here are some instructions on how to deploy it using docker.
### build
`sudo docker build -t douwco_website .`
### run
`sudo docker run -d --name douwco_website -p 8888:8888 douwco_website`
### replace
```
sudo docker stop douwco_website
sudo docker rm douwco_website
sudo docker run -d --name douwco_website -p 8888:8888 douwco_website
```

49
Services/ScrollService.cs Normal file
View File

@@ -0,0 +1,49 @@
using Microsoft.JSInterop;
namespace DouwcoWebsite;
public class ScrollService : IDisposable
{
private readonly IJSRuntime _jsRuntime;
private DotNetObjectReference<ScrollService>? _dotNetObjectReference;
private IJSObjectReference? _module;
public event Action<string>? OnSectionChanged;
public ScrollService(IJSRuntime jsRuntime)
{
_jsRuntime = jsRuntime;
_dotNetObjectReference = DotNetObjectReference.Create(this);
}
public async Task InitializeAsync()
{
_module = await _jsRuntime.InvokeAsync<IJSObjectReference>(
"import", "./js/scrollService.js");
await _module.InvokeVoidAsync("initialize", _dotNetObjectReference);
}
[JSInvokable]
public void HandleSectionChange(string sectionId)
{
OnSectionChanged?.Invoke(sectionId);
}
public async Task ScrollToSection(string sectionId)
{
if (_module != null)
{
await _module.InvokeVoidAsync("scrollToSection", sectionId);
}
}
public void Dispose()
{
_dotNetObjectReference?.Dispose();
if (_module != null)
{
_module.InvokeVoidAsync("dispose");
}
}
}

View File

@@ -0,0 +1,82 @@
<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
Shared/AppsSection.razor Normal file
View File

@@ -0,0 +1,6 @@
<h1>Douwco Apps</h1>
<div class="content-box">
<p>
Under construction...
</p>
</div>

8
Shared/Footer.razor Normal file
View File

@@ -0,0 +1,8 @@
<div class="vert_container">
<p id="copyright">© @currentYear - douwco.be</p>
<p>Made and hosted in EU</p>
</div>
@code {
private string currentYear = DateTime.Now.Year.ToString();
}

View File

@@ -0,0 +1,6 @@
<h1>My Games</h1>
<div class="content-box">
<p>
Under construction...
</p>
</div>

25
Shared/HomeSection.razor Normal file
View File

@@ -0,0 +1,25 @@
<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 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="/img/server_image.png" alt="Image" />
</div>

47
Shared/NavMenu.razor Normal file
View File

@@ -0,0 +1,47 @@
<nav>
<div class="vert_container centered">
<a class="nav_option @(currentSection == "home" ? "active" : "")" href="#home" @onclick:preventDefault @onclick="ScrollToHome">
<img class="icon medium" src="/img/douwco_logo.png" />
</a>
<a class="nav_option @(currentSection == "about_me" ? "active" : "")" href="#about_me" @onclick:preventDefault @onclick="ScrollToAboutMe">
<img class="icon small" src="/img/icons/user.png" alt="Icon" />
<p>About <span>Me</span></p>
</a>
<a class="nav_option @(currentSection == "apps" ? "active" : "")" href="#apps" @onclick:preventDefault @onclick="ScrollToApps">
<img class="icon small" src="/img/icons/projects_icon.png" alt="Icon" />
<p>Douwco <span>Apps</span></p>
</a>
<a class="nav_option @(currentSection == "games" ? "active" : "")" href="#games" @onclick:preventDefault @onclick="ScrollToGames">
<img class="icon small" src="/img/icons/devicegamepad2.png" alt="Icon" />
<p>My <span>Games</span></p>
</a>
</div>
</nav>
@code {
[Inject]
private ScrollService ScrollService { get; set; } = default!;
private string currentSection = "home";
protected override async Task OnInitializedAsync()
{
ScrollService.OnSectionChanged += HandleSectionChange;
}
private void HandleSectionChange(string sectionId)
{
currentSection = sectionId;
StateHasChanged();
}
private async Task ScrollToHome() => await ScrollService.ScrollToSection("home");
private async Task ScrollToAboutMe() => await ScrollService.ScrollToSection("about_me");
private async Task ScrollToApps() => await ScrollService.ScrollToSection("apps");
private async Task ScrollToGames() => await ScrollService.ScrollToSection("games");
public void Dispose()
{
ScrollService.OnSectionChanged -= HandleSectionChange;
}
}

9
_Imports.razor Normal file
View File

@@ -0,0 +1,9 @@
@using System.Net.Http
@using System.Net.Http.Json
@using Microsoft.AspNetCore.Components
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.AspNetCore.Components.WebAssembly
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.JSInterop
@using DouwcoWebsite
@using DouwcoWebsite.Shared

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,51 @@
{
"runtimeOptions": {
"tfm": "net10.0",
"includedFrameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "10.0.7"
}
],
"wasmHostProperties": {
"perHostConfig": [
{
"name": "browser",
"host": "browser"
}
]
},
"configProperties": {
"Microsoft.AspNetCore.Components.Routing.RegexConstraintSupport": false,
"Microsoft.Extensions.DependencyInjection.VerifyOpenGenericServiceTrimmability": true,
"System.ComponentModel.DefaultValueAttribute.IsSupported": false,
"System.ComponentModel.Design.IDesignerHost.IsSupported": false,
"System.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization": false,
"System.ComponentModel.TypeDescriptor.IsComObjectDescriptorSupported": false,
"System.Data.DataSet.XmlSerializationIsSupported": false,
"System.Diagnostics.Metrics.Meter.IsSupported": false,
"System.Diagnostics.Tracing.EventSource.IsSupported": false,
"System.GC.Server": true,
"System.Globalization.Invariant": false,
"System.TimeZoneInfo.Invariant": false,
"System.Linq.Enumerable.IsSizeOptimized": true,
"System.Net.Http.EnableActivityPropagation": false,
"System.Net.Http.WasmEnableStreamingResponse": true,
"System.Net.SocketsHttpHandler.Http3Support": false,
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
"System.Resources.ResourceManager.AllowCustomResourceTypes": false,
"System.Resources.UseSystemResourceKeys": true,
"System.Runtime.CompilerServices.RuntimeFeature.IsDynamicCodeSupported": true,
"System.Runtime.InteropServices.BuiltInComInterop.IsSupported": false,
"System.Runtime.InteropServices.EnableConsumingManagedCodeFromNativeHosting": false,
"System.Runtime.InteropServices.EnableCppCLIHostActivation": false,
"System.Runtime.InteropServices.Marshalling.EnableGeneratedComInterfaceComImportInterop": false,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false,
"System.StartupHookProvider.IsSupported": false,
"System.Text.Encoding.EnableUnsafeUTF7Encoding": false,
"System.Text.Json.JsonSerializer.IsReflectionEnabledByDefault": true,
"System.Threading.Thread.EnableAutoreleasePool": false,
"Microsoft.AspNetCore.Components.Endpoints.NavigationManager.DisableThrowNavigationException": false
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/Debug/net10.0/System.Core.dll Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/Debug/net10.0/System.Data.dll Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More