File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
crowdsec-docs/src/components Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 1- import useBaseUrl from "@docusaurus/useBaseUrl" ;
2- import Link from "@docusaurus/Link" ;
1+ import useBaseUrl from "@docusaurus/useBaseUrl"
2+ import Link from "@docusaurus/Link"
33
44export default function ConsolePromo ( { ...props } ) {
55 return (
66 < div className = "tw-flex-row tw-flex tw-bg-alpa-primary tw-p-4 tw-rounded-xl tw-items-center" >
77 < div className = "tw-flex-col tw-flex tw-py-1 tw-pr-4 tw-text-white tw-flex-1 tw-h-full" >
88 { ! ! props . title ? (
9- < h3 className = "tw-text-center tw-text-xl sm:tw-text-2xl lg:tw-text-left lg:tw-text-3xl" > { props . title } </ h3 >
9+ < h3 className = "tw-text-center tw-text-xl sm:tw-text-2xl lg:tw-text-left lg:tw-text-3xl" >
10+ { props . title }
11+ </ h3 >
12+ ) : null }
13+ { ! ! props . description ? (
14+ < p className = "md:tw-px-4" > { props . description } </ p >
1015 ) : null }
11- { ! ! props . description ? < p className = "md:tw-px-4" > { props . description } </ p > : null }
1216 < Link
1317 to = { props . link }
14- className = "tw-px-4 tw-w-full lg:tw-w-1/2 tw-py-2 tw-rounded-lg hover:tw-cursor-pointer tw-bg-primary tw-text-white tw-text-center"
18+ className = "tw-px-4 tw-w-full lg:tw-w-1/2 tw-py-2 tw-rounded-lg hover:tw-cursor-pointer tw-bg-primary tw-text-white tw-text-center hover:tw-text-white/80 hover:tw-bg-primary/80 active:tw-bg-primary/90 hover:tw-no-underline "
1519 >
16- { props . text ?? "Get Started" }
20+ { props . text ?? "Get Started" }
1721 </ Link >
1822 </ div >
1923 { ! ! props . image ? (
@@ -24,5 +28,5 @@ export default function ConsolePromo({ ...props }) {
2428 />
2529 ) : null }
2630 </ div >
27- ) ;
31+ )
2832}
You can’t perform that action at this time.
0 commit comments