-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert 'contact' page to App Router [#134]
- Loading branch information
Showing
10 changed files
with
113 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import { ReactElement } from "react"; | ||
|
||
import { BigSpacer } from "../../components/spacers"; | ||
import FlexCenter from "../../components/flex-center"; | ||
import FocusParagraphNarrow from "../../components/focus-paragraph"; | ||
|
||
export default function ContactPage(): ReactElement { | ||
return ( | ||
<> | ||
<h1>Contact Us</h1> | ||
|
||
<FlexCenter> | ||
<FocusParagraphNarrow> | ||
We are a small team, but connecting with users is important to us. | ||
<br /> | ||
<br /> | ||
If you have a general question about Nextstrain, we encourage you to | ||
post on our{" "} | ||
<a | ||
href="https://discussion.nextstrain.org" | ||
target="_blank" | ||
rel="noreferrer noopener" | ||
> | ||
discussion forum | ||
</a> | ||
, where both Nextstrain team members and other community members can | ||
assist you. | ||
<br /> | ||
<br /> | ||
To send a bug report or feature request, please open an issue in one | ||
of our{" "} | ||
<a href="https://github.com/orgs/nextstrain/repositories"> | ||
GitHub repositories | ||
</a> | ||
. | ||
<br /> | ||
<br /> | ||
For private inquiries, you can reach us at hello | ||
<span style={{ display: "none" }}>obfuscate</span>@nextstrain.org. | ||
<br /> | ||
<br /> | ||
We also host office hours via Zoom every week on Thursdays at 10AM US | ||
Pacific time. Email us for the meeting link. | ||
</FocusParagraphNarrow> | ||
</FlexCenter> | ||
|
||
<BigSpacer /> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ReactElement, ReactNode } from "react"; | ||
|
||
import styles from "./styles.module.css"; | ||
|
||
export default function FlexCenter({ | ||
children, | ||
}: { | ||
children: ReactNode; | ||
}): ReactElement { | ||
return <div className={styles.flexCenter}>{children}</div>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.flexCenter { | ||
display: flex; | ||
justify-content: center; | ||
margin: 0px; | ||
padding: 0px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ReactElement, ReactNode } from "react"; | ||
|
||
import styles from "./styles.module.css"; | ||
|
||
export default function FocusParagraphNarrow({ | ||
children, | ||
}: { | ||
children: ReactNode; | ||
}): ReactElement { | ||
return <p className={styles.focus}>{children}</p>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.focus { | ||
font-size: var(--niceFontSize); | ||
font-weight: 300; | ||
line-height: var(--tightLineHight); | ||
margin: 20px 0px 0px; | ||
max-width: 640px; | ||
text-align: left; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
declare module '*.yaml' { | ||
declare module "*.css" { | ||
const value: unknown; | ||
export default value; | ||
} | ||
|
||
declare module "*.jpg" { | ||
const value: { src: string }; | ||
export default value; | ||
} | ||
|
||
declare module "*.png" { | ||
const value: { src: string }; | ||
export default value; | ||
} | ||
|
||
declare module "*.svg" { | ||
const value: { src: string }; | ||
export default value; | ||
} | ||
|
||
declare module "*.yaml" { | ||
// Actual type should be set upon import via type assertion. | ||
const contents: unknown | ||
export default contents | ||
const contents: unknown; | ||
export default contents; | ||
} |