@@ -6,7 +6,7 @@ import { space } from 'styled-system';
6
6
7
7
import Layout from '../components/common/layout' ;
8
8
import BannerSection from '../components/common/banner' ;
9
- import { Container , Title , SubTitle , Button } from '../utils/base.styles' ;
9
+ import { Container , SubTitle , Button } from '../utils/base.styles' ;
10
10
import { baseEventsURL , futureEventsURL , pastEventsURL , imagePlaceholderURL } from '../utils/urls' ;
11
11
import EventCard from '../components/events/event-card' ;
12
12
@@ -16,6 +16,12 @@ const EventsSection = styled.section`
16
16
position: relative;
17
17
& .loadmore_div {
18
18
text-align: center;
19
+ margin-top: 2rem;
20
+ margin-bottom: 0.8rem;
21
+ }
22
+ & .event_type_title {
23
+ color: #374355;
24
+ font-weight: bold;
19
25
}
20
26
` ;
21
27
@@ -107,7 +113,7 @@ export default class Events extends React.Component {
107
113
108
114
renderLoadMoreButton ( eventsTotalLength , loadLimit , isPastEvent ) {
109
115
return loadLimit >= eventsTotalLength ? null : (
110
- < div className = "loadmore_div" >
116
+ < div className = "loadmore_div" mb = { [ 5 , 5 ] } >
111
117
< Button inverted medium onClick = { event => this . loadMore ( event , isPastEvent ) } >
112
118
Load more
113
119
</ Button >
@@ -133,18 +139,18 @@ export default class Events extends React.Component {
133
139
< Container >
134
140
< Flex pb = { [ 2 , 4 ] } direction = "column" align = "center" justify = "center" >
135
141
< Box width = { [ 1 , 0.75 ] } >
136
- < Title inverted color = "#222" >
142
+ < h3 className = "event_type_title" inverted color = "#222" >
137
143
Upcoming Events
138
- </ Title >
144
+ </ h3 >
139
145
{ this . renderEvents ( this . state . futureEvents , this . state . futureEventsLoadLimit ) }
140
146
{ this . renderLoadMoreButton ( this . state . futureEvents . length , this . state . futureEventsLoadLimit , false ) }
141
147
</ Box >
142
148
</ Flex >
143
149
< Flex direction = "column" align = "center" justify = "center" >
144
150
< Box width = { [ 1 , 0.75 ] } >
145
- < Title inverted color = "#222" >
151
+ < h3 className = "event_type_title" inverted color = "#222" >
146
152
Recent Events
147
- </ Title >
153
+ </ h3 >
148
154
{ this . renderEvents ( this . state . pastEvents , this . state . pastEventsLoadLimit ) }
149
155
{ this . renderLoadMoreButton ( this . state . pastEvents . length , this . state . pastEventsLoadLimit , true ) }
150
156
</ Box >
0 commit comments