Skip to content

Commit a83e92e

Browse files
enhancement: update css and section single/multi server
1 parent fbfa79f commit a83e92e

File tree

2 files changed

+40
-5
lines changed

2 files changed

+40
-5
lines changed

crowdsec-docs/src/components/home-page/home-item.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ export const HomePageItem = (props: Props): React.JSX.Element => (
1414
<Link key={props.title} href={props.link} className="border-0 hover:no-underline">
1515
<div
1616
className={
17-
"w-full flex justify-start items-center border border-solid border-gray-100 dark:border-transparent dark:bg-gray-200 flex-row rounded-lg px-2 py-2 gap-2 flex-1 cursor-pointer shadow-md dark:shadow-none ease-in-out duration-300 hover:scale-101 active:scale-99 hover:dark:bg-gray-300"
17+
"w-full flex justify-start items-center border border-solid border-gray-100 dark:border-transparent dark:bg-gray-200 flex-row rounded-lg px-2 py-2 gap-2 flex-1 cursor-pointer shadow-md dark:shadow-none ease-in-out duration-300 hover:scale-101 active:scale-99 hover:dark:bg-gray-300 hover:bg-neutral-200"
1818
}
1919
>
20-
<span className="w-12 h-12 rounded-lg inline-flex items-center justify-center border border-solid border-gray-200 dark:bg-gray-50">
20+
<span className="w-12 h-12 rounded-lg inline-flex items-center justify-center border border-solid border-gray-200 dark:bg-gray-50 bg-white">
2121
{(!Array.isArray(props.icon) && <props.icon className="icon icon-xl" />) || <CIcon icon={props.icon} size="xl" />}
2222
</span>
2323

crowdsec-docs/src/components/home-page/quick-start.tsx

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import ForwardIcon from "@mui/icons-material/Forward";
2+
import HubIcon from "@mui/icons-material/Hub";
13
import cibApple from "@site/static/img/logo/apple-colored.svg";
24
import cibDocker from "@site/static/img/logo/docker-colored.svg";
35
import cibFreebsd from "@site/static/img/logo/freebsd-colored.svg";
@@ -14,9 +16,10 @@ type StaticData = {
1416
icon: React.ComponentType<React.SVGProps<SVGSVGElement>>;
1517
text: string;
1618
link: string;
19+
description?: string;
1720
};
1821

19-
const staticData: StaticData[] = [
22+
const singleServerSetup: StaticData[] = [
2023
{
2124
icon: cibLinux,
2225
text: "Linux",
@@ -70,6 +73,21 @@ const staticData: StaticData[] = [
7073
// },
7174
];
7275

76+
const multiServerSetup: StaticData[] = [
77+
{
78+
icon: HubIcon,
79+
text: "Central LAPI",
80+
link: "/u/user_guides/multiserver_setup",
81+
description: "Use a single LAPI to collect alerts.",
82+
},
83+
{
84+
icon: ForwardIcon,
85+
text: "Log Centralization",
86+
link: "/u/user_guides/log_centralization",
87+
description: "Use Rsyslog to centralize logs.",
88+
},
89+
];
90+
7391
const QuickStart = (): React.JSX.Element => {
7492
return (
7593
<section>
@@ -78,15 +96,32 @@ const QuickStart = (): React.JSX.Element => {
7896
<p className="max-w-xl text-sm text-foreground/70">We can secure your stack. Just select your platform and get started.</p>
7997
</div>
8098

99+
<div className="text-left">
100+
<h4 className="mb-1">Single Server Setup</h4>
101+
<p className="max-w-xl text-sm text-foreground/70">
102+
Install CrowdSec on a single server. This is the simplest way to get started with CrowdSec.
103+
</p>
104+
</div>
81105
<div className="grid grid-cols-1 md:grid-cols-3 gap-4 mt-4">
82-
{staticData.map((props) => (
106+
{singleServerSetup.map((props) => (
83107
<HomePageItem title={props.text} description="" link={props.link} icon={props.icon} key={props.text} />
84108
))}
85109
</div>
86-
<p className="text-xs my-1 text-foreground/70 text-right">
110+
<p className="text-xs mt-1 mb-4 text-foreground/70 text-right">
87111
*Logos and trademarks, such as the logos above, are the property of their respective owners and are used here for
88112
identification purposes only.
89113
</p>
114+
<div className="text-left">
115+
<h4 className="mb-1">Multi-Server Setup</h4>
116+
<p className="max-w-xl text-sm text-foreground/70">
117+
Use CrowdSec within a multi-server environment. This is the advanced way to get started.
118+
</p>
119+
</div>
120+
<div className="grid grid-cols-1 md:grid-cols-3 gap-4 mt-4">
121+
{multiServerSetup.map((props) => (
122+
<HomePageItem title={props.text} description={props.description} link={props.link} icon={props.icon} key={props.text} />
123+
))}
124+
</div>
90125
</section>
91126
);
92127
};

0 commit comments

Comments
 (0)