forked from E-Health/fred
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from PuraJuniper/SAGE-295-update-basic-or-adva…
…nced-cpg-page added minor fixes to landing page - top bar and spacing
- Loading branch information
Showing
1 changed file
with
39 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,55 @@ | ||
import React from "react"; | ||
import State from "./state"; | ||
import { useNavigate } from "react-router-dom"; | ||
|
||
import {Navbar, Nav, NavItem} from 'react-bootstrap'; | ||
|
||
export const LandingPage = () => { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<div className="container"> | ||
<div className="row justify-content-md-center" style={{marginBottom: 40}}> | ||
<div className="col-lg-1"></div> | ||
<div className="col-lg-2 "> | ||
<img src="../img/Juniper-CDS-colour.png" className="img-thumbnail"/> | ||
<> | ||
<Navbar className="navbar-custom"><Navbar.Brand>SAGE</Navbar.Brand></Navbar> | ||
<div className="container"> | ||
<div className="row justify-content-md-center" style={{ marginTop: 40, marginBottom: 40 }}> | ||
<div className="col-lg-1"></div> | ||
<div className="col-lg-2 "> | ||
<img src="../img/Juniper-CDS-colour.png" className="img-thumbnail" /> | ||
</div> | ||
<div className="col-lg-1"></div> | ||
</div> | ||
<div className="col-lg-1"></div> | ||
</div> | ||
<div className="row justify-content-md-center"> | ||
<div className="col col-lg-1 bg-secondary"></div> | ||
<div className="col-lg-2 bg-secondary text-center"> | ||
<p style={{marginTop: 60}}><span style={{color: "#E0C758", textAlign: "center", fontWeight: "bold"}}>Choose Account</span></p> | ||
<div className="row justify-content-md-center"> | ||
<div className="col col-lg-1 bg-secondary"></div> | ||
<div className="col-lg-2 bg-secondary text-center"> | ||
<p style={{ marginTop: 60 }}><span style={{ color: "#E0C758", textAlign: "center", fontWeight: "bold" }}>Choose Account</span></p> | ||
</div> | ||
<div className="col col-lg-1 bg-secondary"></div> | ||
</div> | ||
<div className="col col-lg-1 bg-secondary"></div> | ||
</div> | ||
<div className="row justify-content-md-center"> | ||
<div className="col-lg-1 bg-secondary"></div> | ||
<div className="col-lg-2 bg-secondary"> | ||
<button className="btn btn-secondary btn-block" style={{marginTop: 60}} onClick={(e) => { | ||
<div className="row justify-content-md-center"> | ||
<div className="col-lg-1 bg-secondary"></div> | ||
<div className="col-lg-2 bg-secondary"> | ||
<button className="btn btn-secondary btn-block" style={{ marginTop: 60 }} onClick={(e) => { | ||
State.get().bundle?.set("resources", []); | ||
State.get().set("mode", "basic") | ||
navigate('/basic-home') | ||
}}> | ||
Basic CPG | ||
</button> | ||
State.get().set("mode", "basic"); | ||
navigate('/basic-home'); | ||
} }> | ||
Basic CPG | ||
</button> | ||
</div> | ||
<div className="col-lg-1 bg-secondary"></div> | ||
</div> | ||
<div className="col-lg-1 bg-secondary" ></div> | ||
</div> | ||
<div className="row justify-content-md-center"> | ||
<div className="col-lg-1 bg-secondary"></div> | ||
<div className="col-lg-2 bg-secondary"> | ||
<button className="btn btn-secondary btn-block" style={{marginTop: 10, marginBottom: 100}} onClick={(e) => { | ||
State.get().ui.set("status", "advanced-cpg"); | ||
State.get().set("mode", "advanced"); | ||
}}> | ||
Advanced CPG | ||
</button> | ||
<div className="row justify-content-md-center"> | ||
<div className="col-lg-1 bg-secondary"></div> | ||
<div className="col-lg-2 bg-secondary"> | ||
<button className="btn btn-secondary btn-block" style={{ marginTop: 10, marginBottom: 100 }} onClick={(e) => { | ||
State.get().ui.set("status", "advanced-cpg"); | ||
State.get().set("mode", "advanced"); | ||
} }> | ||
Advanced CPG | ||
</button> | ||
</div> | ||
<div className="col-lg-1 bg-secondary"></div> | ||
</div> | ||
<div className="col-lg-1 bg-secondary"></div> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
} |