Skip to content

Commit 224bb04

Browse files
update features list on homepage
1 parent bfed9d4 commit 224bb04

File tree

3 files changed

+138
-14
lines changed

3 files changed

+138
-14
lines changed

docs/docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ const config: Config = {
8686
},
8787
{ to: "/learn/code/intro", label: "Code", position: "left" },
8888
{ to: "/learn/3d-bits/intro", label: "3D Bits", position: "left" },
89-
9089
{ to: "/blog", label: "Blog", position: "left" },
90+
{ to: "https://bitbybit.dev", label: "Home", position: "left" },
9191
{
9292
href: "https://bitbybit.dev/auth/pick-plan",
9393
label: "Support the Mission",
Lines changed: 91 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,100 @@
1-
import type {ReactNode} from "react";
1+
import React, { type ReactNode } from "react";
22
import clsx from "clsx";
3-
import Heading from "@theme/Heading";
3+
import Link from '@docusaurus/Link';
44
import styles from "./styles.module.css";
55

66
type FeatureItem = {
7-
title: string;
8-
Svg: React.ComponentType<React.ComponentProps<"svg">>;
9-
description: ReactNode;
7+
title: string;
8+
link: string;
9+
description: ReactNode;
1010
};
1111

12+
const FeatureList: FeatureItem[] = [
13+
{
14+
title: "Getting Started Tutorials",
15+
link: "/learn/getting-started/overview",
16+
description: (
17+
<>
18+
Dive into our step-by-step tutorials to quickly learn the fundamentals
19+
and get your 3D projects up and running with Bitbybit.dev.
20+
</>
21+
),
22+
},
23+
{
24+
title: "3D Bits app for Shopify",
25+
link: "/learn/3d-bits/intro",
26+
description: (
27+
<>
28+
Discover how our "3D Bits" Shopify app can help you integrate stunning
29+
3D models and AR experiences directly into your e-commerce store.
30+
</>
31+
),
32+
},
33+
{
34+
title: "Our Blog",
35+
link: "/blog",
36+
description: (
37+
<>
38+
Stay updated with the latest news, feature releases, tutorials, and
39+
community showcases from the Bitbybit.dev team and users.
40+
</>
41+
),
42+
},
43+
{
44+
title: "Bitbybit GitHub",
45+
link: "/learn/github/",
46+
description: (
47+
<>
48+
This page serves as a guide to understanding Bitbybit GitHub monorepo, its contents, and how it all fits together to power the Bitbybit platform.
49+
</>
50+
),
51+
}, {
52+
title: "Integrate with Three.JS, Babylon.JS and more",
53+
link: "/learn/npm-packages/intro",
54+
description: (
55+
<>
56+
Integrating with Three.JS, Babylon.JS or other web technologies? Our npm packages provide seamless integration with popular 3D libraries, enabling you to create rich, interactive 3D experiences on the web.
57+
</>
58+
),
59+
},{
60+
title: "Run Visual Scripts On Your Website",
61+
link: "/learn/runners/intro",
62+
description: (
63+
<>
64+
Use our runners to execute visual scripts on your website. This allows you to create dynamic, interactive 3D experiences without needing extensive coding knowledge.
65+
</>
66+
),
67+
},
68+
];
1269

13-
export default function HomepageFeatures(): ReactNode {
14-
return (
15-
<section className={styles.features}>
16-
<div className="container">
17-
<div className="row">
70+
function Feature({ title, description, link }: FeatureItem) {
71+
return (
72+
<div className={clsx("col col--4", styles.feature)}>
73+
<div className={clsx("text--center padding-horiz--md", styles.featureContent)}>
74+
<Link to={link} className={styles.featureLinkWrapper}>
75+
<h3 className={styles.featureTitle}>{title}</h3>
76+
</Link>
77+
<p className={styles.featureDescription}>{description}</p>
78+
<Link
79+
className={clsx("button button--secondary button--sm", styles.featureButton)}
80+
to={link}>
81+
Learn More
82+
</Link>
83+
</div>
1884
</div>
19-
</div>
20-
</section>
21-
);
85+
);
2286
}
87+
88+
export default function HomepageFeatures(): ReactNode {
89+
return (
90+
<section className={styles.features}>
91+
<div className="container">
92+
<div className="row">
93+
{FeatureList.map((props, idx) => (
94+
<Feature key={idx} {...props} />
95+
))}
96+
</div>
97+
</div>
98+
</section>
99+
);
100+
}

docs/src/components/HomepageFeatures/styles.module.css

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,49 @@
99
height: 200px;
1010
width: 200px;
1111
}
12+
13+
14+
.features {
15+
display: flex;
16+
align-items: center;
17+
padding: 2rem 0;
18+
width: 100%;
19+
}
20+
21+
.feature {
22+
margin-bottom: 2rem;
23+
}
24+
25+
.featureContent {
26+
padding: 1.5rem;
27+
border: 1px solid var(--ifm-color-emphasis-300);
28+
border-radius: var(--ifm-card-border-radius, 8px);
29+
height: 100%;
30+
display: flex;
31+
flex-direction: column;
32+
background-color: var(--ifm-card-background-color);
33+
}
34+
35+
.featureLinkWrapper {
36+
text-decoration: none;
37+
color: inherit;
38+
}
39+
40+
.featureLinkWrapper:hover .featureTitle {
41+
color: var(--ifm-color-primary);
42+
}
43+
44+
.featureTitle {
45+
margin-bottom: 0.75rem;
46+
font-size: 1.5rem;
47+
}
48+
49+
.featureDescription {
50+
margin-bottom: 1.5rem;
51+
flex-grow: 1;
52+
}
53+
54+
.featureButton {
55+
margin-top: auto;
56+
text-decoration: none !important;
57+
}

0 commit comments

Comments
 (0)