docs: added introduction to user guide (#2075)

* docs: added introduction to user guide

* remove link in header

* added UI icons

* small changes
This commit is contained in:
Shahed Nasser
2022-08-22 17:51:25 +03:00
committed by GitHub
parent b78171b80c
commit 08d2942ddf
4 changed files with 106 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import React from 'react';
import {useColorMode} from '@docusaurus/theme-common';
export default function UiIcon ({ lightIcon, darkIcon = '' }) {
const {colorMode} = useColorMode();
const icon = colorMode === 'dark' && darkIcon ? darkIcon : lightIcon;
return (
<img src={icon} className="ui-icon" />
)
}