-
-
Save covelitein/68bcbcf4006b2c72153be2fe5acb01c0 to your computer and use it in GitHub Desktop.
p2e
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
import React from 'react' | |
import { setGlobalState } from '../store' | |
import { Link } from 'react-router-dom' | |
const Hero = () => { | |
return ( | |
<section className="h-[89vh]"> | |
<main className="flex flex-col justify-center items-center h-full"> | |
<h2 className="text-4xl"> | |
Welcome to Play2<span className="text-blue-700">Earn</span>, Where Fun | |
Meets Fortune! | |
</h2> | |
<p className="text-center my-4 "> | |
Get Ready to Unleash Your Inner Hero and Make Gaming Pay! | |
</p> | |
<div className="flex space-x-3 my-3"> | |
<button | |
onClick={() => setGlobalState('createModal', 'scale-100')} | |
className="bg-blue-700 border-[1px] text-white py-3 px-5 duration-200 transition-all hover:bg-blue-600" | |
> | |
Create Game | |
</button> | |
<Link | |
to="/mygames" | |
className="border-[1px] border-blue-700 text-blue-700 py-3 px-5 duration-200 transition-all hover:bg-blue-700 hover:text-white" | |
> | |
My Games | |
</Link> | |
</div> | |
</main> | |
</section> | |
) | |
} | |
export default Hero |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment