Browse Source

feat: add ShopAccountPage component for user account overview and navigation

main
sina_sajjadi 4 days ago
parent
commit
cbe6880a70
  1. 79
      src/pages/account/ShopAccountPage.tsx

79
src/pages/account/ShopAccountPage.tsx

@ -377,6 +377,85 @@ export const ShopAccountPage: React.FC = () => {
))} ))}
</div> </div>
{/* My Shop / Seller Portal Card */}
<div
onClick={() => navigate('/admin')}
style={{
width: '100%',
minHeight: 55,
padding: '10px 13px',
borderRadius: 15,
backgroundColor: '#ffffff',
boxShadow: '0px 2px 13px rgba(180, 187, 200, 0.21)',
cursor: 'pointer',
display: 'flex',
alignItems: 'center',
gap: 10,
marginBottom: 15,
}}
>
<div
style={{
width: 34,
height: 34,
borderRadius: 11,
backgroundColor: 'rgba(215, 142, 6, 0.14)',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
flexShrink: 0,
}}
>
<svg
width="22"
height="22"
viewBox="0 0 24 24"
fill="none"
stroke="#C7CFDA"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<path d="M3 9l1-5h16l1 5" />
<path d="M3 9a3 3 0 0 0 6 0 3 3 0 0 0 6 0 3 3 0 0 0 6 0" />
<path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7" />
<path d="M10 21v-5a2 2 0 0 1 4 0v5" />
</svg>
</div>
<div
style={{
flex: 1,
minWidth: 0,
display: 'flex',
flexDirection: 'column',
gap: 2,
}}
>
<div
style={{
fontFamily: 'var(--font-sans)',
fontWeight: 600,
fontSize: 14,
lineHeight: '16px',
color: '#d78e06',
}}
>
{tr('My Shop')}
</div>
<div
style={{
fontFamily: 'var(--font-sans)',
fontWeight: 600,
fontSize: 10,
lineHeight: '12.9px',
color: '#8b8b8b',
}}
>
{tr('Create a shop or manage your listings')}
</div>
</div>
</div>
{/* Sign In Prompt Card when no authentication is provided by HabibApp (4214:464) */} {/* Sign In Prompt Card when no authentication is provided by HabibApp (4214:464) */}
{(bare || !isUserAuthenticated) && ( {(bare || !isUserAuthenticated) && (
<div <div

Loading…
Cancel
Save