generated from ReCoded-Org/capstone-react-redux-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Built "meet our team" component (#80)
* built meet our team component * made component more reusable * Revert "made component more reusable" This reverts commit d72e6ca. * updated branch * managing conflicts * trying to pass CLI test * again, trying to pass cli test * deleted package lock and yarn.lock * app.js fixed * added missing dependency Co-authored-by: Allan <[email protected]> Co-authored-by: allan <[email protected]>
- Loading branch information
1 parent
78794e3
commit 76ea8e9
Showing
17 changed files
with
664 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { faLinkedin } from '@fortawesome/free-brands-svg-icons'; | ||
|
||
function MeetOurTeam({teamMembers}){ | ||
const memberCard = teamMembers.map((member)=>{ | ||
return( | ||
<div className="m-4"key={member.name}> | ||
<img className="rounded-full" src={member.src} alt={`${member.name} png`}/> | ||
<h3 className="text-3xl font-semibold text-accent m-2 text-center">{member.name}</h3> | ||
<h2 className="text-lg text-gray text-center">{member.position} | ||
<span className='m-2'> | ||
<a href={member.linkedin} rel="noreferrer" target="_blank"> | ||
<FontAwesomeIcon icon={faLinkedin} className='hover:text-blue-500 '/> | ||
</a> | ||
</span> | ||
</h2> | ||
</div> | ||
) | ||
}) | ||
return ( | ||
<section className="bg-gray-500/5"> | ||
<h1 className="text-5xl text-secondary text-center py-8 font-semibold"> | ||
Meet Our <span className="text-accent">Team</span></h1> | ||
<div className="grid md:grid-cols-3 place-content-center gap-x-20 gap-y-8 px-10"> | ||
{memberCard} | ||
</div> | ||
</section> | ||
) | ||
} | ||
|
||
export default MeetOurTeam; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import renderer from 'react-test-renderer'; | ||
import MeetOurTeam from '../MeetOurTeam.jsx'; | ||
import {teamMembers} from "../../../data/teamData"; | ||
|
||
it('renders Meet Our Team component correctly', () => { | ||
const tree = renderer | ||
.create(<MeetOurTeam teamMembers={teamMembers}/>) | ||
.toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); |
Oops, something went wrong.