11---
2+ import Button from " ./Button.astro" ;
3+
24interface DownloadTranslations {
35 recommended: string ;
46 title: string ;
@@ -45,19 +47,13 @@ const FALLBACK = "https://github.com/LanRhyme/MicYou/releases/latest";
4547 <div class =" card-glow" ></div >
4648 <div class =" badge" hidden >{ t .recommended } </div >
4749 <div class =" platform-icon" >
48- <md-icon >desktop_windows</md-icon >
50+ <span class = " material-symbols-rounded " style = " font-size: 36px; " >desktop_windows</span >
4951 </div >
5052 <h3 class =" platform-name" >{ t .winClient } </h3 >
5153 <p class =" platform-desc" >{ t .winReq } </p >
5254 <div class =" store-buttons" >
53- <md-outlined-button data-url =" exe" href ={ FALLBACK } >
54- <md-icon slot =" icon" >download</md-icon>
55- <span class =" btn-label" >{ t .loading } </span >
56- </md-outlined-button>
57- <md-outlined-button data-url =" zip" href ={ FALLBACK } >
58- <md-icon slot =" icon" >download</md-icon>
59- { t .btnWinZip }
60- </md-outlined-button>
55+ <Button data-url =" exe" href ={ FALLBACK } variant =" outlined" icon =" download" label ={ t .loading } />
56+ <Button data-url =" zip" href ={ FALLBACK } variant =" outlined" icon =" download" label ={ t .btnWinZip } />
6157 </div >
6258 <div class =" version-info" >
6359 <span class =" version-tag" >Latest</span > • { t .bit64 }
@@ -69,15 +65,12 @@ const FALLBACK = "https://github.com/LanRhyme/MicYou/releases/latest";
6965 <div class =" card-glow" ></div >
7066 <div class =" badge" hidden >{ t .recommended } </div >
7167 <div class =" platform-icon" >
72- <md-icon >smartphone</md-icon >
68+ <span class = " material-symbols-rounded " style = " font-size: 36px; " >smartphone</span >
7369 </div >
7470 <h3 class =" platform-name" >{ t .androidApp } </h3 >
7571 <p class =" platform-desc" >{ t .androidReq } </p >
7672 <div class =" store-buttons" >
77- <md-outlined-button data-url =" apk" href ={ FALLBACK } >
78- <md-icon slot =" icon" >android</md-icon>
79- { t .btnApk }
80- </md-outlined-button>
73+ <Button data-url =" apk" href ={ FALLBACK } variant =" outlined" icon =" android" label ={ t .btnApk } />
8174 </div >
8275 <div class =" version-info" >
8376 <span class =" version-tag" >Latest</span >
@@ -89,19 +82,13 @@ const FALLBACK = "https://github.com/LanRhyme/MicYou/releases/latest";
8982 <div class =" card-glow" ></div >
9083 <div class =" badge" hidden >{ t .recommended } </div >
9184 <div class =" platform-icon" >
92- <md-icon >laptop_mac</md-icon >
85+ <span class = " material-symbols-rounded " style = " font-size: 36px; " >laptop_mac</span >
9386 </div >
9487 <h3 class =" platform-name" >{ t .macClient } </h3 >
9588 <p class =" platform-desc" >{ t .macReq } </p >
9689 <div class =" store-buttons" >
97- <md-outlined-button data-url =" dmg-arm" href ={ FALLBACK } >
98- <md-icon slot =" icon" >download</md-icon>
99- macOS (Apple Silicon)
100- </md-outlined-button>
101- <md-outlined-button data-url =" dmg-x64" href ={ FALLBACK } >
102- <md-icon slot =" icon" >download</md-icon>
103- macOS (Intel x64)
104- </md-outlined-button>
90+ <Button data-url =" dmg-arm" href ={ FALLBACK } variant =" outlined" icon =" download" label =" macOS (Apple Silicon)" />
91+ <Button data-url =" dmg-x64" href ={ FALLBACK } variant =" outlined" icon =" download" label =" macOS (Intel x64)" />
10592 </div >
10693 <div class =" version-info" >
10794 <span class =" version-tag" >Latest</span >
@@ -113,23 +100,16 @@ const FALLBACK = "https://github.com/LanRhyme/MicYou/releases/latest";
113100 <div class =" card-glow" ></div >
114101 <div class =" badge" hidden >{ t .recommended } </div >
115102 <div class =" platform-icon" >
116- <md-icon >desktop_mac</md-icon >
103+ <span class = " material-symbols-rounded " style = " font-size: 36px; " >desktop_mac</span >
117104 </div >
118105 <h3 class =" platform-name" >{ t .linuxClient } </h3 >
119106 <p class =" platform-desc" >{ t .linuxReq } </p >
120107 <div class =" store-buttons" >
121- <md-outlined-button data-url =" deb" href ={ FALLBACK } >
122- <md-icon slot =" icon" >download</md-icon>
123- { t .btnLinuxDebian }
124- </md-outlined-button>
125- <md-outlined-button data-url =" rpm" href ={ FALLBACK } >
126- <md-icon slot =" icon" >download</md-icon>
127- { t .btnLinuxRPM }
128- </md-outlined-button>
129- <md-outlined-button data-action =" copy-aur" >
130- <md-icon slot =" icon" >content_copy</md-icon>
131- { t .btnLinuxAUR }
132- </md-outlined-button>
108+ <Button data-url =" deb" href ={ FALLBACK } variant =" outlined" icon =" download" label ={ t .btnLinuxDebian } />
109+ <Button data-url =" rpm" href ={ FALLBACK } variant =" outlined" icon =" download" label ={ t .btnLinuxRPM } />
110+ <span data-action =" copy-aur" >
111+ <Button variant =" outlined" icon =" content_copy" label ={ t .btnLinuxAUR } />
112+ </span >
133113 <div class =" aur-message" hidden ></div >
134114 </div >
135115 <div class =" version-info" >
@@ -141,9 +121,6 @@ const FALLBACK = "https://github.com/LanRhyme/MicYou/releases/latest";
141121</section >
142122
143123<script >
144- import "@material/web/button/filled-button.js";
145- import "@material/web/button/outlined-button.js";
146- import "@material/web/icon/icon.js";
147124 import { detectDevice } from "../utils/device";
148125
149126 const section = document.getElementById("download")!;
@@ -217,14 +194,14 @@ const FALLBACK = "https://github.com/LanRhyme/MicYou/releases/latest";
217194 if (el) el.setAttribute("href", url);
218195 }
219196
220- const exeLabel = section.querySelector("[data-url='exe'] .btn- label");
197+ const exeLabel = section.querySelector("[data-url='exe'] .label");
221198 if (exeLabel) exeLabel.textContent = t.btnWinDownload;
222199
223200 section.querySelectorAll(".version-tag").forEach((el) => {
224201 el.textContent = data.tag_name;
225202 });
226203 } catch {
227- const exeLabel = section.querySelector("[data-url='exe'] .btn- label");
204+ const exeLabel = section.querySelector("[data-url='exe'] .label");
228205 if (exeLabel) exeLabel.textContent = t.btnWinDownload;
229206 }
230207 }
@@ -260,12 +237,8 @@ const FALLBACK = "https://github.com/LanRhyme/MicYou/releases/latest";
260237 if (key) {
261238 const btn = card.querySelector<HTMLElement>(`[data-url="${key}"]`);
262239 if (btn) {
263- const filled = document.createElement("md-filled-button");
264- for (const attr of Array.from(btn.attributes)) {
265- filled.setAttribute(attr.name, attr.value);
266- }
267- filled.innerHTML = btn.innerHTML;
268- btn.replaceWith(filled);
240+ btn.classList.remove("outlined");
241+ btn.classList.add("filled");
269242 }
270243 }
271244 } catch {
@@ -458,10 +431,6 @@ const FALLBACK = "https://github.com/LanRhyme/MicYou/releases/latest";
458431 box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.1);
459432 }
460433
461- .platform-icon md-icon {
462- font-size: 36px;
463- }
464-
465434 .platform-name {
466435 font-family: "Outfit", sans-serif;
467436 font-size: 26px;
0 commit comments