comparison mrjunejune/test/snapshots/talk_index.html.snapshot @ 184:8c74204fd362

[MD to HTML] Updated so it can be used through readme to html
author MrJuneJune <me@mrjunejune.com>
date Fri, 23 Jan 2026 22:20:35 -0800
parents 1c0878eb17de
children
comparison
equal deleted inserted replaced
183:a8976a008a9d 184:8c74204fd362
1 -- <link rel="preload" href="/public/fonts/more-sugar.extras.otf" as="font" type="font/otf" crossorigin> -->
2 <link rel="preload" href="/public/fonts/more-sugar.regular.otf" as="font" type="font/otf" crossorigin>
3 <link rel="preload" href="/public/fonts/more-sugar.thin.otf" as="font" type="font/otf" crossorigin>
4 <link rel="preload" href="/public/epi_all_colors.svg" as="image">
5
6 <link rel="preload" href="/base.css" as="style" />
7 <link rel="stylesheet" href="/base.css" />
8
9
10 </head>
11 <body>
12 <style>
13 :root {
14 --header-background: var(--white);
15 --header-color: rgb(var(--black));
16 --link-hover-accent: var(--awesome);
17 }
18
19 /* Fixed icon in top left corner */
20 #themeToggle {
21 position: fixed;
22 top: 20px;
23 left: 20px;
24 background: var(--header-background);
25 display: flex;
26 align-items: center;
27 border-radius: 50%;
28 cursor: pointer;
29 z-index: 1000;
30 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
31 transition: transform 0.2s ease;
32 }
33
34 #themeToggle:hover {
35 transform: scale(1.05);
36 }
37
38 /* Professional header */
39 header {
40 margin: auto;
41 padding: 1.5em 1em;
42 font-family: "More", sans-serif;
43 box-shadow: 0 2px 8px rgba(var(--black), 5%);
44 width: 720px;
45 max-width: calc(100% - 2em);
46 text-align: center;
47 }
48
49 header h1 {
50 margin: 0;
51 font-size: 1.8em;
52 font-weight: 700;
53 letter-spacing: -0.5px;
54 }
55
56 header h1 a {
57 text-decoration: none;
58 color: var(--header-color);
59 }
60
61 header h1 a::before {
62 display: none;
63 }
64
65 /* Mobile responsiveness */
66 @media (max-width: 720px) {
67 #themeToggle {
68 top: 15px;
69 left: 15px;
70 }
71
72 header {
73 padding: 1em;
74 }
75
76 header h1 {
77 font-size: 1.5em;
78 }
79 }
80
81 @media (max-width: 480px) {
82 #themeToggle {
83 top: 10px;
84 left: 10px;
85 }
86
87 #themeToggle img {
88 height: 40px;
89 width: 40px;
90 }
91
92 header h1 {
93 font-size: 1.3em;
94 }
95 }
96
97 #logo {
98 width: 300px;
99 }
100
101 /* 1. DEFINE THE DEFAULTS (Light Mode) */
102 :root {
103 --logo-invert: invert(0);
104 --epi-grayscale: grayscale(0) brightness(1);
105 }
106
107 /* 2. MANUAL DARK OVERRIDE */
108 html.dark {
109 --logo-invert: invert(1);
110 --epi-grayscale: grayscale(1);
111 }
112
113 /* 3. MANUAL LIGHT OVERRIDE */
114 html.light-mode {
115 --logo-invert: invert(0);
116 --epi-grayscale: brightness(2.9) grayscale(1);
117 }
118
119 /* 4. SYSTEM PREFERENCE */
120 @media (prefers-color-scheme: dark) {
121 :root:not(.light-mode) {
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;
137 }
138 </style>
139
140 <div id="themeToggle">
141 <img id="epiChan" class="epi-logo" aria-label="Toggle dark mode" src="/public/epi_all_colors.svg" height="50" width="50">
142 </div>
143
144 <header>
145 <h1><a href="/">MrJuneJune</a></h1>
146 </header>
147 <script src="/index.js"></script>
148
149
150 <main>
151 <h1 class="title" style="margin-bottom: 20px;"> Blogs </h1>
152 <ul style="list-style: none;">
153 <li style="margin-bottom: 20px;">
154 <span> January 08 2026 </span>
155 <p><h4><a href="/blog/websocket-demystified">Websocket Demystified</a></h4></p>
156 </li>
157 <li style="margin-bottom: 20px;">
158 <span> January 02 2026 </span>
159 <p><h4><a href="/blog/my-seobeo-journey">Creating Network Library in C</a></h4></p>
160 </li>
161 <li style="margin-bottom: 20px;">
162 <span> Apr 12 2025 </span>
163 <p><h4><a href="/blog/wsl2-ssh">WSL2 Cloudtop Setup</a></h4></p>
164 </li>
165 <li style="margin-bottom: 20px;">
166 <span> Dec 10 2024 </span>
167 <p><h4><a href="/blog/multithread-in-js">MultiThreading in JS</a></h4></p>
168 </li>
169 <li style="margin-bottom: 20px;">
170 <span> Nov 23 2024 </span>
171 <p><h4><a href="/blog/thoughts-on-tdd">My thoughts on TDD</a></h4></p>
172 </li>
173 <li style="margin-bottom: 20px;">
174 <span> Nov 21 2024 </span>
175 <p><h4><a href="/blog/optimizing-grass-rendering">Optimizing Random Placement with Colour Noise</a></h4></p>
176 </li>
177 <li style="margin-bottom: 20px;">
178 <span> Nov 17 2024 </span>
179 <p><h4><a href="/blog/thoughts-on-ide">My thoughts on IDE</a></h4></p>
180 </li>
181 <li style="margin-bottom: 20px;">
182 <span> Nov 16 2024 </span>
183 <p><h4><a href="/blog/optimizing-data-structures">Optimizing Data Structure for Performance</a></h4></p>
184 </li>
185 <li style="margin-bottom: 20px;">
186 <span> Nov 13 2024 </span>
187 <p><h4><a href="/blog/wasm-bunny">WASM using c3</a></h4></p>
188 </li>
189 </ul>
190 </main>
191 <div style="display: flex; align-items: center; justify-content: center; margin: 30px 0px;">
192 <small>&copy; 2026 June Park</small>
193 </div>
194
195 </body>
196 </htmlLocation: /talk
197
198 cale(0) brightness(1);
199 }
200
201 /* 2. MANUAL DARK OVERRIDE */
202 html.dark {
203 --logo-invert: invert(1);
204 --epi-grayscale: grayscale(1);
205 }
206
207 /* 3. MANUAL LIGHT OVERRIDE */
208 html.light-mode {
209 --logo-invert: invert(0);
210 --epi-grayscale: brightness(2.9) grayscale(1);
211 }
212
213 /* 4. SYSTEM PREFERENCE */
214 @media (prefers-color-scheme: dark) {
215 :root:not(.light-mode) {
216 --logo-invert: invert(1);
217 }
218 }
219
220 /* 5. APPLY TO ELEMENTS */
221 #logo {
222 -webkit-filter: var(--logo-invert);
223 filter: var(--logo-invert);
224 transition: filter 0.3s ease;
225 }
226
227 .epi-logo {
228 -webkit-filter: var(--epi-grayscale);
229 filter: var(--epi-grayscale);
230 transition: filter 0.3s ease;
231 }
232 </style>
233
234 <div id="themeToggle">
235 <img id="epiChan" class="epi-logo" aria-label="Toggle dark mode" src="/public/epi_all_colors.svg" height="50" width="50">
236 </div>
237
238 <header>
239 <h1><a href="/">MrJuneJune</a></h1>
240 </header>
241 <script src="/index.js"></script>
242
243
244
245 <div class="container">
246 <h1>File Format Converter</h1>
247 <p>Convert your images and videos to different formats using FFmpeg</p>
248
249 <div class="converter-section">
250 <h2>Image to WebP Converter</h2>
251 <p>Upload an image file (PNG, JPG, GIF, etc.) to convert it to WebP format</p>
252
253 <div class="file-input-wrapper">
254 <label for="imageInput">Choose an image file:</label>
255 <input type="file" id="imageInput" accept="image/*">
256 </div>
257
258 <button id="convertImageBtn" onclick="convertImageToWebP()">Convert to WebP</button>
259
260 <div class="loading" id="imageLoading">Converting... Please wait.</div>
261
262 <div class="result" id="imageResult">
263 <p id="imageMessage"></p>
264 <a id="imageDownload" class="download-link" style="display: none;">Download WebP Image</a>
265 </div>
266 </div>
267
268 <div class="converter-section">
269 <h2>Video to MP4 Converter</h2>
270 <p>Upload a video file (AVI, MOV, MKV, etc.) to convert it to MP4 format</p>
271
272 <div class="file-input-wrapper">
273 <label for="videoInput">Choose a video file:</label>
274 <input type="file" id="videoInput" accept="video/*">
275 </div>
276
277 <button id="convertVideoBtn" onclick="convertVideoToMP4()">Convert to MP4</button>
278
279 <div class="loading" id="videoLoading">Converting... Please wait.</div>
280
281 <div class="result" id="videoResult">
282 <p id="videoMessage"></p>
283 <a id="videoDownload" class="download-link" style="display: none;">Download MP4 Video</a>
284 </div>
285 </div>
286 <div style="display: flex; align-items: center; justify-content: center; margin: 30px 0px;">
287 <small>&copy; 2026 June Park</small>
288 </div>
289
290 </div>
291 <script src="/tools/file_converter/index.js"></script>
292 </body>
293 </html>