-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split Theia IDE and platform website (#659)
* Split Theia IDE and platform website fixed #658
- Loading branch information
1 parent
0b75c9c
commit 2be76a5
Showing
10 changed files
with
281 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/******************************************************************************** | ||
* Copyright (C) 2020 TypeFox and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the Eclipse | ||
* Public License v. 2.0 are satisfied: GNU General Public License, version 2 | ||
* with the GNU Classpath Exception which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
********************************************************************************/ | ||
const PlatformHeader = () => ( | ||
<div className="header__banner"> | ||
<h2 style={{ fontSize: '2.1rem' }}> | ||
<a href="https://eclipsesource.com/blogs/2024/11/07/eclipse-theia-1-54-release-news-and-noteworthy/" rel="noopener noreferrer">Learn about the latest 1.55 Release</a> and <a href="https://eclipsesource.com/blogs/2024/09/12/the-eclipse-theia-community-release-2024-08/">the latest Community Release (2024-08)</a>. | ||
<br /> | ||
Stay up-to-date: <a href="https://twitter.com/theia_ide">follow us on Twitter</a> and <a href="https://accounts.eclipse.org/mailing-list/friends-of-theia">register to the "Friends of Theia" mailing list</a>. | ||
</h2> | ||
</div> | ||
) | ||
|
||
export default PlatformHeader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
/******************************************************************************** | ||
* Copyright (C) 2020 TypeFox and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the Eclipse | ||
* Public License v. 2.0 are satisfied: GNU General Public License, version 2 | ||
* with the GNU Classpath Exception which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
********************************************************************************/ | ||
|
||
import Background from '../../resources/background-image.png' | ||
import Nav from '../Nav' | ||
import React from 'react' | ||
import CommonNews from './CommonNews' | ||
import { breakpoints } from '../../utils/variables' | ||
import styled from '@emotion/styled' | ||
|
||
const StyledHeader = styled.div` | ||
.header { | ||
position: relative; | ||
background-image: url(${Background}); | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
border-bottom: 10px solid #f8f8f8; | ||
@media(max-width: ${breakpoints.xmd}) { | ||
padding-top: 15rem; | ||
} | ||
&__logo-box { | ||
margin-bottom: 3rem; | ||
} | ||
&__logo { | ||
height: 3rem; | ||
} | ||
.banner__image { | ||
height: auto; | ||
width: 45rem; /* Default width */ | ||
@media (max-width: 800px) { | ||
width: 35rem; /* Adjust for medium screens */ | ||
} | ||
@media (max-width: 500px) { | ||
width: 25rem; /* Further reduce width for smaller screens */ | ||
} | ||
@media (max-width: 385px) { | ||
width:20rem; /* Even smaller for very narrow screens */ | ||
} | ||
} | ||
&__banner { | ||
padding: 15px; | ||
text-align: center; | ||
} | ||
h1 { | ||
margin-bottom: 1rem; | ||
font-size: 3.4rem; | ||
} | ||
.btn { | ||
max-width: 21rem; | ||
@media(max-width: 385px) { | ||
&:not(:last-child) { | ||
margin-right: 0; | ||
} | ||
} | ||
@media(max-width: 800px) { | ||
&:not(:last-child) { | ||
margin-right: 2rem; | ||
} | ||
} | ||
} | ||
&__github-details { | ||
position: absolute; | ||
top: 10rem; | ||
right: 2rem; | ||
} | ||
&__buttons { | ||
display:flex; | ||
justify-content: space-evenly; | ||
align-items: center; | ||
text-align: center; | ||
padding: 3rem 10vw; | ||
@media(max-width: 800px){ | ||
padding: 3rem 0; | ||
} | ||
} | ||
iframe { | ||
height: 2.5rem; | ||
width: 12rem; | ||
} | ||
} | ||
` | ||
|
||
const PlatformHeader = () => ( | ||
<StyledHeader> | ||
<header className='header' role="banner"> | ||
<div className="row"> | ||
<Nav shouldRenderLogo={true} /> | ||
<div className="header__github-details"> | ||
<iframe title="Github Star Count" className="header__github-button" src="https://ghbtns.com/github-btn.html?user=eclipse-theia&repo=theia&type=star&count=true" frameBorder={0} scrolling={0} /> | ||
<iframe title="Github Fork Count" className="header__github-button" src="https://ghbtns.com/github-btn.html?user=eclipse-theia&repo=theia&type=fork&count=true" frameBorder={0} scrolling={0} /> | ||
</div> | ||
<h1 className="heading-primary"> | ||
The Eclipse Theia Platform | ||
</h1> | ||
<h2 style={{ fontSize: '2.1rem' }}> | ||
An Open, Flexible and Extensible Platform to efficiently develop and deliver Cloud & Desktop IDEs and tools with modern web technologies. The <a href="#theiaide"><b>Theia IDE</b></a> is a standard IDE built on the Theia Platform. | ||
</h2> | ||
<div className="header__buttons"> | ||
<a className="btn" href="#gettingstarted" target="_blank" rel="noopener noreferrer">Get started with the Theia Platform</a> | ||
<a className="btn btn--cta" href="https://try.theia-cloud.io/" rel="noopener">Try Theia IDE online</a> | ||
<a style ={{backgroundColor: "#0B5394", borderColor: "#0B5394"}} className="btn btn--cta" href="/#theiaide" rel="noopener">Get Theia IDE for desktop</a> | ||
</div> | ||
</div> | ||
<CommonNews/> | ||
</header> | ||
</StyledHeader> | ||
) | ||
|
||
export default PlatformHeader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import React from 'react' | ||
import BaseHead from './basehead' | ||
|
||
const HeadWithPlatformSchema = ({ canonical }) => ( | ||
<> | ||
<BaseHead canonical={canonical} /> | ||
{/* JSON-LD for Theia Platform */} | ||
<script | ||
type="application/ld+json" | ||
dangerouslySetInnerHTML={{ | ||
__html: JSON.stringify({ | ||
"@context": "https://schema.org", | ||
"@type": "SoftwareApplication", | ||
"name": "Theia Platform", | ||
"url": "https://theia-ide.org/", | ||
"image": "https://theia-ide.org/static/TheiaPlatform.png", | ||
"description": "Theia Platform is an extensible open-source framework for building customizable integrated development environments (IDEs) for desktop and web.", | ||
"applicationCategory": "DeveloperApplication", | ||
"applicationSubCategory": "FrameworkApplication", | ||
"softwareRequirements": "Compatible with VS Code extensions", | ||
"operatingSystem": "Linux, macOS, Windows", | ||
"author": { | ||
"@type": "Organization", | ||
"name": "Eclipse Foundation", | ||
"url": "https://www.eclipse.org/" | ||
}, | ||
"publisher": { | ||
"@type": "Organization", | ||
"name": "Eclipse Foundation", | ||
"url": "https://www.eclipse.org/" | ||
}, | ||
"keywords": [ | ||
"custom IDE", "build custom IDE", "custom IDE Framework", | ||
"alternative VS Code", "alternative Code OSS", "build custom tool", | ||
"custom tool framework" | ||
], | ||
"license": "Eclipse Public License 2.0", | ||
"featureList": [ | ||
"AI-powered", "Open-source", "Build tailored IDEs and Tools", | ||
"Cross-platform support", "VS Code extension compatibility", | ||
"Desktop, browser and cloud support" | ||
] | ||
}) | ||
}} | ||
/> | ||
</> | ||
) | ||
|
||
export default HeadWithPlatformSchema |
Oops, something went wrong.