-
-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
243 additions
and
63 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,75 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
function Home() { | ||
return ( | ||
<div className="w-full pt-24 space-y-4"> | ||
{/* Header Section */} | ||
<header className="text-left"> | ||
<h1 className="text-5xl font-bold mb-2 text-blue-700">Languages v2</h1> | ||
<p className="text-xl text-gray-700">Like Duolingo, but Opensource</p> | ||
</header> | ||
|
||
{/* English Section */} | ||
<section className="bg-white shadow-md rounded-lg p-6 transition-transform transform hover:scale-105 hover:bg-blue-50"> | ||
<h2 className="text-3xl font-semibold mb-4 text-blue-700">English 🇬🇧</h2> | ||
<p className="text-md text-gray-700 mb-6">Master English with our engaging quizzes and exercises. Unlock the full potential of your language skills and take your communication to the next level!</p> | ||
<div className="mb-8 space-x-4"> | ||
<Link | ||
to="/quiz?language=English" | ||
className="inline-block bg-blue-600 text-white px-6 py-3 rounded-full font-semibold text-center hover:bg-blue-800 shadow-lg"> | ||
🚀 Start Your English Adventure Now! | ||
</Link> | ||
<Link | ||
to="/video/English" | ||
className="inline-block bg-blue-400 text-white px-6 py-3 rounded-full font-semibold text-center hover:bg-blue-600 shadow-lg"> | ||
🎥 Watch English Videos | ||
</Link> | ||
</div> | ||
</section> | ||
|
||
{/* Vietnamese Section */} | ||
<section className="bg-white shadow-md rounded-lg p-6 transition-transform transform hover:scale-105 hover:bg-green-50"> | ||
<h2 className="text-3xl font-semibold mb-4 text-green-700">Vietnamese 🇻🇳</h2> | ||
<p className="text-md text-gray-700 mb-6">Discover the beauty of the Vietnamese language through fun and immersive quizzes. Let’s explore the culture and language together!</p> | ||
<div className="mb-8 space-x-4"> | ||
<Link | ||
to="/quiz?language=Vietnamese" | ||
className="inline-block bg-green-600 text-white px-6 py-3 rounded-full font-semibold text-center hover:bg-green-800 shadow-lg"> | ||
🌟 Start Vietnamese Quiz and Uncover the Magic! | ||
</Link> | ||
<Link | ||
to="/video/Vietnamese" | ||
className="inline-block bg-green-400 text-white px-6 py-3 rounded-full font-semibold text-center hover:bg-green-600 shadow-lg"> | ||
🎥 Watch Vietnamese Videos | ||
</Link> | ||
</div> | ||
</section> | ||
|
||
{/* Chinese Section */} | ||
<section className="bg-white shadow-md rounded-lg p-6 transition-transform transform hover:scale-105 hover:bg-red-50"> | ||
<h2 className="text-3xl font-semibold mb-4 text-red-700">Chinese 🇨🇳</h2> | ||
<p className="text-md text-gray-700 mb-6">Begin your Mandarin Chinese journey with fun, engaging quizzes. Unlock the wonders of the Chinese language and culture!</p> | ||
<div className="mb-8 space-x-4"> | ||
<Link | ||
to="/quiz?language=Chinese" | ||
className="inline-block bg-red-600 text-white px-6 py-3 rounded-full font-semibold text-center hover:bg-red-800 shadow-lg"> | ||
🐉 Start Chinese Quiz and Begin Your Journey! | ||
</Link> | ||
<Link | ||
to="/video/Chinese" | ||
className="inline-block bg-red-400 text-white px-6 py-3 rounded-full font-semibold text-center hover:bg-red-600 shadow-lg"> | ||
🎥 Watch Chinese Videos | ||
</Link> | ||
</div> | ||
</section> | ||
|
||
{/* Footer Section */} | ||
<footer className="text-center text-gray-600 mt-16"> | ||
<p className="text-lg">Happy learning! Stay consistent, stay curious. 🚀 Let every quiz be a new adventure!</p> | ||
</footer> | ||
</div> | ||
); | ||
} | ||
|
||
export default Home; |
46 changes: 46 additions & 0 deletions
46
apps/languagesv2/languages-v2-web/src/pages/VietnameseWords.tsx
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,46 @@ | ||
export interface VietnameseWord { | ||
word: string; | ||
partOfSpeech: string; | ||
frequency: number; | ||
} | ||
|
||
const VietnameseWords: VietnameseWord[] = [ | ||
{ word: "Ăn gì", partOfSpeech: "phrase", frequency: 5 }, | ||
{ word: "Âm nhạc", partOfSpeech: "noun", frequency: 6 }, | ||
{ word: "Anh trai", partOfSpeech: "noun", frequency: 7 }, | ||
{ word: "Ánh sáng", partOfSpeech: "noun", frequency: 5 }, | ||
{ word: "An toàn", partOfSpeech: "adjective", frequency: 6 }, | ||
{ word: "Áo dài", partOfSpeech: "noun", frequency: 8 }, | ||
{ word: "Ân cần", partOfSpeech: "adjective", frequency: 4 }, | ||
{ word: "Alo", partOfSpeech: "interjection", frequency: 7 }, | ||
{ word: "Ăn uống", partOfSpeech: "verb", frequency: 6 }, | ||
{ word: "Âu yếm", partOfSpeech: "adjective", frequency: 5 }, | ||
{ word: "Âm thanh", partOfSpeech: "noun", frequency: 6 }, | ||
{ word: "Bệnh viện", partOfSpeech: "noun", frequency: 6 }, | ||
{ word: "Cảm ơn", partOfSpeech: "verb", frequency: 9 }, | ||
{ word: "Chúc mừng", partOfSpeech: "verb", frequency: 5 }, | ||
{ word: "Điện thoại", partOfSpeech: "noun", frequency: 8 }, | ||
{ word: "Được", partOfSpeech: "verb", frequency: 7 }, | ||
{ word: "Giúp tôi", partOfSpeech: "verb", frequency: 6 }, | ||
{ word: "Học tập", partOfSpeech: "verb", frequency: 6 }, | ||
{ word: "Khách sạn", partOfSpeech: "noun", frequency: 4 }, | ||
{ word: "Không", partOfSpeech: "adverb", frequency: 10 }, | ||
{ word: "Làm ơn", partOfSpeech: "phrase", frequency: 8 }, | ||
{ word: "Máy bay", partOfSpeech: "noun", frequency: 4 }, | ||
{ word: "Mua sắm", partOfSpeech: "verb", frequency: 7 }, | ||
{ word: "Nghỉ ngơi", partOfSpeech: "verb", frequency: 7 }, | ||
{ word: "Nhà hàng", partOfSpeech: "noun", frequency: 5 }, | ||
{ word: "Siêu thị", partOfSpeech: "noun", frequency: 6 }, | ||
{ word: "Sức khỏe", partOfSpeech: "noun", frequency: 7 }, | ||
{ word: "Tạm biệt", partOfSpeech: "interjection", frequency: 7 }, | ||
{ word: "Trường học", partOfSpeech: "noun", frequency: 7 }, | ||
{ word: "Tốt lắm", partOfSpeech: "adjective", frequency: 4 }, | ||
{ word: "Uống nước", partOfSpeech: "verb", frequency: 6 }, | ||
{ word: "Vâng", partOfSpeech: "interjection", frequency: 6 }, | ||
{ word: "Xe máy", partOfSpeech: "noun", frequency: 6 }, | ||
{ word: "Xin chào", partOfSpeech: "interjection", frequency: 8 }, | ||
{ word: "Xin lỗi", partOfSpeech: "verb", frequency: 7 }, | ||
{ word: "Ô tô", partOfSpeech: "noun", frequency: 5 } | ||
]; | ||
|
||
export default VietnameseWords; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,5 @@ | ||
{ | ||
"dependencies": { | ||
"font-awesome": "^4.7.0" | ||
} | ||
} |