From 17a574e04116f014df80b60acb93a4b931b2214d Mon Sep 17 00:00:00 2001 From: Pawel Kosiec Date: Thu, 26 Sep 2024 18:43:29 +0200 Subject: [PATCH] WIP --- docusaurus.config.ts | 3 +- .../Card/Tutorial/index.module.scss | 28 ++++++---- src/components/Card/Tutorial/index.tsx | 6 +- src/css/custom.scss | 25 +-------- src/pages/index.tsx | 56 +++++++++++++++---- 5 files changed, 70 insertions(+), 48 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index a7416e09..192e3ff8 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -9,7 +9,8 @@ const { createRedirects, redirects } = require("./redirects"); /** @type {import('@docusaurus/types').Config} */ const config: Config = { title: "Botkube", - tagline: "Messaging bot for monitoring and debugging Kubernetes clusters", + tagline: + "AI-powered expertise to troubleshoot, optimize pipelines, and manage infrastructure seamlessly across multiple tools—all from one place.", url: "https://docs.botkube.io/", baseUrl: "/", onBrokenLinks: "throw", diff --git a/src/components/Card/Tutorial/index.module.scss b/src/components/Card/Tutorial/index.module.scss index 7b3093cc..6d2890f2 100644 --- a/src/components/Card/Tutorial/index.module.scss +++ b/src/components/Card/Tutorial/index.module.scss @@ -1,18 +1,24 @@ .card { - padding: 10px; + padding: 15px; + border: 1px solid var(--ifm-color-secondary); border-radius: 8px; } .button { - appearance: none; - outline: 0; - border: 0; - border-radius: 8px; - background: var(--button-backgroud); - color: var(--button-label); - text-align: center; - width: 100%; - padding: 5px; - display: block; + // appearance: none; + // outline: 0; + // border: 0; + // border-radius: var(--ifm-button-border-radius); + // padding: calc(var(--ifm-button-padding-vertical)* var(--ifm-button-size-multiplier)) calc(var(--ifm-button-padding-horizontal)* var(--ifm-button-size-multiplier)); + // color: var(--button-label); + // text-align: center; + // width: 100%; + // display: block; + // font-weight: bold; + // cursor: pointer; + + // &:hover, &:focus { + // text-decoration: none; + // } } diff --git a/src/components/Card/Tutorial/index.tsx b/src/components/Card/Tutorial/index.tsx index bfe17f52..9ed4b253 100644 --- a/src/components/Card/Tutorial/index.tsx +++ b/src/components/Card/Tutorial/index.tsx @@ -14,10 +14,10 @@ type Props = { export const CardTutorial: FC = ({ link, buttonLabel, body, title }) => { return (
- {title} + {title}

{body}

- - + + {buttonLabel}
); diff --git a/src/css/custom.scss b/src/css/custom.scss index 5872d21a..f06d663d 100644 --- a/src/css/custom.scss +++ b/src/css/custom.scss @@ -21,8 +21,8 @@ --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); --ifm-button-color: #1c1e21; - --button-backgroud: #1c90f3; - --button-label: #fff; + --button-background: #ccc; + --button-label: #000; --cookie-background: #1c90f3; --cookie-font-color: #fff; @@ -55,27 +55,6 @@ } } -.button.button--primary { - border: 1px solid #fff; - background-color: #fff; - color: #000; - - &:hover { - background: #eee; - } -} - -.button.button--secondary { - border: 1px solid #fff; - background: transparent; - color: #fff; - - &:hover { - color: #000; - background: #fff; - } -} - /* Tabs in mdx */ .tab-container-nested { margin: 0 0 var(--ifm-list-margin); diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 982e54d2..b0737e36 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -3,6 +3,7 @@ import Link from "@docusaurus/Link"; import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Layout from "@theme/Layout"; import Heading from "@theme/Heading"; +import { CardTutorial } from "@site/src/components/Card/Tutorial"; import styles from "./index.module.css"; @@ -12,14 +13,13 @@ function HomepageHeader() {
- {siteConfig.title} + Get started with {siteConfig.title} -

{siteConfig.tagline}

-
- - Docusaurus Tutorial - 5min ⏱️ - -
+

+ AI-powered expertise to troubleshoot, optimize pipelines, +
+ and manage infrastructure seamlessly across multiple tools—all from one place. +

); @@ -28,10 +28,46 @@ function HomepageHeader() { export default function Home(): JSX.Element { const { siteConfig } = useDocusaurusContext(); return ( - + -
- <>Test +
+

Learn more about one of the solutions:

+
+
+ +
  • Easy Terminal Integration: Get insights and automation directly in your terminal
  • +
  • + Natural Language Commands: Use simple, conversational commands to interact with your infrastructure +
  • +
  • No Admin Permissions Needed: Install and start without any platform admin access
  • +
  • Quick Setup: Get up and running in minutes with minimal configuration
  • + + } + buttonLabel="Get started" + link="/overview" + /> +
    +
    + +
  • + Real-Time Collaboration: Share alerts and troubleshoot with your team in Slack or Microsoft Teams +
  • +
  • Familiar Interface: Clear, rich messages for quick understanding
  • +
  • K8s Agent Setup: Requires Install an agent in your cluster for full features
  • +
  • Admin Access Needed: Requires admin permissions to set up in Slack or Teams
  • + + } + buttonLabel="Get started" + link="/chat-platform/overview" + /> +
    +
    );