ported existing static routes
This commit is contained in:
parent
ef79212ed1
commit
9425304ba5
20 changed files with 273 additions and 101 deletions
12
.prettierrc
Normal file
12
.prettierrc
Normal 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"
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
.content {
|
||||
margin-top: 40px;
|
||||
padding: 35px;
|
||||
border-radius: 15px;
|
||||
margin-top: 40px;
|
||||
padding: 35px;
|
||||
border-radius: 15px;
|
||||
}
|
||||
|
|
|
@ -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
18
src/app/contact/page.tsx
Normal 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>
|
||||
)
|
||||
}
|
5
src/app/help/accessibility/accessibility.module.css
Normal file
5
src/app/help/accessibility/accessibility.module.css
Normal file
|
@ -0,0 +1,5 @@
|
|||
.content {
|
||||
margin-top: 40px;
|
||||
padding: 35px;
|
||||
border-radius: 15px;
|
||||
}
|
20
src/app/help/accessibility/page.tsx
Normal file
20
src/app/help/accessibility/page.tsx
Normal 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>
|
||||
)
|
||||
}
|
5
src/app/help/help.module.css
Normal file
5
src/app/help/help.module.css
Normal file
|
@ -0,0 +1,5 @@
|
|||
.content {
|
||||
margin-top: 40px;
|
||||
padding: 35px;
|
||||
border-radius: 15px;
|
||||
}
|
14
src/app/help/page.tsx
Normal file
14
src/app/help/page.tsx
Normal 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>
|
||||
)
|
||||
}
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
0
src/app/legal/copyright/copyright.module.css
Normal file
0
src/app/legal/copyright/copyright.module.css
Normal file
19
src/app/legal/copyright/page.tsx
Normal file
19
src/app/legal/copyright/page.tsx
Normal 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>
|
||||
)
|
||||
}
|
15
src/app/legal/privacy/page.tsx
Normal file
15
src/app/legal/privacy/page.tsx
Normal 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>
|
||||
)
|
||||
}
|
0
src/app/legal/privacy/privacy.module.css
Normal file
0
src/app/legal/privacy/privacy.module.css
Normal 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>
|
||||
);
|
||||
)
|
||||
}
|
||||
|
|
14
src/app/status/notifications/page.tsx
Normal file
14
src/app/status/notifications/page.tsx
Normal 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
12
src/app/status/page.tsx
Normal 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>
|
||||
)
|
||||
}
|
5
src/app/status/status.module.css
Normal file
5
src/app/status/status.module.css
Normal file
|
@ -0,0 +1,5 @@
|
|||
.content {
|
||||
margin-top: 40px;
|
||||
padding: 35px;
|
||||
border-radius: 15px;
|
||||
}
|
8
src/app/styles/standard.module.css
Normal file
8
src/app/styles/standard.module.css
Normal 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;
|
||||
}
|
14
src/app/subscribe/page.tsx
Normal file
14
src/app/subscribe/page.tsx
Normal 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>
|
||||
)
|
||||
}
|
0
src/app/subscribe/subscribe.module.css
Normal file
0
src/app/subscribe/subscribe.module.css
Normal file
Loading…
Reference in a new issue