Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit cd41862

Browse files
author
z
committed
changes asper designer
1 parent 869647b commit cd41862

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

components/events/event-card.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const Card = styled(Flex)`
1717
background: #fff;
1818
border: 1px solid ${graySecondary};
1919
min-height: 120px;
20+
color: #8393a7;
2021
& .eventPhoto {
2122
height: 120px;
2223
width: 100%;
@@ -34,12 +35,12 @@ const Card = styled(Flex)`
3435
}
3536
& .secondaryText {
3637
${fontSize};
37-
color: #36434d;
38+
color: #8393a7;
3839
}
3940
& .icons {
4041
font-size: 1.2rem;
4142
margin-right: 0.25rem;
42-
color: #36434d;
43+
color: #8393a7;
4344
}
4445
& .rsvp {
4546
text-align: right;
@@ -66,7 +67,8 @@ const Card = styled(Flex)`
6667

6768
const CardTitle = styled.h3`
6869
${space};
69-
font-weight: 650;
70+
color: #374355;
71+
font-weight: 400;
7072
border-bottom: 1px solid ${graySecondary};
7173
`;
7274

pages/events.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { space } from 'styled-system';
66

77
import Layout from '../components/common/layout';
88
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';
1010
import { baseEventsURL, futureEventsURL, pastEventsURL, imagePlaceholderURL } from '../utils/urls';
1111
import EventCard from '../components/events/event-card';
1212

@@ -16,6 +16,12 @@ const EventsSection = styled.section`
1616
position: relative;
1717
& .loadmore_div {
1818
text-align: center;
19+
margin-top: 2rem;
20+
margin-bottom: 0.8rem;
21+
}
22+
& .event_type_title {
23+
color: #374355;
24+
font-weight: bold;
1925
}
2026
`;
2127

@@ -107,7 +113,7 @@ export default class Events extends React.Component {
107113

108114
renderLoadMoreButton(eventsTotalLength, loadLimit, isPastEvent) {
109115
return loadLimit >= eventsTotalLength ? null : (
110-
<div className="loadmore_div">
116+
<div className="loadmore_div" mb={[5, 5]}>
111117
<Button inverted medium onClick={event => this.loadMore(event, isPastEvent)}>
112118
Load more
113119
</Button>
@@ -133,18 +139,18 @@ export default class Events extends React.Component {
133139
<Container>
134140
<Flex pb={[2, 4]} direction="column" align="center" justify="center">
135141
<Box width={[1, 0.75]}>
136-
<Title inverted color="#222">
142+
<h3 className="event_type_title" inverted color="#222">
137143
Upcoming Events
138-
</Title>
144+
</h3>
139145
{this.renderEvents(this.state.futureEvents, this.state.futureEventsLoadLimit)}
140146
{this.renderLoadMoreButton(this.state.futureEvents.length, this.state.futureEventsLoadLimit, false)}
141147
</Box>
142148
</Flex>
143149
<Flex direction="column" align="center" justify="center">
144150
<Box width={[1, 0.75]}>
145-
<Title inverted color="#222">
151+
<h3 className="event_type_title" inverted color="#222">
146152
Recent Events
147-
</Title>
153+
</h3>
148154
{this.renderEvents(this.state.pastEvents, this.state.pastEventsLoadLimit)}
149155
{this.renderLoadMoreButton(this.state.pastEvents.length, this.state.pastEventsLoadLimit, true)}
150156
</Box>

0 commit comments

Comments
 (0)