Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(documentation): update design system team in footer #3706

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 77 additions & 20 deletions packages/documentation/.storybook/blocks/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,78 @@
import React from 'react';

interface Developer {
interface ITeamMember {
oliverschuerch marked this conversation as resolved.
Show resolved Hide resolved
name: string;
title: string;
avatar: string;
githubImageId: string;
githubUsername: string;
}

const DEVELOPERS: Developer[] = [
const TEAM_MEMBERS: ITeamMember[] = [
oliverschuerch marked this conversation as resolved.
Show resolved Hide resolved
{
name: 'Philipp Gfeller',
title: 'Lead UI Developer',
avatar: 'https://avatars.githubusercontent.com/u/1659006?v=4',
title: 'Lead Potato',
githubImageId: '1659006',
githubUsername: 'gfellerph',
},
{
name: 'Alizé Debray',
title: 'UI Developer',
oliverschuerch marked this conversation as resolved.
Show resolved Hide resolved
avatar: 'https://avatars.githubusercontent.com/u/33580481?v=4',
githubImageId: '33580481',
githubUsername: 'alizedebray',
},
{
name: 'Oliver Schürch',
title: 'Señor Developer',
githubImageId: '9716662',
githubUsername: 'oliverschuerch',
},
{
name: 'Myrta Sakellariou',
title: 'Mama Pigxel',
githubImageId: '66249294',
githubUsername: 'myrta2302',
},
{
name: 'Lea Gardavaud',
title: 'UI Developer',
githubImageId: '183501002',
githubUsername: 'leagrdv',
},
{
name: 'Alona Zherdetska',
title: 'Component Fairy',
githubImageId: '138328641',
githubUsername: 'alionazherdetska',
},
{
name: 'Tim Schär',
title: 'UI Developer',
avatar: 'https://avatars.githubusercontent.com/u/9716662?v=4',
githubImageId: '59233938',
githubUsername: 'schaertim',
},
{
name: 'Rouven Steiger',
title: 'Art Guy EDK',
githubImageId: '104423005',
githubUsername: 'rouvenpost',
},
{
name: 'Christian Zundel',
title: 'UX Designer',
githubImageId: '119845956',
githubUsername: 'Cian77',
},
{
name: 'Alessio Travaglini',
title: 'Token Orchestrator',
githubImageId: '158268546',
githubUsername: 'Vandapanda',
},
{
name: 'Romain Veya',
title: 'UI Developer',
githubImageId: '111903046',
githubUsername: 'veyaromain',
},
];

Expand All @@ -43,20 +95,25 @@ export default (params: { pathToStoryFile?: String }) => (
<div className="bg-light">
<div className="container">
<div className="pt-big-r pb-big-r">
<h2 className="mt-0">Support</h2>
<div className="d-flex flex-wrap mt-huge-r mb-huge-r profile-list">
{DEVELOPERS.sort(() => (Math.random() > 0.5 ? 1 : -1)).map((developer, index) => (
<article key={index} className="avatar">
<img className="profile-picture" src={developer.avatar} alt="" />
<div>
<p>
<strong>{developer.name}</strong>
</p>
<p>{developer.title}</p>
</div>
</article>
<h2 className="mt-0">Design System Team Members</h2>
<ul className="list-profile">
{TEAM_MEMBERS.sort(() => (Math.random() > 0.5 ? 1 : -1)).map((developer, index) => (
<li key={index}>
<a className="avatar" href={`https://github.com/${developer.githubUsername}`}>
<div className="avatar-image">
<img
src={`https://avatars.githubusercontent.com/u/${developer.githubImageId}?v=4`}
alt={developer.name}
/>
</div>
<div className="avatar-description">
<span>{developer.title}</span>
<span>{developer.name}</span>
</div>
</a>
</li>
))}
</div>
</ul>
<div className="row mt-regular-r">
<div className="col-12 col-rg-auto mt-regular-r">
<a
Expand Down
82 changes: 70 additions & 12 deletions packages/documentation/.storybook/blocks/layout/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,80 @@
}

.docs-footer {
ul.list-profile {
display: grid;
grid-template-rows: auto;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1rem 1.5rem;
margin: 0;
padding: 0;
list-style: none;
}

.avatar {
display: flex;
align-items: flex-start;
display: inline-flex;
gap: calc(1rem - 6px * 2);
align-items: center;
text-decoration: none;

.avatar-image {
border-radius: 50%;

p {
margin-bottom: 0.25rem;
img {
display: block;
position: relative;
box-sizing: content-box;
z-index: 2;
width: 4rem;
border: 6px solid transparent;
border-radius: inherit;
}
}
}

.profile-picture {
width: 5rem;
border-radius: 50%;
margin-right: 1rem;
}
.avatar-description {
position: relative;
padding: 10px;
border-radius: 4px;

span {
display: block;
position: relative;
z-index: 2;
font-size: 1rem;
line-height: 1.2;

.profile-list {
gap: 2rem 4rem;
&:first-child {
font-weight: bold;
font-size: 0.6875rem;
}
}

&::after {
display: block;
content: '';
position: absolute;
inset: 0;
left: calc(-1rem * 2);
z-index: 1;
border-radius: 4px;
}
}

&:hover {
.avatar-image {
box-shadow: 0.25px 1px 1px rgba(0, 0, 0, 0.1), 1px 2px 2.5px 1px rgba(0, 0, 0, 0.2);

img {
border-color: white;
}
}

.avatar-description {
&::after {
background-color: white;
box-shadow: 0.25px 1px 1px rgba(0, 0, 0, 0.1), 1px 2px 2.5px 1px rgba(0, 0, 0, 0.1);
}
}
}
}
}