Mercurial
annotate mrjunejune/test/snapshots/blog.snapshot @ 145:c1eab8c0b0f9
[MrJuneJune] Small improvement UX and tests passes now.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Fri, 09 Jan 2026 13:42:35 -0800 |
| parents | f7860f491a8c |
| children | 1c0878eb17de |
| rev | line source |
|---|---|
| 129 | 1 <!doctype html> |
| 2 <html lang="en"> | |
| 3 <head> | |
| 4 <meta charset="UTF-8"> | |
| 5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| 6 <link rel="icon" type="image/svg+xml" href="/public/epi_all_colors.svg"> | |
| 7 | |
| 8 <link rel="preload" href="/public/fonts/Roboto-Regular.ttf" as="font" crossorigin> | |
| 9 <link rel="preload" href="/public/fonts/Roboto-Thin.ttf"as="font" crossorigin> | |
| 10 | |
| 11 <!-- <link rel="preload" href="/public/fonts/atkinson-regular.woff" as="font" type="font/woff" crossorigin> --> | |
| 12 <!-- <link rel="preload" href="/public/fonts/atkinson-bold.woff" as="font" type="font/woff" crossorigin> --> | |
| 13 | |
| 14 <!-- <link rel="preload" href="/public/fonts/more-sugar.extras.otf" as="font" type="font/otf" crossorigin> --> | |
| 15 <link rel="preload" href="/public/fonts/more-sugar.regular.otf" as="font" type="font/otf" crossorigin> | |
| 16 <link rel="preload" href="/public/fonts/more-sugar.thin.otf" as="font" type="font/otf" crossorigin> | |
|
145
c1eab8c0b0f9
[MrJuneJune] Small improvement UX and tests passes now.
June Park <parkjune1995@gmail.com>
parents:
129
diff
changeset
|
17 <link rel="preload" href="/public/epi_all_colors.svg" as="image" crossorigin> |
| 129 | 18 |
| 19 <link rel="preload" href="/base.css" as="style" /> | |
| 20 <link rel="stylesheet" href="/base.css" /> | |
| 21 | |
| 22 | |
| 23 </head> | |
| 24 <body> | |
| 25 <style> | |
| 26 :root { | |
| 27 --header-background: var(--white); | |
| 28 --header-color: rgb(var(--black)); | |
| 29 --link-hover-accent: var(--awesome); | |
| 30 } | |
| 31 | |
| 32 /* Fixed icon in top left corner */ | |
| 33 #themeToggle { | |
| 34 position: fixed; | |
| 35 top: 20px; | |
| 36 left: 20px; | |
| 37 background: var(--header-background); | |
| 38 display: flex; | |
| 39 align-items: center; | |
| 40 border-radius: 50%; | |
| 41 cursor: pointer; | |
| 42 z-index: 1000; | |
| 43 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); | |
| 44 transition: transform 0.2s ease; | |
| 45 } | |
| 46 | |
| 47 #themeToggle:hover { | |
| 48 transform: scale(1.05); | |
| 49 } | |
| 50 | |
| 51 /* Professional header */ | |
| 52 header { | |
| 53 margin: auto; | |
| 54 padding: 1.5em 1em; | |
| 55 font-family: "More", sans-serif; | |
| 56 box-shadow: 0 2px 8px rgba(var(--black), 5%); | |
| 57 width: 720px; | |
| 58 max-width: calc(100% - 2em); | |
| 59 text-align: center; | |
| 60 } | |
| 61 | |
| 62 header h1 { | |
| 63 margin: 0; | |
| 64 font-size: 1.8em; | |
| 65 font-weight: 700; | |
| 66 letter-spacing: -0.5px; | |
| 67 } | |
| 68 | |
| 69 header h1 a { | |
| 70 text-decoration: none; | |
| 71 color: var(--header-color); | |
| 72 } | |
| 73 | |
| 74 header h1 a::before { | |
| 75 display: none; | |
| 76 } | |
| 77 | |
| 78 /* Mobile responsiveness */ | |
| 79 @media (max-width: 720px) { | |
| 80 #themeToggle { | |
| 81 top: 15px; | |
| 82 left: 15px; | |
| 83 } | |
| 84 | |
| 85 header { | |
| 86 padding: 1em; | |
| 87 } | |
| 88 | |
| 89 header h1 { | |
| 90 font-size: 1.5em; | |
| 91 } | |
| 92 } | |
| 93 | |
| 94 @media (max-width: 480px) { | |
| 95 #themeToggle { | |
| 96 top: 10px; | |
| 97 left: 10px; | |
| 98 } | |
| 99 | |
| 100 #themeToggle img { | |
| 101 height: 40px; | |
| 102 width: 40px; | |
| 103 } | |
| 104 | |
| 105 header h1 { | |
| 106 font-size: 1.3em; | |
| 107 } | |
| 108 } | |
| 109 | |
| 110 #logo { | |
| 111 width: 300px; | |
| 112 } | |
| 113 | |
| 114 /* 1. DEFINE THE DEFAULTS (Light Mode) */ | |
| 115 :root { | |
| 116 --logo-invert: invert(0); | |
| 117 --epi-grayscale: grayscale(0) brightness(1); | |
| 118 } | |
| 119 | |
| 120 /* 2. MANUAL DARK OVERRIDE */ | |
| 121 html.dark { | |
| 122 --logo-invert: invert(1); | |
| 123 --epi-grayscale: grayscale(1); | |
| 124 } | |
| 125 | |
| 126 /* 3. MANUAL LIGHT OVERRIDE */ | |
| 127 html.light-mode { | |
| 128 --logo-invert: invert(0); | |
| 129 --epi-grayscale: brightness(2.9) grayscale(1); | |
| 130 } | |
| 131 | |
| 132 /* 4. SYSTEM PREFERENCE */ | |
| 133 @media (prefers-color-scheme: dark) { | |
| 134 :root:not(.light-mode) { | |
| 135 --logo-invert: invert(1); | |
| 136 } | |
| 137 } | |
| 138 | |
| 139 /* 5. APPLY TO ELEMENTS */ | |
| 140 #logo { | |
| 141 -webkit-filter: var(--logo-invert); | |
| 142 filter: var(--logo-invert); | |
| 143 transition: filter 0.3s ease; | |
| 144 } | |
| 145 | |
| 146 .epi-logo { | |
| 147 -webkit-filter: var(--epi-grayscale); | |
| 148 filter: var(--epi-grayscale); | |
| 149 transition: filter 0.3s ease; | |
| 150 } | |
| 151 </style> | |
| 152 | |
| 153 <div id="themeToggle"> | |
| 154 <img id="epiChan" class="epi-logo" aria-label="Toggle dark mode" src="/public/epi_all_colors.svg" height="50" width="50"> | |
| 155 </div> | |
| 156 | |
| 157 <header> | |
| 158 <h1><a href="/">MrJuneJune</a></h1> | |
| 159 </header> | |
| 160 <script src="/index.js"></script> | |
| 161 | |
| 162 | |
| 163 <main> | |
| 164 <h1 class="title" style="margin-bottom: 20px;"> Blogs </h1> | |
| 165 <ul style="list-style: none;"> | |
| 166 <li style="margin-bottom: 20px;"> | |
| 167 <span> January 08 2026 </span> | |
| 168 <p><h4><a href="/blog/websocket-demystified">Websocket Demystified</a></h4></p> | |
| 169 </li> | |
| 170 <li style="margin-bottom: 20px;"> | |
| 171 <span> January 02 2026 </span> | |
| 172 <p><h4><a href="/blog/my-seobeo-journey">Creating Network Library in C</a></h4></p> | |
| 173 </li> | |
| 174 <li style="margin-bottom: 20px;"> | |
| 175 <span> Apr 12 2025 </span> | |
| 176 <p><h4><a href="/blog/wsl2-ssh">WSL2 Cloudtop Setup</a></h4></p> | |
| 177 </li> | |
| 178 <li style="margin-bottom: 20px;"> | |
| 179 <span> Dec 10 2024 </span> | |
| 180 <p><h4><a href="/blog/multithread-in-js">MultiThreading in JS</a></h4></p> | |
| 181 </li> | |
| 182 <li style="margin-bottom: 20px;"> | |
| 183 <span> Nov 23 2024 </span> | |
| 184 <p><h4><a href="/blog/thoughts-on-tdd">My thoughts on TDD</a></h4></p> | |
| 185 </li> | |
| 186 <li style="margin-bottom: 20px;"> | |
| 187 <span> Nov 21 2024 </span> | |
| 188 <p><h4><a href="/blog/optimizing-grass-rendering">Optimizing Random Placement with Colour Noise</a></h4></p> | |
| 189 </li> | |
| 190 <li style="margin-bottom: 20px;"> | |
| 191 <span> Nov 17 2024 </span> | |
| 192 <p><h4><a href="/blog/thoughts-on-ide">My thoughts on IDE</a></h4></p> | |
| 193 </li> | |
| 194 <li style="margin-bottom: 20px;"> | |
| 195 <span> Nov 16 2024 </span> | |
| 196 <p><h4><a href="/blog/optimizing-data-structures">Optimizing Data Structure for Performance</a></h4></p> | |
| 197 </li> | |
| 198 <li style="margin-bottom: 20px;"> | |
| 199 <span> Nov 13 2024 </span> | |
| 200 <p><h4><a href="/blog/wasm-bunny">WASM using c3</a></h4></p> | |
| 201 </li> | |
| 202 </ul> | |
| 203 </main> | |
| 204 <div style="display: flex; align-items: center; justify-content: center; margin: 30px 0px;"> | |
| 205 <small>© 2026 June Park</small> | |
| 206 </div> | |
| 207 | |
| 208 </body> | |
| 209 </html> |