Skip to content

Commit

Permalink
feat(banner): update images
Browse files Browse the repository at this point in the history
  • Loading branch information
wb-xcf804241 authored and wb-xcf804241 committed Dec 5, 2023
1 parent ccd6fe5 commit 4c4ea2f
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 7 deletions.
81 changes: 76 additions & 5 deletions site/components/Banner/Banner.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,89 @@
position: absolute;
background-repeat: no-repeat;
background-size: contain;

>img {
position: absolute;
}
}

.leftBackground {
left: 0;
top: 75px;
background-image: url(https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*gNDhS5nDO4sAAAAAAAAAAAAADmJ7AQ/original);
background-image: url(https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*B4UvSKE2hfEAAAAAAAAAAAAADmJ7AQ/original);
background-position-x: -48px;

&::before,
&::after {
content: '';
background-image: url(https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*pD8oT49V-bcAAAAAAAAAAAAADmJ7AQ/original);
background-size: contain;
position: absolute;
height: 40px;
width: 40px;
left: 35px;
top: 300px;
}

&::before {
height: 32px;
width: 32px;
left: 220px;
top: 345px;
}

.waffle {
height: 254.3px;
transform: rotate(3deg);
left: -20px;
}

.bug {
height: 160px;
transform: rotate(-7deg);
left: 279px;
top: 214px;
}
}

.rightBackground {
top: 120px;
top: 90px;
right: 0;
background-image: url(https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*OXF7QbWURnMAAAAAAAAAAAAADmJ7AQ/original);
background-position-x: 66px;
background-image: url(https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*DR_FR7Q721sAAAAAAAAAAAAADmJ7AQ/original);

.chips {
height: 263.3px;
transform: rotate(8deg);
right: 140px;
top: 140px;
}

.cookie {
height: 117.1px;
right: 10px;
top: 40px;
}

&::before,
&::after {
content: '';
background-image: url(https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*pD8oT49V-bcAAAAAAAAAAAAADmJ7AQ/original);
background-size: contain;
position: absolute;
height: 21px;
width: 21px;
right: 310px;
opacity: 0.67;
top: 310px;
}

&::before {
height: 31px;
width: 31px;
right: 55px;
top: 335px;
}
}

.header {
Expand Down Expand Up @@ -205,7 +276,7 @@
0% {
background-position-y: 0px, 20px, 40px, 60px, 80px, 100px;
}

16.6% {
background-position-y: -20px, 0px, 20px, 40px, 60px, 80px;
}
Expand All @@ -229,4 +300,4 @@
100% {
background-position-y: -100px, -80px, -60px, -40px, -20px, 0px;
}
}
}
10 changes: 8 additions & 2 deletions site/components/Banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,14 @@ export default () => {

return (
<div className={styles.banner}>
<div className={styles.leftBackground} />
<div className={styles.rightBackground} />
<div className={styles.leftBackground} >
<img className={styles.waffle} src='https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*9jnzSaebJHsAAAAAAAAAAAAADmJ7AQ/original' />
<img className={styles.bug} src='https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*JwKAR5SZ7V4AAAAAAAAAAAAADmJ7AQ/original' />
</div>
<div className={styles.rightBackground} >
<img className={styles.chips} src='https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*ZJscTJdtQqgAAAAAAAAAAAAADmJ7AQ/original' />
<img className={styles.cookie} src='https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*Qua4RZ6djCcAAAAAAAAAAAAADmJ7AQ/original' />
</div>
<div className={styles.header}>
<div className={styles.top}>
<div className={styles.mainTitle}><span>AntV</span>{useT("·让数据栩栩如生")}</div>
Expand Down

0 comments on commit 4c4ea2f

Please sign in to comment.