2024-02-11 00:13:26 -08:00
|
|
|
import Link from 'next/link'
|
2024-02-13 22:36:13 -08:00
|
|
|
import { documents, authors, affiliations } from './db/data'
|
2024-02-11 14:45:42 -08:00
|
|
|
import News from './components/News'
|
2024-02-13 22:36:13 -08:00
|
|
|
import RandomDocs from './components/RandomDocs'
|
|
|
|
import RecentDocuments from './components/RecentDocuments'
|
2024-02-09 19:00:26 -08:00
|
|
|
|
|
|
|
export default function Home() {
|
2024-02-11 00:13:26 -08:00
|
|
|
const AuthorDisplay = () => {
|
|
|
|
return Object.entries(authors).map(([author, data], index) => {
|
|
|
|
let affiliationSlug = data.affiliation[0].split('@')[1]
|
|
|
|
let affiliation = affiliations[affiliationSlug]
|
|
|
|
return (
|
2024-02-13 22:36:13 -08:00
|
|
|
<div key={author}>
|
2024-02-11 00:13:26 -08:00
|
|
|
<Link href={`/author/${author}`}>
|
|
|
|
{data.name.first}
|
|
|
|
{data.name.nickname ? ` "${data.name.nickname}" ` : ' '}
|
|
|
|
{data.name.last}
|
|
|
|
</Link>{' '}
|
|
|
|
of{' '}
|
|
|
|
<Link href={`/affiliation/${affiliationSlug}`}>
|
|
|
|
{affiliation.short}
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-02-09 19:00:26 -08:00
|
|
|
return (
|
2024-02-11 15:10:26 -08:00
|
|
|
<div className='text-slate-800 flex flex-wrap md:flex-row justify-center'>
|
|
|
|
<p className='font-serif text-lg basis-full md:basis-1/2 grow mr-1 text-balance'>
|
2024-02-11 23:12:19 -08:00
|
|
|
eeXiv, like arXiv, is a free distribution service and an open-access
|
|
|
|
archive for nearly {Object.keys(documents).length} scholarly articles in
|
|
|
|
the fields of physics, mathematics, computer science, quantitative
|
|
|
|
biology, quantitative finance, statistics, electrical engineering and
|
|
|
|
systems science, and economics, but mainly related to the{' '}
|
2024-02-11 02:06:29 -08:00
|
|
|
<Link
|
|
|
|
href='https://en.wikipedia.org/wiki/FIRST_Robotics_Competition'
|
|
|
|
target='_blank'
|
|
|
|
>
|
|
|
|
FIRST Robotics Competition (FRC)
|
|
|
|
</Link>
|
|
|
|
. Materials on this site may be published independently through other
|
|
|
|
channels. Read more about us <Link href='/about'>here</Link>.
|
2024-02-09 20:39:57 -08:00
|
|
|
</p>
|
2024-02-11 14:45:42 -08:00
|
|
|
<News />
|
2024-02-11 15:10:26 -08:00
|
|
|
<div className='grid grid-cols-1 space-y-2 mt-4 basis-full'>
|
2024-02-13 22:36:13 -08:00
|
|
|
<hr className='mx-auto w-full h-1 border-0 bg-slate-200 my-2 rounded-md' />
|
|
|
|
<span className='font-serif text-xl'>Recently released documents</span>
|
|
|
|
<RecentDocuments />
|
2024-02-11 00:13:26 -08:00
|
|
|
<hr className='mx-auto w-full h-1 border-0 bg-slate-200 my-2 rounded-md' />
|
|
|
|
<span className='font-serif text-xl'>
|
|
|
|
Selected documents in various disciplines
|
|
|
|
</span>
|
|
|
|
<RandomDocs />
|
|
|
|
<hr className='mx-auto w-full h-1 border-0 bg-slate-200 my-2 rounded-md' />
|
|
|
|
<span className='font-serif text-xl'>
|
|
|
|
Our esteemed faculty and alumni
|
|
|
|
</span>
|
|
|
|
<AuthorDisplay />
|
|
|
|
</div>
|
2024-02-09 20:39:57 -08:00
|
|
|
</div>
|
2024-02-09 22:59:43 -08:00
|
|
|
)
|
2024-02-09 19:00:26 -08:00
|
|
|
}
|