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 824651d

Browse files
author
M-ZubairAhmed
committed
events page is updated with meetup api (WIP)
1 parent 7b3c54f commit 824651d

File tree

7 files changed

+7821
-5673
lines changed

7 files changed

+7821
-5673
lines changed

common/urls.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const pastEventsMeetupURL =
2+
'https://api.meetup.com/freeCodeCamp-Hyderabad/events?desc=1&photo-host=public&page=100&sig_id=216741149&status=past&sig=1c4bfe2215a979755e5f59989ff43edb0351f687';
3+
4+
export default pastEventsMeetupURL;

components/icon.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
export default () =>
3+
export default () => (
44
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
55
<path
66
fill="#6B4841"
@@ -45,4 +45,5 @@ export default () =>
4545
height: 200px;
4646
}
4747
`}</style>
48-
</svg>;
48+
</svg>
49+
);

components/row-events.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import React from 'react';
2+
import { Card, Icon } from 'semantic-ui-react';
3+
4+
const convertTime = time => {
5+
const date = new Date(time);
6+
return date.toDateString();
7+
};
8+
9+
const RowEvent = props => (
10+
<Card fluid>
11+
<Card.Content>
12+
<Card.Header>{props.name}</Card.Header>
13+
<Card.Meta>{convertTime(props.time)}</Card.Meta>
14+
{/* <Card.Description as="string">{props.description}</Card.Description> */}
15+
</Card.Content>
16+
<Card.Content extra>
17+
<Icon circular name="users" />
18+
{`${props.yesCount} attended`}
19+
</Card.Content>
20+
</Card>
21+
);
22+
23+
export default RowEvent;

0 commit comments

Comments
 (0)