-
Notifications
You must be signed in to change notification settings - Fork 2
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 #131 from dsereycamus/gamenav
se agrega navbar para el game
- Loading branch information
Showing
5 changed files
with
93 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.header-navgame { | ||
background-color: #032D59; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
height: 7.5rem; | ||
padding: 0.3rem 10%; | ||
} | ||
|
||
.header-navgame img { | ||
height: 5.6rem; | ||
width: auto; | ||
transition: all 0.3s; | ||
} | ||
|
||
.btn-gamenav { | ||
padding: 0.2rem 3rem; | ||
justify-content: end; | ||
color: #032D59; | ||
border-radius: 3rem; | ||
background-color: #80bacc; | ||
font-weight: 600; | ||
border: none; | ||
cursor: pointer; | ||
font-size: 18px; | ||
} | ||
|
||
.letter-o { | ||
color: var(--clr-orange); | ||
font-size:50px; | ||
} | ||
|
||
.title-navgame { | ||
font-size: 50px; | ||
} | ||
|
||
.listaNav2 { | ||
cursor: pointer; | ||
background: transparent; | ||
border: none; | ||
outline: none; | ||
color: var(orange); | ||
visibility: hidden; | ||
opacity: 0; | ||
text-decoration: none; | ||
} | ||
|
||
.btn-gamenav button{ | ||
visibility: visible; | ||
opacity: 1; | ||
} | ||
|
||
div .show { | ||
transform: none; | ||
} |
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,32 @@ | ||
import React from 'react' | ||
import logo from '../../assets/Images/myboya-logo.png' | ||
import './GameNav.css' | ||
import { useRef } from "react"; | ||
import { NavLink, Link } from "react-router-dom"; | ||
|
||
export default function GameNav() { | ||
|
||
const navRef = useRef(); | ||
const show = () => { | ||
navRef.current.classList.toggle("show") | ||
} | ||
|
||
return ( | ||
<header> | ||
<nav className='header-navgame'> | ||
<h2 className='title-navgame'>MyB<span className='letter-o'>o</span>ya</h2> | ||
<img src={logo} alt="Logo MyBoya" /> | ||
<ul className="listaNav2"> | ||
<li> | ||
<NavLink to="/">Inicio</NavLink> | ||
</li> | ||
<li> | ||
<NavLink to="/about">Nosotros</NavLink> | ||
</li> | ||
</ul> | ||
<button className='btn-gamenav' onClick={show}>Cuenta</button> | ||
</nav> | ||
|
||
</header> | ||
) | ||
} |
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