Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sweepstake
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arjun Jhukal
sweepstake
Commits
25066b6c
Commit
25066b6c
authored
Nov 01, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the logo isseu
parent
616f54b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
87 additions
and
95 deletions
+87
-95
index.tsx
src/components/organism/Sidebar/AdminSidebar/index.tsx
+1
-1
index.tsx
src/components/organism/Sidebar/UserSidebar/index.tsx
+81
-76
index.tsx
src/components/organism/Sidebar/index.tsx
+5
-18
No files found.
src/components/organism/Sidebar/AdminSidebar/index.tsx
View file @
25066b6c
...
...
@@ -123,7 +123,7 @@ export default function AdminMenu({ open }: { open: boolean }) {
return
(
<
List
ref=
{
menuListRef
}
onMouseLeave=
{
handleMouseLeave
}
style=
{
{
position
:
'relative'
}
}
>
style=
{
{
position
:
'relative'
}
}
className=
{
` ${open ? "px-3" : ""}`
}
>
<
div
style=
{
{
position
:
"absolute"
,
...
...
src/components/organism/Sidebar/UserSidebar/index.tsx
View file @
25066b6c
...
...
@@ -78,93 +78,98 @@ export default function UserMenu({ open }: { open: boolean }) {
};
return
(
<
Box
>
{
/* Buy Coins & Withdraw */
}
{
open
&&
(
<
Private
>
<
div
className=
"flex justify-between items-center gap-1 mb-6"
>
<
Link
href=
"/buy-coins"
className=
"ss-btn bg-primary-grad flex items-center gap-2 text-[12px]"
>
<
Coin
size=
{
24
}
/>
Buy Coins
</
Link
>
<
Link
href=
"/withdrawl"
className=
"ss-btn bg-secondary-grad flex items-center gap-2 text-[12px]"
>
<
CardPos
size=
{
24
}
/>
Withdraw
</
Link
>
</
div
>
</
Private
>
)
}
<>
<
Box
sx=
{
{
maxHeight
:
"calc(100vh - 210px)"
,
overflowY
:
"auto"
,
}
}
className=
{
` ${open ? "px-3" : ""}`
}
>
{
/* Buy Coins & Withdraw */
}
{
open
&&
(
<
Private
>
<
div
className=
"flex justify-between items-center gap-1 mb-6"
>
<
Link
href=
"/buy-coins"
className=
"ss-btn bg-primary-grad flex items-center gap-2 text-[12px]"
>
<
Coin
size=
{
24
}
/>
Buy Coins
</
Link
>
<
Link
href=
"/withdrawl"
className=
"ss-btn bg-secondary-grad flex items-center gap-2 text-[12px]"
>
<
CardPos
size=
{
24
}
/>
Withdraw
</
Link
>
</
div
>
</
Private
>
)
}
<
div
className=
"flex flex-col gap-16 lg:gap-28"
>
<
List
ref=
{
menuListRef
}
onMouseLeave=
{
handleMouseLeave
}
style=
{
{
position
:
"relative"
}
}
>
{
/* ✨ Glass Morphism Layer */
}
<
div
style=
{
{
position
:
"absolute"
,
left
:
"0"
,
right
:
"0"
,
top
:
`${glassStyle.top}px`
,
height
:
`${glassStyle.height}px`
,
background
:
"rgba(255, 255, 255, 0.15)"
,
backdropFilter
:
"blur(12px)"
,
WebkitBackdropFilter
:
"blur(12px)"
,
border
:
"1px solid rgba(255, 255, 255, 0.25)"
,
borderRadius
:
"38px"
,
boxShadow
:
`
<
div
className=
"flex flex-col gap-16 lg:gap-28"
>
<
List
ref=
{
menuListRef
}
onMouseLeave=
{
handleMouseLeave
}
style=
{
{
position
:
"relative"
}
}
>
{
/* ✨ Glass Morphism Layer */
}
<
div
style=
{
{
position
:
"absolute"
,
left
:
"0"
,
right
:
"0"
,
top
:
`${glassStyle.top}px`
,
height
:
`${glassStyle.height}px`
,
background
:
"rgba(255, 255, 255, 0.15)"
,
backdropFilter
:
"blur(12px)"
,
WebkitBackdropFilter
:
"blur(12px)"
,
border
:
"1px solid rgba(255, 255, 255, 0.25)"
,
borderRadius
:
"38px"
,
boxShadow
:
`
0 8px 32px 0 rgba(0, 0, 0, 0.37),
inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
0 0 20px rgba(255, 255, 255, 0.1)
`
,
transition
:
"all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1)"
,
pointerEvents
:
"none"
,
zIndex
:
1
,
opacity
:
glassStyle
.
opacity
,
transform
:
glassStyle
.
opacity
===
1
?
"translateY(0) scale(1)"
:
"translateY(0) scale(0.95)"
,
}
}
/>
transition
:
"all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1)"
,
pointerEvents
:
"none"
,
zIndex
:
1
,
opacity
:
glassStyle
.
opacity
,
transform
:
glassStyle
.
opacity
===
1
?
"translateY(0) scale(1)"
:
"translateY(0) scale(0.95)"
,
}
}
/>
{
/* 🧩 Loop Static Menus */
}
{
staticMenus
.
map
((
menu
)
=>
{
const
isActive
=
menu
.
match
(
pathname
);
{
/* 🧩 Loop Static Menus */
}
{
staticMenus
.
map
((
menu
)
=>
{
const
isActive
=
menu
.
match
(
pathname
);
const
menuItem
=
(
<
ListItem
key=
{
menu
.
name
}
onMouseEnter=
{
handleMouseEnter
}
style=
{
{
position
:
"relative"
,
zIndex
:
2
,
padding
:
0
}
}
>
<
Link
href=
{
menu
.
path
}
className=
{
`flex gap-2 items-center px-4 py-2 transition-all rounded-[38px] ${[open ? "expanded" : "collapsed", isActive ? "active__menu" : ""].join(" ")
}`
}
const
menuItem
=
(
<
ListItem
key=
{
menu
.
name
}
onMouseEnter=
{
handleMouseEnter
}
style=
{
{
position
:
"relative"
,
zIndex
:
2
,
padding
:
0
}
}
>
<
ListItemIcon
>
{
menu
.
icon
}
</
ListItemIcon
>
<
ListItemText
primary=
{
menu
.
name
}
className=
{
open
?
"expanded"
:
"collapsed"
}
/>
</
Link
>
</
ListItem
>
);
<
Link
href=
{
menu
.
path
}
className=
{
`flex gap-2 items-center px-4 py-2 transition-all rounded-[38px] ${[open ? "expanded" : "collapsed", isActive ? "active__menu" : ""].join(" ")
}`
}
>
<
ListItemIcon
>
{
menu
.
icon
}
</
ListItemIcon
>
<
ListItemText
primary=
{
menu
.
name
}
className=
{
open
?
"expanded"
:
"collapsed"
}
/>
</
Link
>
</
ListItem
>
);
// Wrap with <Private> only if requireAuth is true
return
menu
.
requireAuth
?
<
Private
key=
{
menu
.
name
}
>
{
menuItem
}
</
Private
>
:
menuItem
;
})
}
</
List
>
// Wrap with <Private> only if requireAuth is true
return
menu
.
requireAuth
?
<
Private
key=
{
menu
.
name
}
>
{
menuItem
}
</
Private
>
:
menuItem
;
})
}
</
List
>
{
/* 🌐 Dynamic Menus */
}
<
PrimaryMenu
open=
{
open
}
/>
</
div
>
{
/* 🌐 Dynamic Menus */
}
<
PrimaryMenu
open=
{
open
}
/>
</
div
>
</
Box
>
{
/* 💬 Support Section */
}
<
div
className=
"support mt-4"
>
<
div
className=
{
`support mt-4 ${open ? "px-3" : ""}`
}
>
<
Link
href=
{
"/support"
}
className=
"ss-btn support__btn flex items-center gap-2 w-full justify-start"
...
...
@@ -183,6 +188,6 @@ export default function UserMenu({ open }: { open: boolean }) {
</
div
>
)
:
null
}
</
div
>
</
Box
>
</>
);
}
src/components/organism/Sidebar/index.tsx
View file @
25066b6c
...
...
@@ -126,8 +126,8 @@ export default function Sidebar({ open, handleDrawerOpen, handleMobileMenuToggle
const
{
data
}
=
useGetSeoDataQuery
();
if
(
downLG
)
{
return
<
div
className=
{
`mobile__menu__wrapper fixed left-0 top-0 bottom-0 max-h-screen
overflow-auto
backdrop-blur-2xl bg-[#290139CF] w-full z-[9999] transition-all duration-300 ${mobileMenuOpen ? "opacity-100 visible" : "opacity-0 invisible"}`
}
>
<
div
className=
{
`mobile__primary__menu max-w-[600px] w-full h-screen
overflow-auto
transition-all duration-300 ${mobileMenuOpen ? "opacity-100 visible translate-x-0" : "opacity-0 invisible translate-x-[-100%]"} ${user?.role && user.role.toUpperCase() === 'ADMIN' ? "bg-white" : "bg-[#11011E]"}`
}
ref=
{
ref
}
>
return
<
div
className=
{
`mobile__menu__wrapper fixed left-0 top-0 bottom-0 max-h-screen backdrop-blur-2xl bg-[#290139CF] w-full z-[9999] transition-all duration-300 ${mobileMenuOpen ? "opacity-100 visible" : "opacity-0 invisible"}`
}
>
<
div
className=
{
`mobile__primary__menu max-w-[600px] w-full h-screen transition-all duration-300 ${mobileMenuOpen ? "opacity-100 visible translate-x-0" : "opacity-0 invisible translate-x-[-100%]"} ${user?.role && user.role.toUpperCase() === 'ADMIN' ? "bg-white" : "bg-[#11011E]"}`
}
ref=
{
ref
}
>
<
div
className=
"flex justify-between items-center p-4 "
>
<
Link
href=
"/"
>
<
Image
src=
{
data
?.
data
?.
logo
||
""
}
alt=
"Logo"
width=
{
102
}
height=
{
56
}
/>
...
...
@@ -147,7 +147,7 @@ export default function Sidebar({ open, handleDrawerOpen, handleMobileMenuToggle
<
Add
className=
'!text-para-light rotate-45'
/>
</
IconButton
>
</
div
>
<
Box
className=
{
`mt-8 menu__wrapper
${open ? "px-3" : ""}
`
}
>
<
Box
className=
{
`mt-8 menu__wrapper `
}
>
{
user
?.
role
&&
user
.
role
.
toUpperCase
()
===
'ADMIN'
?
(
<
AdminMenu
open=
{
open
}
/>
...
...
@@ -161,27 +161,14 @@ export default function Sidebar({ open, handleDrawerOpen, handleMobileMenuToggle
}
return
(
<
Drawer
variant=
"permanent"
open=
{
open
}
downLG=
{
downLG
}
>
<
DrawerHeader
sx=
{
{
justifyContent
:
"center"
}
}
>
<
DrawerHeader
sx=
{
{
justifyContent
:
"center"
,
marginTop
:
2
}
}
>
{
/* <HambergerMenu /> */
}
<
Link
href=
"/"
>
<
Image
src=
{
data
?.
data
?.
logo
||
""
}
alt=
"Logo"
width=
{
102
}
height=
{
56
}
/>
</
Link
>
{
/* <IconButton
color="inherit"
aria-label="open drawer"
edge="start"
sx={[
{
maxWidth: "fit-content"
},
]}
className='!bg-light-gray !md:hidden'
>
<CloseCircle className='!text-para-light' />
</IconButton> */
}
</
DrawerHeader
>
<
Box
className=
{
`mt-8 menu__wrapper
${open ? "px-3" : ""}
`
}
>
<
Box
className=
{
`mt-8 menu__wrapper`
}
>
{
user
?.
role
&&
user
.
role
.
toUpperCase
()
===
'ADMIN'
?
(
<
AdminMenu
open=
{
open
}
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment