-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.tsx
More file actions
178 lines (169 loc) · 5.37 KB
/
index.tsx
File metadata and controls
178 lines (169 loc) · 5.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
import React, {type ReactNode} from 'react';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import Heading from '@theme/Heading';
import { HoverkraftProjectCard, HoverkraftFeatureList, HoverkraftHero, HoverkraftBrandHighlight, HoverkraftButton } from "@hoverkraft/docusaurus-theme/components";
function HeroSection() {
return (
<HoverkraftHero
title={
<>
Welcome to <HoverkraftBrandHighlight>Hoverkraft</HoverkraftBrandHighlight>
</>
}
description="Your gateway to open-source innovation. Discover, contribute, and build amazing things with our developer-first ecosystem."
supportingVisual="/img/home.png"
actions={[
{
label: 'Discover documentation',
to: '/docs/intro',
variant: 'primary',
},
{
label: 'Explore Projects',
to: '/docs/projects',
variant: 'secondary',
},
{
label: 'View on GitHub',
href: 'https://github.com/hoverkraft-tech',
variant: 'secondary',
target: '_blank',
},
]}
align="left"
tone="midnight"
/>
);
}
function ValuePropsSection() {
const features = [
{
icon: '🔓',
title: 'Open Source',
description: 'Every project is open source and community-driven. Transparency and collaboration at the core.'
},
{
icon: '⚡',
title: 'Developer First',
description: 'Built by developers, for developers. Clean APIs, comprehensive docs, and great DX.'
},
{
icon: '🤝',
title: 'Community',
description: 'Join our growing community of contributors building the future of open-source.'
},
{
icon: '🚀',
title: 'Innovation',
description: 'Pushing the boundaries with cutting-edge technologies and forward-thinking solutions.'
}
];
return (
<section style={{ padding: '4rem 0', backgroundColor: 'var(--ifm-background-surface-color)' }}>
<div style={{ maxWidth: '1200px', margin: '0 auto', padding: '0 1rem' }}>
<Heading as="h2" style={{ textAlign: 'center', fontSize: '2.5rem', marginBottom: '3rem' }}>
Why Choose Hoverkraft?
</Heading>
<HoverkraftFeatureList features={features} align="center" />
</div>
</section>
);
}
function ProjectsSection() {
const projects = [
{
name: 'compose-action',
icon: '⚡',
url: 'https://github.com/hoverkraft-tech/compose-action',
stars: 208,
language: 'TypeScript',
description: 'This action runs your docker-compose file and clean up before action finished',
tags: [
'continuous-integration',
'docker-compose',
'github-actions'
],
accent: 'primary'
},
{
name: 'ci-dokumentor',
icon: '⚡',
url: 'https://github.com/hoverkraft-tech/ci-dokumentor',
stars: 5,
language: 'TypeScript',
description: 'Automated documentation generator for CI/CD components',
tags: [
'documentation',
'github-actions',
'open-source'
],
accent: 'neutral'
},
{
name: 'ci-github-container',
icon: '⚡',
url: 'https://github.com/hoverkraft-tech/ci-github-container',
stars: 5,
language: 'JavaScript',
description: 'Opinionated GitHub Actions and workflows for continuous integration in container (OCI) context',
tags: [
'build',
'containers',
'continuous-integration'
],
accent: 'primary'
}
];
return (
<section style={{ padding: '4rem 0' }}>
<div style={{ maxWidth: '1200px', margin: '0 auto', padding: '0 1rem' }}>
<div style={{ textAlign: 'center', marginBottom: '3rem' }}>
<Heading as="h2" style={{ fontSize: '2.5rem', marginBottom: '1rem' }}>
Explore Our Ecosystem
</Heading>
<p style={{ fontSize: '1.125rem', color: 'var(--ifm-color-emphasis-700)' }}>
Discover a curated collection of tools, libraries, and frameworks designed to accelerate your development workflow.
</p>
</div>
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(300px, 1fr))', gap: '2rem', marginBottom: '3rem' }}>
{
projects.map((project, index) => (
<HoverkraftProjectCard
key={project.name}
icon={project.icon}
title={project.name}
titleHref={project.url}
titleTarget="_blank"
meta={`⭐ ${project.stars} • ${project.language}`}
description={project.description}
tags={project.tags}
accent={index % 2 === 0 ? 'primary' : 'neutral'}
/>
))
}
</div>
<div style={{ textAlign: 'center' }}>
<HoverkraftButton
href="/docs/projects"
variant="primary"
label="Browse All Projects"
/>
</div>
</div>
</section>
);
}
export { HeroSection, ValuePropsSection, ProjectsSection };
export default function Home(): ReactNode {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
title="Home"
description={siteConfig.tagline}>
<HeroSection />
<ValuePropsSection />
<ProjectsSection />
</Layout>
);
}