Skip to content

Commit bcaa266

Browse files
committed
Homepage tweaks
1 parent ad88660 commit bcaa266

3 files changed

Lines changed: 78 additions & 4 deletions

File tree

website/docs/intro.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ hide_table_of_contents: false
77

88
import AgentWorkStabilityDiagram from '@site/src/components/VisualElements/AgentWorkStabilityDiagram';
99
import DiagramFrame from '@site/src/components/VisualElements/DiagramFrame';
10-
import GitHubSocialProof from '@site/src/components/GitHubSocialProof';
10+
import { GitHubProjectSource } from '@site/src/components/GitHubSocialProof';
1111
import OperatorTransformationDiagram from '@site/src/components/VisualElements/OperatorTransformationDiagram';
1212

1313
AI agents make execution cheap. They also make production judgment more valuable.
@@ -75,8 +75,8 @@ The dangerous runs are not the obviously broken ones. They look finished early
7575

7676
This book, the tools it references, and everything built around them are **100% open source, community-backed projects with no commercial agenda.**
7777

78-
- **Book source:** [github.com/agenticoding/agenticoding.github.io](https://github.com/agenticoding/agenticoding.github.io) <GitHubSocialProof repo="agenticoding/agenticoding.github.io" fallbackStars={102} variant="project" />
79-
- **ChunkHound:** [github.com/chunkhound/chunkhound](https://github.com/chunkhound/chunkhound) <GitHubSocialProof repo="chunkhound/chunkhound" fallbackStars={1400} variant="project" />
80-
- **Pi agenticoding extension:** [github.com/agenticoding/pi-agenticoding](https://github.com/agenticoding/pi-agenticoding) <GitHubSocialProof repo="agenticoding/pi-agenticoding" fallbackStars={18} variant="project" />
78+
- <GitHubProjectSource name="Book source" repo="agenticoding/agenticoding.github.io" fallbackStars={102} />
79+
- <GitHubProjectSource name="ChunkHound" repo="chunkhound/chunkhound" fallbackStars={1400} />
80+
- <GitHubProjectSource name="Pi agenticoding extension" repo="agenticoding/pi-agenticoding" fallbackStars={18} />
8181

8282
No paid tiers. No enterprise licenses. Nothing to buy. Everything here exists because the problems are real and the solutions should be shared.

website/src/components/GitHubSocialProof/index.module.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,45 @@
6868
vertical-align: baseline;
6969
}
7070

71+
.projectSourceName,
72+
.projectSourceLink,
73+
.projectSourceStars {
74+
vertical-align: baseline;
75+
}
76+
7177
.starCount {
7278
transform: translateY(var(--space-px));
7379
}
80+
81+
@media (max-width: 576px) {
82+
.hero {
83+
display: flex;
84+
width: fit-content;
85+
margin-top: var(--space-2);
86+
}
87+
88+
.projectSource {
89+
display: flex;
90+
flex-wrap: wrap;
91+
gap: var(--space-2);
92+
align-items: baseline;
93+
}
94+
95+
.projectSourceDetails {
96+
display: contents;
97+
}
98+
99+
.projectSourceLink {
100+
flex-basis: 100%;
101+
order: 3;
102+
}
103+
104+
.projectSourceStars {
105+
order: 2;
106+
transform: translate(calc(var(--space-0h) * -1), calc(var(--space-px) * 2));
107+
}
108+
109+
.projectSourceStars .project {
110+
margin-inline-start: 0;
111+
}
112+
}

website/src/components/GitHubSocialProof/index.tsx

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ interface GitHubRepository {
1414
stargazers_count: number;
1515
}
1616

17+
interface GitHubProjectSourceProps {
18+
name: string;
19+
repo: string;
20+
fallbackStars: number;
21+
}
22+
1723
const starCountRequests = new Map<string, Promise<number | null>>();
1824

1925
function fetchStarCount(repo: string): Promise<number | null> {
@@ -77,6 +83,35 @@ function StarCount({
7783
);
7884
}
7985

86+
export function GitHubProjectSource({
87+
name,
88+
repo,
89+
fallbackStars,
90+
}: GitHubProjectSourceProps): ReactNode {
91+
return (
92+
<span className={styles.projectSource}>
93+
<strong className={styles.projectSourceName}>{name}</strong>{' '}
94+
<span className={styles.projectSourceDetails}>
95+
<a
96+
className={styles.projectSourceLink}
97+
href={`https://github.com/${repo}`}
98+
target="_blank"
99+
rel="noopener noreferrer"
100+
>
101+
github.com/{repo}
102+
</a>{' '}
103+
<span className={styles.projectSourceStars}>
104+
<GitHubSocialProof
105+
repo={repo}
106+
fallbackStars={fallbackStars}
107+
variant="project"
108+
/>
109+
</span>
110+
</span>
111+
</span>
112+
);
113+
}
114+
80115
export default function GitHubSocialProof({
81116
repo,
82117
fallbackStars,

0 commit comments

Comments
 (0)