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.

Events page updated #11

Merged
merged 17 commits into from
Oct 17, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
events page is updated with meetup api (WIP)
  • Loading branch information
M-ZubairAhmed committed Sep 22, 2017
commit 824651d0ba4952ed9f127b93541b70c88cb3d941
4 changes: 4 additions & 0 deletions common/urls.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const pastEventsMeetupURL =
'https://api.meetup.com/freeCodeCamp-Hyderabad/events?desc=1&photo-host=public&page=100&sig_id=216741149&status=past&sig=1c4bfe2215a979755e5f59989ff43edb0351f687';

export default pastEventsMeetupURL;
5 changes: 3 additions & 2 deletions components/icon.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

export default () =>
export default () => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<path
fill="#6B4841"
Expand Down Expand Up @@ -45,4 +45,5 @@ export default () =>
height: 200px;
}
`}</style>
</svg>;
</svg>
);
23 changes: 23 additions & 0 deletions components/row-events.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from 'react';
import { Card, Icon } from 'semantic-ui-react';

const convertTime = time => {
const date = new Date(time);
return date.toDateString();
};

const RowEvent = props => (
<Card fluid>
<Card.Content>
<Card.Header>{props.name}</Card.Header>
<Card.Meta>{convertTime(props.time)}</Card.Meta>
{/* <Card.Description as="string">{props.description}</Card.Description> */}
</Card.Content>
<Card.Content extra>
<Icon circular name="users" />
{`${props.yesCount} attended`}
</Card.Content>
</Card>
);

export default RowEvent;
Loading