-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from JumboCode/Welcome_Page
Welcome Page
- Loading branch information
Showing
5 changed files
with
62 additions
and
5 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
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,35 @@ | ||
import Button from '../components/Button/Button'; | ||
import LanguageDropdown from '../components/Dropdown/LanguageDropdown'; | ||
import { Link, useLocation } from 'wouter'; | ||
|
||
const Welcome = ({ onComplete }) => { | ||
const [, setLocation] = useLocation(); | ||
|
||
return ( | ||
<> | ||
<div className="bg-blue-200 p-4 h-full min-h-[60dvh] flex items-center justify-center"> | ||
<div className="text-center mb-12 mt-12 px-5"> | ||
<h1 className="text-6xl font-bold mb-2">Dillar Academy</h1> | ||
<p className="mb-4">Free English education for Uyghurs around the world.</p> | ||
<div className="flex flex-col md:flex-row items-center justify-center gap-x-2 mb-2"> | ||
<div className='px-2 rounded-lg transition-colors duration-300 border border-dark-blue-800 bg-white'> | ||
<LanguageDropdown /> | ||
</div> | ||
<Button | ||
href="/SignUp" | ||
label={"Start Learning"} | ||
onClick={() => { | ||
onComplete() | ||
setLocation("/signup") | ||
}} | ||
isOutline={false} | ||
/> | ||
</div> | ||
<h3 className='hover:text-blue-500 transition-colors'> <Link href="/login" onClick={onComplete}> Already have an account? </Link> </h3> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default Welcome; |