Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(landingpage): extract comps to @rstack-dev/doc-ui #7726

Merged
merged 4 commits into from
Aug 29, 2024
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
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"license": "MIT",
"packageManager": "[email protected]",
"dependencies": {
"@rstack-dev/doc-ui": "^1.2.0",
"@rstack-dev/doc-ui": "1.3.2",
"antd": "5.19.3",
"axios": "^1.6.1",
"date-fns": "^2.29.3",
Expand Down
10 changes: 5 additions & 5 deletions website/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

26 changes: 13 additions & 13 deletions website/theme/components/Landingpage/Benchmark/index.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import {
Benchmark as BaseBenchmark,
type BenchmarkData,
} from './BaseBenchmark';

} from '@rstack-dev/doc-ui/benchmark';
import {
containerStyle,
descStyle,
innerContainerStyle,
titleAndDescStyle,
titleStyle,
} from '@rstack-dev/doc-ui/section-style';
import { memo } from 'react';
// TODO: extract to @rstack-dev/doc-ui/benchmark
// import {
// Benchmark as BaseBenchmark,
// type BenchmarkData,
// } from '@rstack-dev/doc-ui/benchmark';
import { useI18n } from '../../../i18n';
import sharedStyles from '../shared.module.scss';
import styles from './index.module.scss';

// Benchmark data for different cases
Expand Down Expand Up @@ -90,11 +90,11 @@ const BENCHMARK_DATA: BenchmarkData = {
export const Benchmark = memo(() => {
const t = useI18n();
return (
<section className={sharedStyles.container}>
<div className={sharedStyles.innerContainer}>
<div className={sharedStyles.titleAndDesc}>
<h1 className={sharedStyles.title}>{t('benchmarkTitle')}</h1>
<p className={sharedStyles.desc}>{t('benchmarkDesc')}</p>
<section className={containerStyle}>
<div className={innerContainerStyle}>
<div className={titleAndDescStyle}>
<h1 className={titleStyle}>{t('benchmarkTitle')}</h1>
<p className={descStyle}>{t('benchmarkDesc')}</p>
</div>
<BaseBenchmark data={BENCHMARK_DATA} />
<div className="flex flex-col items-center self-stretch">
Expand Down
Loading
Loading