Mercurial
annotate mrjunejune/src/parts/header.html @ 256:30c2196d03d4
[site] Integrate Zenbu themes and components
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Tue, 04 Aug 2026 16:49:01 -0700 |
| parents | 655ea0b661fd |
| children | 60a876c4587a |
| rev | line source |
|---|---|
| 78 | 1 <style> |
| 2 :root { | |
| 3 --header-background: var(--white); | |
|
256
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
4 --header-color: var(--black); |
| 78 | 5 --link-hover-accent: var(--awesome); |
| 6 } | |
| 82 | 7 |
|
256
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
8 #themeControl { |
| 82 | 9 position: fixed; |
| 10 top: 20px; | |
| 11 left: 20px; | |
| 12 z-index: 1000; | |
| 13 transition: transform 0.2s ease; | |
| 78 | 14 } |
| 82 | 15 |
|
256
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
16 #themeControl:hover { |
| 82 | 17 transform: scale(1.05); |
| 18 } | |
| 19 | |
|
256
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
20 #themeToggle { |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
21 flex-direction: column; |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
22 min-width: 4.5rem; |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
23 padding: 0.35rem; |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
24 border-radius: 1.5rem; |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
25 } |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
26 |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
27 #themeName { |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
28 font-family: "More", sans-serif; |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
29 font-size: 0.65rem; |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
30 line-height: 1; |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
31 } |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
32 |
| 82 | 33 /* Professional header */ |
| 78 | 34 header { |
| 82 | 35 margin: auto; |
| 36 padding: 1.5em 1em; | |
|
92
655ea0b661fd
[Seobeo] Added few endpoints for handling files. [Dowa] Added few functions for random number and generating uuids
June Park <parkjune1995@gmail.com>
parents:
91
diff
changeset
|
37 font-family: "More", sans-serif; |
|
256
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
38 box-shadow: var(--zen-shadow-sm); |
|
80
d55157451947
[MrJuneJune] Updating my homepage.
June Park <parkjune1995@gmail.com>
parents:
78
diff
changeset
|
39 width: 720px; |
|
d55157451947
[MrJuneJune] Updating my homepage.
June Park <parkjune1995@gmail.com>
parents:
78
diff
changeset
|
40 max-width: calc(100% - 2em); |
| 82 | 41 text-align: center; |
| 78 | 42 } |
| 82 | 43 |
| 44 header h1 { | |
| 45 margin: 0; | |
| 46 font-size: 1.8em; | |
| 47 font-weight: 700; | |
| 48 letter-spacing: -0.5px; | |
| 78 | 49 } |
| 82 | 50 |
| 51 header h1 a { | |
| 52 text-decoration: none; | |
| 53 color: var(--header-color); | |
| 78 | 54 } |
| 82 | 55 |
| 56 header h1 a::before { | |
| 57 display: none; | |
| 78 | 58 } |
| 82 | 59 |
| 60 /* Mobile responsiveness */ | |
| 61 @media (max-width: 720px) { | |
|
256
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
62 #themeControl { |
| 82 | 63 top: 15px; |
| 64 left: 15px; | |
| 65 } | |
| 66 | |
| 67 header { | |
| 68 padding: 1em; | |
| 69 } | |
| 70 | |
| 71 header h1 { | |
| 72 font-size: 1.5em; | |
| 73 } | |
| 78 | 74 } |
| 82 | 75 |
| 76 @media (max-width: 480px) { | |
|
256
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
77 #themeControl { |
| 82 | 78 top: 10px; |
| 79 left: 10px; | |
| 80 } | |
| 81 | |
| 82 #themeToggle img { | |
| 83 height: 40px; | |
| 84 width: 40px; | |
| 85 } | |
| 86 | |
| 87 header h1 { | |
| 88 font-size: 1.3em; | |
|
80
d55157451947
[MrJuneJune] Updating my homepage.
June Park <parkjune1995@gmail.com>
parents:
78
diff
changeset
|
89 } |
| 78 | 90 } |
| 82 | 91 |
| 92 #logo { | |
| 93 width: 300px; | |
| 78 | 94 } |
|
80
d55157451947
[MrJuneJune] Updating my homepage.
June Park <parkjune1995@gmail.com>
parents:
78
diff
changeset
|
95 |
| 82 | 96 /* 1. DEFINE THE DEFAULTS (Light Mode) */ |
| 97 :root { | |
| 98 --logo-invert: invert(0); | |
| 99 --epi-grayscale: grayscale(0) brightness(1); | |
| 100 } | |
| 101 | |
| 102 /* 2. MANUAL DARK OVERRIDE */ | |
|
256
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
103 html[data-zen-theme="ink"] { |
| 82 | 104 --logo-invert: invert(1); |
| 105 --epi-grayscale: grayscale(1); | |
| 106 } | |
| 107 | |
| 108 /* 3. MANUAL LIGHT OVERRIDE */ | |
|
256
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
109 html[data-zen-theme="paper"] { |
| 82 | 110 --logo-invert: invert(0); |
| 111 --epi-grayscale: brightness(2.9) grayscale(1); | |
|
80
d55157451947
[MrJuneJune] Updating my homepage.
June Park <parkjune1995@gmail.com>
parents:
78
diff
changeset
|
112 } |
|
256
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
113 |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
114 html[data-zen-theme="playful"] { |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
115 --logo-invert: invert(0); |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
116 --epi-grayscale: saturate(1.25); |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
117 } |
| 82 | 118 |
| 119 /* 4. SYSTEM PREFERENCE */ | |
| 120 @media (prefers-color-scheme: dark) { | |
|
256
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
121 :root:not([data-zen-theme]) { |
| 82 | 122 --logo-invert: invert(1); |
| 123 } | |
| 124 } | |
| 125 | |
| 126 /* 5. APPLY TO ELEMENTS */ | |
| 127 #logo { | |
| 128 -webkit-filter: var(--logo-invert); | |
| 129 filter: var(--logo-invert); | |
| 130 transition: filter 0.3s ease; | |
| 131 } | |
| 132 | |
| 133 .epi-logo { | |
| 134 -webkit-filter: var(--epi-grayscale); | |
| 135 filter: var(--epi-grayscale); | |
| 136 transition: filter 0.3s ease; | |
|
80
d55157451947
[MrJuneJune] Updating my homepage.
June Park <parkjune1995@gmail.com>
parents:
78
diff
changeset
|
137 } |
| 78 | 138 </style> |
| 82 | 139 |
|
256
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
140 <zen-button id="themeControl" variant="quiet"> |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
141 <button |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
142 id="themeToggle" |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
143 type="button" |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
144 aria-label="Change site theme" |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
145 > |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
146 <img |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
147 id="epiChan" |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
148 class="epi-logo" |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
149 alt="" |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
150 src="/public/epi_all_colors.svg" |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
151 height="50" |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
152 width="50" |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
153 > |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
154 <span id="themeName" aria-live="polite">Auto</span> |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
155 </button> |
|
30c2196d03d4
[site] Integrate Zenbu themes and components
MrJuneJune <me@mrjunejune.com>
parents:
92
diff
changeset
|
156 </zen-button> |
| 82 | 157 |
|
80
d55157451947
[MrJuneJune] Updating my homepage.
June Park <parkjune1995@gmail.com>
parents:
78
diff
changeset
|
158 <header> |
| 91 | 159 <h1><a href="/">MrJuneJune</a></h1> |
|
80
d55157451947
[MrJuneJune] Updating my homepage.
June Park <parkjune1995@gmail.com>
parents:
78
diff
changeset
|
160 </header> |
|
85
0618addd5438
Updated so CSS and JS works for non root path.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
161 <script src="/index.js"></script> |