1
1
import React from 'react' ;
2
- import AnchorLink from 'react-anchor-link-smooth-scroll' ;
3
2
import { Container , Card , SectionHeading } from 'components/common' ;
4
- import { Wrapper , Grid , Item , Content } from './styles' ;
5
- import jg from 'assets/images/jgonzales_from_unsplash.jpg' ;
3
+ import { Wrapper , SmallWrapper , Grid , Item , EventsHeader , AttributeItem , EventImage } from './styles' ;
4
+ import funinthesun from 'assets/images/funinthesun.jpeg'
5
+ import opendataday from 'assets/images/opendataday.png'
6
+ import codeforthecount from 'assets/images/codeforthecount.jpeg'
7
+ import pinMarker from 'assets/icons/pinMarker.svg' ;
8
+ import calendar from 'assets/icons/calendar.svg' ;
6
9
7
- export function Events ( ) {
8
- return (
9
- < Wrapper as = { Container } id = "events" >
10
- < SectionHeading > Events</ SectionHeading >
11
10
12
- </ Wrapper >
11
+ export const Events = ( ) => (
12
+ < Wrapper as = { Container } id = "events" >
13
+ < SectionHeading > Events</ SectionHeading >
14
+ < SmallWrapper >
15
+ < EventsHeader >
16
+ < h2 >
17
+ Upcoming Events
18
+ </ h2 >
19
+ < hr > </ hr >
20
+ </ EventsHeader >
21
+ < Grid >
22
+ < EventCard
23
+ url = "#"
24
+ name = "Example Event"
25
+ time = "Sunday, March 16 2021"
26
+ location = "Dallas, TX"
27
+ description = "This is example text for a hypothetical fun event hosted by CFD"
28
+ image = { funinthesun }
29
+ />
30
+ </ Grid >
31
+ </ SmallWrapper >
32
+
33
+ < SmallWrapper >
34
+ < EventsHeader >
35
+ < h2 >
36
+ Past Events
37
+ </ h2 >
38
+ < hr > </ hr >
39
+ </ EventsHeader >
40
+ < Grid >
41
+ < EventCard
42
+ url = "https://www.meetup.com/Code-for-Dallas/events/268938364/"
43
+ name = "DFW Open Data Day 2020"
44
+ time = "Saturday, March 6 2020"
45
+ location = "UNT at Frisco"
46
+ description = "An event where we coded for city governments, using open and public data to gain valuable insights and do cool things."
47
+ image = { opendataday }
48
+ />
49
+ < EventCard
50
+ url = "https://www.meetup.com/Code-for-Dallas/events/267278061/"
51
+ name = "Creatives for the Count"
52
+ time = "Thursday, January 9 2020"
53
+ location = "Dallas, TX"
54
+ description = "Creatives from around the Dallas area meet up and create cool resources to promote the 2020 census."
55
+ image = { codeforthecount }
56
+ />
57
+ </ Grid >
58
+ </ SmallWrapper >
59
+ </ Wrapper >
60
+ ) ;
61
+
62
+ function EventCard ( props ) {
63
+ return (
64
+ < Item as = "a" href = { props . url } target = "_blank" rel = "noopener noreferrer" >
65
+
66
+ < Card >
67
+ { /* <img style={{borderRadius: "50%", width: "50%"}} src={props.thumbnail} alt={"Picture of " + props.name} /> */ }
68
+ < h3 > { props . name } </ h3 >
69
+ < AttributeItem >
70
+ < img src = { calendar } alt = "calendar" />
71
+ { props . time }
72
+ </ AttributeItem >
73
+ < AttributeItem >
74
+ < img src = { pinMarker } alt = "pin marker" />
75
+ { props . location }
76
+ </ AttributeItem >
77
+ < p > { props . description } </ p >
78
+ < EventImage >
79
+ < img src = { props . image } > </ img >
80
+ </ EventImage >
81
+ </ Card >
82
+ </ Item >
83
+
13
84
)
14
- }
85
+ }
0 commit comments