Skip to content

Commit fd33451

Browse files
committed
202502200154
1 parent 0f27e85 commit fd33451

File tree

86 files changed

+1194
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1194
-10
lines changed

public/fonts/vazir-font-v18.0.0/CHANGELOG.md

+973
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
Changes by Saber Rastikerdar are in public domain.
2+
Glyphs and data from Roboto font are licensed under the Apache License, Version 2.0.
3+
4+
Fonts are (c) Bitstream (see below). DejaVu changes are in public domain.
5+
6+
Bitstream Vera Fonts Copyright
7+
------------------------------
8+
9+
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is
10+
a trademark of Bitstream, Inc.
11+
12+
Permission is hereby granted, free of charge, to any person obtaining a copy
13+
of the fonts accompanying this license ("Fonts") and associated
14+
documentation files (the "Font Software"), to reproduce and distribute the
15+
Font Software, including without limitation the rights to use, copy, merge,
16+
publish, distribute, and/or sell copies of the Font Software, and to permit
17+
persons to whom the Font Software is furnished to do so, subject to the
18+
following conditions:
19+
20+
The above copyright and trademark notices and this permission notice shall
21+
be included in all copies of one or more of the Font Software typefaces.
22+
23+
The Font Software may be modified, altered, or added to, and in particular
24+
the designs of glyphs or characters in the Fonts may be modified and
25+
additional glyphs or characters may be added to the Fonts, only if the fonts
26+
are renamed to names not containing either the words "Bitstream" or the word
27+
"Vera".
28+
29+
This License becomes null and void to the extent applicable to Fonts or Font
30+
Software that has been modified and is distributed under the "Bitstream
31+
Vera" names.
32+
33+
The Font Software may be sold as part of a larger software package but no
34+
copy of one or more of the Font Software typefaces may be sold by itself.
35+
36+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
37+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
38+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
39+
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME
40+
FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING
41+
ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
42+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
43+
THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE
44+
FONT SOFTWARE.
45+
46+
Except as contained in this notice, the names of Gnome, the Gnome
47+
Foundation, and Bitstream Inc., shall not be used in advertising or
48+
otherwise to promote the sale, use or other dealings in this Font Software
49+
without prior written authorization from the Gnome Foundation or Bitstream
50+
Inc., respectively. For further information, contact: fonts at gnome dot
51+
org.
+111
Binary file not shown.
88.8 KB
Binary file not shown.
51.2 KB
Binary file not shown.
40.8 KB
Binary file not shown.
98.3 KB
Binary file not shown.
98.2 KB
Binary file not shown.
58.6 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
87.7 KB
Binary file not shown.
87.5 KB
Binary file not shown.
50.5 KB
Binary file not shown.
40.3 KB
Binary file not shown.
82.8 KB
Binary file not shown.
82.6 KB
Binary file not shown.
46.7 KB
Binary file not shown.
37.1 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/components/Sidebar.jsx

+44-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,50 @@
1-
import { Home, Users, Settings } from "lucide-react";
2-
import { Link } from "react-router-dom";
1+
import { useState } from "react";
2+
import { Menu, X, Home, Users, Settings } from "lucide-react";
33

44
const Sidebar = () => {
5+
const [isOpen, setIsOpen] = useState(true);
6+
57
return (
6-
<div className="w-64 h-screen bg-gray-900 text-white p-4">
7-
<h2 className="text-xl font-bold mb-6">پنل مدیریت</h2>
8-
<ul className="space-y-4">
9-
<li><Link to="/" className="flex items-center gap-2"><Home /> داشبورد</Link></li>
10-
<li><Link to="/users" className="flex items-center gap-2"><Users /> کاربران</Link></li>
11-
<li><Link to="/settings" className="flex items-center gap-2"><Settings /> تنظیمات</Link></li>
12-
</ul>
8+
<div className="flex">
9+
{/* سایدبار */}
10+
<div
11+
className={`bg-gray-800 text-white h-screen p-5 transition-all duration-300 flex flex-col ${
12+
isOpen ? "w-64" : "w-16"
13+
}`}
14+
>
15+
{/* هدر سایدبار */}
16+
<div className="flex items-center justify-between">
17+
{isOpen && <h2 className="text-xl font-bold">پنل مدیریت</h2>}
18+
<button
19+
onClick={() => setIsOpen(!isOpen)}
20+
className="p-2 text-gray-300 hover:bg-gray-700 rounded-full"
21+
>
22+
{isOpen ? <X size={24} /> : <Menu size={24} />}
23+
</button>
24+
</div>
25+
26+
{/* منوی سایدبار */}
27+
<ul className="mt-4 space-y-2 flex-1">
28+
<li className="flex items-center p-2 hover:bg-gray-700 rounded">
29+
<Home size={24} />
30+
<span className={`ml-3 text-sm transition-all ${isOpen ? "opacity-100 w-auto" : "opacity-0 w-0 overflow-hidden"}`}>
31+
داشبورد
32+
</span>
33+
</li>
34+
<li className="flex items-center p-2 hover:bg-gray-700 rounded">
35+
<Users size={24} />
36+
<span className={`ml-3 text-sm transition-all ${isOpen ? "opacity-100 w-auto" : "opacity-0 w-0 overflow-hidden"}`}>
37+
کاربران
38+
</span>
39+
</li>
40+
<li className="flex items-center p-2 hover:bg-gray-700 rounded">
41+
<Settings size={24} />
42+
<span className={`ml-3 text-sm transition-all ${isOpen ? "opacity-100 w-auto" : "opacity-0 w-0 overflow-hidden"}`}>
43+
تنظیمات
44+
</span>
45+
</li>
46+
</ul>
47+
</div>
1348
</div>
1449
);
1550
};

src/index.css

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
@import "tailwindcss";
22

3+
@font-face {
4+
font-family: "vazir";
5+
src: url("../public/fonts/vazir-font-v18.0.0/Vazir-Medium.woff2") format("woff2");
6+
font-weight: normal;
7+
font-style: normal;
8+
}
9+
310
:root {
4-
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
11+
font-family: 'vazir';
512
line-height: 1.5;
613
font-weight: 400;
714

vite.config.ts

+7
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@ export default defineConfig({
88
react(),
99
tailwindcss(),
1010
],
11+
// theme: {
12+
// extend: {
13+
// fontFamily: {
14+
// iran: ["IRANSans", "sans-serif"], // فونت دلخواه
15+
// },
16+
// },
17+
// },
1118
})

0 commit comments

Comments
 (0)