mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 04:54:18 +00:00
✨ Add multiple buttons to the Sidebar
This commit is contained in:
parent
c726df9531
commit
2cc4ba56ca
2 changed files with 5 additions and 2 deletions
|
@ -3,7 +3,7 @@ import Style from "./Sidebar.module.css"
|
|||
import classNames from "classnames"
|
||||
import Logo from "./Logo"
|
||||
import ButtonSidebar from "./ButtonSidebar"
|
||||
import { faHome } from "@fortawesome/free-solid-svg-icons"
|
||||
import { faCog, faExclamationTriangle, faFolder, faHome } from "@fortawesome/free-solid-svg-icons"
|
||||
|
||||
|
||||
export default function Sidebar({ children, className, ...props }) {
|
||||
|
@ -12,6 +12,9 @@ export default function Sidebar({ children, className, ...props }) {
|
|||
{/* TODO: Aggiungere il logo qui! */}
|
||||
<Logo/>
|
||||
<ButtonSidebar icon={faHome}>Dashboard</ButtonSidebar>
|
||||
<ButtonSidebar icon={faFolder}>Repositories</ButtonSidebar>
|
||||
<ButtonSidebar icon={faExclamationTriangle}>Alerts</ButtonSidebar>
|
||||
<ButtonSidebar icon={faCog}>Settings</ButtonSidebar>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
.Sidebar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
gap: 25px;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
|
Loading…
Reference in a new issue