|
2 | 2 | * Copyright (c) Red Hat, Inc. All rights reserved. |
3 | 3 | * Licensed under the MIT License. See LICENSE file in the project root for license information. |
4 | 4 | *-----------------------------------------------------------------------------------------------*/ |
5 | | -import React from 'react'; |
6 | | -import { VSCodeMessage } from './vsCodeMessage'; |
7 | | -import { Checkbox, FormControlLabel, Icon, Stack, SvgIcon, Typography } from '@mui/material'; |
8 | | -import HelpIcon from '@mui/icons-material/Help'; |
9 | | -import ChatIcon from '@mui/icons-material/Chat'; |
10 | 5 | import BugReportIcon from '@mui/icons-material/BugReport'; |
| 6 | +import ChatIcon from '@mui/icons-material/Chat'; |
11 | 7 | import GitHubIcon from '@mui/icons-material/GitHub'; |
12 | | -import RocketLaunchIcon from '@mui/icons-material/RocketLaunch'; |
| 8 | +import HelpIcon from '@mui/icons-material/Help'; |
13 | 9 | import LaptopMacIcon from '@mui/icons-material/LaptopMac'; |
| 10 | +import RocketLaunchIcon from '@mui/icons-material/RocketLaunch'; |
| 11 | +import { Box, Checkbox, FormControlLabel, Icon, Stack, SvgIcon, Typography } from '@mui/material'; |
| 12 | +import React from 'react'; |
14 | 13 | import ScrollToTop from 'react-scroll-to-top'; |
15 | | -import './welcome.scss'; |
16 | 14 | import OpenShiftExtensionIcon from '../../../../images/openshift_extension.png'; |
17 | | -import OdoLogo from '../../../../images/welcome/odo.png'; |
18 | | -import MicrosoftLogo from '../../../../images/welcome/microsoft.svg'; |
19 | 15 | import OpenShiftLogo from '../../../../images/title/logo.svg'; |
20 | | -import DevfileBranding from '../../../../images/welcome/devfile.png'; |
21 | | -import ComponentBranding from '../../../../images/welcome/component.png'; |
22 | | -import CloudBranding from '../../../../images/welcome/cloud.svg'; |
23 | 16 | import OpenShiftBranding from '../../../../images/welcome/OpenShift-Branding-box.png'; |
| 17 | +import CloudBranding from '../../../../images/welcome/cloud.svg'; |
| 18 | +import ComponentBranding from '../../../../images/welcome/component.png'; |
| 19 | +import DevfileBranding from '../../../../images/welcome/devfile.png'; |
| 20 | +import MicrosoftLogo from '../../../../images/welcome/microsoft.svg'; |
| 21 | +import OdoLogo from '../../../../images/welcome/odo.png'; |
| 22 | +import { VSCodeMessage } from './vsCodeMessage'; |
| 23 | +import './welcome.scss'; |
24 | 24 |
|
25 | 25 | export interface DefaultProps { |
26 | 26 | analytics?: import('@segment/analytics-next').Analytics; |
@@ -366,38 +366,36 @@ export class Welcome extends React.Component<DefaultProps, { |
366 | 366 | <img className='content__image__preview' src={DevfileBranding} /> |
367 | 367 | </div> |
368 | 368 | </section> |
369 | | - <section className='section--settings' style={{ gap: '3rem' }}> |
370 | | - <div className='sticky-section'> |
371 | | - <div className='setting__input setting__input--big' style={{ borderBottom: '0px' }}> |
372 | | - <label style={{ display: 'flex', flexDirection: 'row' }}> |
373 | | - <Typography variant='h2' className='highlight'>OpenShift extension</Typography> |
374 | | - </label> |
| 369 | + <Stack direction='row' width='100%' alignItems='stretch' justifyContent='center' gap='1em 2em' margin='1em' padding='1em' flexWrap='wrap'> |
| 370 | + <Stack alignSelf='stretch' flexShrink='1' marginY={1}> |
| 371 | + <Box position='sticky' top='calc(50vh - 37.5px)'> |
| 372 | + <Typography variant='h2' className='highlight' textAlign='right'>OpenShift extension</Typography> |
| 373 | + </Box> |
| 374 | + </Stack> |
| 375 | + <Stack direction='column' width='max(50%, 500px)' gap='1em'> |
| 376 | + <div> |
| 377 | + <p>Allows developers to easily <b>create, deploy and live debug</b> container applications running on OpenShift & Kubernetes. Thus enhancing the development inner loop workflow through One-click actions right from IDE.</p> |
375 | 378 | </div> |
376 | | - </div> |
377 | | - <section className='sticky-section-content'> |
378 | | - <div className='sticky-section-exten'> |
379 | | - <p className='section__header-hint sticky-section-hint'>Allows developers to easily <b>create, deploy and live debug</b> container applications running on OpenShift & Kubernetes. Thus enhancing the development inner loop workflow through One-click actions right from IDE.</p> |
380 | | - </div> |
381 | | - <div className='sticky-section-exten'> |
382 | | - <p className='section__header-hint sticky-section-hint'>Allows developers to <b>Push code fast and often.</b> Spend less time maintaining your deployment infrastructure and more time coding. Immediately have your application running each time you compile.</p> |
| 379 | + <div> |
| 380 | + <p>Allows developers to <b>Push code fast and often.</b> Spend less time maintaining your deployment infrastructure and more time coding. Immediately have your application running each time you compile.</p> |
383 | 381 | </div> |
384 | | - <div className='sticky-section-exten'> |
385 | | - <p className='section__header-hint sticky-section-hint'><b>Import your code from git</b> and deploy on OpenShift using recommended devfile.</p> |
| 382 | + <div> |
| 383 | + <p><b>Import your code from git</b> and deploy on OpenShift using recommended devfile.</p> |
386 | 384 | </div> |
387 | | - <div className='sticky-section-exten'> |
388 | | - <p className='section__header-hint sticky-section-hint'>Allows to browse the catalog and discover <b>Helm Charts</b> and install them on the connected cluster.</p> |
| 385 | + <div> |
| 386 | + <p>Allows to browse the catalog and discover <b>Helm Charts</b> and install them on the connected cluster.</p> |
389 | 387 | </div> |
390 | | - <div className='sticky-section-exten'> |
391 | | - <p className='section__header-hint sticky-section-hint'>Allows to connect & <b>provision free OpenShift cluster</b> from IDE, using a guided workflow. This workflow allows you to either Run OpenShift locally or provision a free 30 days Developer Sandbox.</p> |
| 388 | + <div> |
| 389 | + <p>Allows to connect & <b>provision free OpenShift cluster</b> from IDE, using a guided workflow. This workflow allows you to either Run OpenShift locally or provision a free 30 days Developer Sandbox.</p> |
392 | 390 | </div> |
393 | | - <div className='sticky-section-exten'> |
394 | | - <p className='section__header-hint sticky-section-hint'>Allows Monitoring through <b>view and stream logs</b> from your deployments, pods and containers for Kubernetes resources, with One Click from IDE. |
| 391 | + <div> |
| 392 | + <p>Allows Monitoring through <b>view and stream logs</b> from your deployments, pods and containers for Kubernetes resources, with One Click from IDE. |
395 | 393 | </p> |
396 | 394 | </div> |
397 | | - </section> |
398 | | - </section> |
399 | | - {this.footer} |
| 395 | + </Stack> |
| 396 | + </Stack> |
400 | 397 | </div> |
| 398 | + {this.footer} |
401 | 399 | </div> |
402 | 400 | <div className='header__logo'> |
403 | 401 | <FormControlLabel control={<Checkbox checked={isChecked} onChange={this.updateShowWelcomePageConfig} sx={{ color: 'var(--vscode-foreground)', '&.Mui-checked': { color: 'var(--vscode-foreground)' } }} />} |
|
0 commit comments