generated from LordRonz/nextjs-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Aaron Christopher Tanhar
committed
Sep 19, 2023
1 parent
52c84f4
commit a410ed0
Showing
5 changed files
with
57 additions
and
15 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,39 @@ | ||
import type { ReactNode } from 'react'; | ||
|
||
import Accent from '@/components/Accent'; | ||
import clsxm from '@/lib/clsxm'; | ||
|
||
export type MainTitleProps = { | ||
children?: ReactNode; | ||
title: ReactNode; | ||
className?: string; | ||
}; | ||
|
||
export const MainTitle = ({ title, children, className }: MainTitleProps) => { | ||
return ( | ||
<> | ||
<div> | ||
<h1 | ||
className={clsxm( | ||
'glow inline text-4xl font-bold md:text-6xl 2xl:text-7xl', | ||
className | ||
)} | ||
> | ||
<Accent>{title}</Accent> | ||
{children} | ||
</h1> | ||
</div> | ||
<style jsx>{` | ||
.glow { | ||
transition: all 1s ease-in-out; | ||
text-shadow: none; | ||
} | ||
.glow:hover { | ||
text-shadow: 0 0 1px #eb2754, 0 0 2px #eb2754, 0 0 6px #1cb7ff, | ||
0 0 8px #eb2754; | ||
} | ||
`}</style> | ||
</> | ||
); | ||
}; |
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
a410ed0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
lordronz-site – ./
ronz.vercel.app
lordronz-site.vercel.app
www.aaronct.dev
lordronz-site-lordronz.vercel.app
lordronz-site-git-main-lordronz.vercel.app
aaronct.dev
lordronz.vercel.app