Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
KimCookieYa committed Aug 11, 2024
1 parent 13fc515 commit 6534933
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import HomeHeader from "@/components/HomeHeader";
import HomeInput from "@/components/home/HomeInput";
import Link from "next/link";
import {cls} from '@/utils/util';
import LoginBtn from '@/components/LoginBtn';


export default function Home() {
return (
Expand All @@ -27,9 +29,7 @@ export default function Home() {
{/* <div className="flex text-pnuText">국문 / 영어</div>*/}
{/*</div>*/}
</div>
<Link href="/notice" className="bg-pnuBlue text-white px-48 h-90 rounded md:px-16 md:h-60 md:w-full md:mt-24 flex justify-center items-center">
로그인
</Link>
<LoginBtn />
</form>
</main>
</>
Expand Down
21 changes: 21 additions & 0 deletions src/components/LoginBtn.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"use client";

import Link from 'next/link';
import { sendGAEvent } from '@next/third-parties/google'



export default function LoginBtn() {
const onClick = () => {
sendGAEvent({
event: 'buttonClicked',
value: 'start-sugang',
});
}

return (
<Link href="/notice" onClick={onClick} className="bg-pnuBlue text-white px-48 h-90 rounded md:px-16 md:h-60 md:w-full md:mt-24 flex justify-center items-center">
로그인
</Link>
)
}

0 comments on commit 6534933

Please sign in to comment.