-
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
8 changed files
with
140 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react' | ||
|
||
const DescriptionPage = () => { | ||
return ( | ||
<div> | ||
|
||
</div> | ||
) | ||
} | ||
|
||
export default DescriptionPage |
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,16 @@ | ||
import NavbarReferral from '@/containers/layout/NavbarReferral' | ||
import React from 'react' | ||
|
||
export default function ReferralLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
return ( | ||
<> | ||
<div className="absolute -top-3 -left-3 md:top-[-7rem] -z-20 md:left-8 flex-shrink-0 w-[336px] h-[336px] md:w-[587px] md:h-[587px] opacity-[0.3] bg-[#c51fff] blur-[227px]" /> | ||
<NavbarReferral /> | ||
{children} | ||
</ > | ||
) | ||
} |
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,11 @@ | ||
import React from 'react' | ||
|
||
const ReferralPage = () => { | ||
return ( | ||
<div> | ||
|
||
</div> | ||
) | ||
} | ||
|
||
export default ReferralPage |
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,11 @@ | ||
import React from 'react' | ||
|
||
const StructurePage = () => { | ||
return ( | ||
<div> | ||
|
||
</div> | ||
) | ||
} | ||
|
||
export default StructurePage |
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,11 @@ | ||
import React from 'react' | ||
|
||
const TransactionsPage = () => { | ||
return ( | ||
<div> | ||
|
||
</div> | ||
) | ||
} | ||
|
||
export default TransactionsPage |
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,62 @@ | ||
'use client' | ||
import { CartButton } from "@/components/cart/Cart" | ||
import { IoDocuments } from "react-icons/io5"; | ||
import { usePathname } from "next/navigation"; | ||
import { SelectPages } from "@/components/interface/Select"; | ||
import { HiUser } from "react-icons/hi2"; | ||
import { PiGraphBold, PiTreeStructureFill } from "react-icons/pi"; | ||
import { LuHistory } from "react-icons/lu"; | ||
|
||
const NavbarReferral = () => { | ||
const pathname = usePathname() | ||
return ( | ||
<> | ||
<div | ||
style={{ | ||
background: 'linear-gradient(150deg,rgba(42,26,82,1),rgba(22,25,64,1)) padding-box, linear-gradient(150deg,rgba(71,55,105,1),rgba(22,25,64,1)) border-box', | ||
border: '2px solid transparent' | ||
}} | ||
className="hidden xl:flex w-full bg-red-300 px-9 py-[30px] justify-between gap-4 rounded-[30px]" | ||
> | ||
<div className="flex items-center justify-center gap-4"> | ||
<CartButton href={"/referral"} isActive={pathname == '/referral'} > | ||
<PiGraphBold className="text-[26px]" /> | ||
Statistics | ||
</CartButton> | ||
<CartButton href={"/referral/structure"} isActive={pathname == '/referral/structure'}> | ||
<PiTreeStructureFill className="text-[26px]" /> | ||
Structure | ||
</CartButton> | ||
<CartButton href={"/referral/description"} isActive={pathname == '/referral/description'}> | ||
<IoDocuments className="text-[26px]" /> | ||
Description | ||
</CartButton> | ||
<CartButton href={"/referral/transactions"} isActive={pathname == '/referral/transactions'}> | ||
<LuHistory className="text-[26px]" /> | ||
Transactions | ||
</CartButton> | ||
</div> | ||
<div className="flex flex-col items-end"> | ||
{/* TODO:Logout из системы */} | ||
</div> | ||
</div> | ||
<div className="flex xl:hidden w-full justify-between items-center"> | ||
<SelectPages | ||
url={pathname} | ||
items={[ | ||
{ value: '/referral', div: <><PiGraphBold className="text-[26px]" />Statistics</> }, | ||
{ value: '/referral/structure', div: <><PiTreeStructureFill className="text-[26px]" />Structure</> }, | ||
{ value: '/referral/description', div: <><IoDocuments className="text-[26px]" />Description</> }, | ||
{ value: '/referral/transactions', div: <><LuHistory className="text-[26px]" />Transactions</> }, | ||
]} | ||
/> | ||
<div className="flex flex-col items-end min-w-[130px]"> | ||
{/* TODO:Logout из системы */} | ||
</div> | ||
</div> | ||
</> | ||
|
||
) | ||
} | ||
|
||
export default NavbarReferral |