-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
114 additions
and
132 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,64 @@ | ||
'use client'; | ||
|
||
import React from 'react'; | ||
|
||
import { HeroesCard as Card } from './card'; | ||
import { HeroesSponsors as Sponsors } from './sponsors'; | ||
|
||
type Props = {}; | ||
|
||
// eslint-disable-next-line no-unused-vars | ||
export const HeroesElements: React.FC<Props> = (_props) => { | ||
return ( | ||
<div className='inline-flex'> | ||
<Card | ||
imgUrl='https://avatars.githubusercontent.com/u/24286590?v=4' | ||
link='https://github.com/ful1e5' | ||
name='Abdulkaiz Khatri' | ||
role='Founder' | ||
special={true} | ||
/> | ||
<Card | ||
imgUrl='https://avatars.githubusercontent.com/u/9919?v=4' | ||
link='https://github.com/github' | ||
name='GitHub' | ||
role='One-time Sponsor' | ||
classes='p-5' | ||
/> | ||
<Card | ||
imgUrl='https://avatars.githubusercontent.com/u/107184?v=4' | ||
link='https://github.com/linuxmint' | ||
name='Linux Mint' | ||
role='One-time Sponsor' | ||
classes='p-10' | ||
/> | ||
|
||
<Sponsors /> | ||
|
||
<Card | ||
imgUrl='https://avatars.githubusercontent.com/u/43558271?v=4' | ||
link='https://github.com/Silicasandwhich' | ||
name='Daniel Brown' | ||
role='Contributor' | ||
/> | ||
<Card | ||
imgUrl='https://avatars.githubusercontent.com/u/5437803?v=4' | ||
link='https://github.com/yochananmarqos' | ||
name='Mark Wagie' | ||
role='Contributor' | ||
/> | ||
<Card | ||
imgUrl='https://avatars.githubusercontent.com/u/22453358?v=4' | ||
link='https://github.com/shatur' | ||
name='Hennadii Chernyshchyk' | ||
role='Contributor' | ||
/> | ||
<Card | ||
imgUrl='https://avatars.githubusercontent.com/u/584751?v=4' | ||
link='https://github.com/peterwu' | ||
name='Peter Wu' | ||
role='Contributor' | ||
/> | ||
</div> | ||
); | ||
}; |
File renamed without changes.
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,33 @@ | ||
'use client'; | ||
|
||
import React from 'react'; | ||
|
||
type Props = { | ||
count: number; | ||
children: React.ReactNode; | ||
}; | ||
|
||
export const Marquee: React.FC<Props> = (props) => { | ||
const List: React.FC = () => { | ||
const counts = Array.from(new Array(props.count), (_, i) => i + 1); | ||
return ( | ||
<> | ||
{counts.map((key) => ( | ||
<span key={key}>{props.children}</span> | ||
))} | ||
</> | ||
); | ||
}; | ||
|
||
return ( | ||
<div className='relative flex overflow-x-hidden'> | ||
<div className='py-12 animate-marquee whitespace-nowrap'> | ||
<List /> | ||
</div> | ||
|
||
<div className='absolute top-0 py-12 animate-marquee2 whitespace-nowrap'> | ||
<List /> | ||
</div> | ||
</div> | ||
); | ||
}; |