From 6edaaf289757f151f9488f52f548368a0c251cd7 Mon Sep 17 00:00:00 2001
From: Victor Lin <13424970+victorlin@users.noreply.github.com>
Date: Thu, 30 Nov 2023 16:11:14 -0500
Subject: [PATCH 1/2] Add a "contact" page
Previously, the only means of contact shown on this website was the
hello@ email. This new contact page lists preferred means of
communication under various scenarios.
hello@ is still appropriate in the case of setting up a new group for
Nextstrain Groups, but all the other references to the email have been
replaced with a link to the new page.
---
auspice-client/customisations/navbar.js | 1 +
auspice-client/customisations/splash.js | 4 +-
static-site/data/SiteConfig.jsx | 4 +-
static-site/src/components/nav-bar/index.jsx | 1 +
.../src/components/splash/errorMessages.jsx | 1 +
static-site/src/components/splash/index.jsx | 8 ++--
static-site/src/components/splash/styles.jsx | 4 ++
static-site/src/pages/contact.jsx | 41 +++++++++++++++++++
static-site/src/sections/sequence-search.jsx | 5 +--
9 files changed, 57 insertions(+), 12 deletions(-)
create mode 100644 static-site/src/pages/contact.jsx
diff --git a/auspice-client/customisations/navbar.js b/auspice-client/customisations/navbar.js
index ff687b21d..c31ba6fea 100644
--- a/auspice-client/customisations/navbar.js
+++ b/auspice-client/customisations/navbar.js
@@ -124,6 +124,7 @@ const NavBar = ({sidebar, narrativeTitle, width}) => {
+
)
diff --git a/auspice-client/customisations/splash.js b/auspice-client/customisations/splash.js
index 1fc85763c..2b9ffdb41 100644
--- a/auspice-client/customisations/splash.js
+++ b/auspice-client/customisations/splash.js
@@ -105,8 +105,8 @@ function ErrorMessage({errorMessage}) {
There seems to have been an error accessing that dataset.
diff --git a/static-site/data/SiteConfig.jsx b/static-site/data/SiteConfig.jsx
index e9129be33..54b930dcd 100644
--- a/static-site/data/SiteConfig.jsx
+++ b/static-site/data/SiteConfig.jsx
@@ -20,12 +20,12 @@ export const groupsApp = false;
export const groupsTitle = "Scalable Sharing with Nextstrain Groups";
export const ErrorBannerInitialMessage = () => (<>
- Please contact us at hello@nextstrain.org if you believe this to be an error.
+ Please contact us if you believe this to be an error.
>);
export const DataFetchError = () => (<>
Something went wrong getting data.
- Please contact us at hello@nextstrain.org if this continues to happen.
+ Please contact us if this continues to happen.
>);
export const GroupsAbstract = () => (<>
diff --git a/static-site/src/components/nav-bar/index.jsx b/static-site/src/components/nav-bar/index.jsx
index 09682b9fc..f53fccb41 100644
--- a/static-site/src/components/nav-bar/index.jsx
+++ b/static-site/src/components/nav-bar/index.jsx
@@ -131,6 +131,7 @@ class NavBar extends React.Component {
<>
HELPDOCS
+ CONTACT
{ /* Only display "blog" if we're not minified */
minified ?
null :
diff --git a/static-site/src/components/splash/errorMessages.jsx b/static-site/src/components/splash/errorMessages.jsx
index b3187a718..8b844321f 100644
--- a/static-site/src/components/splash/errorMessages.jsx
+++ b/static-site/src/components/splash/errorMessages.jsx
@@ -1,4 +1,5 @@
import React from 'react';
+import { Link } from 'gatsby';
import * as splashStyles from "./styles";
import { ErrorBannerInitialMessage, DataFetchError } from '../../../data/SiteConfig';
diff --git a/static-site/src/components/splash/index.jsx b/static-site/src/components/splash/index.jsx
index 9f90534cf..fd2e8066b 100644
--- a/static-site/src/components/splash/index.jsx
+++ b/static-site/src/components/splash/index.jsx
@@ -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";
@@ -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
- helloobfuscate@nextstrain.org.
+ response. If you have any questions, please contact us.
@@ -176,9 +176,7 @@ class Splash extends React.Component {
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
- obfuscate
- @nextstrain.org.
+ datasets. If you have any questions or ideas, please contact us.
diff --git a/static-site/src/components/splash/styles.jsx b/static-site/src/components/splash/styles.jsx
index 5c7267d55..6a147a430 100644
--- a/static-site/src/components/splash/styles.jsx
+++ b/static-site/src/components/splash/styles.jsx
@@ -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;
diff --git a/static-site/src/pages/contact.jsx b/static-site/src/pages/contact.jsx
new file mode 100644
index 000000000..87050f85d
--- /dev/null
+++ b/static-site/src/pages/contact.jsx
@@ -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 => (
+
+
Contact Us
+
+
+
+ We are a small team, but connecting with users is important to us.
+
+
+ If you have a general question about Nextstrain, we encourage you to post on our{" "}
+
+ discussion forum
+ , where both Nextstrain team members and other community members can assist you.
+
+
+ To send a bug report or feature request, please open an issue in one of our{" "}
+
+ GitHub repositories
+ .
+
+
+ For private inquiries, you can reach us at
+ helloobfuscate@nextstrain.org.
+
+
+ We also host office hours via Zoom every week on Thursdays at 10AM US Pacific time.
+ Email us for the meeting link.
+
+
+
+
+
+);
+
+export default Contact;
diff --git a/static-site/src/sections/sequence-search.jsx b/static-site/src/sections/sequence-search.jsx
index 615e6d177..e8e97dd2d 100644
--- a/static-site/src/sections/sequence-search.jsx
+++ b/static-site/src/sections/sequence-search.jsx
@@ -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";
@@ -80,9 +81,7 @@ class SequencesToDatasets extends React.Component {
This functionality is no longer being maintained, but we hope to revisit this in the future.
{` Please `}
-
- get in touch
-
+ contact us
{` if you were relying on this functionality and we'll see if we can help.`}
From 600ec4b476bd6d0366af3b42fb0fba683a73d900 Mon Sep 17 00:00:00 2001
From: Victor Lin <13424970+victorlin@users.noreply.github.com>
Date: Thu, 30 Nov 2023 16:20:54 -0500
Subject: [PATCH 2/2] Remove "help" link
This linked to a specific doc page. It doesn't seem that useful anymore
now that there is both a link to the docs and a new contact page which
provides a means of "help".
---
auspice-client/customisations/navbar.js | 1 -
static-site/src/components/nav-bar/index.jsx | 1 -
2 files changed, 2 deletions(-)
diff --git a/auspice-client/customisations/navbar.js b/auspice-client/customisations/navbar.js
index c31ba6fea..a96781261 100644
--- a/auspice-client/customisations/navbar.js
+++ b/auspice-client/customisations/navbar.js
@@ -123,7 +123,6 @@ const NavBar = ({sidebar, narrativeTitle, width}) => {
-
diff --git a/static-site/src/components/nav-bar/index.jsx b/static-site/src/components/nav-bar/index.jsx
index f53fccb41..78821bd67 100644
--- a/static-site/src/components/nav-bar/index.jsx
+++ b/static-site/src/components/nav-bar/index.jsx
@@ -129,7 +129,6 @@ class NavBar extends React.Component {
{!groupsApp &&
<>
- HELPDOCSCONTACT
{ /* Only display "blog" if we're not minified */