Skip to content

Commit 118ef01

Browse files
committed
side-by-side download buttons
1 parent 91b6a1c commit 118ef01

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

src/components/button/DownloadButton.jsx

+7-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,15 @@ function DownloadButton() {
2828
return (
2929
<a
3030
onClick={() => handleButtonClick(href)}
31-
className="text-white font-semibold hover:underline"
31+
className="flex py-3 px-4 gap-3 rounded-md items-center bg-yellow-300 hover:bg-yellow-400 active:bg-yellow-500 w-fit"
3232
href={href}
3333
>
34-
Download without Muse Hub
34+
<div className="flex items-center gap-4">
35+
<span className="icon icon-import"></span>
36+
<p className="">
37+
<span className="font-semibold">Download Audacity {audacityReleases.version}</span><br />
38+
<span className="font-light">Installs with no extras</span></p>
39+
</div>
3540
</a>
3641
);
3742
}

src/components/button/DownloadMuseHubButton.jsx

+4-6
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,14 @@ function DownloadMuseHubButton() {
4545
return (
4646
<a
4747
onClick={() => handleButtonClick(href)}
48-
className="flex py-3 px-4 gap-3 rounded-md justify-center bg-yellow-300 hover:bg-yellow-400 active:bg-yellow-500 w-fit"
48+
className="flex py-3 px-4 gap-3 rounded-md items-center bg-white hover:bg-gray-200 active:bg-yellow-500 w-fit"
4949
href={href}
5050
>
5151
<span className="icon icon-import"></span>
5252
<p>
53-
<span className="font-semibold">
54-
Download Audacity {audacityReleases.version}
55-
</span>
56-
<br />
57-
{false && <span className="font-light text-s">via MuseHub</span>}
53+
<span className="font-semibold">
54+
Audacity + free effects</span><br/>
55+
<span className="font-light text-s">via MuseHub Installer</span>
5856
</p>
5957
</a>
6058
);

src/components/homepage/HeroBanner.astro

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ import DownloadMuseHubButton from "../button/DownloadMuseHubButton";
99
class="grid grid-cols-12 max-w-screen-lg mx-6 sm:mx-16 xl:mx-auto py-8 md:py-16 sm:py-12 gap-6 md:gap-0"
1010
>
1111
<div
12-
class="col-span-12 mx-2 md:mx-0 text-center md:text-left md:col-span-5 flex flex-col gap-4 md:gap-8 justify-center"
12+
class="col-span-12 mx-2 md:mx-0 text-center md:text-left md:col-span-7 flex flex-col gap-4 md:gap-8 justify-center"
1313
>
1414
<h1 class="leading-tight mt-2 text-white">
1515
Audacity is the world's most popular audio editing and recording app
1616
</h1>
1717

18-
<div class="flex flex-col md:w-fit gap-4 items-center md:items-start">
19-
<DownloadMuseHubButton client:load />
20-
<noscript>
21-
<DownloadMuseHubButton client:load />
22-
</noscript>
18+
<div class="flex md:w-fit gap-4 items-center md:items-start">
2319
<DownloadButton client:load />
2420
<noscript>
2521
<DownloadButton client:load />
2622
</noscript>
23+
<DownloadMuseHubButton client:load />
24+
<noscript>
25+
<DownloadMuseHubButton client:load />
26+
</noscript>
2727
</div>
2828
</div>
2929
<div
30-
class="col-span-12 md:col-start-7 md:col-span-7 flex items-center justify-center mx-4"
30+
class="col-span-12 md:col-start-8 md:col-span-6 flex items-center justify-center mx-4"
3131
>
3232
<img
3333
alt="A laptop showing the Audacity application"

0 commit comments

Comments
 (0)