Download index.html from defender3/test: direct link, hf CLI and curl.
- Browser
- Download file 33.5 kB
-
https://huggingface.co/spaces/defender3/test/resolve/main/index.html
- Command line
-
hf download hf://spaces/defender3/test/index.html
-
curl -L -o index.html https://huggingface.co/spaces/defender3/test/resolve/main/index.html
33.5 kB
| <html lang="fa" dir="rtl"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>سامانه مؤدیان - مدیریت فاکتورهای الکترونیکی</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/gsap@3.9.0/dist/gsap.min.js"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| @font-face { | |
| font-family: 'Vazir'; | |
| src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.woff2') format('woff2'); | |
| font-weight: normal; | |
| font-style: normal; | |
| } | |
| body { | |
| font-family: 'Vazir', sans-serif; | |
| background-color: #f8fafc; | |
| } | |
| .card-hover { | |
| transition: all 0.3s ease; | |
| } | |
| .card-hover:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); | |
| } | |
| .ripple { | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .ripple:after { | |
| content: ""; | |
| display: block; | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| top: 0; | |
| left: 0; | |
| pointer-events: none; | |
| background-image: radial-gradient(circle, #fff 10%, transparent 10.01%); | |
| background-repeat: no-repeat; | |
| background-position: 50%; | |
| transform: scale(10, 10); | |
| opacity: 0; | |
| transition: transform .5s, opacity 1s; | |
| } | |
| .ripple:active:after { | |
| transform: scale(0, 0); | |
| opacity: .3; | |
| transition: 0s; | |
| } | |
| .slide-fade-enter-active { | |
| transition: all 0.3s ease-out; | |
| } | |
| .slide-fade-leave-active { | |
| transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1); | |
| } | |
| .slide-fade-enter-from, | |
| .slide-fade-leave-to { | |
| transform: translateX(20px); | |
| opacity: 0; | |
| } | |
| .shake { | |
| animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; | |
| } | |
| @keyframes shake { | |
| 10%, 90% { transform: translate3d(-1px, 0, 0); } | |
| 20%, 80% { transform: translate3d(2px, 0, 0); } | |
| 30%, 50%, 70% { transform: translate3d(-4px, 0, 0); } | |
| 40%, 60% { transform: translate3d(4px, 0, 0); } | |
| } | |
| .progress-circle { | |
| animation: rotate 2s linear infinite; | |
| transform-origin: center center; | |
| } | |
| @keyframes rotate { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| .drag-area { | |
| border: 2px dashed #cbd5e1; | |
| transition: all 0.3s ease; | |
| } | |
| .drag-area.active { | |
| border-color: #0ea5e9; | |
| background-color: rgba(14, 165, 233, 0.05); | |
| } | |
| .invoice-item { | |
| transition: all 0.3s ease; | |
| } | |
| .invoice-item:hover { | |
| background-color: #f1f5f9; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <!-- Header --> | |
| <header class="bg-gradient-to-r from-blue-900 to-teal-600 text-white shadow-lg"> | |
| <div class="container mx-auto px-4 py-4 flex justify-between items-center"> | |
| <div class="flex items-center space-x-2 space-x-reverse"> | |
| <div class="bg-white/20 p-2 rounded-full"> | |
| <i class="fas fa-file-invoice text-xl"></i> | |
| </div> | |
| <h1 class="text-xl font-bold">سامانه مؤدیان مالیاتی</h1> | |
| </div> | |
| <div class="flex items-center space-x-4 space-x-reverse"> | |
| <div class="relative group"> | |
| <button class="bg-white/10 hover:bg-white/20 p-2 rounded-full transition"> | |
| <i class="fas fa-bell"></i> | |
| <span class="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">3</span> | |
| </button> | |
| <div class="absolute hidden group-hover:block right-0 mt-2 w-72 bg-white text-gray-800 rounded-lg shadow-xl z-10"> | |
| <div class="p-3 border-b border-gray-200"> | |
| <h3 class="font-bold">اعلانها</h3> | |
| </div> | |
| <div class="max-h-60 overflow-y-auto"> | |
| <div class="p-3 border-b border-gray-100 hover:bg-gray-50 cursor-pointer transition"> | |
| <div class="flex items-start"> | |
| <div class="bg-red-100 text-red-600 p-2 rounded-full mr-3"> | |
| <i class="fas fa-exclamation-circle"></i> | |
| </div> | |
| <div> | |
| <p class="text-sm font-medium">خطا در ارسال فاکتور #1234</p> | |
| <p class="text-xs text-gray-500 mt-1">2 ساعت پیش</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="p-3 border-b border-gray-100 hover:bg-gray-50 cursor-pointer transition"> | |
| <div class="flex items-start"> | |
| <div class="bg-green-100 text-green-600 p-2 rounded-full mr-3"> | |
| <i class="fas fa-check-circle"></i> | |
| </div> | |
| <div> | |
| <p class="text-sm font-medium">فاکتور #1233 تأیید شد</p> | |
| <p class="text-xs text-gray-500 mt-1">5 ساعت پیش</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="p-3 border-b border-gray-100 hover:bg-gray-50 cursor-pointer transition"> | |
| <div class="flex items-start"> | |
| <div class="bg-blue-100 text-blue-600 p-2 rounded-full mr-3"> | |
| <i class="fas fa-info-circle"></i> | |
| </div> | |
| <div> | |
| <p class="text-sm font-medium">بروزرسانی جدید سیستم</p> | |
| <p class="text-xs text-gray-500 mt-1">دیروز</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="p-3 text-center bg-gray-50"> | |
| <a href="#" class="text-blue-600 text-sm font-medium">مشاهده همه اعلانها</a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex items-center space-x-2 space-x-reverse"> | |
| <div class="w-10 h-10 rounded-full bg-teal-500 flex items-center justify-center text-white font-bold">م</div> | |
| <span class="font-medium">محمد رضایی</span> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <div class="container mx-auto px-4 py-6"> | |
| <!-- Dashboard Cards --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8"> | |
| <div class="bg-white rounded-xl shadow-md p-6 card-hover border-r-4 border-blue-600"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-gray-500">فاکتورهای ارسال شده</p> | |
| <h3 class="text-2xl font-bold mt-2">1,248</h3> | |
| </div> | |
| <div class="bg-blue-100 text-blue-600 p-3 rounded-full"> | |
| <i class="fas fa-paper-plane text-lg"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex items-center text-green-500 text-sm"> | |
| <i class="fas fa-arrow-up ml-1"></i> | |
| <span>12% نسبت به ماه قبل</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md p-6 card-hover border-r-4 border-green-500"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-gray-500">فاکتورهای تأیید شده</p> | |
| <h3 class="text-2xl font-bold mt-2">1,120</h3> | |
| </div> | |
| <div class="bg-green-100 text-green-600 p-3 rounded-full"> | |
| <i class="fas fa-check-circle text-lg"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex items-center text-green-500 text-sm"> | |
| <i class="fas fa-arrow-up ml-1"></i> | |
| <span>8% نسبت به ماه قبل</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md p-6 card-hover border-r-4 border-yellow-500"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-gray-500">در انتظار تأیید</p> | |
| <h3 class="text-2xl font-bold mt-2">85</h3> | |
| </div> | |
| <div class="bg-yellow-100 text-yellow-600 p-3 rounded-full"> | |
| <i class="fas fa-clock text-lg"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex items-center text-red-500 text-sm"> | |
| <i class="fas fa-arrow-down ml-1"></i> | |
| <span>5% نسبت به ماه قبل</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md p-6 card-hover border-r-4 border-red-500"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-gray-500">فاکتورهای دارای خطا</p> | |
| <h3 class="text-2xl font-bold mt-2">43</h3> | |
| </div> | |
| <div class="bg-red-100 text-red-600 p-3 rounded-full"> | |
| <i class="fas fa-exclamation-circle text-lg"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex items-center text-red-500 text-sm"> | |
| <i class="fas fa-arrow-up ml-1"></i> | |
| <span>3% نسبت به ماه قبل</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Charts and Invoice Creation --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8"> | |
| <div class="lg:col-span-2 bg-white rounded-xl shadow-md p-6"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-lg font-bold">وضعیت فاکتورها در ماه جاری</h2> | |
| <div class="flex space-x-2 space-x-reverse"> | |
| <button class="px-3 py-1 bg-blue-600 text-white rounded-lg text-sm">ماهانه</button> | |
| <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg text-sm">هفتگی</button> | |
| <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg text-sm">روزانه</button> | |
| </div> | |
| </div> | |
| <div class="h-64"> | |
| <!-- Chart Placeholder (would be replaced with actual chart in production) --> | |
| <div class="w-full h-full bg-gray-100 rounded-lg flex items-center justify-center text-gray-400"> | |
| <i class="fas fa-chart-line text-4xl"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md p-6"> | |
| <h2 class="text-lg font-bold mb-6">صدور فاکتور جدید</h2> | |
| <p class="text-gray-600 mb-6">برای ایجاد فاکتور جدید، گزینه مورد نظر را انتخاب نمایید.</p> | |
| <div class="space-y-4"> | |
| <button class="w-full ripple bg-blue-600 hover:bg-blue-700 text-white py-3 px-4 rounded-lg flex items-center justify-between transition"> | |
| <span>فاکتور فروش کالا</span> | |
| <i class="fas fa-box-open"></i> | |
| </button> | |
| <button class="w-full ripple bg-teal-600 hover:bg-teal-700 text-white py-3 px-4 rounded-lg flex items-center justify-between transition"> | |
| <span>فاکتور فروش خدمات</span> | |
| <i class="fas fa-concierge-bell"></i> | |
| </button> | |
| <button class="w-full ripple bg-purple-600 hover:bg-purple-700 text-white py-3 px-4 rounded-lg flex items-center justify-between transition"> | |
| <span>فاکتور برگشت از فروش</span> | |
| <i class="fas fa-exchange-alt"></i> | |
| </button> | |
| </div> | |
| <div class="mt-6 pt-6 border-t border-gray-200"> | |
| <button class="w-full ripple bg-gray-100 hover:bg-gray-200 text-gray-700 py-3 px-4 rounded-lg flex items-center justify-between transition"> | |
| <span>مشاهده پیشنویسها</span> | |
| <i class="fas fa-file-alt"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Recent Invoices and Status --> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden"> | |
| <div class="px-6 py-4 border-b border-gray-200 flex justify-between items-center"> | |
| <h2 class="text-lg font-bold">آخرین فاکتورها</h2> | |
| <div class="flex space-x-2 space-x-reverse"> | |
| <div class="relative"> | |
| <input type="text" placeholder="جستجو..." class="pr-10 pl-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"> | |
| <i class="fas fa-search absolute right-3 top-3 text-gray-400"></i> | |
| </div> | |
| <button class="px-4 py-2 bg-gray-100 text-gray-600 rounded-lg flex items-center"> | |
| <i class="fas fa-filter ml-2"></i> | |
| <span>فیلتر</span> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full divide-y divide-gray-200"> | |
| <thead class="bg-gray-50"> | |
| <tr> | |
| <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">شماره فاکتور</th> | |
| <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">تاریخ</th> | |
| <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">خریدار</th> | |
| <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">مبلغ (ریال)</th> | |
| <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">وضعیت</th> | |
| <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">عملیات</th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr class="hover:bg-gray-50 transition"> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">INV-2023-1245</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1402/05/12</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">شرکت توسعه ارتباطات</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12,450,000</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">تأیید شده</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> | |
| <button class="text-blue-600 hover:text-blue-900 ml-3"><i class="fas fa-eye"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900 ml-3"><i class="fas fa-print"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-download"></i></button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50 transition"> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">INV-2023-1244</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1402/05/11</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">شرکت دادهپردازی نوین</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">8,750,000</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">در انتظار</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> | |
| <button class="text-blue-600 hover:text-blue-900 ml-3"><i class="fas fa-eye"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900 ml-3"><i class="fas fa-print"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-download"></i></button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50 transition"> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">INV-2023-1243</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1402/05/10</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">شرکت رایانش ابری</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15,200,000</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">تأیید شده</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> | |
| <button class="text-blue-600 hover:text-blue-900 ml-3"><i class="fas fa-eye"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900 ml-3"><i class="fas fa-print"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-download"></i></button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50 transition"> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">INV-2023-1242</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1402/05/09</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">شرکت فناوری اطلاعات</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">9,800,000</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">خطا در ارسال</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> | |
| <button class="text-blue-600 hover:text-blue-900 ml-3"><i class="fas fa-eye"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900 ml-3"><i class="fas fa-print"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-download"></i></button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50 transition"> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">INV-2023-1241</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1402/05/08</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">شرکت نرمافزاری راهکار</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">11,300,000</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">تأیید شده</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> | |
| <button class="text-blue-600 hover:text-blue-900 ml-3"><i class="fas fa-eye"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900 ml-3"><i class="fas fa-print"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-download"></i></button> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| <div class="px-6 py-4 border-t border-gray-200 flex justify-between items-center"> | |
| <div class="text-sm text-gray-500">نمایش 1 تا 5 از 1248 فاکتور</div> | |
| <div class="flex space-x-2 space-x-reverse"> | |
| <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg"><i class="fas fa-chevron-right"></i></button> | |
| <button class="px-3 py-1 bg-blue-600 text-white rounded-lg">1</button> | |
| <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg">2</button> | |
| <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg">3</button> | |
| <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg">...</button> | |
| <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg">25</button> | |
| <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg"><i class="fas fa-chevron-left"></i></button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Invoice Creation Modal (Hidden by default) --> | |
| <div class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden" id="invoiceModal"> | |
| <div class="bg-white rounded-xl w-full max-w-4xl max-h-[90vh] overflow-y-auto"> | |
| <div class="p-6 border-b border-gray-200 flex justify-between items-center"> | |
| <h3 class="text-lg font-bold">صدور فاکتور جدید</h3> | |
| <button class="text-gray-500 hover:text-gray-700" onclick="document.getElementById('invoiceModal').classList.add('hidden')"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <!-- Wizard Steps --> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <div class="flex justify-between"> | |
| <div class="flex flex-col items-center"> | |
| <div class="w-10 h-10 rounded-full bg-blue-600 text-white flex items-center justify-center mb-2">1</div> | |
| <span class="text-sm font-medium">اطلاعات فروشنده</span> | |
| </div> | |
| <div class="flex flex-col items-center"> | |
| <div class="w-10 h-10 rounded-full bg-gray-200 text-gray-600 flex items-center justify-center mb-2">2</div> | |
| <span class="text-sm text-gray-500">اطلاعات خریدار</span> | |
| </div> | |
| <div class="flex flex-col items-center"> | |
| <div class="w-10 h-10 rounded-full bg-gray-200 text-gray-600 flex items-center justify-center mb-2">3</div> | |
| <span class="text-sm text-gray-500">اقلام فاکتور</span> | |
| </div> | |
| <div class="flex flex-col items-center"> | |
| <div class="w-10 h-10 rounded-full bg-gray-200 text-gray-600 flex items-center justify-center mb-2">4</div> | |
| <span class="text-sm text-gray-500">تأیید نهایی</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Step 1 Content --> | |
| <div class="p-6"> | |
| <h4 class="font-bold mb-4">اطلاعات فروشنده</h4> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">شناسه ملی</label> | |
| <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent" value="10123456789" readonly> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">کد اقتصادی</label> | |
| <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent" value="12345678901" readonly> | |
| </div> | |
| <div class="md:col-span-2"> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">نام شرکت</label> | |
| <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent" value="شرکت توسعه نرمافزارهای مالیاتی" readonly> | |
| </div> | |
| </div> | |
| <div class="flex justify-end space-x-4 space-x-reverse pt-4 border-t border-gray-200"> | |
| <button class="px-6 py-2 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 transition">انصراف</button> | |
| <button class="px-6 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition ripple">مرحله بعد</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Simple GSAP animations | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Animate dashboard cards on load | |
| gsap.from('.card-hover', { | |
| duration: 0.6, | |
| y: 20, | |
| opacity: 0, | |
| stagger: 0.1, | |
| ease: "power2.out" | |
| }); | |
| // Add ripple effect to buttons | |
| document.querySelectorAll('.ripple').forEach(button => { | |
| button.addEventListener('click', function(e) { | |
| let x = e.clientX - e.target.getBoundingClientRect().left; | |
| let y = e.clientY - e.target.getBoundingClientRect().top; | |
| let ripples = document.createElement('span'); | |
| ripples.style.left = x + 'px'; | |
| ripples.style.top = y + 'px'; | |
| this.appendChild(ripples); | |
| setTimeout(() => { | |
| ripples.remove(); | |
| }, 1000); | |
| }); | |
| }); | |
| // Simulate invoice creation button click | |
| document.querySelectorAll('.ripple.bg-blue-600').forEach(button => { | |
| button.addEventListener('click', function() { | |
| document.getElementById('invoiceModal').classList.remove('hidden'); | |
| gsap.from('#invoiceModal', { | |
| duration: 0.3, | |
| opacity: 0, | |
| y: 20, | |
| ease: "power2.out" | |
| }); | |
| }); | |
| }); | |
| // Error animation example | |
| setTimeout(() => { | |
| const errorCard = document.querySelector('.border-r-4.border-red-500'); | |
| if (errorCard) { | |
| gsap.to(errorCard, { | |
| duration: 0.5, | |
| x: 10, | |
| repeat: 1, | |
| yoyo: true, | |
| ease: "power1.inOut" | |
| }); | |
| } | |
| }, 2000); | |
| }); | |
| // Drag and drop functionality for invoice items | |
| function setupDragAndDrop() { | |
| const dragArea = document.querySelector('.drag-area'); | |
| const fileInput = document.createElement('input'); | |
| fileInput.type = 'file'; | |
| fileInput.className = 'hidden'; | |
| dragArea.addEventListener('click', () => { | |
| fileInput.click(); | |
| }); | |
| ['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => { | |
| dragArea.addEventListener(eventName, preventDefaults, false); | |
| }); | |
| function preventDefaults(e) { | |
| e.preventDefault(); | |
| e.stopPropagation(); | |
| } | |
| ['dragenter', 'dragover'].forEach(eventName => { | |
| dragArea.addEventListener(eventName, highlight, false); | |
| }); | |
| ['dragleave', 'drop'].forEach(eventName => { | |
| dragArea.addEventListener(eventName, unhighlight, false); | |
| }); | |
| function highlight() { | |
| dragArea.classList.add('active'); | |
| } | |
| function unhighlight() { | |
| dragArea.classList.remove('active'); | |
| } | |
| dragArea.addEventListener('drop', handleDrop, false); | |
| function handleDrop(e) { | |
| const dt = e.dataTransfer; | |
| const files = dt.files; | |
| handleFiles(files); | |
| } | |
| function handleFiles(files) { | |
| ([...files]).forEach(uploadFile); | |
| } | |
| function uploadFile(file) { | |
| console.log('File uploaded:', file.name); | |
| // In a real app, you would upload the file here | |
| } | |
| } | |
| // Call setupDragAndDrop when the invoice modal is opened | |
| document.querySelectorAll('.ripple.bg-blue-600').forEach(button => { | |
| button.addEventListener('click', setupDragAndDrop); | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=defender3/test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |