Minimal Nav made

main
Pedram Keshavarzi 3 years ago
parent ea12120c5d
commit 7485d954ac
  1. BIN
      src/assets/img/avatar/uglyUser.jpeg
  2. 24
      src/components/nav/Nav.js
  3. 6
      src/components/nav/discount-shape.svg
  4. 6
      src/components/nav/element-3.svg
  5. 9
      src/components/nav/empty-wallet.svg
  6. 4
      src/components/nav/home-2.svg
  7. 154
      src/components/nav/minimalNav.js
  8. 5
      src/components/nav/notification.svg
  9. 4
      src/components/nav/profile.svg
  10. 6
      src/components/nav/receipt-text.svg
  11. 4
      src/components/nav/setting-2.svg
  12. 24
      src/components/nav/vuesax-bold-element-4-2.svg
  13. 8
      src/components/nav/vuesax-linear-logout.svg
  14. 2
      src/view/admin/index.js

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

@ -1,5 +1,5 @@
import "./Nav.scss"; import "./Nav.scss";
import { useState } from "react"; import { useEffect, useState } from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { loadAnimation } from "lottie-web"; import { loadAnimation } from "lottie-web";
import { defineLordIconElement } from "lord-icon-element"; import { defineLordIconElement } from "lord-icon-element";
@ -7,6 +7,7 @@ import { defineLordIconElement } from "lord-icon-element";
import logo from "../../assets/img/logo.png"; import logo from "../../assets/img/logo.png";
import img1 from "../../assets/img/Group 1440.svg"; import img1 from "../../assets/img/Group 1440.svg";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import MinimalNav from "./minimalNav";
// defineLordIconElement(loadAnimation); // defineLordIconElement(loadAnimation);
@ -18,6 +19,17 @@ const Nav = ({
isMobile, isMobile,
isLogin, isLogin,
}) => { }) => {
const [type, setType] = useState('default');
useEffect(() => {
if(location.includes('adminpanel')){
setType('minimal');
}
}, [])
let initai_navId = 1; let initai_navId = 1;
if(isMobile){ if(isMobile){
if (location.includes("services")) { if (location.includes("services")) {
@ -114,6 +126,7 @@ const Nav = ({
) )
} else { } else {
return ( return (
type === "default" ?
<div className="nav h-full w-[6.5%] fixed top-0 right-0 z-20 overflow-hidden bg-grayEC border-l border-l-color1"> <div className="nav h-full w-[6.5%] fixed top-0 right-0 z-20 overflow-hidden bg-grayEC border-l border-l-color1">
<div className="h-1/6 flex items-center"> <div className="h-1/6 flex items-center">
<img src={logo} alt="logo" className="logo w-full" /> <img src={logo} alt="logo" className="logo w-full" />
@ -447,7 +460,14 @@ const Nav = ({
</div> </div>
</Link> </Link>
</div> </div>
</div> </div> : type === 'minimal' ?
//MINIMAL
<MinimalNav logOut={logOut}/>
: <div></div>
); );
} }
}; };

@ -0,0 +1,6 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3.9889 14.6604L2.46891 13.1404C1.84891 12.5204 1.84891 11.5004 2.46891 10.8804L3.9889 9.36039C4.2489 9.10039 4.4589 8.59038 4.4589 8.23038V6.08036C4.4589 5.20036 5.1789 4.48038 6.0589 4.48038H8.2089C8.5689 4.48038 9.0789 4.27041 9.3389 4.01041L10.8589 2.49039C11.4789 1.87039 12.4989 1.87039 13.1189 2.49039L14.6389 4.01041C14.8989 4.27041 15.4089 4.48038 15.7689 4.48038H17.9189C18.7989 4.48038 19.5189 5.20036 19.5189 6.08036V8.23038C19.5189 8.59038 19.7289 9.10039 19.9889 9.36039L21.5089 10.8804C22.1289 11.5004 22.1289 12.5204 21.5089 13.1404L19.9889 14.6604C19.7289 14.9204 19.5189 15.4304 19.5189 15.7904V17.9403C19.5189 18.8203 18.7989 19.5404 17.9189 19.5404H15.7689C15.4089 19.5404 14.8989 19.7504 14.6389 20.0104L13.1189 21.5304C12.4989 22.1504 11.4789 22.1504 10.8589 21.5304L9.3389 20.0104C9.0789 19.7504 8.5689 19.5404 8.2089 19.5404H6.0589C5.1789 19.5404 4.4589 18.8203 4.4589 17.9403V15.7904C4.4589 15.4204 4.2489 14.9104 3.9889 14.6604Z" stroke="#c82b5b" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M9 15L15 9" stroke="#c82b5b" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M14.4945 14.5H14.5035" stroke="#c82b5b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M9.49451 9.5H9.50349" stroke="#c82b5b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

@ -0,0 +1,6 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M22 8.52V3.98C22 2.57 21.36 2 19.77 2H15.73C14.14 2 13.5 2.57 13.5 3.98V8.51C13.5 9.93 14.14 10.49 15.73 10.49H19.77C21.36 10.5 22 9.93 22 8.52Z" stroke="#c82b5b" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M22 19.77V15.73C22 14.14 21.36 13.5 19.77 13.5H15.73C14.14 13.5 13.5 14.14 13.5 15.73V19.77C13.5 21.36 14.14 22 15.73 22H19.77C21.36 22 22 21.36 22 19.77Z" stroke="#c82b5b" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98V8.51C2 9.93 2.64 10.49 4.23 10.49H8.27C9.86 10.5 10.5 9.93 10.5 8.52Z" stroke="#c82b5b" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M10.5 19.77V15.73C10.5 14.14 9.86 13.5 8.27 13.5H4.23C2.64 13.5 2 14.14 2 15.73V19.77C2 21.36 2.64 22 4.23 22H8.27C9.86 22 10.5 21.36 10.5 19.77Z" stroke="#c82b5b" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

@ -0,0 +1,9 @@
<svg id="empty-wallet" xmlns="http://www.w3.org/2000/svg" width="46.091" height="46.091" viewBox="0 0 46.091 46.091">
<g id="Group" transform="translate(4.801 3.929)">
<path id="Vector" d="M29.844,11.139a3.857,3.857,0,0,0-1.152,3.13A4.1,4.1,0,0,0,32.84,17.86h3.649v2.285a7.237,7.237,0,0,1-7.221,7.221H7.221A7.237,7.237,0,0,1,0,20.146V7.221A7.237,7.237,0,0,1,7.221,0H29.268a7.237,7.237,0,0,1,7.221,7.221V9.986H32.61A3.827,3.827,0,0,0,29.844,11.139Z" transform="translate(0 10.955)" fill="none" stroke="#c82b5b" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2"/>
<path id="Vector-2" data-name="Vector" d="M0,19.9V11.128A5.469,5.469,0,0,1,3.534,6L18.782.239a3.649,3.649,0,0,1,4.936,3.418v7.3" transform="translate(0 0)" fill="none" stroke="#c82b5b" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2"/>
</g>
<path id="Vector-3" data-name="Vector" d="M9.85,1.959V5.915A1.972,1.972,0,0,1,7.93,7.874H4.166A4.1,4.1,0,0,1,.018,4.283,3.857,3.857,0,0,1,1.17,1.152,3.827,3.827,0,0,1,3.935,0H7.93A1.972,1.972,0,0,1,9.85,1.959Z" transform="translate(33.473 24.87)" fill="none" stroke="#c82b5b" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2"/>
<path id="Vector-4" data-name="Vector" d="M0,0H13.443" transform="translate(13.443 23.046)" fill="none" stroke="#c82b5b" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2"/>
<path id="Vector-5" data-name="Vector" d="M0,0H46.091V46.091H0Z" fill="none" opacity="0"/>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

@ -0,0 +1,4 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9.02 2.84004L3.63 7.04004C2.73 7.74004 2 9.23004 2 10.36V17.77C2 20.09 3.89 21.99 6.21 21.99H17.79C20.11 21.99 22 20.09 22 17.78V10.5C22 9.29004 21.19 7.74004 20.2 7.05004L14.02 2.72004C12.62 1.74004 10.37 1.79004 9.02 2.84004Z" stroke="#c82b5b" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
<path d="M12 17.99V14.99" stroke="#c82b5b" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 532 B

@ -0,0 +1,154 @@
import React, {useState} from "react";
import { Link } from "react-router-dom";
// assets
import avatar from '../../assets/img/avatar/uglyUser.jpeg';
import dropDownIcon from '../../assets/img/arrow-down.svg'
import homeIcon from './home-2.svg'
import optionsIcon from './element-3.svg'
import notificationIcon from './notification.svg';
import walleteIcon from './empty-wallet.svg';
import discountIcon from './discount-shape.svg';
import userIcon from './profile.svg';
import receiptIcon from './receipt-text.svg';
import settingIcon from './setting-2.svg';
import exitIcon from './vuesax-linear-logout.svg'
const MinimalNav = ({logOut}) => {
let initai_navId = 1;
const [navId, setNavId] = useState(initai_navId);
const chaneNav = (id) => {
setNavId(id);
let top = 100 / 6 + (id - 1) * 100 / 6 * 3 / 4;
console.log(top)
document.querySelector(".back-item-img").style.top = `${top}%`;
};
const menuOptions = [
{
icon: homeIcon,
link: '/adminpanel',
id : 1
},
{
icon: optionsIcon,
link: '/adminpanel',
id : 2
},
{
icon: notificationIcon,
link: '/adminpanel',
id : 3
},
{
icon: walleteIcon,
link: '/adminpanel',
id : 4
},
{
icon: discountIcon,
link: '/adminpanel',
id : 5
},
{
icon: receiptIcon,
link: '/adminpanel',
id : 6
},
{
icon: walleteIcon,
link: '/adminpanel',
id : 7
},
{
icon: userIcon,
link: '/adminpanel',
id : 8
},
{
icon: settingIcon,
link: '/adminpanel',
id : 9
},
{
icon: exitIcon,
link: '/adminpanel',
id: 10
},
]
return(
<div className="nav h-full w-[4.5%] fixed top-0 right-0 z-20 overflow-hidden bg-white border-l border-l-color1">
<div className="h-[10%] mb-6 mt-4 flex flex-col justify-center items-center">
<img src={avatar} alt="user" className="logo w-12 h-12 rounded-full" />
<img src={dropDownIcon} alt="choose User Icon" className="w-6" />
</div>
{/* ------------ */}
<div className="flex flex-col items-center w-full h-full">
{
menuOptions.slice(0,3).map(
(item, index) => (
<Link to={item.link} className="w-full flex justify-center items-center h-[7%]" onClick={() => setNavId(item.id)}>
<img src={item.icon} className="w-2/5"/>
<div
className="back-item-img w-1 rounded-xl h-12 bg-red52 absolute right-0 z-20 transition-all duration-300"
style={
navId != item.id ? {display: 'none'} : null
}
></div>
</Link>
)
)
}
<div className="h-1 w-4/5 rounded-xl bg-red82OP my-4"></div>
{
menuOptions.slice(3,7).map(
(item, index) => (
<Link to={item.link} className="w-full flex justify-center items-center h-[7%]" onClick={() => setNavId(item.id)}>
<img src={item.icon} className="w-2/5"/>
<div
className="back-item-img w-1 rounded-xl h-12 bg-red52 absolute right-0 z-20 transition-all duration-300"
style={
navId != item.id ? {display: 'none'} : null
}
></div>
</Link>
)
)
}
<div className="h-1 w-4/5 rounded-xl bg-red82OP my-4"></div>
{
menuOptions.slice(7,12).map(
(item, index) => (
<Link to={item.link} className="w-full flex justify-center items-center h-[7%]" onClick={() => setNavId(item.id)}>
<img src={item.icon} className="w-2/5"/>
<div
className="back-item-img w-1 rounded-xl h-12 bg-red52 absolute right-0 z-20 transition-all duration-300"
style={
navId != item.id ? {display: 'none'} : null
}
></div>
</Link>
)
)
}
</div>
</div>
)
}
export default MinimalNav;

@ -0,0 +1,5 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12.02 2.90991C8.70997 2.90991 6.01997 5.59991 6.01997 8.90991V11.7999C6.01997 12.4099 5.75997 13.3399 5.44997 13.8599L4.29997 15.7699C3.58997 16.9499 4.07997 18.2599 5.37997 18.6999C9.68997 20.1399 14.34 20.1399 18.65 18.6999C19.86 18.2999 20.39 16.8699 19.73 15.7699L18.58 13.8599C18.28 13.3399 18.02 12.4099 18.02 11.7999V8.90991C18.02 5.60991 15.32 2.90991 12.02 2.90991Z" stroke="#c82b5b" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round"/>
<path d="M13.87 3.19994C13.56 3.10994 13.24 3.03994 12.91 2.99994C11.95 2.87994 11.03 2.94994 10.17 3.19994C10.46 2.45994 11.18 1.93994 12.02 1.93994C12.86 1.93994 13.58 2.45994 13.87 3.19994Z" stroke="#c82b5b" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M15.02 19.0601C15.02 20.7101 13.67 22.0601 12.02 22.0601C11.2 22.0601 10.44 21.7201 9.90002 21.1801C9.36002 20.6401 9.02002 19.8801 9.02002 19.0601" stroke="#c82b5b" stroke-width="1.5" stroke-miterlimit="10"/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

@ -0,0 +1,4 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12.1601 10.87C12.0601 10.86 11.9401 10.86 11.8301 10.87C9.45006 10.79 7.56006 8.84 7.56006 6.44C7.56006 3.99 9.54006 2 12.0001 2C14.4501 2 16.4401 3.99 16.4401 6.44C16.4301 8.84 14.5401 10.79 12.1601 10.87Z" stroke="#c82b5b" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
<path d="M7.15997 14.56C4.73997 16.18 4.73997 18.82 7.15997 20.43C9.90997 22.27 14.42 22.27 17.17 20.43C19.59 18.81 19.59 16.17 17.17 14.56C14.43 12.73 9.91997 12.73 7.15997 14.56Z" stroke="#c82b5b" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 667 B

@ -0,0 +1,6 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M22 6V8.42C22 10 21 11 19.42 11H16V4.01C16 2.9 16.91 2 18.02 2C19.11 2.01 20.11 2.45 20.83 3.17C21.55 3.9 22 4.9 22 6Z" stroke="#c82b5b" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M2 7V21C2 21.83 2.93998 22.3 3.59998 21.8L5.31 20.52C5.71 20.22 6.27 20.26 6.63 20.62L8.28998 22.29C8.67998 22.68 9.32002 22.68 9.71002 22.29L11.39 20.61C11.74 20.26 12.3 20.22 12.69 20.52L14.4 21.8C15.06 22.29 16 21.82 16 21V4C16 2.9 16.9 2 18 2H7H6C3 2 2 3.79 2 6V7Z" stroke="#c82b5b" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M6 9H12" stroke="#c82b5b" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M6.75 13H11.25" stroke="#c82b5b" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 940 B

@ -0,0 +1,4 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z" stroke="#c82b5b" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M2 12.8799V11.1199C2 10.0799 2.85 9.21994 3.9 9.21994C5.71 9.21994 6.45 7.93994 5.54 6.36994C5.02 5.46994 5.33 4.29994 6.24 3.77994L7.97 2.78994C8.76 2.31994 9.78 2.59994 10.25 3.38994L10.36 3.57994C11.26 5.14994 12.74 5.14994 13.65 3.57994L13.76 3.38994C14.23 2.59994 15.25 2.31994 16.04 2.78994L17.77 3.77994C18.68 4.29994 18.99 5.46994 18.47 6.36994C17.56 7.93994 18.3 9.21994 20.11 9.21994C21.15 9.21994 22.01 10.0699 22.01 11.1199V12.8799C22.01 13.9199 21.16 14.7799 20.11 14.7799C18.3 14.7799 17.56 16.0599 18.47 17.6299C18.99 18.5399 18.68 19.6999 17.77 20.2199L16.04 21.2099C15.25 21.6799 14.23 21.3999 13.76 20.6099L13.65 20.4199C12.75 18.8499 11.27 18.8499 10.36 20.4199L10.25 20.6099C9.78 21.3999 8.76 21.6799 7.97 21.2099L6.24 20.2199C5.33 19.6999 5.02 18.5299 5.54 17.6299C6.45 16.0599 5.71 14.7799 3.9 14.7799C2.85 14.7799 2 13.9199 2 12.8799Z" stroke="#c82b5b" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

@ -0,0 +1,24 @@
<svg id="vuesax_bold_element-4-2" data-name="vuesax/bold/element-4-2" xmlns="http://www.w3.org/2000/svg" width="46.091" height="46.091" viewBox="0 0 46.091 46.091">
<g id="element-4">
<g id="Vector" transform="translate(24.966 3.841)" fill="none">
<path d="M16.324,17.092V4.033C16.324,1.152,15.095,0,12.041,0H4.283C1.229,0,0,1.152,0,4.033V17.092c0,2.881,1.229,4.033,4.283,4.033h7.759C15.095,21.125,16.324,19.973,16.324,17.092Z" stroke="none"/>
<path d="M 12.04132080078125 19.1251220703125 C 13.39364051818848 19.1251220703125 13.83173084259033 18.85034370422363 13.95730018615723 18.73219299316406 C 14.19375038146973 18.50976371765137 14.32396030426025 17.92731285095215 14.32396030426025 17.09214210510254 L 14.32396030426025 4.03298282623291 C 14.32396030426025 3.197813034057617 14.19375038146973 2.615362882614136 13.95730018615723 2.392932891845703 C 13.83173084259033 2.27478289604187 13.39364051818848 2.000002861022949 12.04132080078125 2.000002861022949 L 4.28264045715332 2.000002861022949 C 2.930320739746094 2.000002861022949 2.492230653762817 2.27478289604187 2.366660594940186 2.392932891845703 C 2.130210638046265 2.615362882614136 2.000000715255737 3.197813034057617 2.000000715255737 4.03298282623291 L 2.000000715255737 17.09214210510254 C 2.000000715255737 17.92731285095215 2.130210638046265 18.50976371765137 2.366660594940186 18.73219299316406 C 2.492230653762817 18.85034370422363 2.930320739746094 19.1251220703125 4.28264045715332 19.1251220703125 L 12.04132080078125 19.1251220703125 M 12.04132080078125 21.1251220703125 L 4.28264045715332 21.1251220703125 C 1.229100584983826 21.1251220703125 6.289673137871432e-07 19.97284317016602 6.289673137871432e-07 17.09214210510254 L 6.289673137871432e-07 4.03298282623291 C 6.289673137871432e-07 1.152282953262329 1.229100584983826 2.942504806924262e-06 4.28264045715332 2.942504806924262e-06 L 12.04132080078125 2.942504806924262e-06 C 15.09486103057861 2.942504806924262e-06 16.32396125793457 1.152282953262329 16.32396125793457 4.03298282623291 L 16.32396125793457 17.09214210510254 C 16.32396125793457 19.97284317016602 15.09486103057861 21.1251220703125 12.04132080078125 21.1251220703125 Z" stroke="none" fill="#c82b5b"/>
</g>
<g id="Vector-2" data-name="Vector" transform="translate(4.801 21.125)" fill="none">
<path d="M16.324,4.033V17.092c0,2.881-1.229,4.033-4.283,4.033H4.283C1.229,21.125,0,19.973,0,17.092V4.033C0,1.152,1.229,0,4.283,0h7.759C15.095,0,16.324,1.152,16.324,4.033Z" stroke="none"/>
<path d="M 4.28264045715332 2.000003814697266 C 2.930320739746094 2.000003814697266 2.492230415344238 2.274782180786133 2.366661071777344 2.392932891845703 C 2.130210876464844 2.615362167358398 2.000000953674316 3.197813034057617 2.000000953674316 4.032983779907227 L 2.000000953674316 17.09214401245117 C 2.000000953674316 17.92731285095215 2.130210876464844 18.50976371765137 2.366661071777344 18.73219299316406 C 2.492230415344238 18.85034370422363 2.930320739746094 19.1251220703125 4.28264045715332 19.1251220703125 L 12.04132080078125 19.1251220703125 C 13.39364051818848 19.1251220703125 13.83173084259033 18.85034370422363 13.95730018615723 18.73219299316406 C 14.19375038146973 18.50976371765137 14.32396030426025 17.92731285095215 14.32396030426025 17.09214401245117 L 14.32396030426025 4.032983779907227 C 14.32396030426025 3.197813034057617 14.19375038146973 2.615362167358398 13.95730018615723 2.392932891845703 C 13.83173084259033 2.274782180786133 13.39364051818848 2.000003814697266 12.04132080078125 2.000003814697266 L 4.28264045715332 2.000003814697266 M 4.28264045715332 3.814697265625e-06 L 12.04132080078125 3.814697265625e-06 C 15.09486103057861 3.814697265625e-06 16.32396125793457 1.15228271484375 16.32396125793457 4.032983779907227 L 16.32396125793457 17.09214401245117 C 16.32396125793457 19.97284317016602 15.09486103057861 21.1251220703125 12.04132080078125 21.1251220703125 L 4.28264045715332 21.1251220703125 C 1.229100227355957 21.1251220703125 0 19.97284317016602 0 17.09214401245117 L 0 4.032983779907227 C 0 1.15228271484375 1.229100227355957 3.814697265625e-06 4.28264045715332 3.814697265625e-06 Z" stroke="none" fill="#c82b5b"/>
</g>
<g id="Vector-3" data-name="Vector" transform="translate(46.091 46.091) rotate(180)" fill="none" opacity="0">
<path d="M0,0H46.091V46.091H0Z" stroke="none"/>
<path d="M 2 2 L 2 44.09118270874023 L 44.09118270874023 44.09118270874023 L 44.09118270874023 2 L 2 2 M 0 0 L 46.09118270874023 0 L 46.09118270874023 46.09118270874023 L 0 46.09118270874023 L 0 0 Z" stroke="none" fill="#c82b5b"/>
</g>
<g id="Vector-4" data-name="Vector" transform="translate(24.966 28.807)" fill="none">
<path d="M16.324,9.41V4.033C16.324,1.152,15.095,0,12.041,0H4.283C1.229,0,0,1.152,0,4.033V9.41c0,2.881,1.229,4.033,4.283,4.033h7.759C15.095,13.443,16.324,12.291,16.324,9.41Z" stroke="none"/>
<path d="M 12.04132080078125 11.44326114654541 C 13.39364051818848 11.44326114654541 13.83173084259033 11.16848087310791 13.95730018615723 11.05033111572266 C 14.19375038146973 10.82790088653564 14.32396030426025 10.24545097351074 14.32396030426025 9.410281181335449 L 14.32396030426025 4.032980918884277 C 14.32396030426025 3.197811126708984 14.19375038146973 2.615360975265503 13.95730018615723 2.39293098449707 C 13.83173084259033 2.274780988693237 13.39364051818848 2.000000953674316 12.04132080078125 2.000000953674316 L 4.28264045715332 2.000000953674316 C 2.930320739746094 2.000000953674316 2.492230653762817 2.274780988693237 2.366660594940186 2.39293098449707 C 2.130210638046265 2.615360975265503 2.000000715255737 3.197811126708984 2.000000715255737 4.032980918884277 L 2.000000715255737 9.410281181335449 C 2.000000715255737 10.24545097351074 2.130210638046265 10.82790088653564 2.366660594940186 11.05033111572266 C 2.492230653762817 11.16848087310791 2.930320739746094 11.44326114654541 4.28264045715332 11.44326114654541 L 12.04132080078125 11.44326114654541 M 12.04132080078125 13.44326114654541 L 4.28264045715332 13.44326114654541 C 1.229100584983826 13.44326114654541 6.289673137871432e-07 12.29098129272461 6.289673137871432e-07 9.410281181335449 L 6.289673137871432e-07 4.032980918884277 C 6.289673137871432e-07 1.152281045913696 1.229100584983826 1.050109858624637e-06 4.28264045715332 1.050109858624637e-06 L 12.04132080078125 1.050109858624637e-06 C 15.09486103057861 1.050109858624637e-06 16.32396125793457 1.152281045913696 16.32396125793457 4.032980918884277 L 16.32396125793457 9.410281181335449 C 16.32396125793457 12.29098129272461 15.09486103057861 13.44326114654541 12.04132080078125 13.44326114654541 Z" stroke="none" fill="#c82b5b"/>
</g>
<g id="Vector-5" data-name="Vector" transform="translate(4.801 3.841)" fill="none">
<path d="M16.324,9.41V4.033C16.324,1.152,15.095,0,12.041,0H4.283C1.229,0,0,1.152,0,4.033V9.41c0,2.881,1.229,4.033,4.283,4.033h7.759C15.095,13.443,16.324,12.291,16.324,9.41Z" stroke="none"/>
<path d="M 12.04132080078125 11.44326114654541 C 13.39364051818848 11.44326114654541 13.83173084259033 11.16848087310791 13.95730018615723 11.05033111572266 C 14.19375038146973 10.82790088653564 14.32396030426025 10.24545097351074 14.32396030426025 9.410281181335449 L 14.32396030426025 4.032980918884277 C 14.32396030426025 3.197811126708984 14.19375038146973 2.615360975265503 13.95730018615723 2.39293098449707 C 13.83173084259033 2.274780988693237 13.39364051818848 2.000000953674316 12.04132080078125 2.000000953674316 L 4.28264045715332 2.000000953674316 C 2.930320739746094 2.000000953674316 2.492230653762817 2.274780988693237 2.366660594940186 2.39293098449707 C 2.130210638046265 2.615360975265503 2.000000715255737 3.197811126708984 2.000000715255737 4.032980918884277 L 2.000000715255737 9.410281181335449 C 2.000000715255737 10.24545097351074 2.130210638046265 10.82790088653564 2.366660594940186 11.05033111572266 C 2.492230653762817 11.16848087310791 2.930320739746094 11.44326114654541 4.28264045715332 11.44326114654541 L 12.04132080078125 11.44326114654541 M 12.04132080078125 13.44326114654541 L 4.28264045715332 13.44326114654541 C 1.229100584983826 13.44326114654541 6.289673137871432e-07 12.29098129272461 6.289673137871432e-07 9.410281181335449 L 6.289673137871432e-07 4.032980918884277 C 6.289673137871432e-07 1.152281045913696 1.229100584983826 1.050109858624637e-06 4.28264045715332 1.050109858624637e-06 L 12.04132080078125 1.050109858624637e-06 C 15.09486103057861 1.050109858624637e-06 16.32396125793457 1.152281045913696 16.32396125793457 4.032980918884277 L 16.32396125793457 9.410281181335449 C 16.32396125793457 12.29098129272461 15.09486103057861 13.44326114654541 12.04132080078125 13.44326114654541 Z" stroke="none" fill="#c82b5b"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.6 KiB

@ -0,0 +1,8 @@
<svg id="vuesax_linear_logout" data-name="vuesax/linear/logout" xmlns="http://www.w3.org/2000/svg" width="46.091" height="46.091" viewBox="0 0 46.091 46.091">
<g id="logout">
<path id="Vector" d="M0,9.737C.6,2.823,4.148,0,11.926,0h.25C20.76,0,24.2,3.438,24.2,12.022V24.544c0,8.585-3.438,12.022-12.022,12.022h-.25c-7.72,0-11.273-2.785-11.907-9.583" transform="translate(17.092 4.782)" fill="none" stroke="#c82b5b" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2.5"/>
<path id="Vector-2" data-name="Vector" d="M21.855,0H0" transform="translate(6.952 23.046)" fill="none" stroke="#c82b5b" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2.5"/>
<path id="Vector-3" data-name="Vector" d="M6.434,0,0,6.434l6.434,6.434" transform="translate(4.801 16.612)" fill="none" stroke="#c82b5b" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2.5"/>
<path id="Vector-4" data-name="Vector" d="M0,0H46.091V46.091H0Z" transform="translate(46.091 46.091) rotate(180)" fill="none" opacity="0"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

@ -3,7 +3,7 @@ import { Link } from 'react-router-dom';
const AdminPanel = () => { const AdminPanel = () => {
return( return(
<div className='flex justify-center items-center w-full h-screen'> <div className='flex justify-center bg-gray-100 items-center w-full h-screen'>
<Link to="add-product"> <Link to="add-product">
ورود به صفحه افزودن محصول ورود به صفحه افزودن محصول
</Link> </Link>

Loading…
Cancel
Save