Skip to content

Commit 99d0c40

Browse files
authored
Feat: made cards and developed event section (#123) (#171)
1 parent e34b800 commit 99d0c40

File tree

9 files changed

+297
-113
lines changed

9 files changed

+297
-113
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import React from 'react';
2+
import {Text, Image, StyleSheet, View} from 'react-native';
3+
4+
const Badge = (props) => {
5+
return (
6+
<View style={styles.container}>
7+
<Image style={styles.image} source={props.link} />
8+
<Text style={styles.description}>{props.text}</Text>
9+
</View>
10+
);
11+
};
12+
13+
const styles = StyleSheet.create({
14+
container: {
15+
flexDirection: 'row',
16+
flexWrap: 'wrap',
17+
marginTop: 16,
18+
},
19+
image: {
20+
width: 25,
21+
height: 25,
22+
tintColor: '#103B81',
23+
},
24+
description: {
25+
fontSize: 16,
26+
color: '#103B81',
27+
fontWeight: 200,
28+
marginLeft: 16,
29+
30+
}
31+
});
32+
33+
export default Badge;
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
import React from 'react';
2+
import {Text, StyleSheet, View, Linking} from 'react-native';
3+
import ScaledImage from '../../ScaledImage';
4+
import { withCard } from './../../../Decorators/Card';
5+
import Badge from './CardBadge';
6+
7+
8+
const EventCard = ({ props,links }) => {
9+
const {calendarIcon, timeIcon, locationIcon} = links;
10+
return (
11+
<View style={styles.card} >
12+
<ScaledImage width={286} source={props.highlights.source} />
13+
<Text style={styles.title}>{props.title}</Text>
14+
<Badge text={props.date} link={calendarIcon} />
15+
<Badge text={props.location} link={locationIcon} />
16+
<Badge text={props.timings} link={timeIcon} />
17+
<View style={{marginTop: 32}}>
18+
{props.description.map((detail,index) => (
19+
<Text
20+
style={styles.detailStyles}
21+
key={index}
22+
>
23+
{detail.par}
24+
</Text>
25+
))}
26+
</View>
27+
<Text style={styles.know_moreStyles}
28+
onPress={() => {Linking.openURL(props.know_more.link)}}
29+
>
30+
{props.know_more.par}
31+
</Text>
32+
</View>
33+
);
34+
};
35+
36+
const styles = StyleSheet.create({
37+
card: {
38+
flex: 1,
39+
width: 286,
40+
borderRadius: 4,
41+
overflow: 'hidden',
42+
},
43+
title: {
44+
color: '#103B81',
45+
fontWeight: '400',
46+
fontSize: 16,
47+
marginTop: 16,
48+
},
49+
detailStyles: {
50+
color: '#103B81',
51+
fontSize: 16,
52+
fontWeight: '200'
53+
},
54+
know_moreStyles: {
55+
color: '#103B81',
56+
fontSize: 16,
57+
fontWeight: '400',
58+
marginTop: 32,
59+
},
60+
})
61+
62+
export default withCard(EventCard);
63+

src/Components/Events/index.js

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,60 @@
1+
import React from 'react';
2+
import {View , StyleSheet, Text} from 'react-native';
3+
import EventCard from './Cards';
4+
import {getevents_highlights} from './../../content/events_and_highlights';
5+
import SectionSubheader from './../SectionSubheader';
6+
7+
const events_highlight = getevents_highlights();
8+
function Events () {
9+
return (
10+
<View style={styles.container} >
11+
<SectionSubheader
12+
title={events_highlight.sections[0].title}
13+
/>
14+
{events_highlight.sections[0].content.map((detail,index) => {
15+
return <Text style={styles.description} key={index}>{detail.par}</Text>;
16+
})}
17+
<View
18+
style={styles.cardContainer}
19+
>
20+
{events_highlight.sections[1].events.map((event_detail,index) => (
21+
<EventCard
22+
key={event_detail.title}
23+
props={event_detail}
24+
links={events_highlight.icon_links}
25+
backgroundColor="#e7edfd"
26+
padding={16}
27+
/>
28+
))}
29+
</View>
30+
</View>
31+
);
32+
}
33+
34+
const styles = StyleSheet.create({
35+
container: {
36+
width: '80%',
37+
alignItems: 'left',
38+
paddingLeft: 16,
39+
paddingRight: 16,
40+
marginTop: 32,
41+
},
42+
description: {
43+
flex: 1,
44+
marginTop: 16,
45+
paddingLeft: 16,
46+
fontSize: 18,
47+
flexGrow: 1,
48+
fontWeight: 150,
49+
color: '#103B81',
50+
textAlign: 'left',
51+
},
52+
cardContainer : {
53+
flexDirection: 'row',
54+
flexWrap: 'wrap',
55+
marginTop: 32,
56+
},
57+
});
158
import React, {useState} from 'react';
259
import SectionSubheader from '../SectionSubheader';
360
import GoogleCalendar from './GoogleCalendar';
@@ -79,4 +136,4 @@ function Events() {
79136
);
80137
}
81138

82-
export default Events;
139+
export default Events;

src/Components/Projects/ProjectCard/ProjectCardBadge/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const styles = StyleSheet.create({
2121
marginTop: 8,
2222
},
2323
image: {
24-
width: 24,
25-
height: 24,
24+
width: 32,
25+
height: 32,
2626
},
2727
title: {
2828
color: '#103B81',
213 Bytes
Loading
380 Bytes
Loading
536 Bytes
Loading
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
const events_highlight = {
2+
sections: [
3+
{
4+
title: 'Our Events and Highlights',
5+
content: [
6+
{
7+
par: 'AnitaB.org Open Source Events convenes members from all backgrounds and levels of expertise throughout the year to bridge the diversity gap in Open Source development.'
8+
},
9+
{
10+
par: 'Our events aim to give members insights from industry experts and female-identifying leaders on a variety of topics promoting Open Source, and covering stages of Open Source development right from Introduction to Quality Assurance.'
11+
}
12+
]
13+
},
14+
{
15+
events: [
16+
{
17+
title: 'Why I contribute to Open source?',
18+
date: 'July 4, 2020',
19+
location: 'Virtual',
20+
timings: '1am (UTC)',
21+
description: [
22+
{
23+
par: 'Heard about Open Source, not sure what’s in it for you? Need a boost to begin?'
24+
},
25+
{
26+
par: 'This event will give you an understanding of the motivation behind individuals who contribute to open source'
27+
},
28+
{
29+
par: 'Open Source contributors with varying experiences will be there to share their journey, and answer your questions!'
30+
}
31+
],
32+
highlights:{
33+
source: require('./../assets/events_and_highlights/1.png'),
34+
},
35+
know_more:
36+
{
37+
par: 'Feel free to contact AnitaB.org Open Source on Zulip if you need any further information about this event.',
38+
link: 'https://anitab-org.zulipchat.com',
39+
}
40+
},
41+
{
42+
title: 'Engaging Open Source community in Quality Assurance',
43+
date: 'August 9, 2020',
44+
location: 'Virtual',
45+
timings: '9am (EST)',
46+
description: [
47+
{
48+
par: 'Wondered how Quality Assurance (QA) for software is performed in companies or what are the roles and responsibilities of an QA engineer?'
49+
},
50+
{
51+
par: 'This talk will help members grasp concepts of traditional QA methods such as formalized testing, writing and tracking bugs which are equally relevant for Open Source development.'
52+
},
53+
{
54+
par: 'We will explore the contrasting nature of software quality assurance under the Open Source model and traditional software development models. Consequently, their translation in practical advantages.'
55+
},
56+
{
57+
par: 'It will draw attention to pragmatic quality assurance practices in upstream Open Source projects like Fedora.'
58+
},
59+
{
60+
par: 'This will certainly give members a head-start by laying out some of the best practices and common challenges faced while quality testing Open Source products.'
61+
}
62+
],
63+
highlights:{
64+
source: require('./../assets/events_and_highlights/2.png'),
65+
},
66+
know_more: {
67+
par: 'Feel free to contact AnitaB.org Open Source on Zulip if you need any further information about this event.',
68+
link: 'https://anitab-org.zulipchat.com',
69+
}
70+
},
71+
{
72+
title: 'Hopper India 2020',
73+
date: 'August 6 — August 7,2020',
74+
location: 'Virtual',
75+
timings: '9:30am - 4pm (IST)',
76+
description: [
77+
{
78+
par: 'Our vibrant community of women in technology from Chennai, Delhi, Hyderabad, and Pune is coming together to present this two-day virtual event modeled after the popular Grace Hopper Celebration India (GHCI) conference for women in technology.'
79+
},
80+
{
81+
par: 'This immersive event brings together women technologists at all levels from industry, academia, research and startups to build connections, learn, and advance their careers.'
82+
},
83+
{
84+
par: 'Attend inspiring keynotes and sessions led by charismatic women carrying a zeal to learn, grow and lead.'
85+
},
86+
{
87+
par: 'Don’t miss out on the opportunity to network with peers, and gain important resources to help you succeed in and further your career.'
88+
},
89+
{
90+
par: 'Our Career Fair, hosting tech giants, research labs, and financial-tech companies, offers immense job opportunities to both students and professionals.'
91+
}
92+
],
93+
highlights:{
94+
source: require('./../assets/events_and_highlights/3.png'),
95+
},
96+
know_more: {
97+
par: 'Visit our official Grace Hopper Celebration India website for details about registration, eligibility, scholarships, conference sessions and FAQs.',
98+
link: 'https://ghcindia.anitab.org/',
99+
}
100+
},
101+
{
102+
title: 'Grace Hopper Celebration 2020',
103+
date: 'September 29 — October 3,2020',
104+
location: 'Virtual',
105+
timings: '11am - 3pm (PT)',
106+
description: [
107+
{
108+
par: 'AnitaB.org’s flagship event Grace Hopper Celebration brings the research and career interests of women in computing to the forefront.'
109+
},
110+
{
111+
par: 'Grace Hopper Celebration (GHC), world’s largest gathering of women technologists, commemorates, celebrates, fosters and encourages the magnificent women in technology who dared to shed their inhibitions, and recognized the genius in them.'
112+
},
113+
{
114+
par: 'Attend inspiring keynotes and sessions, network with peers, and gain important resources to help you succeed in and further your career.'
115+
},
116+
{
117+
par: 'The celebration consists of a combination of technical sessions, poster sessions, career fairs, award ceremonies and more.'
118+
}
119+
],
120+
highlights:{
121+
source: require('./../assets/events_and_highlights/4.png'),
122+
},
123+
know_more:{
124+
par: 'Visit our official Grace Hopper Celebration website for details about registration, eligibility, scholarships, conference sessions and FAQs.',
125+
link: 'https://ghc.anitab.org',
126+
}
127+
}
128+
]
129+
}
130+
],
131+
icon_links: {
132+
calendarIcon: require('./../assets/events_and_highlights/calendar.png'),
133+
locationIcon: require('./../assets/events_and_highlights/location.png'),
134+
timeIcon: require('./../assets/events_and_highlights/time.png'),
135+
},
136+
};
137+
138+
139+
export const getevents_highlights = () => {
140+
return events_highlight;
141+
};

0 commit comments

Comments
 (0)