-
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.
[#27]πλͺ¨μ λμ리 κ°μ
νμ΄μ§
- Loading branch information
1 parent
6baf7e0
commit d8211f1
Showing
6 changed files
with
170 additions
and
12 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import React from "react"; | ||
import { Button } from '@/components/ui/button'; | ||
|
||
const ClubRegistration: React.FC = () => { | ||
return ( | ||
<div className="flex bg-stone-100 flex-col min-h-screen"> | ||
<div className="w-[920px] mx-auto mt-8 flex flex-col flex-grow"> | ||
<h2 className="text-xl text-green-600 font-neoBold mb-10">κ°μΈμ 보 μ΄μ©μ½κ΄</h2> | ||
<h2 className="text-xl text-green-600 font-neoBold mb-4">κ°μ κ·μΉ</h2> | ||
<div className="border-2 border-[#B4E3BF] rounded-lg bg-white p-8 mb-4"> | ||
<ol className="space-y-1.5 list-decimal list-inside"> | ||
<li>κ°μ ν 3κ°μ λμ μ°Έμ¬ νμ 3ν λ―Έλ§μΌ κ²½μ° κ°ν΄!!</li> | ||
<li>μνΈ μ‘΄μ€</li> | ||
<li>μ΄μ±μ λ§λ¨, μμ λ± λμ리μ κ΄λ ¨λμ§ μμ λͺ©μ μ λ°μ κ°ν΄!!</li> | ||
<li>κ°μ ν μΌμ£ΌμΌ λ΄ μΈμ¬ λ±λ‘ λ° νλ¬ λ΄ λͺ¨μ μ°Έμ¬</li> | ||
</ol> | ||
</div> | ||
<label className="flex justify-end items-center mb-5"> | ||
<input type="checkbox" className="form-checkbox" /> | ||
<span className="ml-2 text-sm">μ κ°μ κ·μΉμ λμν©λλ€.</span> | ||
</label> | ||
|
||
<h2 className="text-xl text-green-600 font-neoBold mb-4">κ°μ μ§λ¬Έ</h2> | ||
<div className="space-y-4 bg-white p-8 border-2 border-[#B4E3BF] rounded-lg"> | ||
<div> | ||
<label className="block mb-2 font-neoBold text-sm">1. MBTI (μ λͺ¨λ₯΄λ©΄ μΈν₯ν, λ΄ν₯ν μ λλ‘ μμ±ν΄μ£ΌμΈμ.)</label> | ||
<input type="text" className="w-full h-8 p-2 border border-gray-300 rounded" /> | ||
</div> | ||
<div> | ||
<label className="block mb-2 font-neoBold text-sm">2. λμ΄ (λ§ λμ΄)</label> | ||
<input type="text" className="w-full h-8 p-2 border border-gray-300 rounded" /> | ||
</div> | ||
<div> | ||
<label className="block mb-2 font-neoBold text-sm">3. κ°μ μ μ μ°Έμ¬νκ² μ΅λκΉ?</label> | ||
<input type="text" className="w-full h-8 p-2 border border-gray-300 rounded" /> | ||
</div> | ||
</div> | ||
|
||
<div className="mt-auto mb-10"> | ||
<label className="flex justify-end items-center mt-4 mb-3"> | ||
<input type="checkbox" className="form-checkbox" /> | ||
<span className="text-sm ml-2">μ κ°μ λ΄μ©μ μ 보 μ΄μ©μ λμν©λλ€.</span> | ||
</label> | ||
<div className="flex justify-end"> | ||
<Button>κ°μ νκΈ°</Button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default ClubRegistration; |
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,89 @@ | ||
import React, { useRef, useState } from 'react'; | ||
import Footer from '@/components/Footer'; | ||
import Header from '@/components/Header'; | ||
import HeroSection from '@/components/HeroSection'; | ||
import NotificationModal from '@/components/ui/notificationModal'; | ||
import ProfileModal from '@/components/ui/profileModal'; | ||
import ClubRegistration from './ClubRegistration'; | ||
import runImg from '@/assets/icons/run.png'; | ||
|
||
|
||
const LandingPage: React.FC = () => { | ||
const [isProfileModalOpen, setIsProfileModalOpen] = useState(false); | ||
const [isNotificationModalOpen, setIsNotificationModalOpen] = useState(false); | ||
const [isLoggedIn, setIsLoggedIn] = useState(false); | ||
const [hasNotifications, setHasNotifications] = useState(false); | ||
const [profileCoords, setProfileCoords] = useState<{ | ||
top: number; | ||
left: number; | ||
}>({ | ||
top: 0, | ||
left: 0, | ||
}); | ||
const [notificationCoords, setNotificationCoords] = useState<{ | ||
top: number; | ||
left: number; | ||
}>({ | ||
top: 0, | ||
left: 0, | ||
}); | ||
const profileRef = useRef<HTMLImageElement>(null); | ||
|
||
const toggleProfileModal = (e?: React.MouseEvent) => { | ||
if (e) { | ||
const rect = (e.currentTarget as HTMLElement).getBoundingClientRect(); | ||
setProfileCoords({ top: rect.bottom, left: rect.left }); | ||
} | ||
setIsProfileModalOpen(!isProfileModalOpen); | ||
}; | ||
|
||
const toggleNotificationModal = (e?: React.MouseEvent) => { | ||
if (e) { | ||
const rect = (e.currentTarget as HTMLElement).getBoundingClientRect(); | ||
setNotificationCoords({ top: rect.bottom, left: rect.left }); | ||
} | ||
setIsNotificationModalOpen(!isNotificationModalOpen); | ||
}; | ||
|
||
const handleLogout = () => { | ||
setIsLoggedIn(false); | ||
setIsProfileModalOpen(false); | ||
}; | ||
|
||
return ( | ||
<div className="relative"> | ||
<Header | ||
toggleProfileModal={toggleProfileModal} | ||
toggleNotificationModal={toggleNotificationModal} | ||
isLoggedIn={isLoggedIn} | ||
handleLoginLogout={() => setIsLoggedIn(!isLoggedIn)} | ||
profileRef={profileRef} | ||
hasNotifications={hasNotifications} | ||
/> | ||
<HeroSection | ||
backgroundColor="bg-primary" | ||
title="λͺ¨μ / λμ리 κ°μ νκΈ°" | ||
subtitle="μ°λ¦¬μ λ€μν λͺ¨μκ³Ό λμ리μμ μλ‘μ΄ μ·¨λ―Έλ₯Ό λ°κ²¬νκ³ , κΈ°μ‘΄μ μ·¨λ―Έλ₯Ό λμ± μ¦κ²κ² λλ €λ³΄μΈμ." | ||
imageData={{ src: runImg, alt: "Run Icon" }} | ||
/> | ||
<ClubRegistration/> | ||
<Footer /> | ||
{isProfileModalOpen && ( | ||
<ProfileModal | ||
toggleProfileModal={toggleProfileModal} | ||
handleLogout={handleLogout} | ||
coords={profileCoords} | ||
/> | ||
)} | ||
{isNotificationModalOpen && ( | ||
<NotificationModal | ||
toggleNotificationModal={toggleNotificationModal} | ||
setHasNotifications={setHasNotifications} | ||
coords={notificationCoords} | ||
/> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export default LandingPage; |
Empty file.
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