ported existing static routes

This commit is contained in:
Youwen Wu 2024-02-09 22:59:43 -08:00
parent ef79212ed1
commit 9425304ba5
20 changed files with 273 additions and 101 deletions

12
.prettierrc Normal file
View file

@ -0,0 +1,12 @@
{
"semi": false,
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"trailingComma": "es5",
"jsxSingleQuote": true,
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always"
}

View file

@ -1,5 +1,5 @@
.content {
margin-top: 40px;
padding: 35px;
border-radius: 15px;
margin-top: 40px;
padding: 35px;
border-radius: 15px;
}

View file

@ -1,21 +1,21 @@
import Link from "next/link";
import styles from "./about.module.css";
import Link from 'next/link'
import standardStyles from '../styles/standard.module.css'
export default function Page() {
return (
<div className={styles.content}>
<p className={styles.message}>
<div className={standardStyles.content}>
<p>
{`eeXiv is a project hosted by Team 1280 EECS ("Electrical Engineering and
Computer Science"), independent of the department of the same name at`}{" "}
<Link href="https://eecs.berkeley.edu">UC Berkeley</Link>. We aim to
Computer Science"), independent of the department of the same name at`}{' '}
<Link href='https://eecs.berkeley.edu'>UC Berkeley</Link>. We aim to
rival arXiv as the single largest open-source and open-access research
paper repository. eeXiv is{" "}
<Link href="https://github.com/Team-1280/eeXiv">open-source</Link> and{" "}
<Link href="https://github.com/Team-1280/eeXiv/blob/main/LICENSE">
paper repository. eeXiv is{' '}
<Link href='https://github.com/Team-1280/eeXiv'>open-source</Link> and{' '}
<Link href='https://github.com/Team-1280/eeXiv/blob/main/LICENSE'>
licensed
</Link>{" "}
</Link>{' '}
under the GNU General Public License.
</p>
</div>
);
)
}

18
src/app/contact/page.tsx Normal file
View file

@ -0,0 +1,18 @@
import standardStyles from '../styles/standard.module.css'
export default function Page() {
return (
<div className={standardStyles.content}>
<p>
You can contact a team representative directly at{' '}
<a href='mailto:sanramonvalleyrobotics@gmail.com'>
sanramonvalleyrobotics@gmail.com
</a>
. If you encounter any problems with the site or eeXiv content,{' '}
<a href='https://github.com/Team-1280/eeXiv/issues'>open an issue</a>{' '}
and provide a helpful description of the problem. For ways you can help,
see <a href='../help'>Help</a>.
</p>
</div>
)
}

View file

@ -0,0 +1,5 @@
.content {
margin-top: 40px;
padding: 35px;
border-radius: 15px;
}

View file

@ -0,0 +1,20 @@
import styles from './accessibility.module.css'
export default function Page() {
return (
<div className={styles.content}>
<p>
If you encounter any accessibility-related issues related to
your use of our site, it is likely because of our jank code
architecture. Unfortunately, our programming team is ill
equipped to fix these issues, even if some of them may be
pressing Diversity, Equity, and Inclusion (DEI) concerns. We
recommend you add any accessibility fixes yourself by submitting
a{' '}
<a href="https://github.com/Team-1280/eeXiv/pull/new">
pull request
</a>{' '}
on GitHub.
</p>
</div>
)
}

View file

@ -0,0 +1,5 @@
.content {
margin-top: 40px;
padding: 35px;
border-radius: 15px;
}

14
src/app/help/page.tsx Normal file
View file

@ -0,0 +1,14 @@
import standardStyles from '../styles/standard.module.css'
export default function Page() {
return (
<div className={standardStyles.content}>
<p>
We are always looking for contributors to help us improve eeXiv. If you
are interested in helping, whether as a peer reviewer, external
contributor, or in any other capacity, please{' '}
<a href='../contact'>contact us</a>.
</p>
</div>
)
}

View file

@ -1,92 +1,102 @@
import type { Metadata } from "next";
import { Inter, Zilla_Slab } from "next/font/google";
import "./globals.css";
import styles from "./home.module.css";
import Link from "next/link";
import type { Metadata } from 'next'
import { Inter, Zilla_Slab } from 'next/font/google'
import './globals.css'
import styles from './home.module.css'
import Link from 'next/link'
const inter = Inter({ subsets: ["latin"] });
const zillaSlab = Zilla_Slab({ subsets: ["latin"], weight: ["500", "700"] });
const inter = Inter({ subsets: ['latin'] })
const zillaSlab = Zilla_Slab({ subsets: ['latin'], weight: ['500', '700'] })
export const metadata: Metadata = {
title: "eeXiv^2",
description: "eeXiv just got better",
};
title: 'eeXiv^2',
description: 'eeXiv just got better',
}
export default function RootLayout({
children,
children,
}: Readonly<{
children: React.ReactNode;
children: React.ReactNode
}>) {
return (
<html lang="en">
<body className={inter.className}>
<div className={styles.header}>
<img className={styles.wordmark} src="/eecs-wordmark.png" />
<p className={styles.contributions}>
We gratefully acknowledge support from our volunteer peer reviewers,
member institutions, and all{" "}
<Link
href="https://github.com/Team-1280/eeXiv/graphs/contributors"
target="_blank"
>
open-source contributors
</Link>
.
</p>
</div>
<div className={styles.banner}>
<h1 className={[styles.title, zillaSlab.className].join(" ")}>
eeXiv<sup>2</sup>
</h1>
<div className={styles.search}>
<input
type="text"
className={styles.searchBox}
name="q"
placeholder="Search..."
/>
<button type="submit" className={styles.searchButton}>
Search
</button>
</div>
</div>
{children}
<footer>
<div className={styles.footerContent}>
<ul>
<li>
<Link href="/about">About</Link>
</li>
<li>
<Link href="/help">Help</Link>
</li>
<li>
<Link href="/contact">Contact</Link>
</li>
<li>
<Link href="/subscribe">Subscribe</Link>
</li>
<li>
<Link href="/legal/copyright">Copyright</Link>
</li>
<li>
<Link href="/legal/privacy">Privacy Policy</Link>
</li>
<li>
<Link href="/help/accessibility">Accessibility</Link>
</li>
<li>
<Link href="/status">eeXiv status</Link>
</li>
<li>
<Link href="/status/notifications">
Get status notifications
</Link>
</li>
</ul>
</div>
</footer>
</body>
</html>
);
return (
<html lang="en">
<body className={inter.className}>
<div className={styles.header}>
<img className={styles.wordmark} src="/eecs-wordmark.png" />
<p className={styles.contributions}>
We gratefully acknowledge support from our volunteer
peer reviewers, member institutions, and all{' '}
<Link
href="https://github.com/Team-1280/eeXiv/graphs/contributors"
target="_blank"
>
open-source contributors
</Link>
.
</p>
</div>
<div className={styles.banner}>
<h1
className={[styles.title, zillaSlab.className].join(
' '
)}
>
<Link href="./">
eeXiv<sup>2</sup>
</Link>
</h1>
<div className={styles.search}>
<input
type="text"
className={styles.searchBox}
name="q"
placeholder="Search..."
/>
<button type="submit" className={styles.searchButton}>
Search
</button>
</div>
</div>
{children}
<footer>
<div className={styles.footerContent}>
<ul>
<li>
<Link href="/about">About</Link>
</li>
<li>
<Link href="/help">Help</Link>
</li>
<li>
<Link href="/contact">Contact</Link>
</li>
<li>
<Link href="/subscribe">Subscribe</Link>
</li>
<li>
<Link href="/legal/copyright">Copyright</Link>
</li>
<li>
<Link href="/legal/privacy">
Privacy Policy
</Link>
</li>
<li>
<Link href="/help/accessibility">
Accessibility
</Link>
</li>
<li>
<Link href="/status">eeXiv status</Link>
</li>
<li>
<Link href="/status/notifications">
Get status notifications
</Link>
</li>
</ul>
</div>
</footer>
</body>
</html>
)
}

View file

@ -0,0 +1,19 @@
import Link from 'next/link'
import standardStyles from '../../styles/standard.module.css'
export default function Page() {
return (
<div className={standardStyles.content}>
<p>
All content on this site is licensed under the{' '}
<a href='https://creativecommons.org/licenses/by-sa/4.0/'>
Creative Commons Attribution-ShareAlike 4.0 International License
</a>
. United States and international copyright laws apply. Failure to cite
or credit the authors of any content taken from this site is copyright
infringement and in violation of the eeXiv terms of use. For more
information, see our <Link href='/legal/privacy'>privacy policy</Link>.
</p>
</div>
)
}

View file

@ -0,0 +1,15 @@
import standardStyles from '../../styles/standard.module.css'
export default function Page() {
return (
<div className={standardStyles.content}>
<p>
User privacy is important to us. Just kidding. We don't collect any
personal information. We only use it to help us improve eeXiv. Your
information may also be periodically sent to the Mossad to enhance
profiling and cybersecurity operations. We take absolutely no
responsibility for misuse of your data.
</p>
</div>
)
}

View file

View file

@ -1,8 +1,9 @@
import styles from "./home.module.css";
import styles from './home.module.css'
import standardStyles from './styles/standard.module.css'
export default function Home() {
return (
<div className={styles.content}>
<div className={standardStyles.content}>
<p className={styles.message}>
eeXiv<sup>2</sup> is a free distribution service and an open-access
archive for nearly 2.4 million scholarly articles in the fields of
@ -12,5 +13,5 @@ export default function Home() {
independently through other channels.
</p>
</div>
);
)
}

View file

@ -0,0 +1,14 @@
import standardStyles from '../../styles/standard.module.css'
export default function Page() {
return (
<div className={standardStyles.content}>
<p>
We currently do not have the technical support to implement mailing
lists in eeXiv. Check <a href='../'>status</a> frequently for updates.
The best way to stay connected with the status of the eeXiv project is
to watch it on <a href='https://github.com/Team-1280/eeXiv'>GitHub</a>.
</p>
</div>
)
}

12
src/app/status/page.tsx Normal file
View file

@ -0,0 +1,12 @@
import standardStyles from '../styles/standard.module.css'
export default function Page() {
return (
<div className={standardStyles.content}>
<p>
eeXiv is <strong>online</strong>. All systems{' '}
<strong>operational</strong>.
</p>
</div>
)
}

View file

@ -0,0 +1,5 @@
.content {
margin-top: 40px;
padding: 35px;
border-radius: 15px;
}

View file

@ -0,0 +1,8 @@
/* In this file, add standard styles that will be widely imported throughout
the site */
.content {
margin-top: 40px;
padding: 35px;
border-radius: 15px;
}

View file

@ -0,0 +1,14 @@
import standardStyles from '../styles/standard.module.css'
export default function Page() {
return (
<div className={standardStyles.content}>
<p>
We currently do not have the technical support to implement mailing
lists in eeXiv. Check back later for updates. The best way to stay
connected with the status of the eeXiv project is to watch it on{' '}
<a href='https://github.com/Team-1280/eeXiv'>GitHub</a>.
</p>
</div>
)
}

View file