-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
232 additions
and
200 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
'use client'; | ||
|
||
import React, { useEffect, useState } from 'react'; | ||
import { Button } from 'flowbite-react'; | ||
import { HiMenuAlt2 } from 'react-icons/hi'; | ||
import AdminSideNavigation from '@/app/admin/AdminSideNavigation'; | ||
|
||
export default function AdminSideNavigationContainer() { | ||
const [sideBarCss, setSideBarCss] = useState( | ||
'fixed left-0 w-64 transition-transform -translate-x-full sm:translate-x-0 bg-red-50' | ||
); | ||
|
||
useEffect(() => {}, [sideBarCss]); | ||
|
||
const handleToggleSideBar = () => { | ||
if (sideBarCss.includes('sm:translate-x-0')) { | ||
setSideBarCss( | ||
'float left-0 w-64 transition-transform sm:translate-x-full bg-red-50' | ||
); | ||
} else { | ||
setSideBarCss( | ||
'fixed left-0 w-64 transition-transform -translate-x-full sm:translate-x-0 bg-red-50' | ||
); | ||
} | ||
}; | ||
|
||
return ( | ||
<> | ||
<Button | ||
pill | ||
color={'light'} | ||
onClick={handleToggleSideBar} | ||
className='m-2 border-0 bg-gray-50 sm:hidden' | ||
> | ||
<HiMenuAlt2 className='h-5 w-5' /> | ||
</Button> | ||
<aside id='logo-sidebar' className={sideBarCss} aria-label='Sidebar'> | ||
<AdminSideNavigation /> | ||
</aside> | ||
</> | ||
); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
|
||
export default function Marketplace() { | ||
return ( | ||
<div className='stack ml-5 mt-5 items-center justify-center'> | ||
<h3 className='text-3xl font-bold dark:text-white'>Marketplace</h3> | ||
<p className={'pb-4 text-sm text-gray-400'}> | ||
Marketplace settings and configuration | ||
</p> | ||
</div> | ||
); | ||
} |
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
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
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
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
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
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,20 @@ | ||
import { Alert } from 'flowbite-react'; | ||
import React from 'react'; | ||
import { Header } from '@/components/Header'; | ||
import { PageFooter } from '@/components/Footer'; | ||
import { HiFingerPrint } from 'react-icons/hi'; | ||
|
||
export default function AccessDenied() { | ||
return ( | ||
<> | ||
<Header /> | ||
<div className='bg-grey flex min-h-[calc(100vh-100px)] items-center justify-center'> | ||
<Alert color='failure' icon={HiFingerPrint}> | ||
<span className='font-medium'>Access Denied.</span> You are not | ||
authorized to access this page. | ||
</Alert> | ||
</div> | ||
<PageFooter /> | ||
</> | ||
); | ||
} |
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,20 @@ | ||
'use client'; | ||
|
||
import { DropdownDivider, DropdownItem } from 'flowbite-react'; | ||
import { HiFingerPrint } from 'react-icons/hi'; | ||
|
||
export const AdministrationMenu = function () { | ||
return ( | ||
<> | ||
<DropdownDivider /> | ||
<DropdownItem | ||
icon={HiFingerPrint} | ||
href={'/admin/dashboard'} | ||
className={'text-orange-800'} | ||
> | ||
Administration | ||
</DropdownItem> | ||
<DropdownDivider /> | ||
</> | ||
); | ||
}; |
File renamed without changes.
Oops, something went wrong.