|
1 | | -import Image from 'next/image'; |
2 | | -import AlgorithmiqLogo from './logo_algorithmiq.png'; |
3 | | -import BluequbitLogo from './logo_bluequbit.png'; |
4 | | -import IbmLogo from './logo_ibm.png'; |
5 | | -import RikenLogo from './logo_riken.png'; |
6 | | -import UMarylandLogo from './logo_uMaryland.png'; |
| 1 | +import submissionsCVP from '../../../data/classically-verifiable-problems/submissions.json' assert { type: 'json' }; |
| 2 | +import submissionsOE from '../../../data/observable-estimations/submissions.json' assert { type: 'json' }; |
| 3 | +import submissionsVP from '../../../data/variational-problems/submissions.json' assert { type: 'json' }; |
7 | 4 |
|
8 | | -const contributors = [ |
9 | | - { name: 'Algorithmiq', logo: AlgorithmiqLogo }, |
10 | | - { name: 'BlueQubit', logo: BluequbitLogo }, |
11 | | - { name: 'IBM', logo: IbmLogo }, |
12 | | - { name: 'RIKEN', logo: RikenLogo }, |
13 | | - { name: 'University of Maryland', logo: UMarylandLogo }, |
14 | | -]; |
| 5 | +const submissions = [...submissionsCVP, ...submissionsOE, ...submissionsVP]; |
| 6 | + |
| 7 | +const institutionsSet = new Set<string>(); |
| 8 | + |
| 9 | +submissions.forEach((submission) => { |
| 10 | + if (submission.institutions) { |
| 11 | + submission.institutions.split(',').forEach((institution) => { |
| 12 | + institutionsSet.add(institution.trim()); |
| 13 | + }); |
| 14 | + } |
| 15 | +}); |
| 16 | + |
| 17 | +const institutions = Array.from(institutionsSet).sort((a, b) => |
| 18 | + a.toLowerCase().localeCompare(b.toLowerCase()), |
| 19 | +); |
15 | 20 |
|
16 | 21 | export function Contributors() { |
17 | 22 | return ( |
18 | | - <ul className="mx-auto inline-flex flex-row flex-wrap justify-center pt-2"> |
19 | | - {contributors.map((contributor) => ( |
20 | | - <li key={contributor.name}> |
21 | | - <Image |
22 | | - src={contributor.logo} |
23 | | - alt={`${contributor.name} logo`} |
24 | | - title={contributor.name} |
25 | | - className="h-16 w-auto grayscale" |
26 | | - /> |
27 | | - </li> |
28 | | - ))} |
29 | | - </ul> |
| 23 | + <div className="flex overflow-hidden mask-[linear-gradient(to_right,transparent,white_20%,white_80%,transparent)] pt-6"> |
| 24 | + <ul className="animate-marquee flex w-max min-w-full shrink-0 items-center justify-around gap-16 pr-16"> |
| 25 | + {/* Duplicate the list to ensure a seamless infinite marquee animation */} |
| 26 | + {[...institutions, ...institutions].map((institution, index) => ( |
| 27 | + <li |
| 28 | + key={`${institution}-${index}`} |
| 29 | + className="flex items-center gap-16 text-xl font-light whitespace-nowrap" |
| 30 | + > |
| 31 | + {institution} |
| 32 | + <span className="h-2 w-2 rounded-full bg-green-600" /> |
| 33 | + </li> |
| 34 | + ))} |
| 35 | + </ul> |
| 36 | + </div> |
30 | 37 | ); |
31 | 38 | } |
0 commit comments