1+ import { CONTACT_URL } from '@/config/config.ts' ;
12import { useState } from 'react' ;
23import { Link , NavLink } from 'react-router-dom' ;
34import { useDevModeStore } from '@/stores/useDevMode.store.ts' ;
5+ import { cn } from '@/utils/style.utils.ts' ;
46import iExecLogo from '../../assets/iexec-logo.svg' ;
57import { Button } from '../ui/button.tsx' ;
68import { Label } from '../ui/label.tsx' ;
@@ -15,7 +17,7 @@ export function NavBar() {
1517 } ;
1618
1719 return (
18- < div className = "group relative z-30 h-full flex-none lg:w-[255px ]" >
20+ < div className = "group relative z-30 h-full flex-none lg:w-[280px ]" >
1921 < label
2022 className = "group/checkbox fixed top-7 right-7 z-30 flex size-5 w-[26px] origin-center transform flex-col justify-between lg:hidden"
2123 htmlFor = "menu"
@@ -33,7 +35,7 @@ export function NavBar() {
3335 < span className = "pointer-events-none block h-0.5 w-[26px] origin-top-right transform rounded-full bg-white duration-200 group-has-[:checked]/checkbox:scale-x-0" > </ span >
3436 < span className = "pointer-events-none block h-0.5 w-[26px] origin-right transform rounded-full bg-white duration-200 group-has-[:checked]/checkbox:rotate-45" > </ span >
3537 </ label >
36- < div className = "border-grey-600 bg-grey-900 fixed flex h-dvh w-full -translate-x-full flex-col overflow-auto rounded-r-3xl border-r px-5 pt-10 duration-300 group-has-[:checked]:translate-x-0 lg:w-[255px ] lg:translate-x-0" >
38+ < div className = "border-grey-600 bg-grey-900 fixed flex h-dvh w-full -translate-x-full flex-col overflow-auto rounded-r-3xl border-r px-5 pt-10 pb-5 duration-300 group-has-[:checked]:translate-x-0 lg:w-[280px ] lg:translate-x-0" >
3739 < Link
3840 to = "/my-data"
3941 className = "-mx-2 flex items-center p-2"
@@ -72,35 +74,19 @@ export function NavBar() {
7274 < span > Dev Mode</ span >
7375 </ Label >
7476
75- < hr className = "border-grey-600 border-t" />
76-
77- < div className = "mb-16" >
78- < Button
79- asChild
80- size = "lg"
81- variant = "discreet_outline"
82- className = "w-full"
83- >
84- < a
85- href = "https://iexecproject.atlassian.net/servicedesk/customer/portal/4"
86- target = "_blank"
87- rel = "noopener noreferrer"
88- >
89- Contact Support
90- </ a >
91- </ Button >
92- < Button
93- asChild
94- size = "lg"
95- variant = "discreet_outline"
96- className = "mt-4 w-full"
97- >
98- < a
99- href = "https://iexecproject.atlassian.net/servicedesk/customer/portal/4/group/9/create/71"
100- target = "_blank"
101- rel = "noopener noreferrer"
102- >
103- Feedback
77+ < div
78+ className = { cn (
79+ 'radial-bg rounded-20 relative z-0 flex flex-col items-center gap-6 overflow-hidden p-6 text-white' ,
80+ 'before:absolute before:inset-px before:-z-10 before:rounded-[calc(20px-1px)] before:bg-[#161a2a]' ,
81+ 'after:from-grey-800 after:absolute after:inset-px after:-z-10 after:rounded-[calc(20px-1px)] after:bg-gradient-to-br after:from-50% after:to-[#00115C]'
82+ ) }
83+ >
84+ < p className = "text-center font-bold md:text-left" >
85+ Interested by Confidential Messaging?
86+ </ p >
87+ < Button variant = "outline" asChild className = "w-full max-w-44" >
88+ < a href = { CONTACT_URL } target = "_blank" rel = "noopener noreferrer" >
89+ Connect with us
10490 </ a >
10591 </ Button >
10692 </ div >
0 commit comments