Quality of life improvements

This commit is contained in:
Ananth Venkatesh 2024-02-15 18:42:13 +00:00
parent b531ec40dc
commit 403457e4e8
3 changed files with 13 additions and 5 deletions

View file

@ -50,7 +50,7 @@ const VersionChooser = ({
}
return (
<div>
<div className='flex flex-wrap gap-2'>
<Link
href={`/download/${slug}/file${selectedRevision}${fileEnding}`}
target='_blank'
@ -68,13 +68,13 @@ const VersionChooser = ({
</button>
</Link>
<button
className='ml-2 h-10 px-2.5 bg-slate-300 rounded-md'
className='button-alternate'
onClick={handleClick}
>
Export BibTeX
</button>
<select
className='ml-2 h-10 px-2.5 bg-slate-300 rounded-md'
className='select-default'
value={`v${selectedRevision}`}
onChange={(e) => {
setSelectedRevision(parseInt(e.target.value.replace(/\D/g, ''), 10))

View file

@ -29,6 +29,14 @@ option {
@apply bg-blue-600 text-slate-100 hover:bg-blue-400 font-semibold rounded py-2 px-4 my-2 shadow-sm shadow-slate-400;
}
.button-alternate {
@apply bg-slate-100 text-slate-700 hover:bg-blue-100 font-semibold rounded py-2 px-4 my-2 shadow-sm shadow-slate-400;
}
.select-default {
@apply bg-slate-100 text-slate-700 hover:bg-blue-100 font-semibold rounded py-2 px-4 my-2 shadow-sm shadow-slate-400;
}
.badge-base {
@apply px-3 py-1.5 rounded inline-block w-fit text-slate-50 border-2 shadow-sm shadow-slate-400;
}

View file

@ -78,9 +78,9 @@ export default function Home() {
</Link>
. Materials on this site may be published independently through other
channels. Read more about us <Link href='/about'>here</Link>. eeXiv can
be accessed at its primary domain at{' '}
be accessed from its primary domain at{' '}
<a href='https://eexiv.org'>eexiv.org</a> or at our mirror at{' '}
<a href='https://eexiv.vercel.app'>eexiv.vercel.app</a>
<a href='https://eexiv.vercel.app'>eexiv.vercel.app</a>.
</p>
<News />
<div className='grid grid-cols-1 space-y-2 mt-4 basis-full'>