Skip to content

Commit

Permalink
revert: restored supporter avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaburgio committed Feb 10, 2024
1 parent 11da0d4 commit 82a1fc0
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions iconoir.com/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,44 @@ const Home: NextPage<HomeProps> = ({
>
<span>Donate</span>
</LargeButton>
<Supporters>
<Supporter
data-tooltip="Pierre Olivier Marec"
as={'a'}
href={'https://github.com/pomarec'}
src={'https://avatars.githubusercontent.com/u/802933?v=4'}
/>
<Supporter
data-tooltip="Tuan Hiep"
as={'a'}
href={'https://opencollective.com/iconoir/contribute'}
src={
'https://images.opencollective.com/tuan-hiep/17b1ef2/avatar.png?height=80'
}
/>
<Supporter
data-tooltip="Justin Kendrick"
as={'a'}
href={'https://opencollective.com/iconoir/contribute'}
src={
'https://images.opencollective.com/guest-39c79745/avatar.png?height=80'
}
/>
<Supporter
data-tooltip="Anon"
as={'a'}
href={'https://opencollective.com/iconoir/contribute'}
src={
'https://opencollective.com/static/images/default-guest-logo.svg'
}
/>
<Supporter
data-tooltip="Luca Burgio"
as={'a'}
href={'https://twitter.com/burgioluca'}
src={'https://lucaburgio.com/images/profile2.png'}
/>
</Supporters>
<Text15>
Join our supporters and help us continue developing Iconoir.
</Text15>
Expand Down Expand Up @@ -143,6 +181,45 @@ export const HeroDescription = styled(Text18)<{ topMargin?: number }>`
}
`;

const Supporters = styled.div`
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin-bottom: 8px !important;
`;
const Supporter = styled.div<{ src?: string }>`
width: 40px;
height: 40px;
border-radius: 50%;
background-color: #000;
margin: 0 10px;
background-image: url(${(props) => props.src});
background-size: contain;
background-repeat: no-repeat;
background-position: center;
border: 2px solid white;
margin: 0 -4px;
transition: 0.2s;
&:hover {
scale: 1.1;
transition: 0.2s;
&:before {
content: attr(data-tooltip);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background-color: black;
color: white;
padding: 5px;
border-radius: 3px;
white-space: nowrap;
font-size: 12px;
}
}
`;

const SupportContainer = styled.div`
text-align: center;
> * {
Expand Down

0 comments on commit 82a1fc0

Please sign in to comment.