-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate auth title into its own file and add gradient with pulse ani…
…mation - Moved the authentication page title into a separate component file for better structure and reusability. - Applied a gradient to the title text using Tailwind's gradient utilities. - Added a pulse animation to the title for visual emphasis. - Ensured the title component is easily configurable and maintains consistency across the auth pages.
- Loading branch information
1 parent
0e077b2
commit 679317b
Showing
6 changed files
with
41 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
interface AuthTitleProps { | ||
title: string; | ||
body?: string; | ||
} | ||
|
||
const AuthTitle = ({ title, body }: AuthTitleProps) => { | ||
return ( | ||
<div className="w-full rounded-md border border-primary/50 bg-primary/15 drop-shadow-2xl"> | ||
<h2 | ||
className="text-lg lg:text-2xl font-extrabold text-center uppercase | ||
bg-gradient-to-r from-primary to-accent bg-clip-text text-transparent | ||
drop-shadow-primary-glow animate-pulse p-4" | ||
> | ||
{title} | ||
</h2> | ||
{body && ( | ||
<div className="w-full bg-primary/25 p-2.5 flex-center border-t border-primary/50"> | ||
<p className="text-xs lg:text-base text-center lg:max-w-[324px] text-foreground/60 font-medium"> | ||
{body} | ||
</p> | ||
</div> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export { AuthTitle }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters