update 10 files

front
amir hosein gorji 2 years ago
parent 1d1fa3e99c
commit c2ee360bc1
  1. 8
      src/QRScan/Modal/index.js
  2. 2
      src/QRScan/index.js
  3. 29
      src/constants/images.js
  4. 33
      src/views/About/index.js
  5. 8
      src/views/Activation/index.js
  6. 6
      src/views/Product/AddToCart/index.js
  7. 6
      src/views/Products/Product/index.js
  8. 16
      src/views/QR/PDF/index.js
  9. 7
      src/views/QR/PowerPoint/index.js
  10. 4
      src/views/QR/index.js

@ -19,25 +19,25 @@ export default class QRModal extends Component {
{window.innerWidth < 1000 ? ( {window.innerWidth < 1000 ? (
<div className="mobile-qr-modal d-flex flex-column justify-content-center align-items-center"> <div className="mobile-qr-modal d-flex flex-column justify-content-center align-items-center">
<span style={{ fontSize: fontSize.mobile.span }}> <span style={{ fontSize: fontSize.mobile.span }}>
اسکن کد QR موفقیت آمیز بود. {window.t("اسکن کد QR موفقیت آمیز بود.")}
</span> </span>
<Link style={{ fontSize: fontSize.mobile.a }} to={"/qr"}> <Link style={{ fontSize: fontSize.mobile.a }} to={"/qr"}>
{tail} {tail}
</Link> </Link>
<button onClick={() => parent.setState({ tail: null })}> <button onClick={() => parent.setState({ tail: null })}>
انصراف {window.t("انصراف")}
</button> </button>
</div> </div>
) : ( ) : (
<div className="qr-modal d-flex flex-column justify-content-center align-items-center"> <div className="qr-modal d-flex flex-column justify-content-center align-items-center">
<span style={{ fontSize: fontSize.mobile.span }}> <span style={{ fontSize: fontSize.mobile.span }}>
اسکن کد QR موفقیت آمیز بود. {window.t("اسکن کد QR موفقیت آمیز بود.")}
</span> </span>
<Link style={{ fontSize: fontSize.mobile.a }} to={"/qr"}> <Link style={{ fontSize: fontSize.mobile.a }} to={"/qr"}>
{tail} {tail}
</Link> </Link>
<button onClick={() => parent.setState({ tail: null })}> <button onClick={() => parent.setState({ tail: null })}>
انصراف {window.t("انصراف")}
</button> </button>
</div> </div>
)} )}

@ -209,7 +209,7 @@ class QRScan extends Component {
)} )}
{localStorage.getItem("latestQr") ? ( {localStorage.getItem("latestQr") ? (
<section className="mobile-qr-scan__lasts d-flex flex-column"> <section className="mobile-qr-scan__lasts d-flex flex-column">
<h2>آخرین مشاهدات</h2> <h2>{window.t("آخرین مشاهدات")}</h2>
{data.map((item, i) => ( {data.map((item, i) => (
<LastQr <LastQr
data={JSON.parse(localStorage.getItem("latestQr"))} data={JSON.parse(localStorage.getItem("latestQr"))}

@ -1,31 +1,12 @@
import about_lg from `${imagesRoot}/about-lg.png`; import about_lg from "../assets/images/about-lg.png";
import about_md from `${imagesRoot}/about-md.png`; import about_md from "../assets/images/about-md.png";
import about_xs1 from `${imagesRoot}/about-xs1.png`;
import about_xs2 from `${imagesRoot}/about-xs2.png`;
import blog_1 from `${imagesRoot}/blog-1.png`;
import blog_2 from `${imagesRoot}/blog-2.png`;
import blog_3 from `${imagesRoot}/blog-3.png`;
import book_cover_mockup from `${imagesRoot}/book-cover-mockup.png`;
const imagesRoot = '../assets/images';
const imagesUrl = { const imagesUrl = {
image : { image: {
about_lg, about_lg,
about_md, about_md,
}, },
icon : { icon: {},
}
}; };
export default imagesUrl; export default imagesUrl;

@ -39,22 +39,34 @@ export default class About extends Component {
keywords: { keywords: {
title: window.t("کیفیت آموزش را بالا میبریم"), title: window.t("کیفیت آموزش را بالا میبریم"),
list: [ list: [
window.t("شایستگی در ایجاد فهم علمی در موضوع هدف و در موضوعات وابسته به آن"), window.t(
window.t("شایستگی در ایجاد زمینه ی معرفتی- ارزشی موثر برای محتواهای آموزشی"), "شایستگی در ایجاد فهم علمی در موضوع هدف و در موضوعات وابسته به آن"
),
window.t(
"شایستگی در ایجاد زمینه ی معرفتی- ارزشی موثر برای محتواهای آموزشی"
),
], ],
}, },
keywords2: { keywords2: {
title: window.t("جذابیت کلید بهبود یادگیری"), title: window.t("جذابیت کلید بهبود یادگیری"),
list: [ list: [
window.t("بکارگیری عوامل متنوع سازگار با ارزشها برای علاقمندی دانش آموز و معلم به استفاده از محتوای دانوین"), window.t(
window.t("سازگار با نظام آ.پ : بطوریکه بتواند در مدارس فعلی مورد استفاده قرار گرفته و با نظام رسمی فعلی در تضاد نباشد"), "بکارگیری عوامل متنوع سازگار با ارزشها برای علاقمندی دانش آموز و معلم به استفاده از محتوای دانوین"
window.t("در راستای نیل به سند تحول : تلاش برای نزدیکی گام به گام به آرمانها و اهداف سند تحول"), ),
window.t(
"سازگار با نظام آ.پ : بطوریکه بتواند در مدارس فعلی مورد استفاده قرار گرفته و با نظام رسمی فعلی در تضاد نباشد"
),
window.t(
"در راستای نیل به سند تحول : تلاش برای نزدیکی گام به گام به آرمانها و اهداف سند تحول"
),
], ],
}, },
advantages: { advantages: {
title: " مزیت رقابتی دانوین", title: " مزیت رقابتی دانوین",
list: [ list: [
window.t("بکارگیری بروز ترین تکنولوژی های تولید و مدیریت محتوای آموزشی-تربیتی (مانند واقعیت افزوده)"), window.t(
"بکارگیری بروز ترین تکنولوژی های تولید و مدیریت محتوای آموزشی-تربیتی (مانند واقعیت افزوده)"
),
window.t("دارای رویکرد آموزش سرگرم کننده "), window.t("دارای رویکرد آموزش سرگرم کننده "),
window.t("بستر تعاملی و اشتراک گذاری فیلم و محتوای آموزشی"), window.t("بستر تعاملی و اشتراک گذاری فیلم و محتوای آموزشی"),
window.t("رویکرد معرفتی-ارزشی"), window.t("رویکرد معرفتی-ارزشی"),
@ -138,7 +150,7 @@ export default class About extends Component {
</div> </div>
</div> </div>
<div className="about__fury--left d-flex align-items-center"> <div className="about__fury--left d-flex align-items-center">
<img className="about__fury--left__1" src={aboutLg} /> <img className="about__fury--left__1" src={aboutLg} alt="" />
{/* {this.props.absoluteImages.map((item, i) => ( {/* {this.props.absoluteImages.map((item, i) => (
<img src={item.imageUrl} className={item.class} /> <img src={item.imageUrl} className={item.class} />
))} */} ))} */}
@ -146,7 +158,7 @@ export default class About extends Component {
</div> </div>
<div className="about__advantages d-flex"> <div className="about__advantages d-flex">
<div className="about__advantages--right d-flex"> <div className="about__advantages--right d-flex">
<img src={pic} /> <img src={pic} alt="" />
</div> </div>
<div className="about__advantages--left"> <div className="about__advantages--left">
<h1 style={{ fontSize: fontSize.desktop.h1 }}> <h1 style={{ fontSize: fontSize.desktop.h1 }}>
@ -197,7 +209,7 @@ export default class About extends Component {
</div> </div>
<div className="mobile-about__images d-flex"> <div className="mobile-about__images d-flex">
{this.props.absoluteImages.map((item, i) => ( {this.props.absoluteImages.map((item, i) => (
<img src={item.imageUrl} className={item.class} /> <img src={item.imageUrl} className={item.class} alt="" />
))} ))}
</div> </div>
<div className="mobile-about__keys align-self-end"> <div className="mobile-about__keys align-self-end">
@ -214,8 +226,9 @@ export default class About extends Component {
))} ))}
</ul> </ul>
</div> </div>
<div className="mobile-about__video d-flex"> <div className="mobile-about__video d-flex">
<img src={pic} /> <img src={pic} alt="" />
</div> </div>
<div className="mobile-about__advantages d-flex flex-column"> <div className="mobile-about__advantages d-flex flex-column">
<div> <div>

@ -44,9 +44,9 @@ class Activation extends Component {
<div className="activation d-flex flex-column align-items-center"> <div className="activation d-flex flex-column align-items-center">
<Navbar /> <Navbar />
<header className="activation__header d-flex flex-column align-items-center"> <header className="activation__header d-flex flex-column align-items-center">
<img src={analytics} /> <img src={analytics} alt="" />
<h1 style={{ fontSize: fontSize.desktop.h1 }}> <h1 style={{ fontSize: fontSize.desktop.h1 }}>
فعال سازی کتاب الکترونیک {window.t("فعال سازی کتاب الکترونیک")}{" "}
</h1> </h1>
</header> </header>
<div className="activation__description d-flex"> <div className="activation__description d-flex">
@ -100,9 +100,9 @@ class Activation extends Component {
<Navbar /> <Navbar />
<header className="mobile-activation__header d-flex flex-column align-items-center"> <header className="mobile-activation__header d-flex flex-column align-items-center">
<img src={analytics} /> <img src={analytics} alt="" />
<h1 style={{ fontSize: fontSize.mobile.h1 }}> <h1 style={{ fontSize: fontSize.mobile.h1 }}>
فعال سازی کتاب الکترونیک {window.t("فعال سازی کتاب الکترونیک")}
</h1> </h1>
<div className="mobile-activation__description d-flex"> <div className="mobile-activation__description d-flex">
<span>.</span> <span>.</span>

@ -34,7 +34,7 @@ function AddToCart(props) {
info, info,
sampleFileId, sampleFileId,
productType, // productType,
} = props; } = props;
function Navigate({ path }) { function Navigate({ path }) {
history.push(path); history.push(path);
@ -124,7 +124,9 @@ function AddToCart(props) {
count: 1, count: 1,
}); });
else { else {
toast.info(window.t("جهت ادامه فرآیند خرید وارد حساب خود شوید")); toast.info(
window.t("جهت ادامه فرآیند خرید وارد حساب خود شوید")
);
localStorage.setItem("afterLogin", window.location.pathname); localStorage.setItem("afterLogin", window.location.pathname);
localStorage.setItem( localStorage.setItem(
"pushToCart", "pushToCart",

@ -3,7 +3,7 @@ import React from "react";
import { Link, useHistory } from "react-router-dom"; import { Link, useHistory } from "react-router-dom";
import { toast } from "react-toastify"; import { toast } from "react-toastify";
import proxy from "~/Redux/proxy"; import proxy from "~/Redux/proxy";
import basket from "../../../assets/icons/basket.png"; // import basket from "../../../assets/icons/basket.png";
import basket2 from "../../../assets/icons/basket2.png"; import basket2 from "../../../assets/icons/basket2.png";
import { connect } from "react-redux"; import { connect } from "react-redux";
@ -157,7 +157,9 @@ function Product(props) {
count: 1, count: 1,
}); });
else { else {
toast.info(window.t("جهت ادامه فرآیند خرید وارد حساب خود شوید")); toast.info(
window.t("جهت ادامه فرآیند خرید وارد حساب خود شوید")
);
localStorage.setItem("afterLogin", window.location.pathname); localStorage.setItem("afterLogin", window.location.pathname);
localStorage.setItem("pushToCart", product.product[0].id); localStorage.setItem("pushToCart", product.product[0].id);
Navigate({ path: "/auth" }); Navigate({ path: "/auth" });

@ -24,7 +24,8 @@ export default function PDF(props) {
{window.innerWidth > 1000 ? ( {window.innerWidth > 1000 ? (
<Link to={`pdf/${props.data.fileIds}`} className="d-flex flex-column"> <Link to={`pdf/${props.data.fileIds}`} className="d-flex flex-column">
<h3 style={{ fontSize: fontSize.desktop.h3 }}> <h3 style={{ fontSize: fontSize.desktop.h3 }}>
<PictureAsPdfRoundedIcon style={{ fontSize: 30 }} /> فایل PDF <PictureAsPdfRoundedIcon style={{ fontSize: 30 }} />{" "}
{window.t("فایل PDF")}
</h3> </h3>
<a <a
className="pdf-box d-flex flex-column" className="pdf-box d-flex flex-column"
@ -41,7 +42,7 @@ export default function PDF(props) {
{props.data.name} {props.data.name}
</h2> </h2>
<div style={{ fontSize: fontSize.desktop.div }}> <div style={{ fontSize: fontSize.desktop.div }}>
برای دانلود این فایل روی اینجا کلیک کن {window.t("برای دانلود این فایل روی اینجا کلیک کن")}{" "}
</div> </div>
</a> </a>
</Link> </Link>
@ -55,7 +56,8 @@ export default function PDF(props) {
// }} // }}
> >
<h3 style={{ fontSize: fontSize.mobile.h3 }}> <h3 style={{ fontSize: fontSize.mobile.h3 }}>
<PictureAsPdfRoundedIcon style={{ fontSize: 30 }} /> فایل PDF <PictureAsPdfRoundedIcon style={{ fontSize: 30 }} />{" "}
{window.t("فایل PDF")}
</h3> </h3>
<div className="mobile-pdf-box d-flex flex-column"> <div className="mobile-pdf-box d-flex flex-column">
<h2 <h2
@ -65,14 +67,6 @@ export default function PDF(props) {
<span></span> <span></span>
{props.data.name} {props.data.name}
</h2> </h2>
{/* <a
target="_blank"
rel="noreferrer"
href={`https://dnvn.ir/xpdf/${props.data.fileIds}`}
style={{ fontSize: fontSize.mobile.div }}
>
دریافت فایل
</a> */}
</div> </div>
</Link> </Link>
) : null} ) : null}

@ -23,7 +23,8 @@ export default function PowerPoint(props) {
{window.innerWidth > 1000 ? ( {window.innerWidth > 1000 ? (
<div className="d-flex flex-column"> <div className="d-flex flex-column">
<h3 style={{ fontSize: fontSize.desktop.h3 }}> <h3 style={{ fontSize: fontSize.desktop.h3 }}>
<SlideshowRoundedIcon style={{ fontSize: 30 }} /> فایل PDF <SlideshowRoundedIcon style={{ fontSize: 30 }} />
{window.t("فایل PDF")}
</h3> </h3>
<a <a
href={`https://dnvn.ir/api/v1/file/${props.data.fileIds}`} href={`https://dnvn.ir/api/v1/file/${props.data.fileIds}`}
@ -39,7 +40,7 @@ export default function PowerPoint(props) {
{props.data.name} {props.data.name}
</h2> </h2>
<div style={{ fontSize: fontSize.desktop.div }}> <div style={{ fontSize: fontSize.desktop.div }}>
برای دانلود این فایل روی اینجا کلیک کن {window.t("برای دانلود این فایل روی اینجا کلیک کن")}{" "}
</div> </div>
</a> </a>
</div> </div>
@ -56,7 +57,7 @@ export default function PowerPoint(props) {
{props.data.name} {props.data.name}
</h2> </h2>
<div style={{ fontSize: fontSize.desktop.div }}> <div style={{ fontSize: fontSize.desktop.div }}>
برای دانلود این فایل روی اینجا کلیک کن {window.t("برای دانلود این فایل روی اینجا کلیک کن")}{" "}
</div> </div>
</a> </a>
) : null} ) : null}

@ -231,7 +231,7 @@ class QR extends Component {
} }
/> />
</div> </div>
<button>نمایش تمامی محتواها</button> <button>{window.t("نمایش تمامی محتواها")}</button>
{qrList.qr.content.map((item, i) => ( {qrList.qr.content.map((item, i) => (
<MenuIdentifier data={item} key={i} /> <MenuIdentifier data={item} key={i} />
))} ))}
@ -266,7 +266,7 @@ class QR extends Component {
<div className="mobile-qr__notAccess d-flex flex-column p-3"> <div className="mobile-qr__notAccess d-flex flex-column p-3">
<h1>محتوایی برای این صفحه در دسترس نیست.!</h1> <h1>محتوایی برای این صفحه در دسترس نیست.!</h1>
<div className="mobile-qr-scan__back d-flex mb-2"> <div className="mobile-qr-scan__back d-flex mb-2">
<Link to="/">بازگشت</Link> <Link to="/">{window.t("بازگشت")}</Link>
</div> </div>
</div> </div>
)} )}

Loading…
Cancel
Save