Skip to content

Instantly share code, notes, and snippets.

@covelitein
Created August 17, 2023 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save covelitein/68bcbcf4006b2c72153be2fe5acb01c0 to your computer and use it in GitHub Desktop.
Save covelitein/68bcbcf4006b2c72153be2fe5acb01c0 to your computer and use it in GitHub Desktop.
p2e
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