|
1 | | -import CIcon from "@coreui/icons-react"; |
2 | | -import { |
3 | | - cibKubernetes, |
4 | | - cibDocker, |
5 | | - cibLinux, |
6 | | - cibFreebsd, |
7 | | - cibWindows, |
8 | | - cibApple, |
9 | | -} from "@coreui/icons"; |
10 | | -import opnsenseLogo from "@site/static/img/logo-opnsense.svg"; |
11 | | -import pfSenseLogo from "@site/static/img/logo-pfsense.svg"; |
12 | | -import whmLogo from "@site/static/img/logo-whm.svg"; |
13 | | -import cloudwaysLogo from "@site/static/img/logo-cloudways.svg"; |
14 | | -import Link from "@docusaurus/Link"; |
| 1 | +import CIcon from "@coreui/icons-react" |
| 2 | +import cibLinux from "@site/static/img/logo/linux-colored.svg" |
| 3 | +import cibDocker from "@site/static/img/logo/docker-colored.svg" |
| 4 | +import cibWindows from "@site/static/img/logo/windows-colored.svg" |
| 5 | +import cibFreebsd from "@site/static/img/logo/freebsd-colored.svg" |
| 6 | +import cibApple from "@site/static/img/logo/apple-colored.svg" |
| 7 | +import opnsenseLogo from "@site/static/img/logo-opnsense.svg" |
| 8 | +import pfSenseLogo from "@site/static/img/logo-pfsense.svg" |
| 9 | +import cibKubernetes from "@site/static/img/logo/kubernetes-colored.svg" |
| 10 | +import whmLogo from "@site/static/img/logo-whm.svg" |
| 11 | +import cloudwaysLogo from "@site/static/img/logo-cloudways.svg" |
| 12 | +import Link from "@docusaurus/Link" |
15 | 13 |
|
16 | 14 | const staticData = [ |
17 | 15 | { |
@@ -65,37 +63,55 @@ const staticData = [ |
65 | 63 | // text: "Cloudways", |
66 | 64 | // link: "/u/getting_started/installation/cloudways", |
67 | 65 | // }, |
68 | | -]; |
| 66 | +] |
69 | 67 |
|
70 | 68 | export default function QuickStart() { |
71 | 69 | return ( |
72 | | - <> |
73 | | - <div className="tw-flex tw-flex-col tw-items-center tw-border-2 tw-border-white tw-border-solid tw-rounded-xl tw-2-4/5 sm:tw-w-2/3 tw-m-auto tw-transition tw-duration-500 tw-ease-in-out tw-transform hover:tw-border-secondary"> |
74 | | - <h1 className="tw-text-2xl tw-border-white tw-border-solid tw-rounded-xl tw-px-8 tw-bg-black tw--translate-y-4"> |
75 | | - Quick Start |
76 | | - </h1> |
77 | | - <div className="tw-flex tw-flex-row tw-gap-14 tw-px-8 tw-flex-wrap"> |
78 | | - {staticData.map((item, index) => ( |
79 | | - <div className="tw-w-full md:tw-w-fit tw-transition tw-duration-500 tw-ease-in-out tw-transform hover:tw-border-secondary"> |
80 | | - <Link |
81 | | - key={index} |
82 | | - to={item.link} |
83 | | - className="tw-flex tw-flex-col tw-items-center tw-text-white tw-transition tw-duration-500 tw-ease-in-out tw-transform hover:tw-text-secondary" |
| 70 | + <section> |
| 71 | + <div className="tw-text-left"> |
| 72 | + <h2 className="tw-mb-1 tw-text-white"> |
| 73 | + Select your environment |
| 74 | + </h2> |
| 75 | + <p className="tw-max-w-xl tw-text-sm tw-text-gray-300"> |
| 76 | + We can secure your stack. Just select your platform and get |
| 77 | + started. |
| 78 | + </p> |
| 79 | + </div> |
| 80 | + |
| 81 | + <div className="tw-grid tw-grid-cols-1 md:tw-grid-cols-3 tw-gap-4 tw-mt-4"> |
| 82 | + {staticData.map((props) => ( |
| 83 | + <Link |
| 84 | + key={props.text} |
| 85 | + href={props.link} |
| 86 | + className="tw-border-0 hover:tw-no-underline" |
| 87 | + > |
| 88 | + <div |
| 89 | + className={ |
| 90 | + "tw-w-full tw-flex tw-justify-start tw-items-center tw-border tw-border-transparent tw-flex-row tw-rounded-lg tw-px-2 tw-py-2 tw-gap-2 tw-flex-1 tw-cursor-pointer tw-bg-gray-800 tw-ease-in-out tw-text-white tw-duration-300 hover:tw-border-white hover:tw-bg-gray-700" |
| 91 | + } |
| 92 | + > |
| 93 | + <span className="tw-border-2 tw-border-gray-700 tw-bg-alpa-primary tw-w-12 tw-h-12 tw-rounded-lg tw-inline-flex tw-items-center tw-justify-center"> |
| 94 | + {(!Array.isArray(props.icon) && ( |
| 95 | + <props.icon className="icon icon-xl" /> |
| 96 | + )) || <CIcon icon={props.icon} size="xl" />} |
| 97 | + </span> |
| 98 | + |
| 99 | + <span |
| 100 | + className={ |
| 101 | + "tw-text-md tw-font-semibold tw-flex-1 tw-text-left" |
| 102 | + } |
84 | 103 | > |
85 | | - {(!Array.isArray(item.icon) && ( |
86 | | - <item.icon className="icon icon-4xl" /> |
87 | | - )) || <CIcon icon={item.icon} size="4xl" />} |
88 | | - {!!item.text && <p className="tw-text-xl">{item.text}</p>} |
89 | | - </Link> |
| 104 | + {props.text} |
| 105 | + </span> |
90 | 106 | </div> |
91 | | - ))} |
92 | | - </div> |
| 107 | + </Link> |
| 108 | + ))} |
93 | 109 | </div> |
94 | | - <p className="tw-text-xs tw-my-1"> |
95 | | - **Logos and trademarks, such as the logos above, are the |
96 | | - property of their respective owners and are used here for |
97 | | - identification purposes only. |
| 110 | + <p className="tw-text-xs tw-my-1 tw-text-gray-300 tw-text-right"> |
| 111 | + *Logos and trademarks, such as the logos above, are the property |
| 112 | + of their respective owners and are used here for identification |
| 113 | + purposes only. |
98 | 114 | </p> |
99 | | - </> |
100 | | - ); |
| 115 | + </section> |
| 116 | + ) |
101 | 117 | } |
0 commit comments