From 9cf4487a897c356794b07ff6c3e8a5aaa27d1494 Mon Sep 17 00:00:00 2001 From: Paul Pilone Date: Mon, 23 Oct 2023 22:02:26 -0400 Subject: [PATCH] [290] Updates welcome modal copy and always shows it --- website/src/js/layouts/Main.js | 48 +++++++++------------------------- 1 file changed, 13 insertions(+), 35 deletions(-) diff --git a/website/src/js/layouts/Main.js b/website/src/js/layouts/Main.js index f8c18051..281257e4 100755 --- a/website/src/js/layouts/Main.js +++ b/website/src/js/layouts/Main.js @@ -37,8 +37,6 @@ const navigation_links = [ }, ]; -const firstVisitCookieName = "obp-search_visited"; - class Main extends Component { componentDidMount() { @@ -62,19 +60,10 @@ class Main extends Component { this.props.history.push(route); } - // sets cookie on welcome message modal close - handleWelcomeModalClose() { - const cookieDate = new Date(); - cookieDate.setFullYear(cookieDate.getFullYear() + 1); - document.cookie = `${firstVisitCookieName}=true; expires=${cookieDate.toUTCString()};`; - } - render() { const { search, activeSearch } = this.props.searchReducer; - const isFirstTimeVisit = !document.cookie.includes(firstVisitCookieName); - return (
@@ -134,30 +123,19 @@ class Main extends Component {
- {isFirstTimeVisit && ( - -
-

- The Ocean Best Practices System (OBPS) is a secure, permanent global repository of ocean research, operations, data/information management and - applications methodologies (also known as “BestPractices”) ** The OBPS invites the ocean community to submit their own methodologies to share - globally with their colleagues. -

-

- Please note, unless it is annotated as Endorsed by an Expert Panel, inclusion of a methodology in OBPS does not indicate a recommendation by OBPS. -

-

- ** A Best Practice is defined as “a methodology that has repeatedly produced superior results relative to other methodologies with the same objective”. To be fully elevated to a best practice, - a promising method will have been adopted and employed by multiple organizations. -

-
-
- )} + +
+

+ The OBPS is a secure, permanent global repository of ocean research, operations, data/information and applications methods. + Methods not showing as “ENDORSED” may not be best practices. +

+
+
); }