The swiss army knife of lossless video/audio editing
Website: collapse the features on phones, with "Show all features"
Claude5c952f21d6cf
diff --git a/website/src/components/Home.tsx b/website/src/components/Home.tsxindex 63037f40..b1e4f064 100644--- a/website/src/components/Home.tsx+++ b/website/src/components/Home.tsx@@ -204,13 +204,17 @@ export default function Home({ stars }: { stars: number }) {<WhiteSection><h2 style={{ margin: '20px 0' }}>Features</h2>- <div className="feature-grid">- {features.map(({ text, Icon }) => (- <div key={text} className="feature-card">- <Icon aria-hidden size={28} strokeWidth={1.75} className="feature-icon" />- <div>{text}</div>- </div>- ))}+ {/* on phones, collapsed until "Show all features" is clicked (CSS only, see home.css) */}+ <div className="feature-collapse">+ <div className="feature-grid">+ {features.map(({ text, Icon }) => (+ <div key={text} className="feature-card">+ <Icon aria-hidden size={28} strokeWidth={1.75} className="feature-icon" />+ <div>{text}</div>+ </div>+ ))}+ </div>+ <details className="feature-more"><summary className="button">Show all features</summary></details></div><h2 style={{ margin: '20px 0' }}>Other usage scenarios</h2>diff --git a/website/src/styles/home.css b/website/src/styles/home.cssindex 59920026..a6ce0307 100644--- a/website/src/styles/home.css+++ b/website/src/styles/home.css@@ -242,6 +242,40 @@ body {.feature-icon {color: #1d8a96;}+.feature-collapse {+ width: 1000px;+ max-width: 100%;+ margin-bottom: 40px;+}+.feature-collapse .feature-grid {+ margin-bottom: 0;+}+.feature-more {+ display: none;+}+/* Phones: show the first few features, fading out, until "Show all features" opens the <details>.+Only where :has() works, so other browsers show all features. */+@supports selector(:has(*)) {+ @media (max-width: 700px) {+ .feature-collapse:not(:has(.feature-more[open])) .feature-grid {+ max-height: 460px;+ overflow: hidden;+ mask-image: linear-gradient(to bottom, black 55%, transparent);+ }+ .feature-more:not([open]) {+ display: flex;+ justify-content: center;+ margin-top: 8px;+ }+ .feature-more summary {+ list-style: none;+ cursor: pointer;+ }+ .feature-more summary::-webkit-details-marker {+ display: none;+ }+ }+}.download {padding: 30px 20px;