Skip to content

The swiss army knife of lossless video/audio editing

Website: keep the store badges' border at the rounded corners

Claude0d5e13372e9c
diff --git a/website/src/components/Home.tsx b/website/src/components/Home.tsx
index e090c628..63037f40 100644
--- a/website/src/components/Home.tsx
+++ b/website/src/components/Home.tsx
@@ -111,7 +111,8 @@ function StoreBadges({ height }: { height: number }) {
return (
<div className="store-badges">
{storeBadges.map(({ href, image, alt, rounded }) => (
- <a key={href} className="app-store" style={{ borderRadius: rounded ? `${Math.round(height * 0.26)}px` : undefined }} href={href}><img src={image} alt={alt} height={height} /></a>
+ // the Microsoft and Snap badges are square images, rounded here like Apple's (whose corners are about 24% of its height)
+ <a key={href} className={rounded ? 'app-store rounded' : 'app-store'} style={{ borderRadius: rounded ? `${Math.round(height * 0.24)}px` : undefined }} href={href}><img src={image} alt={alt} height={height} /></a>
))}
</div>
);
diff --git a/website/src/styles/home.css b/website/src/styles/home.css
index b5340bb2..59920026 100644
--- a/website/src/styles/home.css
+++ b/website/src/styles/home.css
@@ -265,6 +265,18 @@ body {
.app-store {
overflow: hidden;
}
+/* rounding cuts off the corners of the badge's own border, so draw it again on the rounded shape, like Apple's badge has */
+.app-store.rounded {
+ position: relative;
+}
+.app-store.rounded::after {
+ content: '';
+ position: absolute;
+ inset: 0;
+ border: 1px solid #a6a6a6;
+ border-radius: inherit;
+ pointer-events: none;
+}
.app-store img {
display: block;
}