Skip to content

Commit

Permalink
Merge pull request #253 from hepengwei/feat_he
Browse files Browse the repository at this point in the history
优化代码
  • Loading branch information
hepengwei authored Sep 20, 2024
2 parents 6e1dd23 + df9943c commit 0b8d6b6
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 82 deletions.
2 changes: 1 addition & 1 deletion docs/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/styles/main.css

Large diffs are not rendered by default.

27 changes: 0 additions & 27 deletions src/components/AdBox/index.module.scss

This file was deleted.

30 changes: 0 additions & 30 deletions src/components/AdBox/index.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/locale/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ const en_US = {
'common.checkout': 'Checkout',
'common.moduleTitle': 'Module Title',
'common.customizeContent': 'Customize content',
'common.ad.btnText': 'Experience right away',

// 菜单
'menu.htmlVision': 'Html Vision',
Expand Down
1 change: 0 additions & 1 deletion src/locale/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ const zh_CN = {
'common.checkout': '校验',
'common.moduleTitle': '模块标题',
'common.customizeContent': '自定义内容',
'common.ad.btnText': '马上体验',

// 菜单
'menu.htmlVision': 'Html视觉',
Expand Down
6 changes: 0 additions & 6 deletions src/pages/css/RichDynamicEffect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ const RichDynamicEffect = () => {
<div className={styles.box}>
<DisplayTextInSmoke />
</div>
<div className={styles.box}>
<AdBox data={adData[3]} />
</div>
<div className={styles.box}>
<PlayVideoInText />
</div>
Expand All @@ -76,9 +73,6 @@ const RichDynamicEffect = () => {
<TextOutlineAnimation2 />
</div>
</div>
<div className={styles.box}>
<AdBox data={adData[4]} />
</div>
<div className={styles.multipleColumnsBox}>
<div className={styles.box}>
<MobiusBand1 />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
gap: 8px;

&::after {
content: '+' counter(num);
content: '+' counter(tagNum);
padding: 0.2em 0.5em;
background-color: #ffe8a3;
color: #191919;
Expand All @@ -33,10 +33,10 @@
gap: 8px;
padding: 6px;
overflow: hidden;
counter-reset: num;
counter-reset: tagNum;
// 区域有滚动内容时通过修改margin-right显示出box的after伪元素
animation: check;
animation-timeline: scroll(x self);
animation-timeline: scroll(self x);
margin-right: -48px;

.tag {
Expand All @@ -45,7 +45,7 @@
color: #fff;
border-radius: 4px;
// 默认CSS计数器加1
counter-increment: num 1;
counter-increment: tagNum 1;
// 元素显示时,CSS计数器加0
animation: appear;
animation-timeline: view(inline);
Expand Down Expand Up @@ -86,7 +86,7 @@
@keyframes appear {
from,
to {
counter-increment: num 0;
counter-increment: tagNum 0;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
padding: 0 5px;
user-select: none;
cursor: default;
transition: 1.5s;
transition: 6s;
path {
fill: rgba(0, 0, 0, 0.5);
}
Expand Down
6 changes: 0 additions & 6 deletions src/pages/html/InteractiveDesign/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ const boxList = [
{ element: <MagnifyingGlass /> },
{ element: <CropImage /> },
{ element: <DragShopping /> },
{
element: <AdBox data={adData[0]} />,
},
{ element: <MouseHover /> },
{ element: <SlideButtonTab /> },
{ element: <FlipBook /> },
Expand All @@ -47,9 +44,6 @@ const boxList = [
{ element: <HexagonalMesh2 /> },
{ element: <HexagonalMesh3 /> },
{ element: <IconScroll /> },
{
element: <AdBox data={adData[1]} />,
},
{ element: <WipeSwitchover /> },
{ element: <AutoCompletePunctuation /> },
{ element: <StackedImages /> },
Expand Down
3 changes: 0 additions & 3 deletions src/pages/html/UtilitarianFunction/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ const UtilitarianFunction = () => {
<div className={styles.box}>
<RecordedVideo />
</div>
<div className={styles.box}>
<AdBox data={adData[2]} />
</div>
<div className={styles.box}>
<RecordedScreen />
</div>
Expand Down

0 comments on commit 0b8d6b6

Please sign in to comment.