This repository was archived by the owner on Mar 9, 2021. It is now read-only.
File tree 3 files changed +41
-22
lines changed
3 files changed +41
-22
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+
3
+ export default props => (
4
+ < div >
5
+ < div >
6
+ < div className = "top_banner_root" >
7
+ < h1 className = "top_banner_headline" > { props . pageTitle } </ h1 >
8
+ < h2 > { props . pageSubTitle } </ h2 >
9
+ </ div >
10
+ < style jsx > { `
11
+ .top_banner_root {
12
+ background-color: #f4f7fb;
13
+ min-height: 200px;
14
+ text-align: center;
15
+ }
16
+ .top_banner_headline {
17
+ padding-top: 20px;
18
+ font-size: 4em;
19
+ color: #df1cb5;
20
+ font-weight: 900;
21
+ }
22
+ ` } </ style >
23
+ </ div >
24
+ </ div >
25
+ ) ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import fetch from 'isomorphic-unfetch';
3
3
import { Card , Divider , Dimmer , Loader } from 'semantic-ui-react' ;
4
4
5
5
import publicPage from '../hocs/public-page' ;
6
+ import TopBanner from '../components/top-banner' ;
6
7
import { baseEventsURL , futureEventsURL , pastEventsURL } from '../utils/urls' ;
7
8
import RowEvent from '../components/row-events' ;
8
9
@@ -98,10 +99,10 @@ class Events extends React.Component {
98
99
render ( ) {
99
100
return (
100
101
< div >
101
- < div className = "top_banner_root" >
102
- < h1 className = "top_banner_headline" > Events</ h1 >
103
- < h2 > Because you cannot change the world alone</ h2 >
104
- </ div >
102
+ < TopBanner
103
+ pageTitle = " Events"
104
+ pageSubTitle = " Because you cannot change the world alone"
105
+ / >
105
106
< main >
106
107
{ this . state . loading ? (
107
108
< Dimmer active >
@@ -124,17 +125,6 @@ class Events extends React.Component {
124
125
align-items: center;
125
126
flex-direction: column;
126
127
}
127
- .top_banner_root {
128
- background-color: #f4f7fb;
129
- min-height: 200px;
130
- text-align: center;
131
- }
132
- .top_banner_headline {
133
- padding-top: 20px;
134
- font-size: 4em;
135
- color: #df1cb5;
136
- font-weight: 900;
137
- }
138
128
` } </ style >
139
129
</ div >
140
130
) ;
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
3
- import Icon from '../components/icon ' ;
3
+ import TopBanner from '../components/top-banner ' ;
4
4
import publicPage from '../hocs/public-page' ;
5
5
6
6
export default publicPage ( ( ) => (
7
7
< div >
8
- < main >
9
- < Icon />
10
- < h3 > Under Construction, Coming Soon!...</ h3 >
11
- </ main >
8
+ < TopBanner
9
+ pageTitle = "Space"
10
+ pageSubTitle = "Physical spaces for collaboration, peer-learning and self-learning"
11
+ />
12
+ < main > llll</ main >
12
13
< style jsx > { `
13
14
main {
15
+ background-color: #ffffff;
16
+ padding-top: 30px;
17
+ padding-bottom: 30px;
18
+ padding-left: 30px;
19
+ padding-right: 30px;
14
20
min-height: calc(100vh - 70px);
15
- background: #f4f7fb;
16
- color: #314159;
17
21
display: flex;
18
22
justify-content: center;
19
23
align-items: center;
You can’t perform that action at this time.
0 commit comments