Skip to content

Commit 91056df

Browse files
committed
Refactor start and demo pages
1 parent a1a6d1a commit 91056df

File tree

2 files changed

+26
-68
lines changed

2 files changed

+26
-68
lines changed

packages/client/src/pages/DemoPage/index.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
import React from 'react'
22
import { Link } from 'react-router-dom'
3-
import Map from './Map'
3+
import Map from '../../patterns/molecules/map/Map'
44
import { startPageRoute } from '../../routes'
5+
import Header from '../../patterns/molecules/navigation/Header'
56

67
const DemoReactPage = () => {
78
return (
89
<div>
9-
<Link to={startPageRoute}>Back to Start Page</Link>
10-
<Map />
10+
<Header>Codestar Streams</Header>
11+
<div className="d-flex flex-wrap flex-lg-nowrap">
12+
<div className="width-full">
13+
<div className="border p-3">
14+
<Link to={startPageRoute}>
15+
<button className="btn-link" type="button">Back to Start Page</button>
16+
</Link>
17+
</div>
18+
<div className="border p-3">
19+
<Map />
20+
</div>
21+
</div>
22+
</div>
1123
</div>
1224
)
1325
}

packages/client/src/pages/StartPage/index.js

Lines changed: 11 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
import React from 'react'
2-
import { Link } from 'react-router-dom'
3-
import {
4-
demoPageRoute,
5-
} from '../../routes'
6-
7-
const style = {
8-
'position': '-webkit-sticky',
9-
'position': 'sticky',
10-
'top': 0,
11-
'left': 0,
12-
'right': 0,
13-
'zIndex': 101
14-
}
2+
import Header from '../../patterns/molecules/navigation/Header'
3+
import SideBar from '../../patterns/molecules/navigation/SideBar'
4+
import HeroBanner from '../../patterns/molecules/banner/HeroBanner'
155

166
const StartPage = () => {
177
window.scrollTo({
@@ -22,59 +12,15 @@ const StartPage = () => {
2212

2313
return (
2414
<div>
25-
<div className="bg-gray-dark" style={style}>
26-
<div className="main-nav d-flex flex-justify-between px-3 pl-md-4 pr-md-4 py-3 box-shadow bg-gray-dark Details js-details-container">
27-
<div className="d-flex flex-self-center flex-lg-auto mr-lg-2">
28-
<div className="flex-self-center Details-content--shown">
29-
<div className="dropdown js-menu-container js-select-menu">
30-
<h1 className="h4 text-normal">
31-
<button className="btn-link text-white link-white no-underline js-menu-target" type="button" aria-haspopup="true" aria-expanded="false">
32-
Codestar Streams
33-
</button>
34-
</h1>
35-
</div>
36-
</div>
37-
</div>
38-
</div>
39-
</div>
15+
<Header>Codestar Streams</Header>
4016
<div className="d-flex flex-wrap flex-lg-nowrap">
41-
<nav id="navigation" className="sidebar flex-column flex-justify-start overflow-auto border-right bg-gray-light pb-4" data-pjax="">
42-
<ul className="list-style-none">
43-
<li className="px-4 my-4">
44-
<span className="position-relative f4 d-block text-gray-dark">
45-
Demo
46-
</span>
47-
<ul className="pt-2 list-style-none">
48-
<li className="">
49-
<Link to={demoPageRoute} className="position-relative f5 py-1 d-block">
50-
Transport
51-
<span className="position-absolute right-0">
52-
<span className="text-green tooltipped tooltipped-nw" aria-label="New release">
53-
<svg height="18" className="octicon octicon-primitive-dot v-align-text-top" viewBox="0 0 8 16" version="1.1" width="9" aria-hidden="true">
54-
<path fillRule="evenodd" d="M0 8c0-2.2 1.8-4 4-4s4 1.8 4 4-1.8 4-4 4-4-1.8-4-4z"></path>
55-
</svg>
56-
</span>
57-
</span>
58-
</Link>
59-
</li>
60-
</ul>
61-
</li>
62-
<li className="mt-4 border-bottom"></li>
63-
</ul>
64-
</nav>
65-
<div className="md-order-1 d-flex flex-lg-column flex-auto flex-wrap">
66-
<div className="flex-row width-full bg-blue py-3 py-lg-6">
67-
<div className="main-content mx-auto py-4 px-3 px-md-6 px-lg-3 text-white">
68-
<div className="">
69-
<h1 className="f000-light mb-4">Codestar Streams</h1>
70-
<div className="f2-light pb-4">
71-
Streaming Platform Demo
72-
</div>
73-
</div>
74-
</div>
75-
</div>
76-
<div className="flex-row main-content my-6 mx-auto px-3 px-md-6 px-lg-3"></div>
77-
</div>
17+
<SideBar />
18+
<HeroBanner>
19+
<h1 className="f000-light mb-4">Codestar Streams</h1>
20+
<div className="f2-light pb-4">
21+
Streaming Platform Demo
22+
</div>
23+
</HeroBanner>
7824
</div>
7925
</div>
8026
)

0 commit comments

Comments
 (0)