From e4b9eca7f7643f47ed139d2cc5ae6632965632fe Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 11 Feb 2024 14:45:42 -0800 Subject: [PATCH] update news widget and styles --- src/app/about/about.module.css | 5 ----- src/app/about/page.tsx | 4 ++-- src/app/components/News.tsx | 26 ++++++++++++++++++++++++++ src/app/globals.css | 6 ------ src/app/page.tsx | 21 ++++----------------- 5 files changed, 32 insertions(+), 30 deletions(-) delete mode 100644 src/app/about/about.module.css create mode 100644 src/app/components/News.tsx diff --git a/src/app/about/about.module.css b/src/app/about/about.module.css deleted file mode 100644 index 17ccfdf..0000000 --- a/src/app/about/about.module.css +++ /dev/null @@ -1,5 +0,0 @@ -.content { - margin-top: 40px; - padding: 35px; - border-radius: 15px; -} diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx index 3afe1b0..5dc26c2 100644 --- a/src/app/about/page.tsx +++ b/src/app/about/page.tsx @@ -2,7 +2,7 @@ import Link from 'next/link' export default function Page() { return ( -
+

About Us

eeXiv2{' '} @@ -17,7 +17,7 @@ export default function Page() { {' '} under the GNU General Public License (GPL).

-

+

Frequently Asked Questions

    diff --git a/src/app/components/News.tsx b/src/app/components/News.tsx new file mode 100644 index 0000000..7055355 --- /dev/null +++ b/src/app/components/News.tsx @@ -0,0 +1,26 @@ +export default function News() { + return ( +
    + + eeXiv2 News + +
    + + Stay up to date with what is happening at eeXiv2. + +
    + Latest news +
    +
      +
    • eeXiv is currently under active development!
    • +
    • + There may be major updates, breaking changes, or weird bugs. Report + bugs, suggest new features, or give us feedback at{' '} + + our issue tracker. + +
    • +
    +
    + ) +} diff --git a/src/app/globals.css b/src/app/globals.css index 6ff73a0..3895a53 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -20,12 +20,6 @@ a:hover { text-decoration: underline; } -.content { - margin-top: 40px; - padding: 35px; - border-radius: 15px; -} - .button-default { @apply bg-blue-600 text-slate-100 hover:bg-blue-400 font-semibold rounded py-2 px-4 my-2; } diff --git a/src/app/page.tsx b/src/app/page.tsx index 2be23a6..37936de 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -6,6 +6,7 @@ import { affiliations, } from './db/data' import { epoch2datestring } from './utils/epoch2datestring' +import News from './components/News' export default function Home() { const RandomDocs = (): React.ReactNode[] => { @@ -88,8 +89,8 @@ export default function Home() { } return ( -
    -

    +

    +

    eeXiv2, like arXiv, is a free distribution service and an open-access archive for nearly 2.4 million scholarly articles in the fields of physics, mathematics, computer science, quantitative biology, @@ -104,21 +105,7 @@ export default function Home() { . Materials on this site may be published independently through other channels. Read more about us here.

    -
    - - eeXiv2 News - -
    - - Stay up to date with what is happening at eeXiv2. - -
    - Latest news -
    -
    - - eeXiv is currently under active development! -
    -
    +