import React, { Component } from "react"; import { Link } from "react-router-dom"; import logo from "../../../../assets/icons/logo.png"; import iran from "../../../../assets/icons/iran.png"; import pic from "../../../../assets/images/pic.png"; import "./index.scss"; const maxDesktopSize = 1250; const maxMobileSize = 550; const fontSize = { desktop: { span: window.innerWidth > maxDesktopSize ? 18 : window.innerWidth / 80, input: window.innerWidth > maxDesktopSize ? 18 : window.innerWidth / 80, button: window.innerWidth > maxDesktopSize ? 18 : window.innerWidth / 85, div: window.innerWidth > maxDesktopSize ? 12 : window.innerWidth / 100, }, mobile: { span: window.innerWidth > maxMobileSize ? 18 : window.innerWidth / 22, input: window.innerWidth > maxMobileSize ? 18 : window.innerWidth / 22, button: window.innerWidth > maxMobileSize ? 20 : window.innerWidth / 24, div: window.innerWidth > maxMobileSize ? 14 : window.innerWidth / 30, h1: window.innerWidth > maxMobileSize ? 30 : window.innerWidth / 18, p: window.innerWidth > maxMobileSize ? 16 : window.innerWidth / 32, }, }; export default class Cellphone extends Component { render() { return ( <> {window.innerWidth > 1000 ? (
دانوین
this.props.parent.setState({ page: 1, cellphone: "09" + this.state.cellphone, }) } > 09 {window.t("پرچم")} { this.inputRef1 = input; }} onChange={(e) => this.setState({ cellphone: e.target.value }) } onInput={(e) => (e.target.value = e.target.value .replace(/[\u0660-\u0669\u06f0-\u06f9]/g, function (c) { return c.charCodeAt(0) & 0xf; }) .replace(/[^\d]/, "")) } />
شرایط استفاده و حریم خصوصی
{window.t("عکس")}
) : null} {window.innerWidth < 1000 ? (
دانوین

{window.t("دانوین")}

به دانوین خوش اومدی برای عضویت و ادامه شماره موبایلت رو وارد کن و روی گزینه ثبت بزن

this.props.parent.setState({ page: 1, cellphone: "09" + this.state.cellphone, }) } > 09 {window.t("پرچم")} { this.inputRef1 = input; }} onChange={(e) => this.setState({ cellphone: e.target.value })} onInput={(e) => (e.target.value = e.target.value .replace(/[\u0660-\u0669\u06f0-\u06f9]/g, function (c) { return c.charCodeAt(0) & 0xf; }) .replace(/[^\d]/, "")) } style={{ fontSize: fontSize.mobile.input }} />
شرایط استفاده و حریم خصوصی
) : null} ); } }