personalweb

archived
git clone git://git.wimdupont.com/personalweb.git
Log | Files | Refs | LICENSE

commit 35da8850264c3f9ac6bbf0d78bb2058574be64ae
parent c604bae5c10036042504da5cb3ce832ac9160ca6
Author: Wim Dupont <wim@wimdupont.com>
Date:   Tue, 15 Mar 2022 17:56:29 +0100

added donation page


Former-commit-id: 3aa545c71ab71e632f3ce08822950b1bcf01a039
Diffstat:
Asrc/main/java/com/wimdupont/personalweb/controller/DonateController.java | 19+++++++++++++++++++
Msrc/main/resources/static/css/main.css | 4++++
Asrc/main/resources/static/images/btc-qrcode.png | 0
Asrc/main/resources/static/images/xmr-qrcode.png | 0
Asrc/main/resources/templates/donate.html | 23+++++++++++++++++++++++
Msrc/main/resources/templates/navigation.html | 2++
6 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/wimdupont/personalweb/controller/DonateController.java b/src/main/java/com/wimdupont/personalweb/controller/DonateController.java @@ -0,0 +1,19 @@ +package com.wimdupont.personalweb.controller; + +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; + +@Slf4j +@Controller +@RequestMapping("/donate") +@SuppressWarnings("unused") +public class DonateController { + + @GetMapping + public String getDonate(Model model) { + return "donate"; + } +} diff --git a/src/main/resources/static/css/main.css b/src/main/resources/static/css/main.css @@ -95,3 +95,7 @@ a:hover { .align-right { text-align: right; } + +.center { + text-align: center; +} diff --git a/src/main/resources/static/images/btc-qrcode.png b/src/main/resources/static/images/btc-qrcode.png Binary files differ. diff --git a/src/main/resources/static/images/xmr-qrcode.png b/src/main/resources/static/images/xmr-qrcode.png Binary files differ. diff --git a/src/main/resources/templates/donate.html b/src/main/resources/templates/donate.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html"> +<head th:replace="header :: head"></head> +<head> + <title>Donate - Wim Dupont</title> +</head> +<body> +<div class="container wrapper"> + <header> + <h1>Donate</h1> + <div th:insert="navigation"/> + </header> + <div class="center"> + <h2 class="subheader">Monero (XMR)</h2> + <img title="XMR address" src="/images/xmr-qrcode.png" width="150"> + <p>89u7U4Yboyr5qCbR5qHo6qXtYHhgbpWFQ19TsPkZVdrjWtgCr7qz4Ru7MD4kuT9RN62apATjaz5RrgoSk2HwgJDz4f6wEFN</p> + <h2 class="subheader">Bitcoin (BTC)</h2> + <img title="BTC address" src="/images/btc-qrcode.png" width="150"> + <p>bc1qfln55lrdugypchnvq005795ss9tkh6tln2zuyq</p> + </div> +</div> +</body> +</html> diff --git a/src/main/resources/templates/navigation.html b/src/main/resources/templates/navigation.html @@ -3,7 +3,9 @@ <a href="/books">Books</a> <a href="/blog">Blog</a> <a href="/links">Links</a> + | <a href="/contact">Contact</a> + <a href="/donate">Donate</a> <div class="right"> <a class="navimg" target="_blank" href="https://gitlab.com/users/WimDupont/projects"> <img alt="Gitlab" title="Gitlab" src="/images/gitlab.png" width="20" height="20">