From 2be76a5558cdc75e355b3ab180b805ee087885ed Mon Sep 17 00:00:00 2001 From: Jonas Helming Date: Mon, 2 Dec 2024 11:46:26 +0100 Subject: [PATCH] Split Theia IDE and platform website (#659) * Split Theia IDE and platform website fixed #658 --- gatsby-node.js | 2 +- src/components/Nav.js | 5 +- src/components/index/CommonNews.js | 26 ++++ src/components/index/Header.js | 30 ++--- src/components/index/PlatformHeader.js | 126 ++++++++++++++++++ src/components/index/TheiaIDEDownloads.js | 3 +- ...headwithschema.js => headwithIDEschema.js} | 43 +----- src/layouts/headwithPlatformschema.js | 49 +++++++ src/pages/index.js | 50 ++----- src/pages/theia-platform.js | 44 ++++++ 10 files changed, 281 insertions(+), 97 deletions(-) create mode 100644 src/components/index/CommonNews.js create mode 100644 src/components/index/PlatformHeader.js rename src/layouts/{headwithschema.js => headwithIDEschema.js} (53%) create mode 100644 src/layouts/headwithPlatformschema.js create mode 100644 src/pages/theia-platform.js diff --git a/gatsby-node.js b/gatsby-node.js index 85eee246..63218233 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -30,7 +30,7 @@ exports.onCreateWebpackConfig = ({ actions }) => { }; exports.onCreatePage = async ({ page, reporter, actions }) => { - if (page.path === '/') { + if (page.path === '/' || page.path === '/theia-platform/') { try { const response = await fetch( 'https://api.eclipse.org/adopters/projects/ecd.theia', { diff --git a/src/components/Nav.js b/src/components/Nav.js index d2b2ce63..8bf70b9b 100644 --- a/src/components/Nav.js +++ b/src/components/Nav.js @@ -226,10 +226,13 @@ class Nav extends React.Component { -