-
-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
10 changed files
with
492 additions
and
175 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
function Home() { | ||
return ( | ||
<div className="w-full p-6 space-y-8"> | ||
{/* Header Section */} | ||
<header className="text-left"> | ||
<h1 className="text-5xl font-bold mb-2 text-blue-700">Languages</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"> | ||
<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> | ||
</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"> | ||
<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> | ||
</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"> | ||
<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> | ||
</div> | ||
</section> | ||
|
||
{/* Footer Section */} | ||
<footer className="text-center text-gray-600 mt-12"> | ||
<p className="text-lg">Happy learning! Stay consistent, stay curious. 🚀 Let every quiz be a new adventure!</p> | ||
</footer> | ||
</div> | ||
); | ||
} | ||
|
||
export default Home; |
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,21 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
const Nav: React.FC = () => { | ||
return ( | ||
<nav className="w-full p-4 bg-white shadow-md fixed top-0 z-50"> | ||
<ul className="flex justify-start space-x-8"> | ||
<li> | ||
<Link | ||
to="/" | ||
className="text-blue-600 font-semibold hover:text-blue-800 transition duration-300 ease-in-out px-4 py-2 rounded-md hover:bg-blue-100" | ||
> | ||
Languages | ||
</Link> | ||
</li> | ||
</ul> | ||
</nav> | ||
); | ||
}; | ||
|
||
export default Nav; |
Oops, something went wrong.