update 11 files

master
mahdi 3 years ago
parent 2583a1eb84
commit cc648fff24
  1. 5
      src/components/ProductDescriptionTable/ProductTable1/index.js
  2. 2
      src/components/ProductGallery/ProductImage/index.js
  3. 2
      src/components/ProgressBar/CircularProgressbar/index.js
  4. 5
      src/components/QuestionAnswer/QandA/index.js
  5. 5
      src/components/Sidebar/SidebarDesign2/index.js
  6. 5
      src/components/SingleProduct/VodDesign1/index.js
  7. 2
      src/components/Tabels/ReactTable4/BasicTable.js
  8. 3
      src/components/Tabels/ReactTable4/ColumnSearch.js
  9. 4
      src/components/Tabels/ReactTable4/Tabbar.js
  10. 1
      src/components/Tabels/ReactTable4/index.js

@ -29,10 +29,7 @@ const ProductTable1 = ({ navTitles, items }) => {
{items.map((e) => {items.map((e) =>
e.items.map((item) => ( e.items.map((item) => (
<ul className="w-full flex flex-row items-center flex-1 my-2"> <ul className="w-full flex flex-row items-center flex-1 my-2">
<li <li className="min-w-[300px] ml-4 py-4 px-8 bg-gray-200 text-blue-600">
className="min-w-md ml-4 py-4 px-8 bg-gray-200 text-blue-600"
style={{ minWidth: "300px" }}
>
{item.title} {item.title}
</li> </li>
<li className="min-w-md w-full py-4 px-8 bg-gray-200 "> <li className="min-w-md w-full py-4 px-8 bg-gray-200 ">

@ -15,8 +15,6 @@ const ProductImage = ({ images }) => {
src="images/ProductImageproductImg.svg" src="images/ProductImageproductImg.svg"
alt="" alt=""
className={`rounded-sm h-full`} className={`rounded-sm h-full`}
// style={{ height: "calc(100% - 8px)" }}
// style={{ height: "calc(100% - 8px)" }}
/> />
{/* این خط پایین که نوشتم برای این است که ایندکس که جنسش استرینگ است رو به نامبر تبدیل کند */} {/* این خط پایین که نوشتم برای این است که ایندکس که جنسش استرینگ است رو به نامبر تبدیل کند */}
{Number(index) === 3 && ( {Number(index) === 3 && (

@ -11,7 +11,7 @@ function CustomCircularProgressbar() {
return ( return (
<> <>
<h2>درست کار نکرد!!!</h2> <h2>درست کار نکرد!!!</h2>
<div style={{ width: 200, height: 200 }}> <div className="w-[200px] he-[200px]">
<CircularProgressbar value={percentage} text={percentage} /> <CircularProgressbar value={percentage} text={percentage} />
</div> </div>
<div className="" style={{ width: 200, height: 200, marginTop: 20 }}> <div className="" style={{ width: 200, height: 200, marginTop: 20 }}>

@ -55,10 +55,7 @@ const QandA = ({ comments }) => {
{comment.answers.length > 0 ? ( {comment.answers.length > 0 ? (
comment.answers.slice(0, numberOfAnswers).map((e) => ( comment.answers.slice(0, numberOfAnswers).map((e) => (
<div className="flex flex-row py-1"> <div className="flex flex-row py-1">
<div <div className="min-h-full w-[60px]"></div>
style={{ width: 60 }}
className="min-h-full w-[60px]"
></div>
<div className="flex flex-1 flex-col px-3"> <div className="flex flex-1 flex-col px-3">
<header className="w-full flex flex-row justify-between items-center"> <header className="w-full flex flex-row justify-between items-center">
<div className="flex flex-row items-center"> <div className="flex flex-row items-center">

@ -83,10 +83,7 @@ const SidebarMenu = ({ items, buttons, username, userJob, className }) => {
menuItem.menuSubItems.map((menuSubItem, j) => ( menuItem.menuSubItems.map((menuSubItem, j) => (
<div <div
key={j} key={j}
className="flex w-10/12 flex-row items-center transition duration-300 ease-linear" className="flex w-10/12 flex-row items-center transform translate-x-[-11%] translate-y-[-9px] transition duration-300 ease-linear"
style={{
transform: "translate(-11%,-9px)",
}}
> >
<div className="transition duration-300 ease-linear text-gray-400 border-r-2 border-gray-300"> <div className="transition duration-300 ease-linear text-gray-400 border-r-2 border-gray-300">
- -

@ -53,12 +53,9 @@ const VodDesign1 = ({
{/* TOP SECTION === ProductImage && ICONS on image && PlayButton && Tooltip */} {/* TOP SECTION === ProductImage && ICONS on image && PlayButton && Tooltip */}
{/* ProductImage */} {/* ProductImage */}
<div <div
className="w-full group relative flex items-center justify-center transition ease-in-out duration-300 cursor-pointer" className="w-full min-h-[180px] group bg-no-repeat bg-cover bg-center relative flex items-center justify-center transition ease-in-out duration-300 cursor-pointer"
style={{ style={{
backgroundImage: `url("images/VodDesign1watermelon.png")`, backgroundImage: `url("images/VodDesign1watermelon.png")`,
backgroundSize: "100% 100%",
backgroundRepeat: "no-repeat",
minHeight: "180px",
}} }}
data-modal-toggle="large-modal" data-modal-toggle="large-modal"
> >

@ -1,6 +1,6 @@
import React, { useMemo, useState } from "react"; import React, { useMemo, useState } from "react";
import TabBar from "../ReactTable3/TabBar"; import TabBar from "./Tabbar";
import Tabbar from "./Tabbar"; import Tabbar from "./Tabbar";
import MOCK_DATA from "./MOCK_DATA.json"; import MOCK_DATA from "./MOCK_DATA.json";

@ -8,8 +8,7 @@ export const ColumnSearch = ({ column }) => {
<input <input
value={filterValue || ""} value={filterValue || ""}
onChange={(e) => setFilter(e.target.value)} onChange={(e) => setFilter(e.target.value)}
className={`w-8/12 text-xs text-blue-400 rounded focus:outline-none border p-1 focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20`} className={`w-8/12 text-xs text-blue-400 bg-[#F9FBFF] border-[#B5D6FF] rounded focus:outline-none border p-1 focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20`}
style={{ backgroundColor: "#F9FBFF", borderColor: "#B5D6FF" }}
/> />
</div> </div>
); );

@ -32,8 +32,8 @@ const Tabbar = ({ tabs, delTab, setActivateTab, activeTab }) => {
if (window.isDown) return e.preventDefault(); if (window.isDown) return e.preventDefault();
}} }}
aria-current="page" aria-current="page"
className={`flex flex-row items-center text-lg text-center active rounded-sm p-20 ${ className={`flex flex-row items-center text-sm text-white px-2 py-0.5 text-center active rounded-sm ${
activeTab === el.id ? "bg-[#fff]" : "bg-[#000]" activeTab === el.id ? "text-[#fff]" : "text-[#000]"
} ${activeTab === el.id ? "bg-[#92c1fc]" : "bg-[#F1F6FF]"}`} } ${activeTab === el.id ? "bg-[#92c1fc]" : "bg-[#F1F6FF]"}`}
// style={{ // style={{
// backgroundColor: activeTab === el.id ? "#92c1fc" : "#F1F6FF", // backgroundColor: activeTab === el.id ? "#92c1fc" : "#F1F6FF",

@ -4,7 +4,6 @@ import React, { useRef, useState } from "react";
import BasicTable from "./BasicTable"; import BasicTable from "./BasicTable";
import TitleSubtitle from "../../MiniComponents/BreadCrumb"; import TitleSubtitle from "../../MiniComponents/BreadCrumb";
import BreadCrumb from "../../MiniComponents/BreadCrumb";
const ReactTable4 = ({ breadCrumbs }) => { const ReactTable4 = ({ breadCrumbs }) => {
const [tabs, setTabs] = useState([ const [tabs, setTabs] = useState([

Loading…
Cancel
Save