Skip to content

Commit 6f0ec33

Browse files
authored
Fix drawer padding and footer positioning on Dashboard and Signup pages (#1084)
* wip updated connections Signed-off-by: Sujit <sujit.sutar@ayanworks.com> * fix/connection sidebar and footer copyright added Signed-off-by: Sujit <sujit.sutar@ayanworks.com> --------- Signed-off-by: Sujit <sujit.sutar@ayanworks.com>
1 parent d398116 commit 6f0ec33

File tree

6 files changed

+31
-10
lines changed

6 files changed

+31
-10
lines changed

nextjs/src/app/reset-password/ResetPassword.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { useRouter, useSearchParams } from 'next/navigation'
2121
import { AxiosResponse } from 'axios'
2222
import { Button } from '@/components/ui/button'
2323
import { Card } from '@/components/ui/card'
24+
import Footer from '@/components/Footer'
2425
import Image from 'next/image'
2526
import { Input } from '@/components/ui/input'
2627
import { Label } from '@/components/ui/label'
@@ -292,9 +293,7 @@ const ResetPassword = (): JSX.Element => {
292293
</div>
293294
</div>
294295

295-
<footer className="text-muted-foreground fixed right-0 bottom-0 left-0 mb-4 text-center text-sm">
296-
© 2019 - {new Date().getFullYear()} AYANWORKS | All rights reserved.
297-
</footer>
296+
<Footer fixed={true} />
298297
</div>
299298
)
300299
}

nextjs/src/components/Footer.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from 'react'
2+
3+
interface IFooter {
4+
fixed?: boolean
5+
}
6+
7+
const Footer: React.FC<IFooter> = ({ fixed = false }) => (
8+
<footer
9+
className={`text-muted-foreground mt-5 mb-1 text-center text-xs md:mb-4 md:text-sm ${
10+
fixed ? 'fixed bottom-0 w-full' : ''
11+
}`}
12+
>
13+
© 2015 - {new Date().getFullYear()} AYANWORKS TECHNOLOGY SOLUTIONS PRIVATE
14+
LIMITED.
15+
</footer>
16+
)
17+
18+
export default Footer

nextjs/src/config/SidePanelCommon.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ export default function SidePanelComponent({
3939
}: Props): React.JSX.Element {
4040
return (
4141
<Sheet open={open} onOpenChange={onOpenChange}>
42-
<SheetContent side="right" className="w-full max-w-xl space-y-6">
42+
<SheetContent
43+
side="right"
44+
className="w-full max-w-xl min-w-[500px] space-y-6 p-4"
45+
>
4346
<SheetHeader>
4447
<SheetTitle className="text-xl font-semibold">{title}</SheetTitle>
4548
<SheetDescription className="text-muted-foreground text-sm">
@@ -48,7 +51,7 @@ export default function SidePanelComponent({
4851
</SheetHeader>
4952

5053
<Card>
51-
<CardContent className="space-y-4 p-4">
54+
<CardContent className="space-y-4 p-8">
5255
{fields.map((field, index) => (
5356
<div key={index} className="space-y-1">
5457
<div className="text-muted-foreground text-sm">

nextjs/src/features/components/SignUpUser.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import React, { useState } from 'react'
44

55
import EmailVerificationForm from './EmailVerificationForm'
6+
import Footer from '@/components/Footer'
67
import Link from 'next/link'
78
import UserInfoForm from './UserInfoForm'
89
import { useSearchParams } from 'next/navigation'
@@ -68,6 +69,7 @@ export default function SignUpUser(): React.JSX.Element {
6869
</Link>
6970
</div>
7071
</div>
72+
<Footer fixed={true} />
7173
</div>
7274
)
7375
}

nextjs/src/features/components/sigin-view.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import { CredeblLogoHeight, CredeblLogoWidth } from '@/config/CommonConstant'
44

5+
import Footer from '@/components/Footer'
56
import Image from 'next/image'
67
import { Metadata } from 'next'
78
import React from 'react'
@@ -46,11 +47,7 @@ export default function SignInPage(): React.JSX.Element {
4647
<div className="flex flex-1 items-center justify-center px-4">
4748
<UserAuthForm />
4849
</div>
49-
50-
<footer className="text-muted-foreground mb-1 text-center text-xs md:mb-4 md:text-sm">
51-
© 2019 - {new Date().getFullYear()} AYANWORKS TECHNOLOGY SOLUTIONS
52-
PRIVATE LIMITED.
53-
</footer>
50+
<Footer />
5451
</div>
5552
)
5653
}

nextjs/src/features/dashboard/components/dashboard.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { AxiosResponse } from 'axios'
1212
import { Button } from '@/components/ui/button'
1313
import { CreateWalletIcon } from '@/components/iconsSvg'
1414
import CredentialDefinition from './CredentialDefinition '
15+
import Footer from '@/components/Footer'
1516
import OrganizationCardList from './OrganizationCardList'
1617
import PageContainer from '@/components/layout/page-container'
1718
import RecentActivity from './RecentActivity'
@@ -231,6 +232,7 @@ export default function Dashboard(): React.JSX.Element {
231232
<RecentActivity />
232233
</div>
233234
</div>
235+
<Footer />
234236
</PageContainer>
235237
)
236238
}

0 commit comments

Comments
 (0)