Skip to content

Commit

Permalink
docs: improvements
Browse files Browse the repository at this point in the history
* chore: dark mode image

* chore: update pr template

* chore: fix icon colors in dark mode

* chore: add twitter in /help

* chore: fix sidebar padding & new component
  • Loading branch information
nermalcat69 authored Aug 30, 2024
1 parent d39f888 commit 71f2431
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 2 deletions.
11 changes: 10 additions & 1 deletion apps/docs/content/help/contacts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ In the meantime, if you have any troubles setting up your application, or if you
{
type: 'link',
href: 'https://discord.com/invite/WDvCZ54',
label: 'Discord - recommended',
label: 'Discord (recommended)',
customProps: {
icon: Icons['discord'],
description: 'The fastest way to get help from our team and other community members.',
Expand All @@ -29,5 +29,14 @@ In the meantime, if you have any troubles setting up your application, or if you
icon: Icons['envelope'],
description: 'Reach the team directly, this might take longer as the community won\'t be included.',
}
},
{
type: 'link',
href: 'https://x.com/zeropsio',
label: 'Twitter',
customProps: {
icon: Icons['twitter'],
description: 'Reach out to us by direct messagining or by tagging @zeropsio in your tweets for a response.',
}
}
]} />
10 changes: 9 additions & 1 deletion apps/docs/content/help/faq.mdx
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
---
title: Frequently Asked Questions
---
import Accordion from "/src/components/Accordion"

## General

What is the Zerops GUI URL

<Accordion title="What is Docusaurus?">
Docusaurus is an open-source static site generator that helps you build optimized websites quickly, focusing on documentation sites.
</Accordion>


<details>
<summary>1. What is the Zerops GUI URL?</summary>
<p>
Head straight to <a href="https://app.zerops.io">https://app.zerops.io</a>
</p>
</details>


<details>
<summary>2. What is the current Zerops pricing?</summary>
<p>
See <a href="https://zerops.io/#pricing">our pricing</a>.
</p>
</details>

29 changes: 29 additions & 0 deletions apps/docs/src/components/Accordion/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import React, { useState, ReactNode } from 'react';

interface AccordionProps {
title: string;
children: ReactNode;
}

const Accordion: React.FC<AccordionProps> = ({ title, children }) => {
const [isOpen, setIsOpen] = useState(false);

const toggleAccordion = () => {
setIsOpen(!isOpen);
};

return (
<div className="border border-gray-300 rounded mb-4">
<button
className="w-full text-left p-1 border-none bg-gray-100 hover:bg-gray-200 flex justify-between items-center"
onClick={toggleAccordion}
>
<span className="text-lg">{title}</span>
<span className="text-xl font-bold">{isOpen ? '-' : '+'}</span>
</button>
{isOpen && <div className="p-4 bg-white">{children}</div>}
</div>
);
};

export default Accordion;
4 changes: 4 additions & 0 deletions apps/docs/src/css/components/sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,7 @@
.service-sidebar-item .menu__link {
padding-left: 24px !important;
}

.menu__list {
@apply pt-0.5;
}

0 comments on commit 71f2431

Please sign in to comment.