-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
d39f888
commit 71f2431
Showing
4 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,3 +159,7 @@ | |
.service-sidebar-item .menu__link { | ||
padding-left: 24px !important; | ||
} | ||
|
||
.menu__list { | ||
@apply pt-0.5; | ||
} |