Skip to content

Commit 1c38aac

Browse files
Merge pull request #9 from php-debugger/home-page-updates
update home page hero and feature strip
2 parents 50f1d4b + 8479fdf commit 1c38aac

2 files changed

Lines changed: 18 additions & 14 deletions

File tree

src/components/HomeFeatureStrip/index.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ const features = [
2222
),
2323
},
2424
{
25-
title: 'Powerful Features',
26-
text: 'Breakpoints, watches, step debugging, and more.',
25+
title: 'Fully Compatible',
26+
text: 'Your existing settings and IDE setup keep working.',
2727
icon: (
2828
<svg {...iconProps}>
29-
<circle cx="12" cy="12" r="9" />
30-
<circle cx="12" cy="12" r="3" />
31-
<path d="M12 3v3M12 18v3M3 12h3M18 12h3" />
29+
<path d="M9 3v6M15 3v6" />
30+
<path d="M7 9h10v3a5 5 0 0 1-10 0V9z" />
31+
<path d="M12 17v4" />
3232
</svg>
3333
),
3434
},
@@ -43,12 +43,12 @@ const features = [
4343
),
4444
},
4545
{
46-
title: 'Zero Dependencies',
47-
text: 'A single Zend extension. Nothing else to install.',
46+
title: 'Always Available',
47+
text: 'Leave it on. It costs almost nothing until you debug.',
4848
icon: (
4949
<svg {...iconProps}>
50-
<path d="M12 2 21 7v10l-9 5-9-5V7l9-5z" />
51-
<path d="M3.5 7.5 12 12l8.5-4.5M12 12v9.5" />
50+
<path d="M12 3v9" />
51+
<path d="M7.5 6.5a8 8 0 1 0 9 0" />
5252
</svg>
5353
),
5454
},

src/components/HomeHero/index.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
import Link from '@docusaurus/Link';
22
import ThemedImage from '@theme/ThemedImage';
33
import useBaseUrl from '@docusaurus/useBaseUrl';
4+
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
45
import styles from './styles.module.css';
56

67
export default function HomeHero() {
8+
/* Resolved from the latest GitHub release at build time -- see
9+
docusaurus.config.js. Hardcoding it here meant the badge drifted. */
10+
const {siteConfig} = useDocusaurusContext();
711
return (
812
<header className={styles.hero}>
913
<div className={styles.heroText}>
1014
<span className={styles.versionBadge}>
11-
<span className={styles.mark}>{'{•}'}</span> v1.3.0
15+
<span className={styles.mark}>{'{•}'}</span>{' '}
16+
{`v${siteConfig.customFields.debuggerVersion}`}
1217
</span>
1318
<h1 className={styles.title}>
1419
Zero-overhead debugging for <span className={styles.accent}>PHP</span>
@@ -17,7 +22,7 @@ export default function HomeHero() {
1722
A lightweight, powerful debugger that doesn&apos;t slow you down.
1823
</p>
1924
<div className={styles.buttons}>
20-
<Link className={styles.primaryButton} to="/getting-started/quick-start">
25+
<Link className={styles.primaryButton} to="/getting-started/installation">
2126
<span className={styles.promptIcon}>&gt;_</span> Quick Start
2227
</Link>
2328
<Link
@@ -27,9 +32,8 @@ export default function HomeHero() {
2732
</Link>
2833
</div>
2934
<div className={styles.pills}>
30-
<span className={styles.pill}>&#11088; 1.4k+ stars</span>
31-
<span className={styles.pill}>&#9878;&#65039; MIT License</span>
32-
<span className={styles.pill}>&#128024; PHP 7.4+</span>
35+
<span className={styles.pill}>&#128154; Free and Open Source</span>
36+
<span className={styles.pill}>&#128024; PHP 8.2+</span>
3337
</div>
3438
</div>
3539
<div className={styles.heroImage}>

0 commit comments

Comments
 (0)