From c414fcbb455aa2956756a9889f8461f661213f7d Mon Sep 17 00:00:00 2001 From: gabestein Date: Wed, 17 Jul 2024 14:31:19 -0400 Subject: [PATCH 01/12] redo landing page and remove some old routes --- client/components/Footer/Footer.tsx | 16 +- .../GlobalControls/GlobalControls.tsx | 7 +- client/containers/Landing/Landing.tsx | 208 ++---------------- server/routes/index.ts | 8 +- 4 files changed, 29 insertions(+), 210 deletions(-) diff --git a/client/components/Footer/Footer.tsx b/client/components/Footer/Footer.tsx index 08e2d4b18a..4fbc87e17f 100644 --- a/client/components/Footer/Footer.tsx +++ b/client/components/Footer/Footer.tsx @@ -33,7 +33,7 @@ const defaultProps = { type Props = OwnProps & typeof defaultProps; const basePubPubFooterLinks = [ - { id: '1', title: 'Create your community', href: '/community/create' }, + /* { id: '1', title: 'Create your community', href: '/community/create' }, */ { id: '2', title: 'Login', href: '/login' }, { id: '3', title: 'Signup', href: '/signup' }, { id: '4', title: 'Legal', href: '/legal' }, @@ -143,21 +143,17 @@ const Footer = (props: Props) => {
diff --git a/client/components/GlobalControls/GlobalControls.tsx b/client/components/GlobalControls/GlobalControls.tsx index cf2ddab065..674384cfbf 100644 --- a/client/components/GlobalControls/GlobalControls.tsx +++ b/client/components/GlobalControls/GlobalControls.tsx @@ -99,9 +99,10 @@ const GlobalControls = (props: Props) => { if (isBasePubPub) { return ( <> - - - + {renderSearch()} ); diff --git a/client/containers/Landing/Landing.tsx b/client/containers/Landing/Landing.tsx index 9dd986af8f..4ed761f847 100644 --- a/client/containers/Landing/Landing.tsx +++ b/client/containers/Landing/Landing.tsx @@ -145,8 +145,7 @@ const Landing = () => { const communityGrid = communities.map((community) => { return ( - // @ts-expect-error ts-migrate(2322) FIXME: Type '{ children: Element[]; className: string; ke... Remove this comment to see the full error message -
+
{community.type} / {community.category}
@@ -174,20 +173,26 @@ const Landing = () => {
-

PubPub

+

PubPub Legacy

- The open-source, community-led, end-to-end publishing platform for - knowledge communities. + PubPub is evolving. Read our announcement to learn about the new + PubPub Platform for creating full-stack knowledge infrastructure and + our plans for helping PubPub Legacy users transition by May 2025.

-

Create knowledge. Share it with audiences who care.

@@ -195,189 +200,6 @@ const Landing = () => {
{/* END Jumbotron */} - {/* BEGIN Main; content */} -
- {/* BEGIN Mission Block */} -
-
-
-

Mission

-
-
- As a product of the{' '} - - Knowledge Futures Group - - , PubPub is open and accessible to all. That means a free, robust - version of PubPub will always be available, operating under a - non-profit, sustainable business model. -
-
-

Open & Community-Led

-
- -
-
- {/* END Mission Block */} - {/* BEGIN Features Block */} -
-
-
-

Key Features

-
-
-
-
-

Collaborate & edit with co-authors in real time

- Screenshot of a PubPub editor interface with multiple users editing at the same time. -
-
-

01

-
    -
  • Keep everyone in the loop
  • - {/*
  • Collaborate in real-time
  • */} -
  • Assign roles on-the-fly
  • -
-
-
-

Import your work from any source

- Screenshot of the PubPub import interface uploading a complex LaTeX document. -
-
-

02

-
    -
  • Easy multi-file imports
  • -
  • Complex-content friendly
  • -
  • Word, XML, LaTeX, and Markdown
  • -
-
-
-

Embed rich multimedia in your publication

- Examples of rich content embedded in Pubs, including an equation, a stem and tree chart, and an interactive song picker. -
-
-

03

-
    -
  • Data visualizations
  • -
  • Images, videos, and math
  • -
  • Code, interactives, and more
  • -
-
-
-

Other Features

-
-
{featureGrid}
-
-
- {/* END Features Block */} - {/* BEGIN Case Study Block */} -
-
-
-

Community Services

-
-
-

- For groups that want personalized support we offer production, - training, and strategy services for building high quality, effective - publishing communities. -

-
- "The team’s innovation and experience made for an incredible - collaboration." -
- - - Jeremy Bailenson, Author, “ - - A Theoretical Argument for the Causes of Zoom Fatigue - - ” - -
- -
-
-
- {/* END Case Study Block */} - {/* BEGIN Communities Block */} -
-
-
-

Use Cases

-
-
-

- Thousands of communities are tailoring PubPub to suit their - publishing needs, goals, and content types. -

-
{communityGrid}
- -
-
-
- {/* END Communities Block */} - {/* BEGIN Create Block */} -
-
-
-

Create

-
-
-

Anyone can start a PubPub Community, anytime, for free.

- -

- * A community can be your individual space to create content, or you - can invite others to collaborate with you! -

-
-
-
- {/* END Create Block */} - {/* BEGIN Pitch Block */} -
-
-
-

- PubPub empowers knowledge communities to define their own community - engagement models and manage their publishing workflows. Use PubPub - to more closely align knowledge sharing with community building. -

-
-
-
- {/* END Create Block */} -
{/* END Main content */}
); diff --git a/server/routes/index.ts b/server/routes/index.ts index ffefb5f15f..ee3b84f954 100644 --- a/server/routes/index.ts +++ b/server/routes/index.ts @@ -26,11 +26,11 @@ require('./submit'); /* Routes for PubPub */ require('./communityCreate'); // Route: '/community/create' -require('./communityServices'); // Route: '/community-services' -require('./explore'); // Route: '/explore' -require('./about'); // Route: '/about' +/* require('./communityServices'); // Route: '/community-services' */ +/* require('./explore'); // Route: '/explore' */ +/* require('./about'); // Route: '/about' */ require('./email'); // Route: '/email' -require('./pricing'); // Route: '/pricing' +/* require('./pricing'); // Route: '/pricing' */ require('./adminDashboard'); // Route: '/admin' require('./landing'); // Route: '/' From e087df10d12fb1877475e242d66e2565eb88f186 Mon Sep 17 00:00:00 2001 From: gabestein Date: Wed, 17 Jul 2024 14:32:13 -0400 Subject: [PATCH 02/12] get rid of landing page lint errors --- client/containers/Landing/Landing.tsx | 155 -------------------------- 1 file changed, 155 deletions(-) diff --git a/client/containers/Landing/Landing.tsx b/client/containers/Landing/Landing.tsx index 4ed761f847..7fc411483e 100644 --- a/client/containers/Landing/Landing.tsx +++ b/client/containers/Landing/Landing.tsx @@ -1,164 +1,9 @@ import React from 'react'; import { Classes } from '@blueprintjs/core'; -import { Icon } from 'components'; - require('./landing.scss'); -const features = [ - { - icon: 'badge', - title: 'DOI Support', - desc: 'Generate CrossRef DOIs for your documents in one click.', - }, - { - icon: 'shield', - title: 'Submissions & Review', - desc: 'Manage submissions and peer review directly on PubPub.', - }, - { - icon: 'comment', - title: 'Discussions & Annotations', - desc: 'Host public and private discussions with your readers and community, whether in your classroom or across the world.', - }, - { - icon: 'page-layout', - title: 'Easily Customizable Layouts', - desc: 'Create your custom site without writing a line of code.', - }, - { - icon: 'book', - title: 'Collection Metadata', - desc: 'Include article & collection-level metadata for easier organization of content and improved discovery.', - }, - { - icon: 'people', - title: 'Access Control', - desc: 'Allow anyone to access your content, or just the people you choose.', - }, - { - icon: 'grouped-bar-chart', - title: 'Impact Measurement', - desc: 'Learn about the people visiting your community with a full suite of privacy-respecting analytics.', - }, - { - icon: 'graph', - title: 'Content Connections', - desc: 'Add typed relationships — reviews, commentary, supplement, etc. — to your content and deposit them to Crossref.', - }, - { - icon: 'export', - title: 'Document Export', - desc: 'Export your work to PDF, Word, Markdown, LaTeX, JATS XML, and more.', - }, -] as const; - -const communities = [ - { - name: 'Harvard Data Science Review', - description: 'A microscopic, telescopic & kaleidoscopic view of data science.', - logo: '/static/landing/hdsr.png', - type: 'Journals', - category: 'Science', - link: 'https://hdsr.mitpress.mit.edu', - }, - { - name: 'Frankenbook', - description: - 'A collaborative, multimedia reading experiment with Mary Shelley’s classic novel.', - logo: '/static/landing/frankenbook.png', - type: 'Books', - category: 'Literature', - link: 'https://frankenbook.org', - }, - { - name: 'Collective Wisdom', - description: "The British Library's early access and community review site.", - logo: '/static/landing/collective.png', - type: 'Resources', - category: 'Reports', - link: 'https://britishlibrary.pubpub.org/', - }, - { - name: 'SERC Ethical Computing', - description: 'A series on the social and ethical responsibilities of computing.', - logo: '/static/landing/serc.png', - type: 'Resources', - category: 'Case studies', - link: 'https://mit-serc.pubpub.org', - }, - { - name: 'Contours Collaborations', - description: 'A series on the social and ethical responsibilities of computing.', - logo: '/static/landing/contours.png', - type: 'Exhibits', - category: 'Arts', - link: 'https://contours.pubpub.org', - }, - { - name: 'Fermentology', - description: 'On the culture, history, and novelty of fermented things.', - logo: '/static/landing/fermentology.png', - type: 'Learning Series', - category: 'Multimedia', - link: 'https://fermentology.pubpub.org/', - }, - { - name: 'Grad Journal of Food Studies', - description: - 'An international student-run and refereed platform dedicated to encouraging and promoting interdisciplinary food scholarship at the graduate level', - logo: '/static/landing/gafs.png', - type: 'Student Journals', - category: 'Interdisciplinary', - link: 'https://gradfoodstudies.pubpub.org/', - }, - { - name: 'Critical Distance', - description: 'A pandemic and games essay jam.', - logo: '/static/landing/pgej.png', - type: 'Conferences', - category: 'Sprint', - link: 'https://pandemics-and-games-essay-jam.pubpub.org/', - }, - { - name: 'MIT Press Open Architecture', - description: 'An open collection of out-of-print humanities books.', - logo: '/static/landing/arch.png', - type: 'Collections', - category: 'Open humanities', - link: 'https://mitp-arch.mitpress.mit.edu/', - }, -]; - const Landing = () => { - const featureGrid = features.map((feature) => { - return ( -
- -
-

{feature.title}

-

{feature.desc}

-
-
- ); - }); - - const communityGrid = communities.map((community) => { - return ( -
-
- {community.type} / {community.category} -
-

- {community.name} -

- - {`Logo - -

{community.description}

-
- ); - }); return (