diff --git a/website/src/components/HomepageFeatures/index.js b/website/src/components/HomepageFeatures/index.js index 12fb91d3..3be774f3 100644 --- a/website/src/components/HomepageFeatures/index.js +++ b/website/src/components/HomepageFeatures/index.js @@ -1,6 +1,7 @@ import React from 'react'; import clsx from 'clsx'; import styles from './styles.module.css'; +import CodeBlock from '@theme/CodeBlock'; const FeatureList = [ { @@ -69,12 +70,25 @@ function Feature({ Svg, title, description }) { export default function HomepageFeatures() { return ( -
-
- {FeatureList.map((props, idx) => ( - - ))} -
-
+
+
+
+ {FeatureList.map((props, idx) => ( + + ))} +
+
+ + {`test('validates substring presence in concatenated string', () => { + fc.assert( + fc.property(fc.string(), fc.string(), fc.string(), (a, b, c) => { + expect(isSubstring(\`\${a}\${b}\${c}\`, b)).toBe(true); + }) + ); +});`} + +
+
+
); } diff --git a/website/src/components/HomepageFeatures/styles.module.css b/website/src/components/HomepageFeatures/styles.module.css index d8bc1db9..ff31a48c 100644 --- a/website/src/components/HomepageFeatures/styles.module.css +++ b/website/src/components/HomepageFeatures/styles.module.css @@ -1,29 +1,27 @@ .features { - display: flex; - align-items: center; + display: grid; padding: 2rem 0; + gap: 2rem; width: 100%; + grid-template-columns: 2fr 1fr; } .allFeatureCards { display: grid; - grid-template-columns: 1fr 1fr 1fr; + grid-template-columns: 100%; gap: 3em; } .featureCard { display: flex; - flex-direction: column; + flex-direction: row; align-items: center; } @media screen and (max-width: 996px) { - .allFeatureCards { + .features { grid-template-columns: 100%; } - .featureCard { - flex-direction: row; - } } .featureSvg {