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

feat(banner): update images #164

Merged
merged 2 commits into from
Dec 5, 2023
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
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' alt='waffle' />
<img className={styles.bug} src='https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*JwKAR5SZ7V4AAAAAAAAAAAAADmJ7AQ/original' alt='bug' />
</div>
<div className={styles.rightBackground} >
<img className={styles.chips} src='https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*ZJscTJdtQqgAAAAAAAAAAAAADmJ7AQ/original' alt='chips' />
<img className={styles.cookie} src='https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*Qua4RZ6djCcAAAAAAAAAAAAADmJ7AQ/original' alt='cookie' />
</div>
<div className={styles.header}>
<div className={styles.top}>
<div className={styles.mainTitle}><span>AntV</span>{useT("·让数据栩栩如生")}</div>
Expand Down