Initial commit: Backup der Webseiten

- zoesch.de
- blitzkiste.net
- gruene-hassberge (norbert.zoesch.de)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Felix Zösch
2025-12-13 01:17:15 +01:00
commit 07c290a453
4607 changed files with 1202735 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<?php
class Page_Data
{
public $title = '';
public $content = '';
public $css = '';
public $embeddedStyle = '';
}

View File

@@ -0,0 +1,15 @@
nav {
background-color: #CCCCDE;
padding-top: 10px;
}
nav a {
display: inline-block;
text-decoration: none;
color: #000;
margin-left: 10px;
}
nav a:hover {
text-decoration: underline;
}

31
zoesch.de/php/index.php Normal file
View File

@@ -0,0 +1,31 @@
<?php
// show errors
error_reporting(E_ALL);
ini_set('display_errors', 1);
include_once 'classes/Page_Data.class.php';
$pageData = new Page_Data();
$pageData->title = 'Thomas Blom Hansen: Portfolio site';
$pageData->content = include_once 'views/navigation.php';
$pageData->css = "<link href='css/layout.css' rel='stylesheet' />";
$navigationIsClicked = isset($_GET['page']);
if ($navigationIsClicked) {
$fileToLoad = $_GET['page'];
} else {
$fileToLoad = 'skills';
}
$pageData->content .= include_once "views/$fileToLoad.php";
//new code below: dynamic style added below
$pageData->embeddedStyle = "
<style>
nav a[href *= '?page=$fileToLoad']{
padding:3px;
background-color:white;
border-top-left-radius:3px;
border-top-right-radius:3px;
}
</style>";
$page = include_once 'templates/page.php';
echo $page;

View File

@@ -0,0 +1,14 @@
<?php
return "<!DOCTYPE html>
<html>
<head>
<title>$pageData->title</title>
<meta http-equiv='Content-Type' content='text/html;charset=utf-8' />
$pageData->css
$pageData->embeddedStyle
</head>
<body>
$pageData->content
</body>
</html>";

View File

@@ -0,0 +1,7 @@
<?php
return "
<nav>
<a href='index.php?page=skills'>My skills and background</a>
<a href='index.php?page=projects'>Some projects</a>
</nav>
";

View File

@@ -0,0 +1,5 @@
<?php
return "<h1>Projects I have worked on</h1>
<ul>
<li>Ahem, this will soon be updated</li>
</ul>";

View File

@@ -0,0 +1,4 @@
<?php
return "<h1>Skills and educational background</h1>
<p>Read all about my skills and my formal training</p>
";