Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
pkosiec committed Sep 26, 2024
1 parent 7eaf6b4 commit 17a574e
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 48 deletions.
3 changes: 2 additions & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
28 changes: 17 additions & 11 deletions src/components/Card/Tutorial/index.module.scss
Original file line number Diff line number Diff line change
@@ -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;
// }
}
6 changes: 3 additions & 3 deletions src/components/Card/Tutorial/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ type Props = {
export const CardTutorial: FC<Props> = ({ link, buttonLabel, body, title }) => {
return (
<div className={clsx(styles.card)}>
<Heading as="h2">{title}</Heading>
<Heading as="h3">{title}</Heading>
<p>{body}</p>
<Link to={link}>
<button className={clsx(styles.button)}>{buttonLabel}</button>
<Link to={link} className={clsx("button", "button--secondary", styles.button)}>
{buttonLabel}
</Link>
</div>
);
Expand Down
25 changes: 2 additions & 23 deletions src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
56 changes: 46 additions & 10 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -12,14 +13,13 @@ function HomepageHeader() {
<header className={clsx("hero hero--primary", styles.heroBanner)}>

Check failure on line 13 in src/pages/index.tsx

View workflow job for this annotation

GitHub Actions / Check TS & ESLint

'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.
<div className="container">

Check failure on line 14 in src/pages/index.tsx

View workflow job for this annotation

GitHub Actions / Check TS & ESLint

'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.
<Heading as="h1" className="hero__title">

Check failure on line 15 in src/pages/index.tsx

View workflow job for this annotation

GitHub Actions / Check TS & ESLint

'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.
{siteConfig.title}
Get started with {siteConfig.title}
</Heading>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link className="button button--secondary button--lg" to="#">
Docusaurus Tutorial - 5min ⏱️
</Link>
</div>
<p className="hero__subtitle">

Check failure on line 18 in src/pages/index.tsx

View workflow job for this annotation

GitHub Actions / Check TS & ESLint

'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.
AI-powered expertise to troubleshoot, optimize pipelines,
<br />

Check failure on line 20 in src/pages/index.tsx

View workflow job for this annotation

GitHub Actions / Check TS & ESLint

'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.
and manage infrastructure seamlessly across multiple tools—all from one place.
</p>
</div>
</header>
);
Expand All @@ -28,10 +28,46 @@ function HomepageHeader() {
export default function Home(): JSX.Element {
const { siteConfig } = useDocusaurusContext();
return (
<Layout title={`Hello from ${siteConfig.title}`} description="Description will go into a meta tag in <head />">
<Layout title={`Get started with ${siteConfig.title}`} description="${siteConfig.}}">

Check failure on line 31 in src/pages/index.tsx

View workflow job for this annotation

GitHub Actions / Check TS & ESLint

'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.
<HomepageHeader />

Check failure on line 32 in src/pages/index.tsx

View workflow job for this annotation

GitHub Actions / Check TS & ESLint

'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.
<main>
<>Test</>
<main className="container" style={{ marginTop: "40px" }}>

Check failure on line 33 in src/pages/index.tsx

View workflow job for this annotation

GitHub Actions / Check TS & ESLint

'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.
<p>Learn more about one of the solutions:</p>

Check failure on line 34 in src/pages/index.tsx

View workflow job for this annotation

GitHub Actions / Check TS & ESLint

'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.
<div className="row" style={{ marginBottom: "40px" }}>

Check failure on line 35 in src/pages/index.tsx

View workflow job for this annotation

GitHub Actions / Check TS & ESLint

'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.
<div className="col col--12">
<CardTutorial
title="🖥️ Fuse CLI"
body={
<ul>
<li>Easy Terminal Integration: Get insights and automation directly in your terminal</li>
<li>
Natural Language Commands: Use simple, conversational commands to interact with your infrastructure
</li>
<li>No Admin Permissions Needed: Install and start without any platform admin access</li>
<li>Quick Setup: Get up and running in minutes with minimal configuration</li>
</ul>
}
buttonLabel="Get started"
link="/overview"
/>
</div>
<div className="col col--12">
<CardTutorial
title="💬 Chat Platform"
body={
<ul>
<li>
Real-Time Collaboration: Share alerts and troubleshoot with your team in Slack or Microsoft Teams
</li>
<li>Familiar Interface: Clear, rich messages for quick understanding</li>
<li>K8s Agent Setup: Requires Install an agent in your cluster for full features</li>
<li>Admin Access Needed: Requires admin permissions to set up in Slack or Teams</li>
</ul>
}
buttonLabel="Get started"
link="/chat-platform/overview"
/>
</div>
</div>
</main>
</Layout>
);
Expand Down

0 comments on commit 17a574e

Please sign in to comment.