Layout Configure
Here is the layout and routing configure
const BoxedFancy = () => {
useEffect(
() => {
document.body.classList.add('boxed-fancy')
return () => {
document.body.classList.remove('boxed-fancy')
}
}
)
return (
<Fragment>
<HeaderStyle2 />
<div className="content-inner pb-0 container-fluid">
<Dashboard />
</div>
</Fragment>
)
}
const Boxed = () => {
useEffect(
() => {
document.body.classList.add('boxed')
return () => {
document.body.classList.remove('boxed')
}
}
)
return (
<Fragment>
<div className="boxed-inner">
<span className="screen-darken"></span>
<main className="main-content">
<HeaderStyle2 />
<div className="content-inner pb-0 container-fluid">
<Dashboard />
</div>
</main>
</div>
<SettingOffCanvas />
</Fragment>
)
}
export default function DashboardLayout({
children,
}: {
children: next.nextNode
}){
var subHeader = <></>;
var commanclass = '';
let location = usePathname();
switch (location) {
case '/special-pages/calender':
case 'src/pages/alternate-dashboard':
case '/special-pages/billing':
subHeader = <SubHeader />
const Simple = () => {
return (
<>
<div id="loading">
</div>
<div className="wrapper">
<SimpleRouter />
</div>
</>
)
}
commanclass = 'iq-banner default'
break;
default:
break
}
return (
<>
<Sidebar app_name="Hope UI" />
<main className="main-content">
<div className={`${commanclass} position-relative `}>
<HeaderPro />
{subHeader}
</div>
<div className={` content-inner pb-0`}>
{children}
</div>
<div className="btn-download ">
<Button variant="success py-2 px-3 d-flex gap-2" href="https://iqonic.design/item/hope-ui-pro/item-checkout/?coupon_code=DROPBY20" target="_blank" >
<svg className="icon-22" width="22" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path opacity="0.4" fillRule="evenodd" clipRule="evenodd" d="M5.91064 20.5886C5.91064 19.7486 6.59064 19.0686 7.43064 19.0686C8.26064 19.0686 8.94064 19.7486 8.94064 20.5886C8.94064 21.4186 8.26064 22.0986 7.43064 22.0986C6.59064 22.0986 5.91064 21.4186 5.91064 20.5886ZM17.1606 20.5886C17.1606 19.7486 17.8406 19.0686 18.6806 19.0686C19.5106 19.0686 20.1906 19.7486 20.1906 20.5886C20.1906 21.4186 19.5106 22.0986 18.6806 22.0986C17.8406 22.0986 17.1606 21.4186 17.1606 20.5886Z" fill="currentColor"></path>
<path fillRule="evenodd" clipRule="evenodd" d="M20.1907 6.34909C20.8007 6.34909 21.2007 6.55909 21.6007 7.01909C22.0007 7.47909 22.0707 8.13909 21.9807 8.73809L21.0307 15.2981C20.8507 16.5591 19.7707 17.4881 18.5007 17.4881H7.59074C6.26074 17.4881 5.16074 16.4681 5.05074 15.1491L4.13074 4.24809L2.62074 3.98809C2.22074 3.91809 1.94074 3.52809 2.01074 3.12809C2.08074 2.71809 2.47074 2.44809 2.88074 2.50809L5.26574 2.86809C5.60574 2.92909 5.85574 3.20809 5.88574 3.54809L6.07574 5.78809C6.10574 6.10909 6.36574 6.34909 6.68574 6.34909H20.1907ZM14.1307 11.5481H16.9007C17.3207 11.5481 17.6507 11.2081 17.6507 10.7981C17.6507 10.3781 17.3207 10.0481 16.9007 10.0481H14.1307C13.7107 10.0481 13.3807 10.3781 13.3807 10.7981C13.3807 11.2081 13.7107 11.5481 14.1307 11.5481Z" fill="currentColor"></path>
</svg>
Buy Now
</Button>
</div>
<Link
className="btn btn-secondary btn-dashboard"
href="/landing-pages/"
>
Landing Pages
</Link>
<Footer />
</main>
<SeetingOffCanvas />
</>
)
}
const DualCompact = () => {
useEffect(() => {
document.body.classList.add('dual-compact')
return () => {
document.body.classList.remove('dual-compact')
}
})
return (
<Fragment>
<HeaderStyle4 />
<div className="content-inner pb-0 container-fluid">
<Dashboard />
</div>
</Fragment>
)
}
const DualHorizontal = () => {
return (
<Fragment>
<HeaderStyle3 />
<div className="content-inner pb-0 container-fluid">
<Dashboard />
</div>
</Fragment>
)
}
const Horizontal = () => {
return (
<Fragment>
<div className="content-inner pb-0 container-fluid">
<Dashboard />
</div>
</Fragment>
)
}