diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 7166e26..ce23926 100755 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -29,6 +29,16 @@ body { color: #505056; 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 */ * { margin: 0; @@ -1452,10 +1462,21 @@ p { letter-spacing: 2px; text-shadow: 0px 4px 10px rgba(0,0,0,0.3); } -.appie-title .earn-rewards{ - border-radius: 7px; - background-color: rgb(245, 71, 71) !important; +/* .appie-title .earn-rewards{ */ + /* border-radius: 7px; + background-color: rgb(245, 71, 71) !important; */ /* 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) { diff --git a/src/components/HomeOne/HeroHomeOne.js b/src/components/HomeOne/HeroHomeOne.js index 6139482..d6924d9 100644 --- a/src/components/HomeOne/HeroHomeOne.js +++ b/src/components/HomeOne/HeroHomeOne.js @@ -60,7 +60,7 @@ function HeroHomeOne() { diff --git a/src/components/customSlider/CustomSlider.js b/src/components/customSlider/CustomSlider.js index 9d9033d..9796b26 100644 --- a/src/components/customSlider/CustomSlider.js +++ b/src/components/customSlider/CustomSlider.js @@ -96,4 +96,83 @@ function CustomSlider({images, speed, indicatorColor, indicatorClass}) { ) } -export default CustomSlider \ No newline at end of file +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 ( +//
+//
+// {images.map((image, index) => ( +// image +// ))} +//
+//
+// {images.map((image, index) => ( +//
sliderStart(index)} +// className={`custom_indicator ${indicatorClass}`} +// style={{ +// backgroundColor: sliderCount === index ? `${indicatorColor}` : '', +// width: '15px', +// height: '15px', +// borderRadius: '999px', +// border: `1px solid ${indicatorColor}`, +// cursor: 'pointer', +// }} +// >
+// ))} +//
+//
+// ); +// } + +// export default CustomSlider; +