Skip to content

Commit 5e46a0e

Browse files
committed
features
1 parent e2040c5 commit 5e46a0e

File tree

5 files changed

+61
-97
lines changed

5 files changed

+61
-97
lines changed

src/components/HomepageFeatures/index.js

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,45 @@ import React from 'react';
22
import clsx from 'clsx';
33
import styles from './styles.module.css';
44

5+
import configurable from '/static/img/configuration.png';
6+
import unify from '/static/img/unification.png';
7+
import simple from '/static/img/simple.png';
8+
59
const FeatureList = [
6-
// {
7-
// title: 'Easy to Use',
8-
// Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
9-
// description: (
10-
// <>
11-
// Docusaurus was designed from the ground up to be easily installed and
12-
// used to get your website up and running quickly.
13-
// </>
14-
// ),
15-
// },
16-
// {
17-
// title: 'Focus on What Matters',
18-
// Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
19-
// description: (
20-
// <>
21-
// Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
22-
// ahead and move your docs into the <code>docs</code> directory.
23-
// </>
24-
// ),
25-
// },
26-
// {
27-
// title: 'Powered by React',
28-
// Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
29-
// description: (
30-
// <>
31-
// Extend or customize your website layout by reusing React. Docusaurus can
32-
// be extended while reusing the same header and footer.
33-
// </>
34-
// ),
35-
// },
10+
{
11+
title: 'Configurable',
12+
svg: configurable,
13+
description: (
14+
<>
15+
Fully configurable UI that allows you you to deploy any K8s resource
16+
</>
17+
),
18+
},
19+
{
20+
title: 'Unifying',
21+
svg: unify,
22+
description: (
23+
<>
24+
Unify all applications under the same set of best practices
25+
</>
26+
),
27+
},
28+
{
29+
title: 'Simple',
30+
svg: simple,
31+
description: (
32+
<>
33+
Deploy your applications in a couple of clicks
34+
</>
35+
),
36+
},
3637
];
3738

38-
function Feature({Svg, title, description}) {
39+
function Feature({svg, title, description}) {
3940
return (
4041
<div className={clsx('col col--4')}>
4142
<div className="text--center">
42-
<Svg className={styles.featureSvg} role="img" />
43+
<img width={100} src={svg} />
4344
</div>
4445
<div className="text--center padding-horiz--md">
4546
<h3>{title}</h3>

src/pages/index.js

Lines changed: 28 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -4,75 +4,38 @@ import Link from '@docusaurus/Link';
44
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
55
import Layout from '@theme/Layout';
66
import HomepageFeatures from '@site/src/components/HomepageFeatures';
7-
import helmsman from '/static/img/cyclops_helmsman.png';
87

98
import styles from './index.module.css';
109

1110
function HomepageHeader() {
12-
const {siteConfig} = useDocusaurusContext();
13-
return (
14-
<header className={clsx('hero hero--primary', styles.heroBanner)}>
15-
<div className="container">
16-
<h1 className="hero__title">{siteConfig.title}</h1>
17-
<p className="hero__subtitle">{siteConfig.tagline}</p>
18-
<div className={styles.buttons}>
19-
{/*<Link*/}
20-
{/* className="button button--secondary button--lg"*/}
21-
{/* to="/docs/intro">*/}
22-
{/* Docusaurus Tutorial - 5min ⏱️*/}
23-
{/*</Link>*/}
24-
</div>
25-
</div>
26-
</header>
27-
);
11+
const {siteConfig} = useDocusaurusContext();
12+
return (
13+
<header className={clsx('hero hero--primary', styles.heroBanner)}>
14+
<div className="container">
15+
<h1 className="hero__title">{siteConfig.title}</h1>
16+
<p className="hero__subtitle">{siteConfig.tagline}</p>
17+
<div className={styles.buttons}>
18+
<Link
19+
className="button button--secondary button--lg"
20+
to="/docs/installation/prerequisites">
21+
Deploy your first Cyclops module
22+
</Link>
23+
</div>
24+
</div>
25+
</header>
26+
);
2827
}
2928

3029
export default function Home() {
31-
const yamlString = 'apiVersion: apps/v1\n' +
32-
'kind: Deployment\n' +
33-
'metadata:\n' +
34-
' name: nginx-deployment\n' +
35-
' labels:\n' +
36-
' app: nginx\n' +
37-
'spec:\n' +
38-
' replicas: 3\n' +
39-
' selector:\n' +
40-
' matchLabels:\n' +
41-
' app: nginx\n' +
42-
' template:\n' +
43-
' metadata:\n' +
44-
' labels:\n' +
45-
' app: nginx\n' +
46-
' spec:\n' +
47-
' containers:\n' +
48-
' - name: nginx\n' +
49-
' image: nginx:1.14.2\n' +
50-
' ports:\n' +
51-
' - containerPort: 80';
52-
53-
const {siteConfig} = useDocusaurusContext();
54-
return (
55-
<Layout
56-
title={`${siteConfig.title}`}
57-
description="Developer friendly Kubernetes">
58-
<HomepageHeader />
59-
<main>
60-
<img src={helmsman} />
61-
62-
{/*<SyntaxHighlighter*/}
63-
{/* language="yaml"*/}
64-
{/* style={atomOneDark}*/}
65-
{/* customStyle={{*/}
66-
{/* borderBottomLeftRadius: '10px',*/}
67-
{/* borderBottomRightRadius: '10px',*/}
68-
{/* paddingLeft: '15px',*/}
69-
{/* width: '30%',*/}
70-
{/* }}*/}
71-
{/*>*/}
72-
{/* {yamlString}*/}
73-
{/*</SyntaxHighlighter>*/}
74-
<HomepageFeatures />
75-
</main>
76-
</Layout>
77-
);
78-
}
30+
const {siteConfig} = useDocusaurusContext();
31+
return (
32+
<Layout
33+
title={`Hello from ${siteConfig.title}`}
34+
description="Description will go into a meta tag in <head />">
35+
<HomepageHeader />
36+
<main>
37+
<HomepageFeatures />
38+
</main>
39+
</Layout>
40+
);
41+
}

static/img/configuration.png

2.91 KB
Loading

static/img/simple.png

1.76 KB
Loading

static/img/unification.png

2.61 KB
Loading

0 commit comments

Comments
 (0)