@@ -65,9 +89,9 @@ export function HeroSection() {
똑똑한 HSK 학습
- 10,000개 이상의 단어, AI 생성 예문, 실시간 퀴즈로
+ 10,000개 이상의 HSK 단어를
- 획순 애니메이션과 함께 정확하게 배우세요
+ AI가 생성한 예문과 퀴즈로 학습하세요
@@ -88,7 +112,10 @@ export function HeroSection() {
{/* CTA Buttons */}
-
+
+ {/* 로그인 모달 */}
+
- //
);
}
diff --git a/src/features/home/PrimaryContentSection.tsx b/src/features/home/PrimaryContentSection.tsx
new file mode 100644
index 0000000..7d4cfcf
--- /dev/null
+++ b/src/features/home/PrimaryContentSection.tsx
@@ -0,0 +1,63 @@
+import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
+import { Badge } from '@/components/ui/badge';
+
+import { Dot } from 'lucide-react';
+
+export default function PrimaryContentSection() {
+ const contents = [
+ {
+ title: 'AI가 만든 예문·동의어로 맥락 학습',
+ features: [
+ '자연스러운 예문으로 단어 이해',
+ '유의어·반의어·동의어 한눈에 파악',
+ '맥락 속에서 실제 사용법 학습',
+ ],
+ },
+ {
+ title: 'AI 퀴즈로 바로 복습',
+ features: [
+ '다양한 유형의 퀴즈 자동 생성',
+ '실제 시험처럼 반복 학습',
+ '즉시 피드백으로 완벽 이해',
+ ],
+ },
+ {
+ title: '학습 결과를 한눈에',
+ features: [
+ '잘 외워지지 않는 단어 자동 체크',
+ '퀴즈 결과와 오답 내역 확인',
+ '마이페이지에서 한눈에 확인',
+ ],
+ },
+ ];
+
+ return (
+
+ {contents.map((content, index) => (
+
+
+
+
+ Step {index + 1}
+
+ {content.title}
+
+
+
+
+ {content.features.map((item, index) => (
+ -
+
+ {item}
+
+ ))}
+
+
+
+ ))}
+
+ );
+}
diff --git a/src/lib/supabase/userApi.ts b/src/lib/supabase/userApi.ts
index 7eb11bc..a3ddcea 100644
--- a/src/lib/supabase/userApi.ts
+++ b/src/lib/supabase/userApi.ts
@@ -24,3 +24,17 @@ export const logout = async () => {
throw error;
}
};
+
+export const loginWithGoogle = async () => {
+ const { error } = await supabase.auth.signInWithOAuth({
+ provider: 'google',
+ options: {
+ redirectTo: process.env.NEXT_PUBLIC_BASE_URL,
+ },
+ });
+
+ if (error) {
+ console.error(`[ERROR] Failed login: ${error}`);
+ throw error;
+ }
+};