Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "contact" page #760

Merged
merged 2 commits into from
Dec 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion auspice-client/customisations/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const NavBar = ({sidebar, narrativeTitle, width}) => {
<div style={{...styles.flexColumns, paddingRight: "12px"}}>
<div style={{flex: 5}}/>
<Link href="https://docs.nextstrain.org/en/latest/index.html" style={styles.link} text="DOCS"/>
<Link href="https://docs.nextstrain.org/en/latest/learn/about-nextstrain.html" style={styles.link} text="HELP"/>
<Link href="/contact" style={styles.link} text="CONTACT"/>
<WhoAmI sidebar={sidebar}/>
</div>
)
Expand Down
4 changes: 2 additions & 2 deletions auspice-client/customisations/splash.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ function ErrorMessage({errorMessage}) {
There seems to have been an error accessing that dataset.
<p style={{fontSize: "14px"}}>
{`Details: ${errorMessage}. Please `}
<a href={"mailto:[email protected]"} style={{color: "inherit", textDecoration: "underline"}}>
email us
<a href="/contact" style={{color: "inherit", textDecoration: "underline"}}>
contact us
</a>
{` if you think this is a bug.`}
</p>
Expand Down
4 changes: 2 additions & 2 deletions static-site/data/SiteConfig.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ export const groupsApp = false;
export const groupsTitle = "Scalable Sharing with Nextstrain Groups";

export const ErrorBannerInitialMessage = () => (<>
Please <a href="mailto:[email protected]">contact us at [email protected]</a> if you believe this to be an error.
Please <Link to="/contact">contact us</Link> if you believe this to be an error.
</>);

export const DataFetchError = () => (<>
Something went wrong getting data.
Please <a href="mailto:[email protected]">contact us at [email protected]</a> if this continues to happen.
Please <Link to="/contact">contact us</Link> if this continues to happen.
</>);

export const GroupsAbstract = () => (<>
Expand Down
2 changes: 1 addition & 1 deletion static-site/src/components/nav-bar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ class NavBar extends React.Component {
<div style={{flex: 5}}/>
{!groupsApp &&
<>
<NavLinkToGoToServer minified={minified} href="https://docs.nextstrain.org/en/latest/learn/about-nextstrain.html" >HELP</NavLinkToGoToServer>
<NavLinkToGoToServer minified={minified} href="https://docs.nextstrain.org/en/latest/index.html" >DOCS</NavLinkToGoToServer>
<NavLinkToBeHandledByGatsby minified={minified} to="/contact">CONTACT</NavLinkToBeHandledByGatsby>
{ /* Only display "blog" if we're not minified */
minified ?
null :
Expand Down
1 change: 1 addition & 0 deletions static-site/src/components/splash/errorMessages.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { Link } from 'gatsby';
import * as splashStyles from "./styles";
import { ErrorBannerInitialMessage, DataFetchError } from '../../../data/SiteConfig';

Expand Down
8 changes: 3 additions & 5 deletions static-site/src/components/splash/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react";
import ScrollableAnchor, { configureAnchors } from 'react-scrollable-anchor';
import { Link } from 'gatsby';
import Cards from "../Cards";
import nCoVCards from "../Cards/nCoVCards";
import coreCards from "../Cards/coreCards";
Expand Down Expand Up @@ -62,8 +63,7 @@ class Splash extends React.Component {
potential of pathogen genome data. We provide a continually-updated view of publicly
available data alongside powerful analytic and visualization tools for use by the
community. Our goal is to aid epidemiological understanding and improve outbreak
response. If you have any questions, or simply want to say hi, please give us a shout at
hello<span style={{display: "none"}}>obfuscate</span>@nextstrain.org.
response. If you have any questions, please <Link to="/contact">contact us</Link>.
</Styles.CenteredFocusParagraph>
</FlexCenter>

Expand Down Expand Up @@ -176,9 +176,7 @@ class Splash extends React.Component {
<Styles.FocusParagraph>
Nextstrain is under active development and we have big plans for its future, including
visualization, bioinformatics analysis and an increasing number and variety of
datasets. If you have any questions or ideas, please give us a shout at hello
<span style={{display: "none"}}>obfuscate</span>
@nextstrain.org.
datasets. If you have any questions or ideas, please <Link to="/contact">contact us</Link>.
</Styles.FocusParagraph>
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions static-site/src/components/splash/styles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ export const FocusParagraph = styled.p`
line-height: ${(props) => props.theme.tightLineHeight};
`;

export const NarrowFocusParagraph = styled(FocusParagraph)`
max-width: 640px;
`;

export const IconParagraph = styled.div`
margin-top: 0px;
margin-right: auto;
Expand Down
41 changes: 41 additions & 0 deletions static-site/src/pages/contact.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import React from "react";
import GenericPage from "../layouts/generic-page";
import { BigSpacer, FlexCenter} from "../layouts/generalComponents";
import { H1, NarrowFocusParagraph } from "../components/splash/styles";


const Contact = props => (
<GenericPage location={props.location}>
<H1>Contact Us</H1>

<FlexCenter>
<NarrowFocusParagraph>
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.
Comment on lines +32 to +33
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@huddlej what do you think of this office hours advertisement?

</NarrowFocusParagraph>
</FlexCenter>

<BigSpacer/>
</GenericPage>
);

export default Contact;
5 changes: 2 additions & 3 deletions static-site/src/sections/sequence-search.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react";
import Select, {createFilter} from 'react-select';
import { Link } from 'gatsby';
import styled from 'styled-components';
import {FaFile, FaExclamation} from "react-icons/fa";
import { SmallSpacer, MediumSpacer, HugeSpacer, FlexCenter } from "../layouts/generalComponents";
Expand Down Expand Up @@ -80,9 +81,7 @@ class SequencesToDatasets extends React.Component {
<strong style={{color: 'red', paddingBottom: '20px'}}>
This functionality is no longer being maintained, but we hope to revisit this in the future.
{` Please `}
<a href={"mailto:[email protected]"} style={{color: "inherit", textDecoration: "underline"}}>
get in touch
</a>
<Link to="/contact">contact us</Link>
{` if you were relying on this functionality and we'll see if we can help.`}
</strong>
<p/>
Expand Down
Loading