started with basic content structure and header
This commit is contained in:
1 parent
9e7bc5c59c
commit
7ead3e64da
3 files changed
+188
-14
No files matched your search
+78
-4
@@ -1,14 +1,88 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>Homepage</title>
|
<title>Homepage</title>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
|
<script src="script.js" defer></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="content">
|
<header>
|
||||||
<h1>Willkommen!</h1>
|
<nav class="nav-bar">
|
||||||
</div>
|
<ul>
|
||||||
|
<li><a href="#">
|
||||||
|
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-house preview-icon">
|
||||||
|
<path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"/>
|
||||||
|
<path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>
|
||||||
|
</svg>
|
||||||
|
home
|
||||||
|
</a></li>
|
||||||
|
<li><a href="https://git.l-neuhaus.de">
|
||||||
|
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-folder-git-2 preview-icon">
|
||||||
|
<path d="M18 19a5 5 0 0 1-5-5v8"/>
|
||||||
|
<path d="M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5"/>
|
||||||
|
<circle cx="13" cy="12" r="2"/>
|
||||||
|
<circle cx="20" cy="19" r="2"/>
|
||||||
|
</svg>
|
||||||
|
gitea
|
||||||
|
</a></li>
|
||||||
|
<li><button type="button" id="theme-toggle">
|
||||||
|
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sun-moon preview-icon">
|
||||||
|
<path d="M12 2v2"/>
|
||||||
|
<path d="M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715"/>
|
||||||
|
<path d="M16 12a4 4 0 0 0-4-4"/>
|
||||||
|
<path d="m19 5-1.256 1.256"/>
|
||||||
|
<path d="M20 12h2"/>
|
||||||
|
</svg>
|
||||||
|
theme
|
||||||
|
</button></li>
|
||||||
|
<li><button type="button">
|
||||||
|
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-languages preview-icon">
|
||||||
|
<path d="m5 8 6 6"/>
|
||||||
|
<path d="m4 14 6-6 2-3"/>
|
||||||
|
<path d="M2 5h12"/>
|
||||||
|
<path d="M7 2h1"/>
|
||||||
|
<path d="m22 22-5-10-5 10"/>
|
||||||
|
<path d="M14 18h6"/>
|
||||||
|
</svg>
|
||||||
|
language
|
||||||
|
</button></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
<main>
|
||||||
|
<h1>Hi, I'm Lars.</h1>
|
||||||
|
<section id="projects">
|
||||||
|
<h2>My Projects:</h2>
|
||||||
|
<article class="project-card">
|
||||||
|
<h3>Turtle Game</h3>
|
||||||
|
<p>
|
||||||
|
nom
|
||||||
|
</p>
|
||||||
|
</article>
|
||||||
|
<article class="project-card">
|
||||||
|
<h3>Minecraft Tetris clone</h3>
|
||||||
|
<p>
|
||||||
|
I love playing Minecraft and Tetris, so I made a Tetris clone in Minecraft.
|
||||||
|
</p>
|
||||||
|
</article>
|
||||||
|
<article class="project-card">
|
||||||
|
<h3>Gitea</h3>
|
||||||
|
<p>
|
||||||
|
My own git server where I store my projects.
|
||||||
|
</p>
|
||||||
|
</article>
|
||||||
|
<article class="project-card">
|
||||||
|
<h3>Mathemann</h3>
|
||||||
|
<p>
|
||||||
|
This Mathemann website was a school project.
|
||||||
|
</p>
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
<footer>
|
||||||
|
<p>© 2026 Lars Neuhaus</p>
|
||||||
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
const themeButton = document.getElementById("theme-toggle");
|
||||||
|
const root = document.documentElement;
|
||||||
|
|
||||||
|
themeButton.addEventListener("click", () => {
|
||||||
|
const currentTheme = getCurrentTheme();
|
||||||
|
|
||||||
|
if (currentTheme === "light") {
|
||||||
|
root.dataset.theme = "dark";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
root.dataset.theme = "light";
|
||||||
|
});
|
||||||
|
|
||||||
|
function getCurrentTheme() {
|
||||||
|
const selectedTheme = root.dataset.theme;
|
||||||
|
|
||||||
|
if (selectedTheme !== undefined) return selectedTheme;
|
||||||
|
if(window.matchMedia("(prefers-color-scheme: dark)").matches) return "dark";
|
||||||
|
return "light";
|
||||||
|
}
|
||||||
@@ -1,3 +1,93 @@
|
|||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: var(--color-background);
|
||||||
|
color: var(--color-text);
|
||||||
|
font-family: "Roboto", sans-serif;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-bar ul {
|
||||||
|
list-style-type: none;
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
align-items: center;
|
||||||
|
padding: 0;
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-bar a,
|
||||||
|
.nav-bar button {
|
||||||
|
color: inherit;
|
||||||
|
font: inherit;
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-bar svg {
|
||||||
|
width: 1em;
|
||||||
|
height: 1em;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-bar button:hover,
|
||||||
|
.nav-bar a:hover {
|
||||||
|
color: var(--color-link-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
border-bottom: 1px solid var(--color-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
max-width: 1000px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-card {
|
||||||
|
padding: 0 10px;
|
||||||
|
margin: 5px 0;
|
||||||
|
border: 2px solid var(--color-border);
|
||||||
|
border-radius: 10px;
|
||||||
|
background-color: var(--color-card);
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
padding-top: 5px;
|
||||||
|
background-color: cornflowerblue;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root {
|
||||||
|
color-scheme: dark light;
|
||||||
|
|
||||||
|
--color-background: light-dark(#eeeeee, #222222);
|
||||||
|
--color-text: light-dark(#222222, #eeeeee);
|
||||||
|
--color-link-hover: light-dark(#676767, #bababa);
|
||||||
|
--color-border: light-dark(#888888, #888888);
|
||||||
|
--color-card: light-dark(#dadada, #313131);
|
||||||
|
}
|
||||||
|
|
||||||
|
:root[data-theme="light"] {
|
||||||
|
color-scheme: light;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root[data-theme="dark"] {
|
||||||
|
color-scheme: dark;
|
||||||
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
font-family: 'Fredoka';
|
font-family: 'Fredoka';
|
||||||
@@ -22,7 +112,6 @@
|
|||||||
src: url('assets/fonts/fredoka-v17-latin_latin-ext-700.woff2') format('woff2');
|
src: url('assets/fonts/fredoka-v17-latin_latin-ext-700.woff2') format('woff2');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
font-family: 'Roboto';
|
font-family: 'Roboto';
|
||||||
@@ -46,12 +135,3 @@
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
src: url('assets/fonts/roboto-700.woff2') format('woff2');
|
src: url('assets/fonts/roboto-700.woff2') format('woff2');
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
|
||||||
background-color: #222222;
|
|
||||||
font-family: "Roboto";
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
color: #eeeeee;
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user