added sidebar

This commit is contained in:
paul
2024-08-04 22:47:43 +05:30
parent 12431e0c2b
commit 940fe815c6
14 changed files with 1351 additions and 29 deletions

View File

@@ -1,23 +1,34 @@
import './styles/tailwind.css'
import logo from './assets/logo/logo.svg';
import Sidebar from './sidebar/sidebar';
import { LayoutFilled, ProductFilled, CloudUploadOutlined } from "@ant-design/icons";
import WidgetsContainer from './sidebar/widgetsContainer';
function App() {
const tabs = [
{
name: "Widgets",
icon: <LayoutFilled />,
content: <WidgetsContainer />
},
{
name: "Extensions",
icon: <ProductFilled />,
content: <></>
},
{
name: "Uploads",
icon: <CloudUploadOutlined />,
content: <></>
}
]
return (
<div className="tw-w-full tw-bg-black">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
<div className="tw-w-full tw-h-[100vh] tw-flex tw-bg-primaryBg">
<Sidebar tabs={tabs}/>
</div>
);
}