Skip to content

Commit

Permalink
Refined team-member component and props, added new team members and c…
Browse files Browse the repository at this point in the history
…ontact links, styled team-members section.
  • Loading branch information
FurrerW committed Oct 4, 2024
1 parent fd8f70b commit fb86707
Show file tree
Hide file tree
Showing 6 changed files with 212 additions and 138 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@
"clsx": "^2.1.0",
"geist": "^1.2.2",
"immer": "^10.1.1",
"lucide-react": "^0.312.0",
"lucide-react": "^0.447.0",
"next": "^14.1.1",
"node-appwrite": "^13.0.0",
"postcss": "8.4.29",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.51.3",
"react-hot-toast": "^2.4.1",
"react-icons": "^5.3.0",
"tailwind-merge": "^2.2.2",
"tailwindcss": "3.3.3",
"tailwindcss-animate": "^1.0.7",
Expand Down
24 changes: 18 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

83 changes: 0 additions & 83 deletions stories/TeamMember.tsx

This file was deleted.

152 changes: 152 additions & 0 deletions stories/TeamMembers.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
import React from 'react';
import {
FaLinkedin,
FaXTwitter,
FaGithub,
FaLinkedinIn,
} from 'react-icons/fa6';

// Team Members Arrays
const TeamMembersArray = [
{
name: 'Shashi Lo',
role: 'Engineering Manager',
github: 'https://github.com/shashilo',
linkedin: 'https://www.linkedin.com/in/shashilo/',
twitter: 'https://x.com/shashiwhocodes',
},
{
name: 'Alex Appleget',
role: 'Software Engineer',
github: 'https://github.com/alexappleget',
linkedin: 'https://www.linkedin.com/in/alex-appleget/',
twitter: 'https://x.com/alexlikescoding',
},
{
name: 'Richard Choi',
role: 'Developer Relations Engineer',
github: 'https://github.com/choir27',
linkedin: 'https://www.linkedin.com/in/richard-choir/',
twitter: 'https://x.com/choir241',
},
{
name: 'Ryan Furrer',
role: 'UX Engineer',
github: 'https://github.com/ryandotfurrer',
linkedin: 'https://www.linkedin.com/in/ryanfurrer/',
twitter: 'https://x.com/ryandotfurrer',
},
{
name: 'Walter Furrer',
role: 'Documentation Engineer',
github: 'https://github.com/FurrerW',
linkedin: 'https://www.linkedin.com/in/furrerw/',
twitter: 'https://x.com/furrerw',
},
{
name: 'Corina Murg',
role: 'Accessibility Specialist',
github: 'https://github.com/CorinaMurg',
linkedin: 'https://www.linkedin.com/in/corinamurg/',
twitter: 'https://x.com/CorinaMurg',
},
{
name: 'Mai Vang',
role: 'Documentation Engineer',
github: 'https://github.com/vmaineng',
linkedin: 'https://www.linkedin.com/in/mai-vang-swe/',
twitter: 'https://x.com/MaiVangSWE',
},
{
name: 'Cody Epstein',
role: 'UX Engineer',
github: '',
linkedin: '',
twitter: 'https://www.linkedin.com/in/cody-epstein/',
},
{
name: 'Michael Larocca',
role: 'Documentation Engineer',
github: '',
linkedin: 'https://www.linkedin.com/in/michaeljudelarocca/',
twitter: 'https://x.com/MikeJudeLarocca',
},
{
name: 'Danielle Lindblom',
role: 'Frontend Engineer',
github: 'https://github.com/Danielle254',
linkedin: 'https://www.linkedin.com/in/danielle-lindblom/',
twitter: '',
},
];

interface TeamMemberProps {
github?: string;
linkedin?: string;
name: string;
role: string;
twitter?: string;
}

const TeamMembers: React.FC = () => {
const sortedTeamMembers = [...TeamMembersArray].sort((a, b) => {
// Put Shashi Lo first
if (a.name === 'Shashi Lo') return -1;
if (b.name === 'Shashi Lo') return 1;

// For the rest, sort by last name
const lastNameA = a.name.split(' ').pop() || '';
const lastNameB = b.name.split(' ').pop() || '';
return lastNameA.localeCompare(lastNameB);
});

return (
<div className="team-members-container m-auto py-4 grid grid-cols-1 gap-y-8 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
{sortedTeamMembers.map((member) => (
<div
key={member.name}
className="flex flex-col justify-around px-2 m-auto h-28 w-48 outline outline-outline rounded duration-300 hover:outline-accent-foreground"
>
<div>
<p className="font-bold">{member.name}</p>
<p>{member.role}</p>
<div className="flex gap-2 pt-2">
{member.github && (
<a
href={member.github}
target="_blank"
rel="noreferrer"
className="duration-300 hover:rotate-12 hover:scale-125"
>
<FaGithub size={20} />
</a>
)}
{member.linkedin && (
<a
href={member.linkedin}
target="_blank"
rel="noreferrer"
className="duration-300 hover:rotate-12 hover:scale-125"
>
<FaLinkedin size={20} />
</a>
)}
{member.twitter && (
<a
href={member.twitter}
target="_blank"
rel="noreferrer"
className="duration-300 hover:rotate-12 hover:scale-125"
>
<FaXTwitter size={20} />
</a>
)}
</div>
</div>
</div>
))}
</div>
);
};

export default TeamMembers;
50 changes: 2 additions & 48 deletions stories/Welcome.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ import blogRecorderLogo from './assets/blogRecorderLogo.svg';
import frontendMentorLogo from './assets/frontendMentorLogo.svg';
import gitkrakenLogo from './assets/gitkrakenLogo.svg';
import pastelLogo from './assets/pastelLogo.svg';
import TeamMember from './TeamMember';
import TeamMembers from './TeamMembers';
import { Unstyled } from '@storybook/blocks';

<Unstyled>

<Image
src={gridironLogo}
alt="Gridiron Surivior Logo"
Expand Down Expand Up @@ -52,52 +51,7 @@ Gridiron Survivor is the ultimate survivor league app. Track your picks, see how

## Meet the Team

<TeamMember />

**Alex Appleget**
Software Engineer
[GitHub]()
[LinkedIn]()

**Richard Choi**
DevRel Engineer
[GitHub]()
[LinkedIn]()

**Ryan Furrer**
UX Engineer
[GitHub]()
[LinkedIn]()

**Walter Furrer**
Documentation Engineer
[GitHub]()
[LinkedIn]()

**Danielle Lindblom**
Frontend Engineer
[GitHub]()
[LinkedIn]()

**Shashi Lo**
Engineering Manager
[GitHub]()
[LinkedIn]()

**Corina Murg**
Accessibility Expert
[GitHub]()
[LinkedIn]()

**Chris Nowicki**
Software Engineer
[GitHub]()
[LinkedIn]()

**Mai Vang**
Frontend Engineer
[GitHub]()
[LinkedIn]()
<TeamMembers />

<ol className="doc_nav_links">
<li></li>
Expand Down
Loading

0 comments on commit fb86707

Please sign in to comment.