Skip to content

Commit c6f32ff

Browse files
committed
Refactor: HomepageFeatures component to add documentation links and changed style.
1 parent f25a3c9 commit c6f32ff

File tree

2 files changed

+79
-8
lines changed

2 files changed

+79
-8
lines changed

docusaurus/src/components/HomepageFeatures/index.tsx

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ type FeatureItem = {
77
imgSrc: string;
88
description: JSX.Element;
99
link: string;
10+
docs: string;
11+
brandColor: string;
1012
};
1113

1214
const FeatureList: FeatureItem[] = [
@@ -18,7 +20,9 @@ const FeatureList: FeatureItem[] = [
1820
EasyThreads can be used for autothreading, moving of threads, ticket-systems and much more!
1921
</>
2022
),
21-
link: 'https://ezsys.link/threads'
23+
link: 'https://ezsys.link/threads',
24+
docs: '/docs/easythreads/intro',
25+
brandColor: '#4ea4df',
2226
},
2327
{
2428
title: 'EasyLevel',
@@ -28,7 +32,9 @@ const FeatureList: FeatureItem[] = [
2832
With EasyLevel you can customize almost every aspect of your Leveling experience with ease.
2933
</>
3034
),
31-
link: 'https://ezsys.link/level'
35+
link: 'https://ezsys.link/level',
36+
docs: '/docs/easylevel/intro',
37+
brandColor: '#98ce86',
3238
},
3339
{
3440
title: 'EasyVoice',
@@ -38,7 +44,9 @@ const FeatureList: FeatureItem[] = [
3844
EasyVoice is the best app for temporary Voice Channels!
3945
</>
4046
),
41-
link: 'https://ezsys.link/voice'
47+
link: 'https://ezsys.link/voice',
48+
docs: '/docs/easyvoice/intro',
49+
brandColor: '#a1a7f6',
4250
},
4351
{
4452
title: 'EasyYAUDAB',
@@ -48,11 +56,13 @@ const FeatureList: FeatureItem[] = [
4856
Hello! Chat with EasyYAUDAB by mentioning him and writing your message!
4957
</>
5058
),
51-
link: 'https://ezsys.link/yaudab'
59+
link: 'https://ezsys.link/yaudab',
60+
docs: '/docs/easyyaudab/intro',
61+
brandColor: '#f16aec',
5262
},
5363
];
5464

55-
function Feature({title, imgSrc, description, link}: FeatureItem) {
65+
function Feature({title, imgSrc, description, link, docs, brandColor}: FeatureItem) {
5666
return (
5767
<div className={clsx('col col--4')}>
5868
<div className="text--center">
@@ -62,10 +72,26 @@ function Feature({title, imgSrc, description, link}: FeatureItem) {
6272
<Heading as="h3">{title}</Heading>
6373
<p>{description}</p>
6474
</div>
65-
<div className="text--center padding-horiz--md">
66-
<a href={link} className="button button--secondary button--lg">
75+
<div className={styles.buttonContainer}>
76+
<a
77+
href={link}
78+
className={`button ${styles.addToServerButton}`}
79+
style={{
80+
backgroundColor: brandColor,
81+
}}
82+
>
6783
Add to Server
6884
</a>
85+
<a
86+
href={docs}
87+
className={`button ${styles.docsButton}`}
88+
style={{
89+
borderColor: brandColor,
90+
color: brandColor,
91+
}}
92+
>
93+
VIEW DOCUMENTATION
94+
</a>
6995
</div>
7096
</div>
7197
);
@@ -83,4 +109,4 @@ export default function HomepageFeatures(): JSX.Element {
83109
</div>
84110
</section>
85111
);
86-
}
112+
}

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,48 @@
99
height: 200px;
1010
width: 200px;
1111
}
12+
13+
.docsButton {
14+
position: relative;
15+
overflow: hidden;
16+
transition: box-shadow 0.3s ease;
17+
background: #0f0c29; /* Dark background */
18+
color: white;
19+
border: 2px solid; /* Border color will be set inline */
20+
padding: 5px 10px; /* Reduced padding */
21+
font-size: 14px; /* Reduced font size */
22+
cursor: pointer;
23+
border-radius: 5px;
24+
text-transform: uppercase;
25+
letter-spacing: 1px; /* Reduced letter spacing */
26+
}
27+
28+
.docsButton:hover {
29+
box-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 20px currentColor, 0 0 40px currentColor;
30+
}
31+
32+
.addToServerButton {
33+
position: relative;
34+
overflow: hidden;
35+
transition: background-color 0.3s ease, transform 0.3s ease;
36+
color: white;
37+
border: none;
38+
padding: 5px 10px; /* Reduced padding */
39+
font-size: 14px; /* Reduced font size */
40+
cursor: pointer;
41+
border-radius: 5px;
42+
text-transform: uppercase;
43+
letter-spacing: 1px; /* Reduced letter spacing */
44+
}
45+
46+
.addToServerButton:hover {
47+
color: white;
48+
transform: scale(1.05); /* Slight scale effect */
49+
}
50+
51+
.buttonContainer {
52+
display: flex;
53+
justify-content: center;
54+
gap: 10px; /* Space between buttons */
55+
margin-top: 10px;
56+
}

0 commit comments

Comments
 (0)