tilted div at home page
This commit is contained in:
+24
-3
@@ -29,6 +29,16 @@ body {
|
|||||||
color: #505056;
|
color: #505056;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body[data-theme="dark"] {
|
||||||
|
--logo: url("../images/wrenchboard-logo-text.png") no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
body[data-theme="light"] {
|
||||||
|
--logo: url("../images/wrenchboard.png") no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ==========================================vue */
|
/* ==========================================vue */
|
||||||
* {
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -1452,10 +1462,21 @@ p {
|
|||||||
letter-spacing: 2px;
|
letter-spacing: 2px;
|
||||||
text-shadow: 0px 4px 10px rgba(0,0,0,0.3);
|
text-shadow: 0px 4px 10px rgba(0,0,0,0.3);
|
||||||
}
|
}
|
||||||
.appie-title .earn-rewards{
|
/* .appie-title .earn-rewards{ */
|
||||||
border-radius: 7px;
|
/* border-radius: 7px;
|
||||||
background-color: rgb(245, 71, 71) !important;
|
background-color: rgb(245, 71, 71) !important; */
|
||||||
/* text-shadow: 2px 2px 2px #fff; */
|
/* text-shadow: 2px 2px 2px #fff; */
|
||||||
|
/* } */
|
||||||
|
|
||||||
|
.earn-rewards::before {
|
||||||
|
background: #f54747!important;
|
||||||
|
border-radius: 7px;
|
||||||
|
content: "";
|
||||||
|
height: 3.8rem;
|
||||||
|
position: absolute;
|
||||||
|
width: 17rem;
|
||||||
|
z-index: -1;
|
||||||
|
transform: translate(-10px, 5px) rotate(357deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 992px) and (max-width: 1200px) {
|
@media only screen and (min-width: 992px) and (max-width: 1200px) {
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ function HeroHomeOne() {
|
|||||||
<CustomSlider
|
<CustomSlider
|
||||||
images={[heroThumbOne, heroThumbOne, heroThumbOne]}
|
images={[heroThumbOne, heroThumbOne, heroThumbOne]}
|
||||||
speed="5"
|
speed="5"
|
||||||
indicatorColor="#333"
|
indicatorColor="#0D1133"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -97,3 +97,82 @@ function CustomSlider({images, speed, indicatorColor, indicatorClass}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default CustomSlider
|
export default CustomSlider
|
||||||
|
|
||||||
|
// import React, { useEffect, useState } from 'react';
|
||||||
|
|
||||||
|
// function CustomSlider({ images, speed, indicatorColor, indicatorClass }) {
|
||||||
|
// const [sliderCount, setSliderCount] = useState(0);
|
||||||
|
|
||||||
|
// const sliderStart = (count) => {
|
||||||
|
// if (count + 1 && typeof count === 'number') {
|
||||||
|
// return setSliderCount(count);
|
||||||
|
// }
|
||||||
|
// if (sliderCount >= images.length - 1) {
|
||||||
|
// return setSliderCount(0);
|
||||||
|
// }
|
||||||
|
// setSliderCount((prev) => prev + 1);
|
||||||
|
// };
|
||||||
|
|
||||||
|
// useEffect(() => {
|
||||||
|
// const sliderInterval = setInterval(() => {
|
||||||
|
// sliderStart();
|
||||||
|
// }, speed * 1000);
|
||||||
|
// return () => {
|
||||||
|
// clearInterval(sliderInterval);
|
||||||
|
// };
|
||||||
|
// }, [sliderCount, speed]);
|
||||||
|
|
||||||
|
// console.log("This is slider count", sliderCount)
|
||||||
|
|
||||||
|
// return (
|
||||||
|
// <div
|
||||||
|
// className=""
|
||||||
|
// style={{ width: '100%', margin: 'auto', position: 'relative', overflow: 'hidden' }}
|
||||||
|
// >
|
||||||
|
// <div className="" style={{ width: '100%', display: 'flex' }}>
|
||||||
|
// {images.map((image, index) => (
|
||||||
|
// <img
|
||||||
|
// key={index}
|
||||||
|
// src={image}
|
||||||
|
// alt="image"
|
||||||
|
// style={{
|
||||||
|
// minWidth: '100%',
|
||||||
|
// height: 'auto',
|
||||||
|
// position: 'relative',
|
||||||
|
// transition: 'opacity .9s',
|
||||||
|
// opacity: sliderCount == index ? '1' : '0',
|
||||||
|
// }}
|
||||||
|
// />
|
||||||
|
// ))}
|
||||||
|
// </div>
|
||||||
|
// <div
|
||||||
|
// className="custom_indicators"
|
||||||
|
// style={{
|
||||||
|
// margin: '10px auto',
|
||||||
|
// display: 'flex',
|
||||||
|
// gap: '10px',
|
||||||
|
// justifyContent: 'center',
|
||||||
|
// }}
|
||||||
|
// >
|
||||||
|
// {images.map((image, index) => (
|
||||||
|
// <div
|
||||||
|
// key={index}
|
||||||
|
// onClick={() => sliderStart(index)}
|
||||||
|
// className={`custom_indicator ${indicatorClass}`}
|
||||||
|
// style={{
|
||||||
|
// backgroundColor: sliderCount === index ? `${indicatorColor}` : '',
|
||||||
|
// width: '15px',
|
||||||
|
// height: '15px',
|
||||||
|
// borderRadius: '999px',
|
||||||
|
// border: `1px solid ${indicatorColor}`,
|
||||||
|
// cursor: 'pointer',
|
||||||
|
// }}
|
||||||
|
// ></div>
|
||||||
|
// ))}
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// );
|
||||||
|
// }
|
||||||
|
|
||||||
|
// export default CustomSlider;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user