update 8 files

front
amirhoseingorji 1 year ago
parent 1f62402a2b
commit 06623f8a24
  1. 1
      src/views/ChatRoom/Body/Message/MultiSelect/index.js
  2. 2
      src/views/ChatRoom/Body/Message/Select/index.js
  3. 2
      src/views/ChatRoom/Body/Message/Slider/index.js
  4. 2
      src/views/ChatRoom/Body/Message/Sort/index.js
  5. 2
      src/views/ChatRoom/Body/Message/Tap/index.js
  6. 8
      src/views/Home/HomeSlider/Header/index.js
  7. 9
      src/views/Home/HomeStatic/index.js
  8. 20
      src/views/Home/HomeStatic/index.scss

@ -35,7 +35,6 @@ export default class RadioMessage extends Component {
className="message-2d__submit" className="message-2d__submit"
onClick={() => toast.success(window.t("ثبت شد"))} onClick={() => toast.success(window.t("ثبت شد"))}
> >
ثبت")}{" "}
<ArrowRightAltIcon <ArrowRightAltIcon
style={{ color: "white", width: 32, height: 32, marginLeft: 10 }} style={{ color: "white", width: 32, height: 32, marginLeft: 10 }}
/> />

@ -28,7 +28,7 @@ export default class RadioMessage extends Component {
className="message-2d__submit" className="message-2d__submit"
onClick={() => action({ value })} onClick={() => action({ value })}
> >
ثبت")} <ArrowRightAltIcon /> <ArrowRightAltIcon />
</button> </button>
)} )}
</div> </div>

@ -51,7 +51,7 @@ export default class SliderMessage extends Component {
</Grid> </Grid>
{isActive && ( {isActive && (
<button className="message-2d__submit" onClick={() => action()}> <button className="message-2d__submit" onClick={() => action()}>
ثبت")} <ArrowRightAltIcon /> <ArrowRightAltIcon />
</button> </button>
)} )}
</div> </div>

@ -27,7 +27,7 @@ export default class DraggableMessage extends Component {
/> />
{isActive && ( {isActive && (
<button className="message-2d__submit" onClick={() => action()}> <button className="message-2d__submit" onClick={() => action()}>
ثبت")} <ArrowRightAltIcon /> <ArrowRightAltIcon />
</button> </button>
)} )}
</div> </div>

@ -24,7 +24,7 @@ export default class DraggableMessage extends Component {
className="message-2d__submit" className="message-2d__submit"
onClick={(e) => this.props.action({ value: e.target.value })} onClick={(e) => this.props.action({ value: e.target.value })}
> >
ثبت")}{" "} ثبت{" "}
</button> </button>
); );
} }

@ -12,8 +12,10 @@ export default class Header extends Component {
style={{ style={{
minWidth: `${data.width}`, minWidth: `${data.width}`,
height: height, height: height,
cursor: "pointer",
}} }}
className={`slider-header d-flex ${window.lang === "en" ? "" : ""}`} className={`slider-header d-flex ${window.lang === "en" ? "" : ""}`}
onClick={() => data.link && window.open(data.link, "_blank")}
> >
<div <div
className="slider-header__right d-flex" className="slider-header__right d-flex"
@ -46,7 +48,11 @@ export default class Header extends Component {
> >
<div <div
className="mobile-slider-header__right d-flex" className="mobile-slider-header__right d-flex"
style={{ backgroundColor: data.backgroundColor }} style={{
backgroundColor: data.backgroundColor,
cursor: "pointer",
}}
onClick={() => data.link && window.open(data.link, "_blank")}
> >
<img <img
src={`https://dnvn.ir/api/v1/file/${data.fileId}`} src={`https://dnvn.ir/api/v1/file/${data.fileId}`}

@ -74,15 +74,20 @@ const Item = (props) => {
style={{ style={{
width: `${props.data.width}%`, width: `${props.data.width}%`,
height: props.height, height: props.height,
cursor: "pointer",
}} }}
className={`home-static__list--item d-flex ${ className={`home-static__list--item d-flex ${
window.lang === "en" ? "flex-row-reverse" : "" window.lang === "en" ? "flex-row-reverse" : ""
}`} }`}
onClick={() =>
props.data.link && window.open(props.data.link, "_blank")
}
> >
<div <div
className={`d-flex flex-column ${ className={`d-flex flex-column ${
window.lang === "en" ? "align-items-end" : "" window.lang === "en" ? "align-items-end" : ""
}`} }`}
style={{}}
> >
<h2 style={{ color: "#02733c", fontSize: fontSize.desktop.h2 }}> <h2 style={{ color: "#02733c", fontSize: fontSize.desktop.h2 }}>
{props.data.topText} {props.data.topText}
@ -98,9 +103,13 @@ const Item = (props) => {
</div> </div>
) : ( ) : (
<div <div
onClick={() =>
props.data.link && window.open(props.data.link, "_blank")
}
style={{ style={{
width: `${props.data.width}%`, width: `${props.data.width}%`,
height: props.height, height: props.height,
cursor: "pointer",
}} }}
className={`home-static__list2--item ${ className={`home-static__list2--item ${
window.lang === "en" ? "d-flex" : "" window.lang === "en" ? "d-flex" : ""

@ -6,7 +6,7 @@
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
&--item { &--item {
box-shadow: 0px 0px 5px rgb(200, 200, 200); // box-shadow: 0px 0px 5px rgb(200, 200, 200);
font-family: numeralMedium; font-family: numeralMedium;
align-items: center; align-items: center;
border-radius: 10px; border-radius: 10px;
@ -19,9 +19,12 @@
} }
} }
img { img {
margin-right: 20px; // margin-right: 20px;
border-radius: 10px; border-radius: 10px;
height: 70px; width: 100%;
height: 100%;
object-fit: contain;
// height: 70px;
} }
} }
} }
@ -30,12 +33,12 @@
// width: 50%; // width: 50%;
&--item { &--item {
// box-shadow: 0px 0px 5px rgb(200, 200, 200); // box-shadow: 0px 0px 5px rgb(200, 200, 200);
border: 1px solid #eee; // border: 1px solid #eee;
font-family: numeralMedium; font-family: numeralMedium;
align-items: center; align-items: center;
border-radius: 10px; border-radius: 10px;
margin: 5px; margin: 5px;
padding: 15px 10px; // padding: 15px 10px;
justify-content: space-around; justify-content: space-around;
text-align: center; text-align: center;
div { div {
@ -47,10 +50,13 @@
} }
} }
img { img {
padding-top: 5px; // padding-top: 5px;
margin: auto; margin: auto;
// border-radius: 10px; // border-radius: 10px;
height: 35px; // height: 35px;
width: 100%;
height: 100%;
object-fit: contain;
} }
} }
} }

Loading…
Cancel
Save