Compare commits
3 Commits
5af20e2105
...
a96ee0fb60
| Author | SHA1 | Date | |
|---|---|---|---|
| a96ee0fb60 | |||
| 679bc77403 | |||
| b2103a73e6 |
157
app/page.tsx
157
app/page.tsx
@@ -1,9 +1,160 @@
|
|||||||
import Image from "next/image";
|
import Link from "next/link";
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<div className="h-screen- bg-red-500">
|
<div className="min-h-screen bg-white">
|
||||||
homepage
|
{/* 헤더 */}
|
||||||
|
<header className="bg-white shadow-sm sticky top-0 z-50">
|
||||||
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||||
|
<div className="flex justify-between items-center h-16">
|
||||||
|
<div className="flex items-center">
|
||||||
|
<h1 className="text-2xl font-bold text-blue-600">XR LMS</h1>
|
||||||
|
</div>
|
||||||
|
<nav className="hidden md:flex space-x-8">
|
||||||
|
<Link href="#" className="text-gray-700 hover:text-blue-600 transition">강의</Link>
|
||||||
|
<Link href="#" className="text-gray-700 hover:text-blue-600 transition">커뮤니티</Link>
|
||||||
|
<Link href="#" className="text-gray-700 hover:text-blue-600 transition">공지사항</Link>
|
||||||
|
<Link href="#" className="text-gray-700 hover:text-blue-600 transition">마이페이지</Link>
|
||||||
|
</nav>
|
||||||
|
<div className="flex items-center space-x-4">
|
||||||
|
<Link
|
||||||
|
href="/login"
|
||||||
|
className="px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 transition"
|
||||||
|
>
|
||||||
|
로그인
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
{/* 히어로 섹션 */}
|
||||||
|
<section className="bg-gradient-to-r from-blue-600 to-purple-600 text-white py-20">
|
||||||
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
|
||||||
|
<h2 className="text-5xl font-bold mb-6">
|
||||||
|
혁신적인 XR 학습 플랫폼
|
||||||
|
</h2>
|
||||||
|
<p className="text-xl mb-8 text-blue-100">
|
||||||
|
몰입형 경험을 통해 새로운 차원의 학습을 시작하세요
|
||||||
|
</p>
|
||||||
|
<div className="flex justify-center space-x-4">
|
||||||
|
<Link
|
||||||
|
href="/login"
|
||||||
|
className="px-8 py-3 bg-white text-blue-600 rounded-lg font-semibold hover:bg-gray-100 transition"
|
||||||
|
>
|
||||||
|
시작하기
|
||||||
|
</Link>
|
||||||
|
<button className="px-8 py-3 bg-transparent border-2 border-white text-white rounded-lg font-semibold hover:bg-white hover:text-blue-600 transition">
|
||||||
|
알아보기
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{/* 주요 기능 */}
|
||||||
|
<section className="py-20 bg-gray-50">
|
||||||
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||||
|
<h3 className="text-3xl font-bold text-center mb-12">주요 기능</h3>
|
||||||
|
<div className="grid md:grid-cols-3 gap-8">
|
||||||
|
<div className="bg-white p-6 rounded-lg shadow-md hover:shadow-lg transition">
|
||||||
|
<div className="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mb-4">
|
||||||
|
<svg className="w-6 h-6 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||||
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253" />
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
<h4 className="text-xl font-semibold mb-2">다양한 강의</h4>
|
||||||
|
<p className="text-gray-600">
|
||||||
|
XR 기술을 활용한 몰입형 학습 경험을 제공합니다
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div className="bg-white p-6 rounded-lg shadow-md hover:shadow-lg transition">
|
||||||
|
<div className="w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center mb-4">
|
||||||
|
<svg className="w-6 h-6 text-purple-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||||
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z" />
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
<h4 className="text-xl font-semibold mb-2">커뮤니티</h4>
|
||||||
|
<p className="text-gray-600">
|
||||||
|
학습자들과 함께 소통하고 경험을 공유하세요
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div className="bg-white p-6 rounded-lg shadow-md hover:shadow-lg transition">
|
||||||
|
<div className="w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center mb-4">
|
||||||
|
<svg className="w-6 h-6 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||||
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" />
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
<h4 className="text-xl font-semibold mb-2">학습 추적</h4>
|
||||||
|
<p className="text-gray-600">
|
||||||
|
진도율과 성취도를 한눈에 확인하고 관리하세요
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{/* 인기 강의 */}
|
||||||
|
<section className="py-20">
|
||||||
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||||
|
<h3 className="text-3xl font-bold text-center mb-12">인기 강의</h3>
|
||||||
|
<div className="grid md:grid-cols-4 gap-6">
|
||||||
|
{[1, 2, 3, 4].map((item) => (
|
||||||
|
<div key={item} className="bg-white rounded-lg shadow-md overflow-hidden hover:shadow-lg transition cursor-pointer">
|
||||||
|
<div className="h-48 bg-gradient-to-br from-blue-400 to-purple-500"></div>
|
||||||
|
<div className="p-4">
|
||||||
|
<h4 className="font-semibold mb-2">XR 기초 강의 {item}</h4>
|
||||||
|
<p className="text-sm text-gray-600 mb-2">강사명 • {item * 10}명 수강</p>
|
||||||
|
<div className="flex items-center justify-between">
|
||||||
|
<span className="text-blue-600 font-semibold">무료</span>
|
||||||
|
<span className="text-yellow-500">⭐ 4.{item + 5}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{/* 푸터 */}
|
||||||
|
<footer className="bg-gray-900 text-white py-12">
|
||||||
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||||
|
<div className="grid md:grid-cols-4 gap-8">
|
||||||
|
<div>
|
||||||
|
<h4 className="text-xl font-bold mb-4">XR LMS</h4>
|
||||||
|
<p className="text-gray-400 text-sm">
|
||||||
|
혁신적인 학습 경험을 제공하는 플랫폼
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h5 className="font-semibold mb-4">학습</h5>
|
||||||
|
<ul className="space-y-2 text-sm text-gray-400">
|
||||||
|
<li><Link href="#" className="hover:text-white transition">강의 목록</Link></li>
|
||||||
|
<li><Link href="#" className="hover:text-white transition">카테고리</Link></li>
|
||||||
|
<li><Link href="#" className="hover:text-white transition">신규 강의</Link></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h5 className="font-semibold mb-4">지원</h5>
|
||||||
|
<ul className="space-y-2 text-sm text-gray-400">
|
||||||
|
<li><Link href="#" className="hover:text-white transition">공지사항</Link></li>
|
||||||
|
<li><Link href="#" className="hover:text-white transition">FAQ</Link></li>
|
||||||
|
<li><Link href="#" className="hover:text-white transition">문의하기</Link></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h5 className="font-semibold mb-4">회사</h5>
|
||||||
|
<ul className="space-y-2 text-sm text-gray-400">
|
||||||
|
<li><Link href="#" className="hover:text-white transition">소개</Link></li>
|
||||||
|
<li><Link href="#" className="hover:text-white transition">이용약관</Link></li>
|
||||||
|
<li><Link href="#" className="hover:text-white transition">개인정보처리방침</Link></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="mt-8 pt-8 border-t border-gray-800 text-center text-sm text-gray-400">
|
||||||
|
© 2024 XR LMS. All rights reserved.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
171
app/registeragreement/page.tsx
Normal file
171
app/registeragreement/page.tsx
Normal file
@@ -0,0 +1,171 @@
|
|||||||
|
'use client';
|
||||||
|
|
||||||
|
import { useState } from 'react';
|
||||||
|
import Link from 'next/link';
|
||||||
|
|
||||||
|
export default function RegisterAgreementPage() {
|
||||||
|
const [allAgreed, setAllAgreed] = useState(false);
|
||||||
|
const [ageAgreed, setAgeAgreed] = useState(false);
|
||||||
|
const [termsAgreed, setTermsAgreed] = useState(false);
|
||||||
|
const [privacyAgreed, setPrivacyAgreed] = useState(false);
|
||||||
|
|
||||||
|
// 전체 동의 핸들러
|
||||||
|
const handleAllAgreed = (checked: boolean) => {
|
||||||
|
setAllAgreed(checked);
|
||||||
|
setAgeAgreed(checked);
|
||||||
|
setTermsAgreed(checked);
|
||||||
|
setPrivacyAgreed(checked);
|
||||||
|
};
|
||||||
|
|
||||||
|
// 개별 체크박스 변경 시 전체 동의 상태 업데이트
|
||||||
|
const updateAllAgreed = () => {
|
||||||
|
if (ageAgreed && termsAgreed && privacyAgreed) {
|
||||||
|
setAllAgreed(true);
|
||||||
|
} else {
|
||||||
|
setAllAgreed(false);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// 개별 체크박스 핸들러
|
||||||
|
const handleAgeAgreed = (checked: boolean) => {
|
||||||
|
setAgeAgreed(checked);
|
||||||
|
updateAllAgreed();
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleTermsAgreed = (checked: boolean) => {
|
||||||
|
setTermsAgreed(checked);
|
||||||
|
updateAllAgreed();
|
||||||
|
};
|
||||||
|
|
||||||
|
const handlePrivacyAgreed = (checked: boolean) => {
|
||||||
|
setPrivacyAgreed(checked);
|
||||||
|
updateAllAgreed();
|
||||||
|
};
|
||||||
|
|
||||||
|
// 다음 단계 진행 가능 여부
|
||||||
|
const canProceed = ageAgreed && termsAgreed && privacyAgreed;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="min-h-screen flex items-center justify-center bg-white">
|
||||||
|
<div className="w-full max-w-2xl px-4">
|
||||||
|
{/* 회원가입 카드 */}
|
||||||
|
<div className="bg-white rounded-lg shadow-lg p-8">
|
||||||
|
{/* 제목 */}
|
||||||
|
<h1 className="text-2xl font-bold text-center mb-8">회원가입</h1>
|
||||||
|
|
||||||
|
{/* 단계 표시 */}
|
||||||
|
<div className="flex items-center justify-center mb-8 text-sm">
|
||||||
|
<div className="flex items-center">
|
||||||
|
<span className="px-3 py-1 bg-blue-500 text-white rounded-md font-semibold">
|
||||||
|
01 약관 동의
|
||||||
|
</span>
|
||||||
|
<span className="mx-2 text-gray-400">></span>
|
||||||
|
<span className="px-3 py-1 text-gray-500">02 회원정보입력</span>
|
||||||
|
<span className="mx-2 text-gray-400">></span>
|
||||||
|
<span className="px-3 py-1 text-gray-500">03 회원가입완료</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* 약관 동의 섹션 */}
|
||||||
|
<div className="space-y-4">
|
||||||
|
{/* 전체 동의 */}
|
||||||
|
<div className="pb-4 border-b border-gray-300">
|
||||||
|
<label className="flex items-center cursor-pointer">
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
checked={allAgreed}
|
||||||
|
onChange={(e) => handleAllAgreed(e.target.checked)}
|
||||||
|
className="w-5 h-5 mr-3 text-blue-500 rounded focus:ring-2 focus:ring-blue-500"
|
||||||
|
/>
|
||||||
|
<span className="text-base font-medium">모든 항목에 동의합니다.</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* 개별 약관 */}
|
||||||
|
<div className="space-y-4">
|
||||||
|
{/* 만 14세 이상 */}
|
||||||
|
<div className="flex items-center justify-between">
|
||||||
|
<label className="flex items-center cursor-pointer flex-1">
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
checked={ageAgreed}
|
||||||
|
onChange={(e) => handleAgeAgreed(e.target.checked)}
|
||||||
|
className="w-5 h-5 mr-3 text-blue-500 rounded focus:ring-2 focus:ring-blue-500"
|
||||||
|
/>
|
||||||
|
<span className="text-sm">
|
||||||
|
만 14세 이상입니다. <span className="text-red-500">(필수)</span>
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
<button className="text-sm text-gray-500 hover:text-gray-700">
|
||||||
|
전체 >
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* 이용 약관 */}
|
||||||
|
<div className="flex items-center justify-between">
|
||||||
|
<label className="flex items-center cursor-pointer flex-1">
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
checked={termsAgreed}
|
||||||
|
onChange={(e) => handleTermsAgreed(e.target.checked)}
|
||||||
|
className="w-5 h-5 mr-3 text-blue-500 rounded focus:ring-2 focus:ring-blue-500"
|
||||||
|
/>
|
||||||
|
<span className="text-sm">
|
||||||
|
이용 약관 동의 <span className="text-red-500">(필수)</span>
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
<button className="text-sm text-gray-500 hover:text-gray-700">
|
||||||
|
전체 >
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* 개인정보 수집 및 이용 */}
|
||||||
|
<div className="flex items-center justify-between">
|
||||||
|
<label className="flex items-center cursor-pointer flex-1">
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
checked={privacyAgreed}
|
||||||
|
onChange={(e) => handlePrivacyAgreed(e.target.checked)}
|
||||||
|
className="w-5 h-5 mr-3 text-blue-500 rounded focus:ring-2 focus:ring-blue-500"
|
||||||
|
/>
|
||||||
|
<span className="text-sm">
|
||||||
|
개인정보 수집 및 이용 동의 <span className="text-red-500">(필수)</span>
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
<button className="text-sm text-gray-500 hover:text-gray-700">
|
||||||
|
전체 >
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* 버튼 영역 */}
|
||||||
|
<div className="mt-8 flex space-x-4">
|
||||||
|
<Link
|
||||||
|
href="/login"
|
||||||
|
className="flex-1 py-3 bg-gray-200 text-gray-700 rounded-md text-center hover:bg-gray-300 transition font-medium"
|
||||||
|
>
|
||||||
|
돌아가기
|
||||||
|
</Link>
|
||||||
|
<button
|
||||||
|
disabled={!canProceed}
|
||||||
|
className={`flex-1 py-3 rounded-md font-medium transition ${
|
||||||
|
canProceed
|
||||||
|
? 'bg-blue-500 text-white hover:bg-blue-600'
|
||||||
|
: 'bg-gray-300 text-gray-500 cursor-not-allowed'
|
||||||
|
}`}
|
||||||
|
>
|
||||||
|
동의 후 가입하기
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* 카피라이트 */}
|
||||||
|
<div className="mt-8 text-center text-sm text-gray-500">
|
||||||
|
Copyright © 2025 XL LMS. All rights reserved
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user