|
| 1 | +import Link from '@docusaurus/Link'; |
1 | 2 | import styles from './styles.module.css'; |
2 | 3 |
|
3 | | -import Link from '@docusaurus/Link'; |
| 4 | +import Button from '@site/src/components/Button'; |
4 | 5 | import LinuxLogo from '@site/static/img/linux-logo.svg'; |
5 | 6 | import MacOSLogo from '@site/static/img/mac-os-logo.svg'; |
6 | 7 | import WindowsLogo from '@site/static/img/windows-logo.svg'; |
7 | 8 | import Heading from '@theme/Heading'; |
8 | 9 |
|
| 10 | +const getInstallLink = (os: 'WINDOWS' | 'MACOS' | 'LINUX') => |
| 11 | + `https://docs.openvino.ai/2025/get-started/install-openvino.html?PACKAGE=OPENVINO_GENAI&VERSION=v_2025_0_0&OP_SYSTEM=${os}&DISTRIBUTION=PIP`; |
| 12 | + |
9 | 13 | const INSTALLATION_ITEMS = [ |
10 | 14 | { |
11 | | - title: 'Linux install', |
| 15 | + title: 'Linux', |
12 | 16 | Icon: LinuxLogo, |
| 17 | + link: getInstallLink('LINUX'), |
13 | 18 | }, |
14 | 19 | { |
15 | | - title: 'Windows install', |
| 20 | + title: 'Windows', |
16 | 21 | Icon: WindowsLogo, |
| 22 | + link: getInstallLink('WINDOWS'), |
17 | 23 | }, |
18 | 24 | { |
19 | | - title: 'MacOS install', |
| 25 | + title: 'MacOS', |
20 | 26 | Icon: MacOSLogo, |
| 27 | + link: getInstallLink('MACOS'), |
21 | 28 | }, |
22 | 29 | ]; |
23 | 30 |
|
24 | | -const InstallationItems = () => { |
| 31 | +const InstallationOptions = () => { |
25 | 32 | return ( |
26 | | - <ul className={styles.installationOptions}> |
27 | | - {INSTALLATION_ITEMS.map(({ title, Icon }) => ( |
28 | | - <li key={title} className={styles.installationOptionsItem}> |
29 | | - <Icon role="img" aria-label={title} /> |
30 | | - <span>{title}</span> |
31 | | - </li> |
| 33 | + <div className={styles.installationOptions}> |
| 34 | + {INSTALLATION_ITEMS.map(({ title, Icon, link }) => ( |
| 35 | + <Button |
| 36 | + key={title} |
| 37 | + label={title} |
| 38 | + Icon={Icon} |
| 39 | + link={link} |
| 40 | + size="lg" |
| 41 | + outline |
| 42 | + variant="secondary" |
| 43 | + /> |
32 | 44 | ))} |
33 | | - </ul> |
| 45 | + </div> |
34 | 46 | ); |
35 | 47 | }; |
36 | 48 |
|
37 | 49 | export const Installation = () => { |
38 | 50 | return ( |
39 | 51 | <section className={styles.installation}> |
40 | | - <Heading as="h4" className={styles.installationTitle}> |
| 52 | + <Heading as="h2" className={styles.installationTitle}> |
41 | 53 | Install OpenVINO™ GenAI |
42 | 54 | </Heading> |
43 | 55 | <p className={styles.installationDescription}> |
44 | 56 | Unlock the power of OpenVINO GenAI™ for your projects. <br /> |
45 | 57 | Get started with seamless installation now! |
46 | 58 | </p> |
47 | 59 |
|
48 | | - <InstallationItems /> |
| 60 | + <InstallationOptions /> |
49 | 61 |
|
50 | 62 | <p> |
51 | 63 | Full list of installation options <Link href="docs/overview/installation">here</Link> |
|
0 commit comments