fav icon + and fix bug design
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled

This commit is contained in:
hamid zarghami
2025-08-23 09:03:54 +03:30
parent 3b037c45ee
commit 6d2cf59ffa
4 changed files with 21 additions and 11 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> <link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>راهنما</title> <title>راهنمای داناک</title>
</head> </head>
<body> <body>
+13 -1
View File
@@ -1 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg> <svg width="39" height="54" viewBox="0 0 39 54" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M31.1559 34.8412C31.1559 34.8412 24.6651 41.094 19.2416 46.3804V53.5924C18.6935 54.0179 38.4905 34.8845 38.4905 34.8845L19.2416 14.6909V22.3573L31.1559 34.8412Z" fill="#1D1D1B"/>
<path d="M19.1479 39.0818L0 18.643L0.237992 18.405L19.3931 38.8583L19.1479 39.0818Z" fill="#1D1D1B"/>
<path d="M19.1407 37.1635L1.75977 18.6719L1.99776 18.4412L19.3787 36.9399L19.1407 37.1635Z" fill="#1D1D1B"/>
<path d="M19.1334 35.2523L3.52661 18.708L3.7574 18.47L19.3786 35.0215L19.1334 35.2523Z" fill="#1D1D1B"/>
<path d="M19.1262 33.3337L5.28638 18.7366L5.50995 18.5059L19.3714 33.1029L19.1262 33.3337Z" fill="#1D1D1B"/>
<path d="M19.1191 31.4155L7.05347 18.7729L7.26982 18.5349L19.3571 31.1848L19.1191 31.4155Z" fill="#1D1D1B"/>
<path d="M0.375071 18.7368L0.144287 18.4988L19.1407 0L19.3715 0.237996L0.375071 18.7368Z" fill="#1D1D1B"/>
<path d="M2.15645 18.7442L1.91846 18.5134L19.1263 1.73828L19.3571 1.97628L2.15645 18.7442Z" fill="#1D1D1B"/>
<path d="M3.93049 18.7587L3.69971 18.5279L19.1117 3.48364L19.3425 3.71443L3.93049 18.7587Z" fill="#1D1D1B"/>
<path d="M5.71187 18.7658L5.47388 18.5422L19.0973 5.22168L19.3281 5.45968L5.71187 18.7658Z" fill="#1D1D1B"/>
<path d="M7.49326 18.7799L7.24805 18.5564L19.0901 6.95947L19.3137 7.19747L7.49326 18.7799Z" fill="#1D1D1B"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

+1 -3
View File
@@ -48,9 +48,7 @@ const Home: FC = () => {
// تغییر title صفحه با JavaScript // تغییر title صفحه با JavaScript
useEffect(() => { useEffect(() => {
if (service?.name) { if (service?.name) {
document.title = `راهنما ${service.name}` document.title = `راهنمای داناک | ${service.name}`
} else {
document.title = 'راهنما'
} }
}, [service?.name]) }, [service?.name])
+6 -6
View File
@@ -95,12 +95,12 @@ const Sidebar: FC<SidebarProps> = ({ guides }) => {
return ( return (
<> <>
{/* دسکتاپ Sidebar */} {/* دسکتاپ Sidebar */}
<div className='hidden lg:block overflow-y-auto bg-white top-8 bottom-8 fixed p-8 w-[280px] rounded-4xl right-8 flex flex-col'> <div className='hidden lg:block bg-white top-8 bottom-8 fixed p-8 w-[280px] rounded-4xl right-8 flex flex-col overflow-y-auto'>
<div className='font-bold'> <div className='font-bold'>
لیست محتوا لیست محتوا
</div> </div>
<div className='mt-10 flex flex-col gap-8 flex-1 pr-2 min-h-0'> <div className='mt-10 flex flex-col gap-8 flex-1 pr-2'>
{guides.length > 0 ? ( {guides.length > 0 ? (
guides.map((guide) => ( guides.map((guide) => (
<div <div
@@ -138,14 +138,14 @@ const Sidebar: FC<SidebarProps> = ({ guides }) => {
<div className='lg:hidden fixed inset-0 z-40'> <div className='lg:hidden fixed inset-0 z-40'>
{/* Backdrop */} {/* Backdrop */}
<div <div
className='absolute inset-0 bg-black bg-opacity-50' className='absolute inset-0 bg-black/50'
onClick={toggleMobileMenu} onClick={toggleMobileMenu}
/> />
{/* Drawer */} {/* Drawer */}
<div className='absolute bottom-0 left-0 right-0 bg-white rounded-t-3xl p-6 max-h-[80vh] overflow-hidden'> <div className='absolute bottom-0 left-0 right-0 bg-white rounded-t-3xl p-6 max-h-[80vh] flex flex-col'>
{/* Header */} {/* Header */}
<div className='flex items-center justify-between mb-6'> <div className='flex items-center justify-between mb-6 flex-shrink-0'>
<h3 className='text-lg font-bold'>لیست محتوا</h3> <h3 className='text-lg font-bold'>لیست محتوا</h3>
<button <button
onClick={toggleMobileMenu} onClick={toggleMobileMenu}
@@ -156,7 +156,7 @@ const Sidebar: FC<SidebarProps> = ({ guides }) => {
</div> </div>
{/* Content */} {/* Content */}
<div className='pr-2'> <div className='pr-2 overflow-y-auto flex-1'>
{guides.length > 0 ? ( {guides.length > 0 ? (
guides.map((guide) => ( guides.map((guide) => (
<div <div