Before Width: | Height: | Size: 471 B After Width: | Height: | Size: 471 B |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@ -1,20 +0,0 @@ |
||||
import React from "react"; |
||||
import FolderTree from "../FolderTree"; |
||||
import ReactTable5 from "../ReactTable5"; |
||||
|
||||
const GridListTable = () => { |
||||
return ( |
||||
<section className="flex flex-row"> |
||||
{/* right */} |
||||
<div className="w-[265px] " style={{ backgroundColor: "#FBFBFB" }}> |
||||
<FolderTree /> |
||||
</div> |
||||
{/* left */} |
||||
<div className="flex-1"> |
||||
<ReactTable5 /> |
||||
</div> |
||||
</section> |
||||
); |
||||
}; |
||||
|
||||
export default GridListTable; |
@ -1,148 +0,0 @@ |
||||
import React from "react"; |
||||
|
||||
import cartIcon from "../../../assets/icons/dark-crimson-cart-icon.svg"; |
||||
// import whiteCartIcon from "../../../assets/icons/white-cart-icon.svg";
|
||||
import profileIcon from "../../../assets/icons/dark-crimson-profile-icon.svg"; |
||||
// import searchIcon from "../../../assets/icons/dark-crimson-search-box.svg";
|
||||
// import lightGraySearchIcon from "../../../assets/icons/light-gray-search-box.svg";
|
||||
// import darkCrimsonHamburgerMenu from "../../../assets/icons/dark-crimson-hamburger-menu.svg";
|
||||
// import whiteHamburgerMenu from "../../../assets/icons/white-hamburger-menu-icon.svg";
|
||||
import profilePic from "./profile-pic.svg"; |
||||
import downwardArrow from "./arrow-down.svg"; |
||||
import search from "./search-normal.svg"; |
||||
import Switch from "../../Switch"; |
||||
|
||||
const HeaderDesign1 = ({ username, userJob }) => { |
||||
return ( |
||||
<header |
||||
className={`mx-auto py-3 px-4 rounded-b-md w-full shadow-sm bg-white`} |
||||
> |
||||
{/* {headerDivider && ( |
||||
<div className="border-b border-lightGrayBorderColor mb-5"></div> |
||||
)} */} |
||||
<div className="flex justify-between items-center relative"> |
||||
<div className="flex w-1/5"> |
||||
<span className={`text-sm font-sansbold ml-4 pt-1 text-productPrice`}> |
||||
دانوین |
||||
</span> |
||||
</div> |
||||
|
||||
<div className="flex items-center relative justify-self-start flex-1"> |
||||
<div className="hidden lg:flex items-start justify-start flex-1 "> |
||||
<a href="#" className={`text-xs text-productPrice mx-3`}> |
||||
محصولات |
||||
</a> |
||||
<a href="#" className={`text-xs text-productPrice mx-3`}> |
||||
دسته بندی |
||||
</a> |
||||
<a href="#" className={`text-xs text-productPrice mx-3`}> |
||||
تماس با ما |
||||
</a> |
||||
<a href="#" className={`text-xs text-productPrice mx-3`}> |
||||
درباره ما |
||||
</a> |
||||
<a href="#" className={`text-xs text-productPrice mx-3`}> |
||||
پیگیری |
||||
</a> |
||||
<a href="#" className={`text-xs text-productPrice mx-3`}> |
||||
وبلاگ |
||||
</a> |
||||
</div> |
||||
</div> |
||||
|
||||
<div className="flex justify-end items-center "> |
||||
<div className="ml-4"> |
||||
<Switch /> |
||||
</div> |
||||
<div className="flex flex-row-reverse items-center relative w-60 ml-3"> |
||||
<img |
||||
src={search} |
||||
alt="" |
||||
className="w-5 h-5 absolute left-3 cursor-pointer" |
||||
/> |
||||
<input |
||||
type="text" |
||||
placeholder="جستجو در پنل کاربری..." |
||||
className="text-xs rounded pr-4 pl-10 py-2 w-full border border-blue-300 focus:outline-none placeholder:text-blue-300" |
||||
/> |
||||
</div> |
||||
{/* <div class="flex justify- "> |
||||
<div class="form-check form-switch"> |
||||
<input |
||||
class="form-check-input appearance-none w-9 -ml-10 rounded-full float-left h-5 align-top bg-white bg-no-repeat bg-contain bg-gray-300 focus:outline-none cursor-pointer shadow-sm" |
||||
type="checkbox" |
||||
role="switch" |
||||
id="flexSwitchCheckChecked" |
||||
checked |
||||
/> |
||||
</div> |
||||
</div> */} |
||||
{/* <p className={`text-xs ml-2 text-product>Price`}> |
||||
140,000 |
||||
<span className={`text-xs font-light text-productPrice`}> |
||||
تومان |
||||
</span> |
||||
</p> */} |
||||
{/* <img src={whiteCartIcon} alt="" className="w-5 h-5 ml-2" /> */} |
||||
{/* <img src={searchIcon} alt="" className="w-7 h-5 ml-2" /> */} |
||||
<img src={cartIcon} alt="" className="w-7 h-5 ml-2" /> |
||||
{/* <img src={profileIcon} alt="" className="w-5 h-5" /> */} |
||||
{/* <button |
||||
className={`ml-2 text-xs font-light border rounded-md py-2 px-8 bg-white border-darkCrimsonBorderColor text-productPrice`} |
||||
> |
||||
ورود |
||||
</button> */} |
||||
<div className="flex flex-row items-center"> |
||||
<div className=" flex-col flex-1 mr-3"> |
||||
<p className="text-blue-900 text-sm">{username}</p> |
||||
<p className="text-blue-700 text-xs">{userJob}</p> |
||||
</div> |
||||
<img src={downwardArrow} alt="" className="w-4 cursor-pointer" /> |
||||
<img src={profilePic} alt="" className="w-10 rounded-full" /> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</header> |
||||
); |
||||
}; |
||||
|
||||
export default HeaderDesign1; |
||||
|
||||
// یک تگ دیو در نظر گرفتم برای 3 تا ایکن سرچ/پروفایل/اضافه کردن به سبد خرید که اینارو انداختم داخل دیو ایکن هولدر
|
||||
|
||||
// text colors that is used in this component
|
||||
// text-productPrice
|
||||
// text-white
|
||||
|
||||
// background colors that is used in this component
|
||||
// bg-darkCrimsonBgColor
|
||||
|
||||
// border colors that is used in this component
|
||||
// border-darkCrimsonBorderColor
|
||||
|
||||
HeaderDesign1.defaultProps = { |
||||
username: "رستم پهلوان زاده", |
||||
userJob: "مدیریت سامانه هوشمند", |
||||
headerDivider: true, |
||||
|
||||
topHeader: true, |
||||
bottomHeader: true, |
||||
|
||||
menuItems: false, |
||||
category: false, |
||||
searchBox: true, |
||||
|
||||
// icons
|
||||
loginBtn: true, |
||||
|
||||
whiteIconCart: false, |
||||
darkCrimsonIconCart: false, |
||||
|
||||
whiteIconHamburgerMenu: false, |
||||
darkIconHamburgerMenu: true, |
||||
|
||||
iconHolder: true, |
||||
iconProfile: false, |
||||
iconCart: true, |
||||
iconSearch: false, |
||||
}; |
Before Width: | Height: | Size: 448 B |
Before Width: | Height: | Size: 102 KiB |
Before Width: | Height: | Size: 646 B |
@ -1,97 +0,0 @@ |
||||
import React from "react"; |
||||
|
||||
import ScrollContainer from "react-indiana-drag-scroll"; |
||||
/** min から max までの数字の入った配列を生成する関数 */ |
||||
const range = (min, max, step = 1) => { |
||||
return Array.from( |
||||
{ length: (max - min + step) / step }, |
||||
(v, k) => min + k * step |
||||
); |
||||
}; |
||||
export default function IndianaDragScroll() { |
||||
return ( |
||||
<div className="bg-blue-400 p-4 h-52"> |
||||
<ScrollContainer ignoreElements={"#not-work-drag"}> |
||||
<div |
||||
className="bg-red-400 h-52" |
||||
id="not-work-drag" |
||||
style={{ |
||||
height: "100%", |
||||
background: "rgba(0, 208, 255, 0.8)", |
||||
position: "absolute", |
||||
display: "flex", |
||||
flexDirection: "column", |
||||
justifyContent: "space-between", |
||||
left: "12%", |
||||
}} |
||||
></div> |
||||
<div className="flex flex-col h-52 bg-red-400" style={{}}> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
<div>mahdi</div> |
||||
</div> |
||||
</ScrollContainer> |
||||
<div className="w-full bg-yellow-300 h-5 my-20 text-center text-base text-red-600 rounded"> |
||||
divider between vertical && horizontal scroll bar inside |
||||
IndianaDragScroll COMPONENT |
||||
</div> |
||||
<ScrollContainer ignoreElements={"#not-work-drag"}> |
||||
<div |
||||
id="not-work-drag" |
||||
style={{ |
||||
height: "100%", |
||||
background: "rgba(0, 208, 255, 0.8)", |
||||
position: "absolute", |
||||
display: "flex", |
||||
flexDirection: "column", |
||||
justifyContent: "space-between", |
||||
left: "12%", |
||||
}} |
||||
> |
||||
<div>この上では</div> |
||||
<div>ドラッグしてもスクロールしません</div> |
||||
</div> |
||||
<div style={{ display: "flex" }}> |
||||
{range(0, 100).map((i, index) => ( |
||||
<div key={index} style={{ margin: "1em .25em" }}> |
||||
{i} |
||||
</div> |
||||
))} |
||||
</div> |
||||
</ScrollContainer> |
||||
</div> |
||||
); |
||||
} |
@ -1,18 +0,0 @@ |
||||
import React, { Component, lazy, Suspense } from "react"; |
||||
import { Provider } from "react-redux"; |
||||
import store from "./redux/store"; |
||||
import Router from "./router.js"; |
||||
|
||||
const mahdi = () => { |
||||
return ( |
||||
<> |
||||
<h2>hi there i am loaded NOWW</h2> |
||||
<Provider store={store}> |
||||
<Router /> |
||||
</Provider> |
||||
; |
||||
</> |
||||
); |
||||
}; |
||||
|
||||
export default mahdi; |