|
8 | 8 | <meta name="description" content="Engineering thoughts on DevOps, Kubernetes, Infrastructure, and Algorithms." /> |
9 | 9 | <meta name="author" content="42DevOps" /> |
10 | 10 |
|
11 | | - <!-- Google Fonts & Material Symbols --> |
| 11 | + <!-- Google Fonts --> |
12 | 12 | <link rel="preconnect" href="https://fonts.googleapis.com"> |
13 | 13 | <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
14 | 14 | <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Noto+Serif+SC:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Shantell+Sans:ital,wght@0,400;0,500;0,600;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&display=swap" rel="stylesheet"> |
15 | | - <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" /> |
16 | 15 |
|
17 | 16 | <!-- Stylesheets (with cache-busting timestamp) --> |
18 | 17 | <link rel="stylesheet" href="/css/syntax.css?v={{ site.time | date: '%s' }}" type="text/css" /> |
|
63 | 62 | </ul> |
64 | 63 |
|
65 | 64 | <button class="theme-toggle-btn" id="theme-toggle" aria-label="Toggle Theme"> |
66 | | - <span class="material-symbols-outlined" id="theme-icon" style="font-size: 1.1rem;">dark_mode</span> |
| 65 | + <span id="theme-icon-container" style="display: inline-flex; align-items: center;"></span> |
67 | 66 | <span id="theme-label" style="font-size: 0.8rem; font-weight: 600;">Dark</span> |
68 | 67 | </button> |
69 | 68 | </nav> |
|
78 | 77 | © {{ "now" | date: "%Y" }} <strong>42DevOps</strong>. Powered by <a href="https://jekyllrb.com" target="_blank" rel="noopener">Jekyll</a> & GitHub Pages. |
79 | 78 | </div> |
80 | 79 | <div class="footer-links"> |
81 | | - <a href="/atom.xml">RSS Feed</a> |
| 80 | + <a href="/atom.xml" style="display: inline-flex; align-items: center; gap: 0.3rem;"> |
| 81 | + <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 11a9 9 0 0 1 9 9"/><path d="M4 4a16 16 0 0 1 16 16"/><circle cx="5" cy="19" r="1"/></svg> |
| 82 | + <span>RSS Feed</span> |
| 83 | + </a> |
82 | 84 | <a href="https://42devops.com">42devops.com</a> |
83 | 85 | </div> |
84 | 86 | </footer> |
|
89 | 91 | document.addEventListener('DOMContentLoaded', function() { |
90 | 92 | // Theme Switcher Logic |
91 | 93 | const toggleBtn = document.getElementById('theme-toggle'); |
92 | | - const themeIcon = document.getElementById('theme-icon'); |
| 94 | + const themeIconContainer = document.getElementById('theme-icon-container'); |
93 | 95 | const themeLabel = document.getElementById('theme-label'); |
94 | 96 |
|
| 97 | + const sunSVG = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/></svg>`; |
| 98 | + const moonSVG = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"/></svg>`; |
| 99 | + |
95 | 100 | function updateThemeUI(theme) { |
96 | 101 | if (theme === 'dark') { |
97 | | - themeIcon.textContent = 'light_mode'; |
| 102 | + if (themeIconContainer) themeIconContainer.innerHTML = sunSVG; |
98 | 103 | themeLabel.textContent = 'Light'; |
99 | 104 | } else { |
100 | | - themeIcon.textContent = 'dark_mode'; |
| 105 | + if (themeIconContainer) themeIconContainer.innerHTML = moonSVG; |
101 | 106 | themeLabel.textContent = 'Dark'; |
102 | 107 | } |
103 | 108 | } |
|
0 commit comments