front: name GameHeader into GameView
This commit is contained in:
parent
21dd37521b
commit
fbd813b945
@ -1,4 +1,4 @@
|
|||||||
.game-header {
|
.game-view {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
background-color: lightgrey;
|
background-color: lightgrey;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -7,7 +7,7 @@
|
|||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-header a {
|
.game-view a {
|
||||||
color:darkgrey;
|
color:darkgrey;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition: .25s ease;
|
transition: .25s ease;
|
||||||
@ -15,7 +15,7 @@
|
|||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-header .active {
|
.game-view .active {
|
||||||
color: white;
|
color: white;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
background-color: cadetblue;
|
background-color: cadetblue;
|
||||||
@ -24,7 +24,7 @@
|
|||||||
padding-bottom: 8px;
|
padding-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-header a:hover:not(.active) {
|
.game-view a:hover:not(.active) {
|
||||||
color: cadetblue;
|
color: cadetblue;
|
||||||
box-shadow: 0 1.5px 0 0 currentColor;
|
box-shadow: 0 1.5px 0 0 currentColor;
|
||||||
}
|
}
|
@ -1,11 +1,11 @@
|
|||||||
import './GameHeader.css';
|
import './GameView.css';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { NavLink } from "react-router-dom";
|
import { NavLink } from "react-router-dom";
|
||||||
|
|
||||||
export default function GameHeader() {
|
export default function GameView() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<nav className='game-header'>
|
<nav className='game-view'>
|
||||||
<NavLink to="/game/new">New</NavLink>
|
<NavLink to="/game/new">New</NavLink>
|
||||||
<NavLink to="/game/proposal">Proposal</NavLink>
|
<NavLink to="/game/proposal">Proposal</NavLink>
|
||||||
<NavLink to="/game/active">Active</NavLink>
|
<NavLink to="/game/active">Active</NavLink>
|
@ -1,6 +1,6 @@
|
|||||||
import './index.css';
|
import './index.css';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import GameHeader from './GameHeader'
|
import GameView from './GameView'
|
||||||
import GameSelector from './GameSelector'
|
import GameSelector from './GameSelector'
|
||||||
import GameAction from './GameAction'
|
import GameAction from './GameAction'
|
||||||
import GameBoard from './GameBoard'
|
import GameBoard from './GameBoard'
|
||||||
@ -11,7 +11,7 @@ export default function Game() {
|
|||||||
return (
|
return (
|
||||||
<div className="split">
|
<div className="split">
|
||||||
<div className='split left'>
|
<div className='split left'>
|
||||||
<GameHeader />
|
<GameView />
|
||||||
<GameSelector />
|
<GameSelector />
|
||||||
<NewGame />
|
<NewGame />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user