Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit 8d58be1

Browse files
HasithDeAlwisMFarabi619
authored andcommitted
feat(portal/dashbaord): center welcome message
1 parent 8f04068 commit 8d58be1

File tree

2 files changed

+17
-57
lines changed

2 files changed

+17
-57
lines changed

libs/portal/ui/dashboard/banner/banner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { GlassmorphicCard } from '@cuhacking/shared/ui/glassmorphic-card'
22

33
export function Banner({ name }: { name: string }) {
44
return (
5-
<GlassmorphicCard className="flex flex-col gap-x-3 md:flex-row p-3 justify-center items-center w-full">
5+
<GlassmorphicCard className="text-center flex flex-col gap-x-3 md:flex-row p-3 justify-center items-center w-full">
66
<h1 className="text-4xl">WELCOME</h1>
77
<h2 className="text-transparent bg-greendiant bg-clip-text font-extrabold text-5xl">
88
{name}

libs/portal/ui/dashboard/user-status/user-status.tsx

Lines changed: 16 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,36 @@
11
import arrow_icon from '@cuhacking/shared/assets/icons/general/arrow-1.svg'
2-
import { Button } from '@cuhacking/shared/ui/button'
32
import { GlassmorphicCard } from '@cuhacking/shared/ui/glassmorphic-card'
43
import { TerminalText } from '@cuhacking/shared/ui/terminal-text/terminal-text'
54
import { Typography } from '@cuhacking/shared/ui/typography'
65
import { cn } from '@cuhacking/shared/utils/cn'
76

8-
type Status = 'pending' | 'accepted' | 'rejected'
9-
107
interface UserStatusProps {
118
className?: string
129
name: string
13-
status?: Status
1410
}
1511

16-
export function UserStatus({ name, status = 'pending', className }: UserStatusProps) {
17-
let additionalContent
18-
let messageContent
19-
20-
switch (status) {
21-
case 'accepted':
22-
messageContent = 'WELCOME TO CUHACKING 2025! 💚'
23-
additionalContent = (
24-
<>
25-
26-
<TerminalText className="text-orange-400">!!!ACCEPTED!!!</TerminalText>
27-
<TerminalText>WE HOPE TO CUHACKING!</TerminalText>
28-
<Button
29-
className="w-full text-black"
30-
type="button"
31-
variant="secondary"
32-
>
33-
RSVP
34-
</Button>
35-
</>
36-
)
37-
break
38-
case 'pending':
39-
messageContent = 'Hi! Thank you for applying'
40-
additionalContent = (
41-
<div>
42-
<TerminalText>
43-
<a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ" target="_blank" rel="noopener noreferrer">
44-
... coming soon
45-
</a>
46-
</TerminalText>
12+
export function UserStatus({ name, className }: UserStatusProps) {
13+
const messageContent = `Hi! Thank you for applying ${name} 💚`
14+
const additionalContent = (
15+
<>
16+
<TerminalText>
17+
<a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ" target="_blank" rel="noopener noreferrer">
18+
... coming soon
19+
</a>
20+
</TerminalText>
4721

48-
<TerminalText>
49-
<a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ" target="_blank" rel="noopener noreferrer">
50-
We hope to cuHacking 👀!!!
51-
</a>
52-
</TerminalText>
53-
</div>
54-
)
55-
break
56-
case 'rejected':
57-
additionalContent = (
58-
<>
59-
<TerminalText>Unfortunately, we couldn't accept your application this time.</TerminalText>
60-
<TerminalText>Don't be discouraged! We encourage you to apply again next year. 💪</TerminalText>
61-
</>
62-
)
63-
break
64-
}
22+
<TerminalText>
23+
<a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ" target="_blank" rel="noopener noreferrer">
24+
We hope to cuHacking 👀!!!
25+
</a>
26+
</TerminalText>
27+
</>
28+
)
6529

6630
return (
6731
<GlassmorphicCard className={cn('flex flex-col gap-2 items-start p-3', className)}>
6832
<Typography variant="paragraph-base">
6933
{messageContent}
70-
{' '}
71-
{name}
72-
{' '}
73-
💚
7434
</Typography>
7535
<TerminalText
7636
className="text-lg text-center"

0 commit comments

Comments
 (0)