Skip to content

Commit

Permalink
docs(landingpage): extract comps to @rstack-dev/doc-ui (#7726)
Browse files Browse the repository at this point in the history
* feat: use @rstack-dev/doc-ui

* chore: update to 1.3.0

* chore: update 1.3.1

* chore: update 1.3.2
  • Loading branch information
SoonIter authored Aug 29, 2024
1 parent 6b8b9b2 commit ef89e77
Show file tree
Hide file tree
Showing 21 changed files with 89 additions and 1,626 deletions.
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

0 comments on commit ef89e77

Please sign in to comment.