Skip to content

Commit

Permalink
criação do menu
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasAzoli committed Jan 18, 2024
1 parent eabd52c commit 6fd5794
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/game/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default function Game() {
<img className={filter ? styles.filter : styles.image} src={`https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/dream-world/${pokemonNumber + 1}.svg`} alt="" />
</div>

<Div>Who is that Pokémon ?</Div>
<Div>Who's That Pokémon?</Div>


<div className={styles.answers}>
Expand Down
16 changes: 16 additions & 0 deletions pages/index.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.menu {
margin: auto;
max-width: 400px;
padding: 50px 0px;
display: flex;
flex-direction: column;
align-items: center;
gap: 120px;
}

.options {
min-width: 300px;
display: flex;
flex-direction: column;
gap: 50px;
}
15 changes: 14 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
import type { NextPage } from 'next'
import styles from './index.module.css';
import Div from '../components/div';
import Link from 'next/link';
import Image from 'next/image';
import logo from '../public/logo.png'

const Home: NextPage = () => {
return (
<>ola</>
<div className={styles.menu}>
<Image src={logo} alt="logo"></Image>
<div className={styles.options}>
<Link href='/game'><Div button={true}>Iniciar</Div></Link>
<Link href='/about'><Div button={true}>Sobre</Div></Link>
<Link href='/settings'><Div button={true}>Opções</Div></Link>

</div>
</ div>
)
}

Expand Down
Binary file added public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6fd5794

Please sign in to comment.