Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/descriptive top buttons #139

Merged
merged 2 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions frontend/src/app/(private)/game/play/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@ export default function PlayPage() {
<div className="text-white text-3xl text-center">
Aguardando oponente...
</div>
<Link
href="/game"
className="
bg-purple42-400
hover:bg-purple42-500
text-white
font-bold
py-2
px-4
rounded
text-sm
mt-6
"
>
Voltar ao inicio
</Link>
</div>
</>
);
Expand Down Expand Up @@ -122,6 +138,22 @@ export default function PlayPage() {
"
>
<div className="text-white text-3xl text-center">Jogo abandonado</div>
<Link
href="/game"
className="
bg-purple42-400
hover:bg-purple42-500
text-white
font-bold
py-2
px-4
rounded
text-sm
mt-6
"
>
Voltar ao inicio
</Link>
</div>
</>
);
Expand Down
23 changes: 13 additions & 10 deletions frontend/src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,33 @@ export default function Header() {
<div className="flex items-center ml-4">
<UserInfo />
</div>
<div className="flex items-center">
<div className="flex items-center space-x-4">
<Link
href="/game/play"
className="text-white font-bold rounded-full transition-all hover:bg-purple42-200
flex items-center justify-center w-12 h-12"
className="text-white font-bold rounded-lg transition-all hover:bg-purple42-200
flex items-center justify-center space-x-2 px-4 py-2"
title="Iniciar um jogo"
>
<Play color="white" size={32} />
<Play color="white" size={22} />
<span>Jogar</span>
</Link>
<Link
href="/game"
className="text-white font-bold rounded-full transition-all hover:bg-purple42-200
flex items-center justify-center w-12 h-12"
className="text-white font-bold rounded-lg transition-all hover:bg-purple42-200
flex items-center justify-center space-x-2 px-4 py-2"
title="Ver ranking"
>
<Trophy color="white" size={32} />
<Trophy color="white" size={22} />
<span>Ranking</span>
</Link>
<Link
href="/"
className="text-white font-bold rounded-full transition-all hover:bg-purple42-200
flex items-center justify-center w-12 h-12"
className="text-white font-bold rounded-lg transition-all hover:bg-purple42-200
flex items-center justify-center space-x-2 px-4 py-2"
title="Sair"
>
<SignOut color="white" size={32} />
<SignOut color="white" size={22} />
<span>Sair</span>
</Link>
</div>
</div>
Expand Down
Loading