1- import Image from "next/image" ;
21import { basePath } from "../../next.config" ;
32export const BASE_PATH = basePath ? basePath : "" ;
43import GitHubIcon from "@mui/icons-material/GitHub" ;
54import ShareIcon from "@mui/icons-material/Share" ;
6- import { SITE_NAME } from "../../lib/constants" ;
5+ import { TWITTER_SHARE } from "../../lib/constants" ;
76import KeyboardDoubleArrowDownSharpIcon from "@mui/icons-material/KeyboardDoubleArrowDownSharp" ;
87import GradientBackground from "@/components/gradient-background" ;
98import ScreenEmojis from "@/components/screen-emojis" ;
@@ -14,9 +13,9 @@ import {
1413 groupContributorsBySection ,
1514 latestContributorsColor ,
1615} from "@/utils/contributors-grouping" ;
16+ import Button from "@/components/ui/button" ;
1717
1818export default function Home ( ) {
19- const contributorsNumber = contributors . length ;
2019 const contributorsGroups = groupContributorsBySection ( contributors , 3 ) ;
2120
2221 return (
@@ -40,14 +39,14 @@ export default function Home() {
4039 </ p >
4140
4241 < div className = "mt-8 flex flex-col items-start gap-4 lg:mt-12 lg:flex-row" >
43- < button className = "flex h-12 w-40 items-center justify-center gap-2 rounded-full bg-red-600 px-4 text-center text-white duration-300 hover:opacity-60" >
42+ < Button >
4443 < GitHubIcon className = "text-2xl" />
4544 GitHub
46- </ button >
47- < button className = "flex h-12 w-40 items-center justify-center gap-2 rounded-full border border-stone-800 bg-white px-4 text-red-600 duration-300 hover:opacity-60" >
45+ </ Button >
46+ < Button type = "outline" href = { TWITTER_SHARE } >
4847 < ShareIcon className = "text-2xl" />
4948 Share
50- </ button >
49+ </ Button >
5150 </ div >
5251 </ div >
5352 </ div >
0 commit comments