Skip to content

Commit

Permalink
docs(landingpage): remove "show all features" button (#7692)
Browse files Browse the repository at this point in the history
docs: remove show all features
  • Loading branch information
SoonIter authored Aug 27, 2024
1 parent a33dd61 commit 6d31029
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,30 +101,3 @@
}
}
}

.button {
display: flex;
padding: var(--Button-horizontal-padding, 12px) 24px;

justify-content: center;
align-items: center;
gap: 10px;

// style
border-radius: 25px;
border: 2px solid var(--orange-gradient, #ff8b00);
// text
color: var(--landingpage-title-color);
text-align: center;

font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 150%; /* 24px */
text-transform: capitalize;

&:hover {
transition: all 0.2s;
opacity: 0.8;
}
}
13 changes: 0 additions & 13 deletions website/theme/components/Landingpage/FullyFeatured/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { memo } from 'react';
import { useNavigate } from 'rspress/runtime';
import { Link } from 'rspress/theme';
import { useI18n, useI18nUrl } from '../../../i18n';
import sharedStyles from '../shared.module.scss';
Expand Down Expand Up @@ -27,7 +26,6 @@ type Feature = {
const FullyFeatured = memo(() => {
const t = useI18n();
const tUrl = useI18nUrl();
const navigate = useNavigate();

const FeatureRow1: Feature[] = [
{
Expand Down Expand Up @@ -138,17 +136,6 @@ const FullyFeatured = memo(() => {
);
})}
</div>
<div className="flex flex-col items-center self-stretch">
<button
type="button"
className={styles.button}
onClick={() => {
navigate(tUrl('/guide/features/asset-module'));
}}
>
{t('fullyfeaturedDetail')}
</button>
</div>
</div>
</section>
);
Expand Down
1 change: 0 additions & 1 deletion website/theme/i18n/enUS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export const EN_US = {
fullyFeaturedTitle: 'Fully Featured',
fullyFeaturedDesc:
'Launched as a drop-in replacement for webpack, with more powerful features and exceptional productivity.',
fullyfeaturedDetail: 'See All Features',

featureCodeSplitting:
'Split code into smaller bundles to enable on-demand loading and improve performance.',
Expand Down
1 change: 0 additions & 1 deletion website/theme/i18n/zhCN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export const ZH_CN: Record<keyof typeof EN_US, string> = {
fullyFeaturedTitle: '功能完备',
fullyFeaturedDesc:
'作为 webpack 的升级替代品,带来更强大的功能和卓越的生产力。',
fullyfeaturedDetail: '查看所有功能',

featureCodeSplitting:
'将代码拆分成更小的 bundles,实现按需加载并提高页面性能。',
Expand Down

0 comments on commit 6d31029

Please sign in to comment.