Skip to content

Commit

Permalink
Merge pull request #12 from DavisCSClub/develop
Browse files Browse the repository at this point in the history
Sort members & style fix
  • Loading branch information
coreymason authored Sep 4, 2018
2 parents 89019ef + 8bea34c commit 1ab97a6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 65 deletions.
6 changes: 3 additions & 3 deletions components/profile/ProfileCard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ function ProfileCard({ name, bio, linkedInUrl, gitHubUrl, websiteUrl }) {

<ul className="profile-social-links">
<li>
{linkedInUrl && <a href={linkedInUrl}><FontAwesomeIcon icon={faLinkedIn} /></a>}
<a className={linkedInUrl === '#' ? 'nolink' : ''} href={linkedInUrl}><FontAwesomeIcon icon={faLinkedIn} /></a>
</li>
<li>
{gitHubUrl && <a href={gitHubUrl}><FontAwesomeIcon icon={faGithub} /></a>}
<a className={gitHubUrl === '#' ? 'nolink' : ''} href={gitHubUrl}><FontAwesomeIcon icon={faGithub} /></a>
</li>
<li>
{websiteUrl && <a href={websiteUrl}><FontAwesomeIcon icon={faGlobe} /></a>}
<a className={websiteUrl === '#' ? 'nolink' : ''} href={websiteUrl}><FontAwesomeIcon icon={faGlobe} /></a>
</li>
</ul>
</div>
Expand Down
16 changes: 10 additions & 6 deletions components/profile/ProfileCard/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
}
.profile-card {
min-height: 150px; /* temp */
background: #FFFFFF;
background: #FFFFFF;
width: 200px;
z-index: 2;
overflow: hidden;
overflow: hidden;
opacity: 1;
margin: 15px 15px;
-webkit-box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16), 0px 3px 6px rgba(0, 0, 0, 0.23);
box-shadow: 0px 3px 6px rgba(0 ,0, 0, 0.16), 0px 3px 6px rgba(0, 0, 0, 0.23);
-webkit-box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16), 0px 3px 6px rgba(0, 0, 0, 0.23);
box-shadow: 0px 3px 6px rgba(0 ,0, 0, 0.16), 0px 3px 6px rgba(0, 0, 0, 0.23);
}
.profile-card .card-header {
width: auto;
Expand Down Expand Up @@ -68,7 +68,7 @@
display: block;
float: none;
padding: 15px 0px 30px 0px;
background: #FFFFFF;
background: #FFFFFF;
color: #333333;
margin-top: -20px;
text-align: center;
Expand All @@ -80,7 +80,7 @@
float: none;
margin: 0px;
padding: 15px 20px;
background: #FFFFFF;
background: #FFFFFF;
margin-top: -20px;
text-align: center;
opacity: 1;
Expand Down Expand Up @@ -133,6 +133,10 @@
width: 24px !important;
}

.profile-social-links li a.nolink {
color: #95a5a6;
}

@-webkit-keyframes ripple {
0% {
transform: scale3d(0, 0, 0);
Expand Down
63 changes: 7 additions & 56 deletions members.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,48 +27,20 @@
"gitHubUrl": "#",
"websiteUrl": "#"
},
{
"name": "Dustin Cai",
"bio": "Student",
"linkedInUrl": "#",
"gitHubUrl": "#",
"websiteUrl": "#"
},
{
"name": "Brandon Lau",
"bio": "Student",
"linkedInUrl": "#",
"gitHubUrl": "#",
"websiteUrl": "#"
},
{
"name": "Alicia Siu",
"bio": "Student",
"linkedInUrl": "#",
"gitHubUrl": "#",
"websiteUrl": "#"
},
{
"name": "Elias Heffan",
"bio": "Student",
"linkedInUrl": "#",
"gitHubUrl": "#",
"websiteUrl": "#"
},
{
"name": "Vivienne Zing",
"bio": "Student",
"linkedInUrl": "#",
"gitHubUrl": "#",
"websiteUrl": "#"
},
{
"name": "Katie Kwak",
"bio": "Student",
"linkedInUrl": "#",
"gitHubUrl": "#",
"websiteUrl": "#"
},
{
"name": "Raja Vyshnavi Sriramoju",
"bio": "Student",
Expand Down Expand Up @@ -209,27 +181,13 @@
"gitHubUrl": "#",
"websiteUrl": "#"
},
{
"name": "Maxim Chiao",
"bio": "Student",
"linkedInUrl": "#",
"gitHubUrl": "#",
"websiteUrl": "#"
},
{
"name": "Jessica Ma",
"bio": "Student",
"linkedInUrl": "#",
"gitHubUrl": "#",
"websiteUrl": "#"
},
{
"name": "Kevin Lee",
"bio": "Student",
"linkedInUrl": "#",
"gitHubUrl": "#",
"websiteUrl": "#"
},
{
"name": "Travis Garcia",
"bio": "Student",
Expand Down Expand Up @@ -258,13 +216,6 @@
"gitHubUrl": "#",
"websiteUrl": "#"
},
{
"name": "Brandon Lau",
"bio": "Student",
"linkedInUrl": "#",
"gitHubUrl": "#",
"websiteUrl": "#"
},
{
"name": "Songwen Su",
"bio": "Student",
Expand Down Expand Up @@ -363,18 +314,18 @@
"gitHubUrl": "#",
"websiteUrl": "#"
},
{
"name": "Kimberly Lee",
"bio": "Student",
"linkedInUrl": "#",
"gitHubUrl": "#",
"websiteUrl": "#"
},
{
"name": "Nikhita Battula",
"bio": "Student",
"linkedInUrl": "#",
"gitHubUrl": "#",
"websiteUrl": "#"
},
{
"name": "Corey Mason",
"bio": "Former Officer & Webmaster",
"linkedInUrl": "https://linkedin.com/in/corey-mason",
"gitHubUrl": "https://github.com/coreymason",
"websiteUrl": "https://coreysmason.com"
}
]
1 change: 1 addition & 0 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default class HomePage extends React.Component {
static async getInitialProps() {
// This data may be moved online at a future date
const membersData = require('../members.json') || false; // eslint-disable-line global-require
membersData.sort((a, b) => a.name < b.name ? -1 : 1);
return { membersData };
}

Expand Down

0 comments on commit 1ab97a6

Please sign in to comment.