From a0aea05e00e32483605062122939d59d2c1f17f7 Mon Sep 17 00:00:00 2001 From: Ananth Venkatesh <46249765+quantum9Innovation@users.noreply.github.com> Date: Wed, 14 Feb 2024 19:27:24 +0000 Subject: [PATCH] Fix main page layout --- src/app/components/News.tsx | 17 +++++++++-------- src/app/components/mobileMenu.module.css | 4 +++- src/app/page.tsx | 16 +++++++++------- 3 files changed, 21 insertions(+), 16 deletions(-) diff --git a/src/app/components/News.tsx b/src/app/components/News.tsx index b44ce7b..4d0f083 100644 --- a/src/app/components/News.tsx +++ b/src/app/components/News.tsx @@ -1,16 +1,17 @@ import Link from 'next/link' +import { Inter, Zilla_Slab } from 'next/font/google' + +const zillaSlab = Zilla_Slab({ weight: '600', subsets: ['latin'] }) +const inter = Inter({ weight: '400', subsets: ['latin'] }) export default function News() { return ( -
- eeXiv News -
- +
+
eeXiv News
+
Stay up to date with what is happening at eeXiv. - -
- Latest news -
+
+
Latest news
  • eeXiv 2.1 has been released! Documents are now statically generated diff --git a/src/app/components/mobileMenu.module.css b/src/app/components/mobileMenu.module.css index fce92ec..06d7ef9 100644 --- a/src/app/components/mobileMenu.module.css +++ b/src/app/components/mobileMenu.module.css @@ -1,7 +1,8 @@ .menu { @apply overflow-hidden left-[0] top-[235px] z-10 absolute bg-slate-200; @apply duration-300; - height: calc(200px); + height: fit-content; + padding-bottom: 10px; transition: height 0.2s ease-in-out; width: 100vw; right: 0; @@ -17,4 +18,5 @@ .menu-hidden { height: 0; + padding-bottom: 0; } diff --git a/src/app/page.tsx b/src/app/page.tsx index 3af3ee2..1132f39 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -29,7 +29,7 @@ export default function Home() {

    eeXiv, like arXiv, is a free distribution service and an open-access - archive for nearly {Object.keys(documents).length} scholarly articles in + archive for over {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{' '} @@ -44,18 +44,20 @@ export default function Home() {

    -
    - Recently released documents +
    +
    Recently released documents

    - +
    +
    Selected documents in various disciplines - +

    - +
    +
    Our esteemed faculty and alumni - +