fix main page responsive design

This commit is contained in:
Youwen Wu 2024-02-11 15:10:26 -08:00
parent e4b9eca7f7
commit aa84c011f5
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
export default function News() { export default function News() {
return ( return (
<div className='bg-slate-800 rounded-lg p-6 w-full lg:max-w-lg md:max-w-md my-4 lg:my-0'> <div className='bg-slate-800 rounded-lg p-6 w-full basis-full md:basis-2/5 my-4 lg:my-0'>
<span className='text-3xl md:text-4xl text-slate-200'> <span className='text-3xl md:text-4xl text-slate-200'>
eeXiv<sup>2</sup> News eeXiv<sup>2</sup> News
</span> </span>

View file

@ -89,8 +89,8 @@ export default function Home() {
} }
return ( return (
<div className='text-slate-800 flex flex-wrap'> <div className='text-slate-800 flex flex-wrap md:flex-row justify-center'>
<p className='font-serif text-lg max-w-lg mr-1 text-balance'> <p className='font-serif text-lg basis-full md:basis-1/2 grow mr-1 text-balance'>
eeXiv<sup>2</sup>, like arXiv, is a free distribution service and an eeXiv<sup>2</sup>, like arXiv, is a free distribution service and an
open-access archive for nearly 2.4 million scholarly articles in the open-access archive for nearly 2.4 million scholarly articles in the
fields of physics, mathematics, computer science, quantitative biology, fields of physics, mathematics, computer science, quantitative biology,
@ -106,7 +106,7 @@ export default function Home() {
channels. Read more about us <Link href='/about'>here</Link>. channels. Read more about us <Link href='/about'>here</Link>.
</p> </p>
<News /> <News />
<div className='grid grid-cols-1 space-y-2 mt-4'> <div className='grid grid-cols-1 space-y-2 mt-4 basis-full'>
<hr className='mx-auto w-full h-1 border-0 bg-slate-200 my-2 rounded-md' /> <hr className='mx-auto w-full h-1 border-0 bg-slate-200 my-2 rounded-md' />
<span className='font-serif text-xl'> <span className='font-serif text-xl'>
Selected documents in various disciplines Selected documents in various disciplines