first commit

This commit is contained in:
Currency
2025-01-29 07:49:44 +01:00
commit 6c2f1dc683
21 changed files with 203 additions and 0 deletions

1
docs/about.md Normal file
View File

@@ -0,0 +1 @@
# about page

1
docs/index.md Normal file
View File

@@ -0,0 +1 @@
# index page

35
docs/javascripts/extra.js Normal file
View File

@@ -0,0 +1,35 @@
document.addEventListener("DOMContentLoaded", function() {
// Sync with Material's native storage key
const STORAGE_KEY = "md-color-scheme";
// Get initial theme state
const savedTheme = localStorage.getItem(STORAGE_KEY) || "default";
document.body.setAttribute("data-md-color-scheme", savedTheme);
// Watch for theme changes
const mutationObserver = new MutationObserver(mutations => {
mutations.forEach(mutation => {
if (mutation.attributeName === "data-md-color-scheme") {
const currentTheme = document.body.getAttribute("data-md-color-scheme");
localStorage.setItem(STORAGE_KEY, currentTheme);
}
});
});
// Start observing body attributes
mutationObserver.observe(document.body, {
attributes: true,
attributeFilter: ["data-md-color-scheme"]
});
// Debounced click handler
let isToggling = false;
document.querySelector(".md-header__button[data-md-color-scheme]").addEventListener("click", () => {
if (!isToggling) {
isToggling = true;
setTimeout(() => {
isToggling = false;
}, 300);
}
});
});

View File

@@ -0,0 +1 @@
# hello 2

View File

@@ -0,0 +1 @@
# hello 5

View File

@@ -0,0 +1 @@
# hello 6

View File

@@ -0,0 +1 @@
# hello 7

View File

@@ -0,0 +1 @@
# hello 7v2

View File

@@ -0,0 +1 @@
# hello 8

BIN
docs/resources/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
docs/resources/icon.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -0,0 +1,26 @@
:root {
--md-primary-fg-color: #2B579A;
--md-primary-fg-color--light: #7BAFD4;
--md-primary-fg-color--dark: #1A365F;
}
.md-header {
box-shadow: 0 0 0.2rem rgba(0,0,0,.1), 0 0.2rem 0.4rem rgba(0,0,0,.2);
}
.md-tabs {
background-color: var(--md-primary-fg-color);
}
.md-search__form:hover {
background-color: rgba(255,255,255,0.1);
}
.md-typeset h1 {
font-weight: 600;
color: var(--md-primary-fg-color);
}
.md-footer {
margin-top: 2em;
}