Skip to content

Commit 1d54cdb

Browse files
committed
AI-generate hero image
1 parent 8ed004a commit 1d54cdb

3 files changed

Lines changed: 39 additions & 35 deletions

File tree

src/pages/index.module.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
*/
55

66
.hero {
7-
background-color: var(--ifm-color-primary-dark);
8-
padding: 4rem 2rem;
7+
background-color: #e87567;
98
}
109

1110
.heroInner {
11+
padding: 4rem 2rem;
12+
}
13+
14+
.heroOuter {
1215
margin: 0 auto;
1316
max-width: 1100px;
1417
padding: 0 0.5rem;
@@ -22,8 +25,7 @@
2225

2326
.heroLogo {
2427
display: block;
25-
margin: 0 auto 1.5rem;
26-
border-radius: 50%;
28+
margin: 1em 0 auto 1.5rem;
2729
float: right;
2830
}
2931

src/pages/index.tsx

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,39 @@ import styles from './index.module.css';
1313
function HeroBanner() {
1414
return (
1515
<div className={styles.hero} data-theme="dark">
16-
<div className={styles.heroInner}>
17-
<Heading as="h1" className={styles.heroProjectTagline}>
18-
<img
19-
alt="Context-Generic Programming"
20-
className={styles.heroLogo}
21-
src={useBaseUrl('/img/cgp-logo.svg')}
22-
width="200"
23-
height="200"
24-
/>
25-
<span className={styles.heroTitleTextHtml}>
26-
Build <b>modular</b> Rust applications with <b>zero-cost</b> abstractions
27-
</span>
28-
</Heading>
29-
<div className={styles.indexCtas}>
30-
<Link className={clsx("button button--primary button--lg", styles.getStartedButton)} to="/docs">
31-
Get Started
32-
</Link>
33-
<Link
34-
className="button button--secondary button--lg margin-left--md"
35-
to="/docs/tutorials/hello">
36-
Tutorial - 10 min ⏱️
37-
</Link>
38-
<span className={styles.indexCtasGitHubButtonWrapper}>
39-
<iframe
40-
className={styles.indexCtasGitHubButton}
41-
src="https://ghbtns.com/github-btn.html?user=contextgeneric&amp;repo=cgp&amp;type=star&amp;count=true&amp;size=large"
42-
width={160}
43-
height={30}
44-
title="GitHub Stars"
45-
/>
46-
</span>
16+
<div className={styles.heroOuter}>
17+
<img
18+
alt="Context-Generic Programming"
19+
className={styles.heroLogo}
20+
src={useBaseUrl('/img/cgp-hero.png')}
21+
width="300"
22+
height="300"
23+
/>
24+
<div className={styles.heroInner}>
25+
<Heading as="h1" className={styles.heroProjectTagline}>
26+
<span className={styles.heroTitleTextHtml}>
27+
Build <b>modular</b> Rust applications with <b>zero-cost</b> abstractions
28+
</span>
29+
</Heading>
30+
<div className={styles.indexCtas}>
31+
<Link className={clsx("button button--primary button--lg", styles.getStartedButton)} to="/docs">
32+
Get Started
33+
</Link>
34+
<Link
35+
className="button button--secondary button--lg margin-left--md"
36+
to="/docs/tutorials/hello">
37+
Tutorial - 10 min ⏱️
38+
</Link>
39+
<span className={styles.indexCtasGitHubButtonWrapper}>
40+
<iframe
41+
className={styles.indexCtasGitHubButton}
42+
src="https://ghbtns.com/github-btn.html?user=contextgeneric&amp;repo=cgp&amp;type=star&amp;count=true&amp;size=large"
43+
width={160}
44+
height={30}
45+
title="GitHub Stars"
46+
/>
47+
</span>
48+
</div>
4749
</div>
4850
</div>
4951
</div>

static/img/cgp-hero.png

913 KB
Loading

0 commit comments

Comments
 (0)