From 4e9d466bbc8c6ffaec989f238693d2d6ef3c238c Mon Sep 17 00:00:00 2001 From: Satakun Utama Date: Fri, 15 May 2026 02:35:03 +0700 Subject: [PATCH] dark theme --- main/index.html | 14 ++++++++----- main/styles.css | 56 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 5 deletions(-) create mode 100644 main/styles.css diff --git a/main/index.html b/main/index.html index 74c6fc0..0496b83 100644 --- a/main/index.html +++ b/main/index.html @@ -1,10 +1,12 @@ - - + + + + dailitation.xyz - +
@@ -12,7 +14,10 @@

Welcome to...

- + + + + -

About dailitation.xyz

diff --git a/main/styles.css b/main/styles.css new file mode 100644 index 0000000..0d7232e --- /dev/null +++ b/main/styles.css @@ -0,0 +1,56 @@ +body { + font: 100% / 1.5 "Lucida Grande", "Lucida Sans", "Luxi Sans", "Go", "Atkinson Hyperlegible", Verdana, sans-serif; + color: #000000; + text-align: left; + box-sizing: border-box; + /* width: 100%; */ + background: no-repeat linear-gradient(white, grey); + background-size: cover; + background-attachment: fixed; +} + +main { + max-width: 64rem; + width: 100%; + padding: 0 1.5rem; + box-sizing: border-box; + margin: 0 auto; + background: white; + box-shadow: 2px 2px 12px rgb(0 0 0 / 40%); + padding-top: 0.5em; +} + +footer { + padding-bottom: 0.1em; +} + +.welcome { + margin: 0 auto; + width: max-content; + display: block; + padding-right: 0.5em; +} + +.logo { + display: block; + margin: auto; + object-fit: contain; + align-content: center; + max-width: 100%; +} + +@media only screen and (prefers-color-scheme: dark) { + body { + background: no-repeat linear-gradient(black, grey) + black; + } + + main { + background: #202030; + color: #f0f0f0; + } + + a { + color: cornflowerblue; + } +}