Renamed title and added better navbar. Added free cookie distribution.
This commit is contained in:
4
free_cookies.php
Normal file
4
free_cookies.php
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?php
|
||||||
|
header("Location: https://youtu.be/dQw4w9WgXcQ");
|
||||||
|
exit;
|
||||||
|
?>
|
||||||
@@ -2,9 +2,15 @@
|
|||||||
<html lang="de">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Mein Blog</title>
|
<title>Jacks Blog</title>
|
||||||
<link rel="stylesheet" href="/style.css">
|
<link rel="stylesheet" href="/style.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<nav><a href="index.php">🏠 Home</a></nav>
|
<nav>
|
||||||
|
<ul class="navbar">
|
||||||
|
<li><a href="/">🏠 Home</a></li>
|
||||||
|
<li><a href="free_cookies.php" target="_blank" rel="noopener noreferrer"
|
||||||
|
title="YouTube will see your IP if you open 👀">🍪 Free cookies!</a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
<main>
|
<main>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ $posts = glob('posts/*.md');
|
|||||||
rsort($posts);
|
rsort($posts);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<h1>Blog</h1>
|
<h1>Jacks Blog</h1>
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach ($posts as $post):
|
<?php foreach ($posts as $post):
|
||||||
$slug = basename($post, '.md');
|
$slug = basename($post, '.md');
|
||||||
|
|||||||
34
style.css
34
style.css
@@ -18,14 +18,6 @@ a:hover {
|
|||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
|
||||||
margin: 1rem auto;
|
|
||||||
padding: 0 1rem;
|
|
||||||
max-width: 800px;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
main {
|
main {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
@@ -45,3 +37,29 @@ footer {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 1rem 0;
|
padding: 1rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
background-color: #222; /* dunkler Hintergrund */
|
||||||
|
padding: 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
display: flex; /* macht die <li> nebeneinander */
|
||||||
|
list-style: none; /* entfernt die Punkte */
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
gap: 2rem; /* Abstand zwischen Links */
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar li a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: white;
|
||||||
|
padding: 0.5rem 1rem; /* größerer Klickbereich */
|
||||||
|
transition: 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar li a:hover {
|
||||||
|
background-color: rgba(255, 255, 255, 0.1);
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user