Skip to content

Commit

Permalink
Create basic welcome page
Browse files Browse the repository at this point in the history
Relates #66
  • Loading branch information
mkatenolan committed Oct 7, 2019
1 parent 2daacc9 commit c87507d
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import React from 'react';
import './App.css';
import {BrowserRouter as Router, Route, Link} from 'react-router-dom';
import PrivacyPolicy from './components/PrivacyPolicy/PrivacyPolicy';
import Welcome from './components/Welcome/Welcome';

function App() {
return (
<div className="App">

<Router>
<Route exact path="/" component={PrivacyPolicy} />
<Route path="/welcome" component={Welcome} />
</Router>
</div>
);
Expand Down
5 changes: 4 additions & 1 deletion src/components/PrivacyPolicy/PrivacyPolicy.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import React from 'react';

import {BrowserRouter as Router, Route, Link} from 'react-router-dom';

const PrivacyPolicy = () => {
return (
<div>
<p> HELLOOOOO </p>
<Link to="/welcome" >Go</Link>
</div>
)
}

Expand Down
Empty file.
15 changes: 15 additions & 0 deletions src/components/Welcome/Welcome.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react';

const Welcome = () => {
return (
<div>
<h1>Welcome</h1>
<p> Welcome to the My Body Back app </p>
<img src="#"/><p>This icon will take you to the "Support & Techniques" section </p>
<img src="#"/><p>This icon will take you to the "Feeling Overwhelmed" section </p>
<img src="#"/><p>This icon will take you to the "My Appointment" section </p>
</div>
)
}

export default Welcome;
Empty file.

0 comments on commit c87507d

Please sign in to comment.