Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import YellowCat from '@/components/landing/YellowCat';
import { Button } from '@/components/ui/Button';
import { motion } from 'framer-motion';
import dynamic from 'next/dynamic';
import { useRouter } from 'next/navigation';
// import Image from 'next/image'; // Next.js Image μ»΄ν¬λ„ŒνŠΈ 제거
import { useCallback, useEffect, useRef, useState } from 'react';

Expand Down Expand Up @@ -132,6 +133,11 @@ const SafeFullPage: React.FC<FullPageProps> = (props) => {
const [mounted, setMounted] = useState(false);
const styleRef = useRef<HTMLStyleElement | null>(null);
const originalConsoleErrorRef = useRef<typeof console.error | null>(null);
const router = useRouter();

const handleStartMeeting = useCallback(() => {
router.push('/meeting/mogakco');
}, [router]);

useEffect(() => {
// ν΄λΌμ΄μ–ΈνŠΈ ν™˜κ²½μ— μ™„μ „νžˆ μžˆλŠ”μ§€ ν™•μΈν•˜κΈ° μœ„ν•΄ λ‹€μŒ ν‹±κΉŒμ§€ λŒ€κΈ°
Expand Down Expand Up @@ -253,6 +259,7 @@ export default function Home() {
const [currentSection, setCurrentSection] = useState(0);
const [isMobile, setIsMobile] = useState(false);
const [fullPageLoaded, setFullPageLoaded] = useState(false);
const router = useRouter();

// λ””λ°”μš΄μŠ€κ°€ μžˆλŠ” λͺ¨λ°”일 감지
const checkMobile = useCallback(() => {
Expand Down Expand Up @@ -280,6 +287,9 @@ export default function Home() {
console.error('FullPage λͺ¨λ“ˆ λ‘œλ“œ μ‹€νŒ¨:', error);
}
}, []);
const handleStartMeeting = useCallback(() => {
router.push('/meeting/mogakco');
}, [router]);

useEffect(() => {
// μ •λ¦¬λ‘œ λ©”λͺ¨λ¦¬ λˆ„μˆ˜ λ°©μ§€
Expand Down Expand Up @@ -573,7 +583,11 @@ export default function Home() {
},
}}
>
<Button className="" aria-label="Deving λͺ¨μž„ μ‹œμž‘ν•˜κΈ°">
<Button
onClick={handleStartMeeting}
className="cursor-pointer transition-colors duration-300 hover:bg-opacity-90 active:bg-opacity-100"
aria-label="Deving λͺ¨μž„ μ‹œμž‘ν•˜κΈ°"
>
μ§€κΈˆ μ‹œμž‘ν•˜κΈ°
</Button>
</motion.div>
Expand Down Expand Up @@ -608,13 +622,13 @@ export default function Home() {
<div className="w-full border border-Cgray200 lg:w-[1460px]"></div>
<div className="flex gap-2">
<a
href="https://github.com/your-github"
href="https://github.com/MoimService/Moim-FE"
aria-label="GitHub 계정 λ°©λ¬Έν•˜κΈ°"
>
<GithubIcon />
</a>
<a
href="https://notion.so/your-notion"
href="https://www.notion.so/kangyunji/18568460118e80178a89ce22a03ce534?pvs=4"
aria-label="Notion νŽ˜μ΄μ§€ λ°©λ¬Έν•˜κΈ°"
>
<NotionIcon />
Expand Down
Loading