Skip to content

Commit

Permalink
fix background and routing
Browse files Browse the repository at this point in the history
  • Loading branch information
jdshaeffer committed Oct 15, 2023
1 parent a46de7f commit 32113d1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ const App = () => {
<Route exact path='/dungeon-solitaire'>
<Intro />
</Route>
<Route path='/easy'>
<Route exact path='/dungeon-solitaire/easy'>
<Game difficulty='easy' />
</Route>
<Route path='/hard'>
<Route exact path='/dungeon-solitaire/hard'>
<Game difficulty='hard' />
</Route>
</Switch>
Expand Down
4 changes: 2 additions & 2 deletions src/Intro.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ const Intro = () => {
<h1>welcome to dungeon solitaire (in beta)</h1>
<h3>pick a difficulty:</h3>
<div>
<Link to='/easy'>
<Link to='dungeon-solitaire/easy'>
<button>easy</button>
</Link>
<Link to='/hard'>
<Link to='dungeon-solitaire/hard'>
<button>hard</button>
</Link>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ body {
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: #282c34;
}

code {
Expand Down
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import { BrowserRouter } from 'react-router-dom';
import './index.css';

ReactDOM.render(
<BrowserRouter>
Expand Down

0 comments on commit 32113d1

Please sign in to comment.