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. 27
      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 ? (
<div className="mobile-qr-modal d-flex flex-column justify-content-center align-items-center">
<span style={{ fontSize: fontSize.mobile.span }}>
اسکن کد QR موفقیت آمیز بود.
{window.t("اسکن کد QR موفقیت آمیز بود.")}
</span>
<Link style={{ fontSize: fontSize.mobile.a }} to={"/qr"}>
{tail}
</Link>
<button onClick={() => parent.setState({ tail: null })}>
انصراف
{window.t("انصراف")}
</button>
</div>
) : (
<div className="qr-modal d-flex flex-column justify-content-center align-items-center">
<span style={{ fontSize: fontSize.mobile.span }}>
اسکن کد QR موفقیت آمیز بود.
{window.t("اسکن کد QR موفقیت آمیز بود.")}
</span>
<Link style={{ fontSize: fontSize.mobile.a }} to={"/qr"}>
{tail}
</Link>
<button onClick={() => parent.setState({ tail: null })}>
انصراف
{window.t("انصراف")}
</button>
</div>
)}

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

@ -1,31 +1,12 @@
import about_lg from `${imagesRoot}/about-lg.png`;
import about_md from `${imagesRoot}/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';
import about_lg from "../assets/images/about-lg.png";
import about_md from "../assets/images/about-md.png";
const imagesUrl = {
image : {
image: {
about_lg,
about_md,
},
icon : {
}
icon: {},
};
export default imagesUrl;

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

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

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

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

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

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

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

Loading…
Cancel
Save