Skip to content

Commit e698a01

Browse files
Update homepage
1 parent 28d02c8 commit e698a01

File tree

4 files changed

+62
-8
lines changed

4 files changed

+62
-8
lines changed

docusaurus.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const config: Config = {
4343
//},
4444
matomo: {
4545
matomoUrl: 'https://track.areyouscared.dev',
46-
siteId: '1',
46+
siteId: '2', //Change in prod
4747
phpLoader: 'matomo.php',
4848
jsLoader: 'matomo.js'
4949
},
+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import clsx from 'clsx';
2+
import Heading from '@theme/Heading';
3+
import styles from './styles.module.css';
4+
5+
type FeatureItem = {
6+
title: string;
7+
img: string;
8+
};
9+
10+
const FeatureList: FeatureItem[] = [
11+
{
12+
title: 'Node Overview',
13+
img: 'img/homepage/1.png', },
14+
{
15+
title: 'User Overview',
16+
img: 'img/homepage/2.png', },
17+
{
18+
title: 'Create Node',
19+
img: 'img/homepage/3.png', },
20+
{
21+
title: 'Editing an Egg',
22+
img: 'img/homepage/4.png', },
23+
{
24+
title: 'Editing a Server',
25+
img: 'img/homepage/5.png', },
26+
{
27+
title: 'Creating an API Key',
28+
img: 'img/homepage/6.png', },
29+
];
30+
31+
function Feature({title, img}: FeatureItem) {
32+
return (
33+
<div className={clsx('col col--4')}>
34+
<div className="text--center">
35+
<Heading as="h3">{title}</Heading>
36+
</div>
37+
<div className="text--center" style={{paddingBottom: '15px'}}>
38+
<a href={img} ><img src={img}/></a>
39+
</div>
40+
</div>
41+
);
42+
}
43+
44+
export default function HomepageLook(): JSX.Element {
45+
return (
46+
<section className={styles.features}>
47+
<div className="container">
48+
<h1 style={{textAlign: 'center'}}>Shots of the Screen</h1>
49+
<div className="row">
50+
{FeatureList.map((props, idx) => (
51+
<Feature key={idx} {...props} />
52+
))}
53+
</div>
54+
<h5 style={{textAlign: 'center'}}>pre-release screenshots</h5>
55+
</div>
56+
</section>
57+
);
58+
}

src/components/HomepageFeatures/what.tsx

+1-7
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,7 @@ export default function HomepageWhat(): JSX.Element {
4646
<section className={styles.features}>
4747
<div className="container">
4848
<h1 style={{textAlign: 'center'}}>What is Pelican?</h1>
49-
<p style={{textAlign: 'center'}}>Pelican is the ultimate, free game server control panel offering high flying security. It's a breeze to manage your servers with our sleek and user-friendly interface. And thanks to Docker, they all run in their own safe space.</p>
50-
<div className="row">
51-
{FeatureList.map((props, idx) => (
52-
<Feature key={idx} {...props} />
53-
))}
54-
</div>
55-
<h5 style={{textAlign: 'center'}}>pre-release screenshots</h5>
49+
<p style={{textAlign: 'center', fontSize: '26px'}}>Pelican is the ultimate, free game server control panel offering high flying security. It's a breeze to manage your servers with our sleek and user-friendly interface. And thanks to Docker, they all run in their own safe space.</p>
5650
</div>
5751
</section>
5852
);

src/pages/index.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import Heading from '@theme/Heading';
88
import { Icon } from '@iconify/react/dist/iconify.js';
99

1010
import styles from './index.module.css';
11+
import HomepageLook from '../components/HomepageFeatures/look';
1112

1213
function HomepageHeader() {
1314
const {siteConfig} = useDocusaurusContext();
@@ -49,6 +50,7 @@ export default function Home(): JSX.Element {
4950
<main>
5051
<HomepageWhat />
5152
<HomepageWhy />
53+
<HomepageLook />
5254
</main>
5355
</Layout>
5456
);

0 commit comments

Comments
 (0)