-
Notifications
You must be signed in to change notification settings - Fork 0
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
11 changed files
with
7,027 additions
and
5,607 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,63 @@ | ||
import { NavLink, Outlet } from '@remix-run/react' | ||
|
||
const companyRoutes = [ | ||
{ | ||
title: 'Accounts', | ||
href: 'accounts', | ||
}, | ||
{ | ||
title: 'Sales', | ||
href: 'sales', | ||
}, | ||
{ | ||
title: 'Purchase', | ||
href: 'purchase', | ||
}, | ||
{ | ||
title: 'Reports', | ||
href: 'reports', | ||
}, | ||
] | ||
|
||
export default function LayoutCompany() { | ||
return ( | ||
<div className="flex h-full flex-col lg:flex-row"> | ||
<nav className="border-r bg-muted p-4 lg:w-2/12"> | ||
<h1 className="px-2 text-h3 text-primary">BookBreeze</h1> | ||
<ul className="my-10 text-lg font-semibold"> | ||
<li> | ||
<NavLink | ||
className={({ isActive }) => | ||
`m-1 flex rounded-lg p-1 px-2 hover:bg-border ${isActive ? 'bg-border' : ''}` | ||
} | ||
to="" | ||
end | ||
> | ||
Dashboard | ||
</NavLink> | ||
</li> | ||
|
||
{companyRoutes.map(route => ( | ||
<li key={route.href}> | ||
<NavLink | ||
className={({ isActive }) => | ||
`m-1 flex rounded-lg p-1 px-2 hover:bg-border ${isActive ? 'bg-border' : ''}` | ||
} | ||
to={route.href} | ||
> | ||
{route.title} | ||
</NavLink> | ||
</li> | ||
))} | ||
</ul> | ||
</nav> | ||
|
||
<section className="p-4 lg:w-10/12"> | ||
<header className="bg-gray-200 p-4"> | ||
<h2 className="text-xl font-semibold">Header</h2> | ||
</header> | ||
<Outlet /> | ||
</section> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default function CompanyIndex() { | ||
return ( | ||
<div> | ||
<h1>Company Route</h1> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { Link, Outlet } from '@remix-run/react' | ||
|
||
const salesRoutes = [ | ||
{ | ||
title: 'Overview', | ||
href: '', | ||
}, | ||
{ | ||
title: 'Invoices', | ||
href: 'invoices', | ||
}, | ||
{ | ||
title: 'Customers', | ||
href: 'customers', | ||
}, | ||
{ | ||
title: 'Quotes', | ||
href: 'quotes', | ||
}, | ||
{ | ||
title: 'Payments', | ||
href: 'payments', | ||
}, | ||
] | ||
|
||
export default function Sales() { | ||
return ( | ||
<div> | ||
<h1 className="text-h3 md:text-h2">Sales</h1> | ||
|
||
<ul className="flex gap-4 text-lg"> | ||
{salesRoutes.map(route => ( | ||
<li key={route.href}> | ||
<Link to={route.href}>{route.title}</Link> | ||
</li> | ||
))} | ||
</ul> | ||
|
||
<section> | ||
<Outlet /> | ||
</section> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default function CompanySalesOverview() { | ||
return ( | ||
<div> | ||
<h1>Overview Route</h1> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default function InvoicesInvoiceId() { | ||
return ( | ||
<div className="h-full"> | ||
<h1>Invoice Id Route</h1> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Link, Outlet } from '@remix-run/react' | ||
|
||
export default function Invoices() { | ||
return ( | ||
<div className="flex"> | ||
<div className="w-1/2"> | ||
<h1>Sale Invoices Route</h1> | ||
<Link to="123">Invoice 123</Link> | ||
</div> | ||
<div className="w-1/2"> | ||
<Outlet /> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default function StudioIndex() { | ||
return ( | ||
<div> | ||
<h1>Unknown Route</h1> | ||
</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
Oops, something went wrong.