Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions src/components/home-comps/features/icon.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import React from 'react';
import AndroidIcon from '@assets/home/home-icon-android.svg?react';
import WebIcon from '@assets/home/home-icon-web.svg?react';
import IosIcon from '@assets/home/home-icon-apple.svg?react';
import AppleIcon from '@assets/home/home-icon-apple.svg?react';
import HarmonyIcon from '@assets/home/harmony.svg?react';
import MacOSIcon from '@/components/api-table/compat-table/assets/icons/macos-text.svg?react';
import WindowsIcon from '@assets/home/windows.svg?react';
import styles from './index.module.less';

const IconAndroid = () => {
return <AndroidIcon />;
};

const IconIOS = () => {
return <IosIcon className={styles['ios-icon']} />;
return <AppleIcon className={styles['ios-icon']} />;
};

const IconWeb = () => {
Expand All @@ -21,4 +23,12 @@ const IconHarmony = () => {
return <HarmonyIcon className={styles['harmony-icon']} />;
};

export { IconIOS, IconAndroid, IconWeb, IconHarmony };
const IconMacOS = () => {
return <MacOSIcon className={styles['macos-icon']} />;
};

const IconWindows = () => {
return <WindowsIcon className={styles['windows-icon']} />;
};
Comment on lines +26 to +32

export { IconIOS, IconAndroid, IconWeb, IconHarmony, IconMacOS, IconWindows };
16 changes: 16 additions & 0 deletions src/components/home-comps/features/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@
}
}

.macos-icon {
width: 18px;
height: 18px;
path {
fill: var(--home-blog-btn-color) !important;
Comment on lines +51 to +55
}
}

.windows-icon {
width: 18px;
height: 18px;
path {
fill: var(--home-blog-btn-color) !important;
}
}

.title-icon {
width: 32px;
height: 32px;
Expand Down
20 changes: 19 additions & 1 deletion src/components/home-comps/features/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ import { useLang } from '@rspress/core/runtime';
import { BorderBeam } from '../border-beam';
import { ActionBtn } from './action-btn';
import { FeatureItem } from './feature-item';
import { IconAndroid, IconHarmony, IconIOS, IconWeb } from './icon';
import {
IconAndroid,
IconHarmony,
IconIOS,
IconMacOS,
IconWeb,
IconWindows,
} from './icon';
import { FeatureIconItem } from './item-icon';
type FeaturesConfigKey = '/' | '/react/' | '/rspeedy/';
const featuresConfig: Record<
Expand Down Expand Up @@ -80,6 +87,17 @@ const featuresConfig: Record<
size: 'large',
link: 'guide/start/integrate-with-existing-apps.html?platform=web',
},
{
text: (
<Space>
<IconMacOS />
<IconWindows />
Desktop
</Space>
),
size: 'large',
link: 'guide/start/integrate-with-existing-apps.html?platform=macos',
},
],
},
{
Expand Down