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

Skip to content
This repository was archived by the owner on Jul 31, 2020. It is now read-only.

Commit 94759d5

Browse files
committed
leadership section updates
1 parent 29dcbde commit 94759d5

File tree

4 files changed

+82
-0
lines changed

4 files changed

+82
-0
lines changed

components/leadershipCard.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import PropTypes from 'prop-types'
2+
3+
const Leadership = props => {
4+
return (
5+
<div className="card leadership-card">
6+
<div className="card-image">
7+
<figure className="image is-4by3">
8+
<img
9+
src="https://bulma.io/images/placeholders/1280x960.png"
10+
alt={props.profile.name}
11+
></img>
12+
</figure>
13+
</div>
14+
<div className="card-content">
15+
<div className="columns">
16+
<div className="column is-half">
17+
<p className="title is-3">{props.profile.title}</p>
18+
</div>
19+
<div className="column is-half">
20+
<p className="title is-4">{props.profile.name}</p>
21+
<p className="subtitle is-6">{props.profile.handle}</p>
22+
</div>
23+
</div>
24+
<div className="content">{props.profile.bio}</div>
25+
</div>
26+
</div>
27+
)
28+
}
29+
30+
Leadership.propTypes = {
31+
profile: PropTypes.object.isRequired,
32+
name: PropTypes.string.isRequired,
33+
handle: PropTypes.string.isRequired,
34+
bio: PropTypes.string.isRequired,
35+
title: PropTypes.string.isRequired,
36+
}
37+
export default Leadership

pages/about.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import React from 'react'
22
import Page from '../components/page'
33
import HeroImage from '../components/hero-image'
4+
// import Leadership from '..//components/leadership'
5+
import LeadershipCard from '..//components/leadershipCard'
6+
import Leaders from '../static/leadership.json'
47

58
const About = () => (
69
<Page title="">
@@ -86,6 +89,15 @@ const About = () => (
8689
</div>
8790
</div>
8891
<h2 className="subtitle is-2 content">Leadership</h2>
92+
<div className="columns leadership">
93+
{Leaders.map(profile => {
94+
return (
95+
<div className="column is-one-third" key={profile.handle}>
96+
<LeadershipCard profile={profile} />
97+
</div>
98+
)
99+
})}
100+
</div>
89101
<div className="content container">add content</div>
90102
<h2 className="subtitle is-2">Sponsors</h2>
91103
<div className="content container">add content</div>

static/leadership.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[
2+
{
3+
"name": "Tim Leisman",
4+
"title": "Brigade Captain",
5+
"handle": "@tim",
6+
"bio": "Tim Leisman is the current captain of Code for Greensboro. He is a civic tech enthusiast, graduate of Guilford College and UNCG's MPA program, and works full time at the Center for Creative Leadership."
7+
},
8+
{
9+
"name": "rob",
10+
"title": "rob title",
11+
"handle": "@robhandle",
12+
"bio": "rob bio"
13+
},
14+
{
15+
"name": "jordan",
16+
"title": "jordan title",
17+
"handle": "@jordanhandle",
18+
"bio": "jordan bio"
19+
},
20+
{
21+
"name": "ethan",
22+
"title": "ethan title",
23+
"handle": "@ethanhandle",
24+
"bio": "ethan bio"
25+
}
26+
]

styles.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,13 @@ footer a:hover {
187187
.alignment-left {
188188
margin: 0;
189189
}
190+
.leadership {
191+
flex-wrap: wrap;
192+
}
193+
194+
.leadership-card {
195+
margin-top: 2vh;
196+
}
190197

191198
.projects .card-equal-height {
192199
display: flex;

0 commit comments

Comments
 (0)