Skip to content

Commit

Permalink
having issues with react router 6... added some css
Browse files Browse the repository at this point in the history
  • Loading branch information
Amheisern committed May 10, 2022
1 parent 9f53e25 commit 0b45e76
Show file tree
Hide file tree
Showing 6 changed files with 241 additions and 2 deletions.
10 changes: 9 additions & 1 deletion ClientApp/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import React from 'react'
import logo from './images/logo.svg'
import git from './images/GitHubSmall.png'
import { Route, Routes } from 'react-router'
import { Landing } from './pages/Landing'

export function App() {
return (
Expand All @@ -9,10 +12,15 @@ export function App() {
<h1>Bike Check</h1>
<div className="SignIn">Sign In</div>
</header>
<Routes>
<Route path="/" element={<Landing />} />
</Routes>
<footer>
<div className="footer">
<p>Created by <a href="http://www.amheiser.me">Nicholas Amheiser</a></p>
<p>Github repository: <a href="https://github.com/Amheisern"></a>github image</p>
<p>Github repository: <a href="https://github.com/Amheisern">
<img src={git} className="git" alt="git" />
</a></p>
</div>
</footer>
</div>
Expand Down
18 changes: 18 additions & 0 deletions ClientApp/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
:root {
font: 16px / 1 sans-serif;

/* SCSS RGB */
$smitten: rgba(205, 51, 130, 1);
$battleship-grey: rgba(128, 130, 123, 1);
$white: rgba(253, 253, 253, 1);
$black-olive: rgba(67, 69, 65, 1);
$rich-black-fogra-39: rgba(10, 10, 9, 1);

/* SCSS Gradient */
$gradient-top: linear-gradient(0deg, #cd3382ff, #80827bff, #fdfdfdff, #434541ff, #0a0a09ff);
$gradient-right: linear-gradient(90deg, #cd3382ff, #80827bff, #fdfdfdff, #434541ff, #0a0a09ff);
$gradient-bottom: linear-gradient(180deg, #cd3382ff, #80827bff, #fdfdfdff, #434541ff, #0a0a09ff);
$gradient-left: linear-gradient(270deg, #cd3382ff, #80827bff, #fdfdfdff, #434541ff, #0a0a09ff);
$gradient-top-right: linear-gradient(45deg, #cd3382ff, #80827bff, #fdfdfdff, #434541ff, #0a0a09ff);
$gradient-bottom-right: linear-gradient(135deg, #cd3382ff, #80827bff, #fdfdfdff, #434541ff, #0a0a09ff);
$gradient-top-left: linear-gradient(225deg, #cd3382ff, #80827bff, #fdfdfdff, #434541ff, #0a0a09ff);
$gradient-bottom-left: linear-gradient(315deg, #cd3382ff, #80827bff, #fdfdfdff, #434541ff, #0a0a09ff);
$gradient-radial: radial-gradient(#cd3382ff, #80827bff, #fdfdfdff, #434541ff, #0a0a09ff);

}

Expand Down
3 changes: 3 additions & 0 deletions ClientApp/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ import React from 'react'
import ReactDOM from 'react-dom'
import './index.scss'
import { App } from './App'
import { BrowserRouter as Router } from 'react-router-dom'

ReactDOM.render(
<React.StrictMode>
<Router>
<App />
</Router>
</React.StrictMode>,
document.getElementById('root')
)
11 changes: 11 additions & 0 deletions ClientApp/src/pages/Landing.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react'


export function Landing() {
return (
<>
<div>
</div>
</>
)
}
196 changes: 196 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"name": "BikeCheck",
"private": "true"
"private": "true",
"dependencies": {
"react-router-dom": "^6.3.0"
}
}

0 comments on commit 0b45e76

Please sign in to comment.