mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 00:21:55 +00:00
Get SPA working
This commit is contained in:
parent
2fe9516fc2
commit
66f900dee9
@ -24,6 +24,17 @@
|
||||
color: white;
|
||||
}
|
||||
|
||||
.pageWrapper {
|
||||
background-color: #282c34;
|
||||
padding-top: 100px;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
font-size: calc(10px + 2vmin);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.App-link {
|
||||
color: #61dafb;
|
||||
}
|
||||
|
4
web/src/Components/Pages/About.css
Normal file
4
web/src/Components/Pages/About.css
Normal file
@ -0,0 +1,4 @@
|
||||
.aboutBody {
|
||||
padding-top: 20px;
|
||||
font-size: 16pt;
|
||||
}
|
@ -1,21 +1,15 @@
|
||||
import logo from '../../logo.svg';
|
||||
import '../../App.css';
|
||||
import './About.css';
|
||||
|
||||
function About() {
|
||||
return (
|
||||
<div>
|
||||
<img src={logo} className="App-logo" alt="logo" />
|
||||
<p>
|
||||
TEST!!!
|
||||
<div className="pageWrapper">
|
||||
<h1>
|
||||
About GoScrobble.com
|
||||
</h1>
|
||||
<p className="aboutBody">
|
||||
Go-Scrobble is an open source music scorbbling service written in Go and React.<br/>
|
||||
</p>
|
||||
<a
|
||||
className="App-link"
|
||||
href="https://git.m2.nz/idanoo/go-scrobble"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
TEST@!@@
|
||||
</a>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
9
web/src/Components/Pages/Navigation.css
Normal file
9
web/src/Components/Pages/Navigation.css
Normal file
@ -0,0 +1,9 @@
|
||||
.navLink {
|
||||
padding: 10px;
|
||||
color: #CCCCCC;
|
||||
}
|
||||
|
||||
.navLink:hover {
|
||||
color: #666666;
|
||||
text-decoration: none;
|
||||
}
|
@ -1,13 +1,15 @@
|
||||
import React from 'react';
|
||||
import { Navbar, NavbarBrand, NavLink } from 'reactstrap';
|
||||
import { Navbar, NavbarBrand } from 'reactstrap';
|
||||
import { Link } from 'react-router-dom';
|
||||
import './Navigation.css';
|
||||
|
||||
const Navigation = () => {
|
||||
return (
|
||||
<div>
|
||||
<Navbar color="dark" dark fixed="top">
|
||||
<NavbarBrand exact href="/" className="mr-auto">GoScrobble</NavbarBrand>
|
||||
<NavLink exact href="/">Home</NavLink>
|
||||
<NavLink href="/about">About</NavLink>
|
||||
<Link class="navLink" to="/">Home</Link>
|
||||
<Link class="navLink" to="/about">About</Link>
|
||||
</Navbar>
|
||||
</div>
|
||||
);
|
||||
|
@ -2,10 +2,11 @@ import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import './index.css';
|
||||
import App from './App';
|
||||
import { BrowserRouter } from 'react-router-dom'
|
||||
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<BrowserRouter>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
</BrowserRouter>,
|
||||
document.getElementById('root')
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user