Mercurial
comparison mrjunejune/test/snapshots/tools.snapshot @ 94:092afa595764
[MrJuneJune] Added Integration tests.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Fri, 02 Jan 2026 18:13:32 -0800 |
| parents | |
| children | 1c446ab6f945 |
comparison
equal
deleted
inserted
replaced
| 93:be91a73d801a | 94:092afa595764 |
|---|---|
| 1 HTTP/1.1 200 OK | |
| 2 Content-Type: text/html | |
| 3 Content-Length: 4152 | |
| 4 Connection: close | |
| 5 | |
| 6 <!doctype html> | |
| 7 <html lang="en"> | |
| 8 <head> | |
| 9 <link rel="icon" type="image/svg+xml" href="/public/epi_all_colors.svg"> | |
| 10 | |
| 11 <link rel="preload" href="/public/fonts/Roboto-Regular.ttf" as="font" crossorigin> | |
| 12 <link rel="preload" href="/public/fonts/Roboto-Thin.ttf"as="font" crossorigin> | |
| 13 | |
| 14 <link rel="preload" href="/public/fonts/atkinson-regular.woff" as="font" type="font/woff" crossorigin> | |
| 15 <link rel="preload" href="/public/fonts/atkinson-bold.woff" as="font" type="font/woff" crossorigin> | |
| 16 | |
| 17 <link rel="preload" href="/public/fonts/more-sugar.extras.otf" as="font" type="font/otf" crossorigin> | |
| 18 <link rel="preload" href="/public/fonts/more-sugar.regular.otf" as="font" type="font/otf" crossorigin> | |
| 19 <link rel="preload" href="/public/fonts/more-sugar.thin.otf" as="font" type="font/otf" crossorigin> | |
| 20 | |
| 21 <link rel="preload" href="/base.css" as="style" /> | |
| 22 <link rel="stylesheet" href="/base.css" /> | |
| 23 | |
| 24 | |
| 25 <link rel="stylesheet" href="/tools/index.css" /> | |
| 26 </head> | |
| 27 <body> | |
| 28 <style> | |
| 29 :root { | |
| 30 --header-background: var(--white); | |
| 31 --header-color: rgb(var(--black)); | |
| 32 --link-hover-accent: var(--awesome); | |
| 33 } | |
| 34 | |
| 35 /* Fixed icon in top left corner */ | |
| 36 #themeToggle { | |
| 37 position: fixed; | |
| 38 top: 20px; | |
| 39 left: 20px; | |
| 40 background: var(--header-background); | |
| 41 display: flex; | |
| 42 align-items: center; | |
| 43 border-radius: 50%; | |
| 44 cursor: pointer; | |
| 45 z-index: 1000; | |
| 46 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); | |
| 47 transition: transform 0.2s ease; | |
| 48 } | |
| 49 | |
| 50 #themeToggle:hover { | |
| 51 transform: scale(1.05); | |
| 52 } | |
| 53 | |
| 54 /* Professional header */ | |
| 55 header { | |
| 56 margin: auto; | |
| 57 padding: 1.5em 1em; | |
| 58 font-family: "More", sans-serif; | |
| 59 box-shadow: 0 2px 8px rgba(var(--black), 5%); | |
| 60 width: 720px; | |
| 61 max-width: calc(100% - 2em); | |
| 62 text-align: center; | |
| 63 } | |
| 64 | |
| 65 header h1 { | |
| 66 margin: 0; | |
| 67 font-size: 1.8em; | |
| 68 font-weight: 700; | |
| 69 letter-spacing: -0.5px; | |
| 70 } | |
| 71 | |
| 72 header h1 a { | |
| 73 text-decoration: none; | |
| 74 color: var(--header-color); | |
| 75 } | |
| 76 | |
| 77 header h1 a::before { | |
| 78 display: none; | |
| 79 } | |
| 80 | |
| 81 /* Mobile responsiveness */ | |
| 82 @media (max-width: 720px) { | |
| 83 #themeToggle { | |
| 84 top: 15px; | |
| 85 left: 15px; | |
| 86 } | |
| 87 | |
| 88 header { | |
| 89 padding: 1em; | |
| 90 } | |
| 91 | |
| 92 header h1 { | |
| 93 font-size: 1.5em; | |
| 94 } | |
| 95 } | |
| 96 | |
| 97 @media (max-width: 480px) { | |
| 98 #themeToggle { | |
| 99 top: 10px; | |
| 100 left: 10px; | |
| 101 } | |
| 102 | |
| 103 #themeToggle img { | |
| 104 height: 40px; | |
| 105 width: 40px; | |
| 106 } | |
| 107 | |
| 108 header h1 { | |
| 109 font-size: 1.3em; | |
| 110 } | |
| 111 } | |
| 112 | |
| 113 #logo { | |
| 114 width: 300px; | |
| 115 } | |
| 116 | |
| 117 /* 1. DEFINE THE DEFAULTS (Light Mode) */ | |
| 118 :root { | |
| 119 --logo-invert: invert(0); | |
| 120 --epi-grayscale: grayscale(0) brightness(1); | |
| 121 } | |
| 122 | |
| 123 /* 2. MANUAL DARK OVERRIDE */ | |
| 124 html.dark { | |
| 125 --logo-invert: invert(1); | |
| 126 --epi-grayscale: grayscale(1); | |
| 127 } | |
| 128 | |
| 129 /* 3. MANUAL LIGHT OVERRIDE */ | |
| 130 html.light-mode { | |
| 131 --logo-invert: invert(0); | |
| 132 --epi-grayscale: brightness(2.9) grayscale(1); | |
| 133 } | |
| 134 | |
| 135 /* 4. SYSTEM PREFERENCE */ | |
| 136 @media (prefers-color-scheme: dark) { | |
| 137 :root:not(.light-mode) { | |
| 138 --logo-invert: invert(1); | |
| 139 } | |
| 140 } | |
| 141 | |
| 142 /* 5. APPLY TO ELEMENTS */ | |
| 143 #logo { | |
| 144 -webkit-filter: var(--logo-invert); | |
| 145 filter: var(--logo-invert); | |
| 146 transition: filter 0.3s ease; | |
| 147 } | |
| 148 | |
| 149 .epi-logo { | |
| 150 -webkit-filter: var(--epi-grayscale); | |
| 151 filter: var(--epi-grayscale); | |
| 152 transition: filter 0.3s ease; | |
| 153 } | |
| 154 </style> | |
| 155 | |
| 156 <div id="themeToggle"> | |
| 157 <img id="epiChan" class="epi-logo" aria-label="Toggle dark mode" src="/public/epi_all_colors.svg" height="50" width="50"> | |
| 158 </div> | |
| 159 | |
| 160 <header> | |
| 161 <h1><a href="/">MrJuneJune</a></h1> | |
| 162 </header> | |
| 163 <script src="/index.js"></script> | |
| 164 | |
| 165 | |
| 166 <main> | |
| 167 <h1 class="title"> Tools </h1> | |
| 168 <ul class="nav-list"> | |
| 169 <li><a href="/tools/markdown_to_html">MarkDown to HTML</a></li> | |
| 170 <li><a href="/tools/file_converter">Images to Webp / Video to Mp4</a></li> | |
| 171 </ul> | |
| 172 <h3> TODOs </h3> | |
| 173 <p> Probably should add this... </p> | |
| 174 <ul class="nav-list"> | |
| 175 <li>- Simple online LaTex editor.</li> | |
| 176 <li>- Online HLS player.</li> | |
| 177 </ul> | |
| 178 </main> | |
| 179 <div style="display: flex; align-items: center; justify-content: center; margin: 30px 0px;"> | |
| 180 <small>© 2026 June Park</small> | |
| 181 </div> | |
| 182 | |
| 183 </body> | |
| 184 </html> |