styles: banner item

This commit is contained in:
lytrankieio123
2021-09-13 11:51:46 +07:00
parent 0eddfe7c91
commit 46233a1108
3 changed files with 10 additions and 9 deletions

View File

@@ -7,19 +7,18 @@
margin-bottom: 2.8rem;
.inner {
background-size: cover;
background-position: center bottom;
@screen xl {
background-position: right bottom;
}
}
}
.inner {
@apply bg-no-repeat;
background-size: 90%;
background-position: right -500% bottom 0%;
.content {
background-image: linear-gradient(
to right,
rgb(227, 242, 233) 63%,
rgb(227, 242, 233, 0)
);
background-image: linear-gradient(to right, rgb(227, 242, 233) 63%, rgb(227, 242, 233, 0));
padding: 2rem;
padding-bottom: 4rem;

View File

@@ -41,6 +41,8 @@ const Header = memo(({ toggleFilter }: props) => {
} else {
setIsFullHeader(true)
}
} else {
setIsFullHeader(true)
}
}
window.addEventListener('scroll', handleScroll)

View File

@@ -1,5 +1,5 @@
export function isMobile() {
return window.innerWidth <= 768
return window.innerWidth < 768
}
export function removeItem<T>(arr: Array<T>, value: T): Array<T> {