Commit 9cb8fe83 authored by Sai Srinivas's avatar Sai Srinivas
Browse files

Dashboard added

parent a3882747
This image diff could not be displayed because it is too large. You can view the blob instead.
<svg width="39" height="31" viewBox="0 0 39 31" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="18.0581" y="2.95618" width="13.9849" height="17.4617" fill="white"/>
<rect x="3.22363" y="11.6095" width="13.9849" height="12.2141" fill="white"/>
<path d="M37.1128 2.64743C37.1128 1.33328 36.0476 0.268066 34.7335 0.268066L14.7574 0.718754C13.4432 0.718754 12.378 1.78397 12.378 3.09812L11.3706 20.317C11.3706 21.6312 12.4358 22.6964 13.75 22.6964L25.5951 23.3634L27.3334 25.8748L30.1317 29.9178L30.3366 25.0053L30.3939 23.6338L36.3509 23.9692C37.6651 23.9692 38.7303 22.904 38.7303 21.5898L37.1131 2.6477L37.1128 2.64743ZM21.6428 5.9242L21.497 5.57903C21.3894 5.32399 21.5058 5.03237 21.7606 4.91333C22.5294 4.55464 23.5986 4.32876 24.6049 4.32876C27.2486 4.32876 28.4435 5.7988 28.4435 7.37197C28.4435 8.7805 27.5704 9.79481 26.4671 10.9748C25.4554 12.0522 25.0877 12.9626 25.1569 14.0188C25.1691 14.3128 24.9286 14.5575 24.6275 14.5575H23.874C23.5983 14.5575 23.3687 14.351 23.3459 14.0827L23.3403 14.0188C23.2028 12.9011 23.6163 11.6787 24.7656 10.4369C25.7998 9.33935 26.3743 8.53183 26.3743 7.60023C26.3743 6.54403 25.6389 5.84016 24.1911 5.81895C23.5691 5.81895 22.895 5.95946 22.3544 6.19647C22.0795 6.31709 21.7574 6.19594 21.6426 5.92393L21.6428 5.9242ZM22.8814 17.4557C22.8814 16.6903 23.4559 16.1516 24.2608 16.1516C25.0657 16.1516 25.6168 16.6903 25.6168 17.4557C25.6168 18.1808 25.0882 18.7396 24.2375 18.7396C23.4326 18.7396 22.8814 18.1808 22.8814 17.4557Z" fill="#FFC100"/>
<path d="M16.0479 10.2361L1.68394 9.57336C0.796882 9.57336 0.0776367 10.2926 0.0776367 11.1797L1.11157 24.3241C1.11157 25.2112 1.83081 25.9304 2.71787 25.9304L3.74809 25.9182L3.75737 26.1902L3.89152 30.1626L6.74782 27.3989L8.3345 25.8636L16.0482 25.7716C16.9352 25.7716 17.6545 25.0524 17.6545 24.1653V11.8427C17.6545 10.9557 16.9352 10.2364 16.0482 10.2364L16.0479 10.2361ZM9.91297 22.5728C9.91297 22.9044 9.64415 23.1735 9.31223 23.1735H8.41934C8.08769 23.1735 7.8186 22.9047 7.8186 22.5728V21.6799C7.8186 21.3482 8.08742 21.0792 8.41934 21.0792H9.31223C9.64388 21.0792 9.91297 21.348 9.91297 21.6799V22.5728ZM9.91297 19.7096C9.91297 20.0413 9.64415 20.3103 9.31223 20.3103H8.41934C8.08769 20.3103 7.8186 20.0415 7.8186 19.7096V12.9313C7.8186 12.5996 8.08742 12.3305 8.41934 12.3305H9.31223C9.64388 12.3305 9.91297 12.5993 9.91297 12.9313V19.7096Z" fill="#00A1B9"/>
</svg>
<svg width="43" height="33" viewBox="0 0 43 33" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M40.0486 23.7135C39.6901 25.0824 39.0466 26.3791 37.9134 27.1442C34.6367 29.3563 20.5254 32.1807 20.5254 32.1807L21.2543 28.5696L22.5367 22.2098L33.5312 19.8148L39.0285 18.5818C39.7575 18.4183 40.4516 18.9644 40.4648 19.7102C40.484 20.7748 40.4227 22.2844 40.0486 23.7135Z" fill="#C7DBEF"/>
<path d="M40.0486 23.7135C39.6901 25.0824 39.0466 26.3791 37.9134 27.1442C34.6367 29.3563 20.5254 32.1807 20.5254 32.1807L21.2543 28.5696L40.0486 23.7135Z" fill="#9FC3FD"/>
<path d="M4.96833 2.73805C4.96833 2.73805 1.65137 3.53656 0.760697 6.30069C0.106114 8.33223 0.115089 10.4301 0.165862 11.3994C0.178767 11.6458 0.456445 11.7822 0.660267 11.6432L2.59653 10.3219C2.72453 10.2346 2.89694 10.2528 3.00388 10.3649L4.51106 11.945C4.62897 12.0687 4.82373 12.0763 4.95106 11.9625L6.26055 10.7908C6.38139 10.6827 6.56445 10.6834 6.68441 10.7925L8.25377 12.2192C8.38781 12.341 8.59656 12.3257 8.7114 12.1856L9.96046 10.6615L12.0936 12.259C12.0937 12.2589 12.8615 1.356 4.96833 2.73805Z" fill="#C7DBEF"/>
<path d="M12.0928 12.2593L9.96005 10.662L8.71101 12.1856C8.59583 12.3259 8.38705 12.3412 8.25295 12.2198L7.50606 11.5404C8.05948 8.49335 7.9443 4.86595 5.19336 2.70263C12.846 1.56514 12.0928 12.2593 12.0928 12.2593Z" fill="#9FC3FD"/>
<path d="M33.5308 8.11904V19.8149L23.4974 22.0006C22.9837 22.1125 22.6541 22.6189 22.7635 23.1338C22.8285 23.4417 22.8995 23.8134 22.9609 24.2296C23.0246 24.6602 23.0799 25.139 23.11 25.6442C23.1173 25.7525 23.1232 25.8607 23.1268 25.9714C23.1521 26.6522 23.1293 27.3704 23.0234 28.0777C23.0054 28.2028 22.9849 28.3267 22.9597 28.4506C22.4701 30.9791 20.8233 33.2382 16.393 32.8978C12.9936 32.6367 11.2794 29.9711 10.4506 26.4129C8.941 19.9412 10.358 10.5128 9.88168 7.22291C9.53404 4.81107 8.41532 3.67793 7.33392 3.15346C6.12861 2.56762 4.96777 2.73845 4.96777 2.73845C8.58492 1.40561 18.6929 0.875132 25.8551 0.664622C30.0568 0.54193 33.5308 3.91369 33.5308 8.11904Z" fill="#F2F5FA"/>
<path d="M15.4502 11.072V6.69418L16.9835 6.53301C17.5148 6.47713 17.9176 6.53653 18.1922 6.71114C18.467 6.88569 18.6042 7.16947 18.6042 7.56242C18.6042 7.77691 18.5491 7.97156 18.4389 8.14643C18.3286 8.32148 18.1752 8.45737 17.9787 8.55416C18.2032 8.58672 18.3803 8.68134 18.5096 8.83808C18.6388 8.99498 18.7034 9.19654 18.7034 9.44313C18.7034 9.86414 18.5691 10.1969 18.3005 10.4417C18.0318 10.6863 17.6491 10.8369 17.152 10.8931L15.4502 11.072ZM16.3523 8.4334L17.0196 8.36327C17.4747 8.30745 17.7021 8.1022 17.7021 7.74732C17.7021 7.54892 17.6445 7.41212 17.5293 7.33706C17.4141 7.26201 17.2321 7.23757 16.9835 7.26371L16.3522 7.33002L16.3523 8.4334ZM16.3523 9.0708V10.2524L17.125 10.1713C17.3374 10.149 17.5033 10.081 17.6225 9.96716C17.7418 9.85338 17.8015 9.70731 17.8015 9.52886C17.8015 9.12805 17.5941 8.94637 17.179 8.98392L16.3523 9.0708Z" fill="#C7DBEF"/>
<path d="M20.3391 10.5581L19.437 10.6529V6.2751L20.3391 6.1803V10.5581Z" fill="#C7DBEF"/>
<path d="M22.0768 9.65078L23.992 9.44951V10.1742L21.1748 10.4703V6.09248L22.0768 5.99768V9.65078Z" fill="#C7DBEF"/>
<path d="M25.4113 9.30035L27.3266 9.09905V9.82373L24.5093 10.1198V5.74201L25.4113 5.64722V9.30035Z" fill="#C7DBEF"/>
<path d="M11.3803 13.9997C11.3761 13.9997 11.3729 13.9996 11.3701 13.9995C11.2706 13.9961 11.1925 13.9126 11.1959 13.8131C11.1992 13.7155 11.2793 13.6387 11.3761 13.6387C11.3774 13.6387 11.3787 13.6387 11.38 13.6388C11.4023 13.6384 11.5149 13.6303 12.0729 13.5661C12.1703 13.5548 12.2614 13.6257 12.2728 13.7248C12.2842 13.8238 12.2131 13.9133 12.1141 13.9246C11.5178 13.9932 11.4137 13.9997 11.3803 13.9997Z" fill="#C7DBEF"/>
<path d="M13.5689 13.7503C13.4789 13.7503 13.4011 13.6832 13.39 13.5916C13.378 13.4926 13.4485 13.4027 13.5474 13.3907C13.9897 13.3372 14.486 13.2764 15.024 13.2101C15.1235 13.1977 15.2129 13.2682 15.2251 13.3671C15.2373 13.466 15.1671 13.556 15.0682 13.5683C14.5299 13.6346 14.0334 13.6953 13.5909 13.749C13.5834 13.7499 13.5762 13.7503 13.5689 13.7503ZM16.5224 13.3869C16.4326 13.3869 16.3548 13.3201 16.3436 13.2287C16.3312 13.1298 16.4015 13.0397 16.5002 13.0274L17.9763 12.8434C18.0744 12.8313 18.1653 12.9011 18.1776 13C18.19 13.099 18.1198 13.1891 18.0209 13.2015L16.5448 13.3855C16.5373 13.3865 16.5298 13.3869 16.5224 13.3869ZM19.4742 13.0179C19.3845 13.0179 19.3069 12.9512 19.2954 12.8599C19.2829 12.761 19.3531 12.6708 19.452 12.6584L20.9271 12.4728C21.0253 12.4609 21.1162 12.5304 21.1286 12.6292C21.1411 12.7281 21.0711 12.8184 20.9722 12.8308L19.4968 13.0164C19.4892 13.0174 19.4817 13.0179 19.4742 13.0179ZM22.425 12.6461C22.3354 12.6461 22.2577 12.5795 22.2462 12.4883C22.2337 12.3894 22.3037 12.2991 22.4025 12.2866L23.8781 12.0998C23.9776 12.0878 24.0672 12.1574 24.0798 12.2562C24.0922 12.355 24.0223 12.4453 23.9234 12.4579L22.4478 12.6447C22.4401 12.6456 22.4325 12.6461 22.425 12.6461ZM25.3759 12.2718C25.2864 12.2718 25.2088 12.2053 25.1971 12.1142C25.1845 12.0153 25.2546 11.925 25.3534 11.9124L26.8288 11.7243C26.9277 11.7119 27.0182 11.7817 27.0308 11.8805C27.0433 11.9793 26.9734 12.0696 26.8746 12.0823L25.399 12.2704C25.3912 12.2713 25.3836 12.2718 25.3759 12.2718ZM28.3272 11.895C28.2378 11.895 28.1601 11.8286 28.1484 11.7375C28.1358 11.6387 28.2056 11.5483 28.3045 11.5356C28.8427 11.4666 29.3388 11.4028 29.7803 11.3458C29.8781 11.3329 29.9695 11.4027 29.9823 11.5017C29.9952 11.6005 29.9254 11.6909 29.8266 11.7037C29.3849 11.7608 28.8888 11.8245 28.3503 11.8936C28.3426 11.8946 28.3348 11.895 28.3272 11.895Z" fill="#C7DBEF"/>
<path d="M31.2598 11.5157C31.1707 11.5157 31.0932 11.4496 31.0812 11.3588C31.0681 11.26 31.1378 11.1694 31.2366 11.1564C31.8238 11.0791 31.9252 11.0637 31.9415 11.0606C32.0384 11.0427 32.1337 11.1068 32.152 11.2048C32.1704 11.3028 32.1058 11.397 32.0078 11.4154C31.992 11.4183 31.944 11.4273 31.2836 11.5142C31.2756 11.5153 31.2677 11.5157 31.2598 11.5157Z" fill="#C7DBEF"/>
<path d="M12.1599 16.054L20.6198 14.9163C20.9136 14.8768 21.1749 15.1053 21.1749 15.4017V17.2569C21.1749 17.4943 21.0046 17.6975 20.7709 17.7391L12.3109 19.2438C12.0108 19.2972 11.7354 19.0664 11.7354 18.7616V16.5394C11.7354 16.2942 11.9169 16.0867 12.1599 16.054Z" fill="#C7DBEF"/>
<path d="M16.393 32.8977C12.9936 32.6366 11.2795 29.971 10.4507 26.4128L22.9609 24.2295C23.4445 27.4737 23.3988 33.4366 16.393 32.8977Z" fill="#E2EAF5"/>
<path d="M12.4463 21.7856C14.794 21.4369 17.1416 21.0882 19.4893 20.7395C20.153 20.6409 20.8167 20.5424 21.4804 20.4438C21.7093 20.4098 21.612 20.062 21.3844 20.0958C19.0368 20.4445 16.6891 20.7932 14.3414 21.1419C13.6778 21.2405 13.0141 21.339 12.3504 21.4376C12.1215 21.4716 12.2188 21.8194 12.4463 21.7856Z" fill="#9FC3FD"/>
<path d="M24.5576 15.6031C26.88 15.2582 29.2023 14.9132 31.5246 14.5683C31.7535 14.5343 31.6562 14.1865 31.4287 14.2203C29.1064 14.5653 26.784 14.9102 24.4617 15.2551C24.2328 15.2891 24.3301 15.6369 24.5576 15.6031Z" fill="#9FC3FD"/>
<path d="M22.7608 20.2176C25.1084 19.8689 27.4561 19.5202 29.8038 19.1715C30.4674 19.0729 31.1311 18.9744 31.7948 18.8758C32.0237 18.8418 31.9264 18.494 31.6989 18.5278C29.3512 18.8765 27.0035 19.2252 24.6559 19.5739C23.9922 19.6725 23.3285 19.771 22.6648 19.8696C22.4359 19.9036 22.5332 20.2514 22.7608 20.2176Z" fill="#9FC3FD"/>
<path d="M12.9575 24.5525C15.3052 24.2038 17.6529 23.8551 20.0005 23.5064C20.6642 23.4078 21.3279 23.3092 21.9916 23.2106C22.2205 23.1767 22.1232 22.8289 21.8957 22.8627C19.548 23.2113 17.2003 23.56 14.8527 23.9088C14.189 24.0073 13.5253 24.1059 12.8616 24.2045C12.6327 24.2385 12.73 24.5863 12.9575 24.5525Z" fill="#9FC3FD"/>
<path d="M14.0544 27.3193C16.3031 26.9706 18.5517 26.6219 20.8003 26.2732C21.436 26.1746 22.0717 26.0761 22.7074 25.9775C22.9267 25.9435 22.8335 25.5957 22.6155 25.6295C20.3669 25.9782 18.1183 26.3269 15.8696 26.6756C15.2339 26.7742 14.5983 26.8727 13.9625 26.9713C13.7433 27.0053 13.8365 27.3531 14.0544 27.3193Z" fill="#9FC3FD"/>
<path d="M23.0232 28.0775C23.0052 28.2026 22.9847 28.3265 22.9594 28.4504C20.8014 28.7704 18.6458 29.0916 16.4878 29.4116C16.2605 29.4453 16.163 29.0976 16.3916 29.0627C17.0556 28.9641 17.7196 28.8654 18.3824 28.7668C19.9293 28.5382 21.4763 28.3085 23.0232 28.0775Z" fill="#9FC3FD"/>
<path d="M33.5308 8.11909V19.7476L32.8752 19.9545C32.8752 19.9545 32.8139 13.2038 32.8752 10.1195C32.9366 7.03645 32.9366 3.56007 28.3307 2.02394C25.1069 0.949747 13.8212 2.26692 7.33391 3.15345C6.12861 2.56762 4.96777 2.73845 4.96777 2.73845C8.58492 1.40561 18.6929 0.875129 25.8551 0.664619C30.0569 0.541986 33.5308 3.91374 33.5308 8.11909Z" fill="#E2EAF5"/>
<path d="M7.70296 3.37038C8.56535 3.99179 9.14414 4.93692 9.47878 5.93263C9.78294 6.83758 9.93274 7.8158 9.96855 8.7688C10.002 9.66026 9.96494 10.557 9.94441 11.4483C9.91183 12.8627 9.87009 14.2769 9.83207 15.6912C9.79327 17.1349 9.7557 18.5787 9.73534 20.0228C9.72111 21.0321 9.69501 22.0484 9.75643 23.0567C9.76068 23.1263 9.7657 23.1959 9.77206 23.2654C9.78776 23.437 10.0579 23.4386 10.042 23.2654C9.95735 22.3396 9.98964 21.3968 9.99973 20.4687C10.0154 19.0291 10.0518 17.5898 10.0898 16.1507C10.128 14.7033 10.1707 13.2561 10.2059 11.8086C10.2294 10.8387 10.2647 9.86573 10.2423 8.89548C10.2235 8.08178 10.1116 7.25282 9.91467 6.46378C9.6531 5.41561 9.17949 4.39714 8.41139 3.62304C8.23473 3.445 8.0427 3.28382 7.83926 3.13725C7.69803 3.03553 7.56314 3.26962 7.70296 3.37038Z" fill="#9FC3FD"/>
<path d="M30.4756 3.16554C30.7533 3.45706 31.0573 3.72221 31.3322 4.01649C31.4012 4.09035 31.4683 4.16599 31.5327 4.2439C31.5488 4.26337 31.5648 4.28299 31.5806 4.30273C31.5881 4.31218 31.5956 4.32168 31.6031 4.33116C31.631 4.36635 31.5969 4.3225 31.6168 4.34881C31.6494 4.39178 31.6815 4.43516 31.7125 4.47931C31.8511 4.67627 31.9715 4.88554 32.0752 5.10286C32.1449 5.24896 32.1759 5.32296 32.2321 5.4707C32.289 5.62014 32.3398 5.77187 32.3857 5.92498C32.4976 6.29748 32.5817 6.67806 32.6499 7.06083C32.8501 8.18371 32.9228 9.32883 32.9637 10.4672C33.0293 12.2927 32.9955 14.1216 32.9314 15.9466C32.9215 16.2299 32.9106 16.5132 32.8989 16.7965C32.8918 16.9702 33.1618 16.9699 33.1689 16.7965C33.2485 14.8589 33.2983 12.9178 33.2493 10.9787C33.2183 9.75152 33.152 8.51929 32.963 7.30507C32.8489 6.57249 32.687 5.84015 32.3941 5.15648C32.2034 4.7114 31.9471 4.30282 31.6268 3.93964C31.3604 3.63762 31.0572 3.37162 30.7744 3.08567C30.7381 3.04898 30.7021 3.01199 30.6665 2.97465C30.5464 2.84859 30.3557 3.03971 30.4756 3.16554Z" fill="#9FC3FD"/>
<path d="M32.968 28.5219C38.3596 28.5219 42.7304 24.1511 42.7304 18.7595C42.7304 13.3678 38.3596 8.99707 32.968 8.99707C27.5763 8.99707 23.2056 13.3678 23.2056 18.7595C23.2056 24.1511 27.5763 28.5219 32.968 28.5219Z" fill="url(#paint0_linear_194_307)"/>
<g filter="url(#filter0_d_194_307)">
<path d="M28.6063 18.6098V16.9582H32.9591V16.4248C32.9591 16.2069 32.9132 16.0578 32.8214 15.9775C32.7411 15.8972 32.5863 15.8571 32.3569 15.8571H28.6063V14.2055H37.501V15.8571H35.0408C35.1555 16.0979 35.2358 16.465 35.2817 16.9582H37.501V18.6098H35.23C35.0809 19.47 34.7311 20.1123 34.1806 20.5367C33.63 20.9496 32.9705 21.156 32.2021 21.156C32.4429 21.3051 32.7182 21.4887 33.0279 21.7066C33.3376 21.9245 33.7562 22.1482 34.2838 22.3776C34.9261 22.6643 35.4766 22.8306 35.9354 22.8765C36.4057 22.9109 36.7039 22.9281 36.8301 22.9281L36.486 24.3217C36.3942 24.3446 36.1935 24.379 35.8838 24.4249C35.5856 24.4708 35.2186 24.4937 34.7827 24.4937C34.3239 24.4937 33.8422 24.4191 33.3376 24.27C32.8329 24.1209 32.3053 23.7711 31.7547 23.2206L30.8945 22.3604C30.4357 21.9016 30.063 21.6206 29.7762 21.5173C29.4895 21.4026 29.197 21.3453 28.8988 21.3453H28.6063V19.6937H31.4623C31.8752 19.6937 32.2078 19.6076 32.4601 19.4356C32.7239 19.2636 32.8845 18.9883 32.9419 18.6098H28.6063Z" fill="white"/>
</g>
<defs>
<filter id="filter0_d_194_307" x="28.6064" y="14.2054" width="9.15786" height="10.7271" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="0.263333" dy="0.438888"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_194_307"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_194_307" result="shape"/>
</filter>
<linearGradient id="paint0_linear_194_307" x1="36.3078" y1="27.9356" x2="29.6281" y2="9.58333" gradientUnits="userSpaceOnUse">
<stop offset="0.2486" stop-color="#EEA700"/>
<stop offset="0.9279" stop-color="#FFD861"/>
</linearGradient>
</defs>
</svg>
<svg width="72" height="60" viewBox="0 0 72 60" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M55.6594 3.06258L60.3799 37.4916C60.574 38.9069 59.584 40.2115 58.1686 40.4056L8.38488 47.2314C6.9696 47.4254 5.66496 46.4354 5.4709 45.0201L0.750362 10.5911C0.556306 9.17586 1.54631 7.87122 2.9616 7.67716L52.7453 0.851313C54.1607 0.657258 55.4653 1.64729 55.6594 3.06258Z" fill="url(#paint0_linear_194_271)"/>
<path d="M60.2972 36.8861L60.3803 37.492C60.5744 38.9073 59.5844 40.212 58.1691 40.406L8.38532 47.2318C6.97003 47.4259 5.66539 46.4359 5.47133 45.0206L5.38818 44.4141L28.2683 24.1735L30.3327 22.3474L32.8149 23.5518L60.2972 36.8861Z" fill="url(#paint1_linear_194_271)"/>
<path d="M55.6593 3.06048L55.926 5.00581L32.213 25.9841C31.4678 26.6434 30.3991 26.7898 29.504 26.3552L15.8267 19.7175L1.01685 12.5327L0.750362 10.589C0.556306 9.17376 1.54632 7.86912 2.96163 7.67509L52.7454 0.849239C54.1606 0.655183 55.4653 1.64519 55.6593 3.06048Z" fill="url(#paint2_linear_194_271)"/>
<path d="M52.4174 59.2112C62.9003 59.2112 71.3983 50.7131 71.3983 40.2303C71.3983 29.7474 62.9003 21.2494 52.4174 21.2494C41.9346 21.2494 33.4365 29.7474 33.4365 40.2303C33.4365 50.7131 41.9346 59.2112 52.4174 59.2112Z" fill="url(#paint3_linear_194_271)"/>
<g opacity="0.4">
<path d="M52.6665 54.15C51.0611 54.15 49.7231 52.8456 49.7231 51.2401C49.7231 49.6346 51.0611 48.3302 52.6665 48.3302C54.272 48.3302 55.6099 49.6346 55.6099 51.2401C55.6099 52.8456 54.272 54.15 52.6665 54.15Z" fill="url(#paint4_linear_194_271)"/>
<path d="M54.5732 43.8146V46.3234H49.8572L49.4452 45.8599L49.0545 40.3696C53.0346 40.3696 55.8441 39.5001 55.8441 36.9581C55.8441 35.3191 54.6401 34.0147 52.5665 34.0147C51.2286 34.0147 49.4891 34.6166 47.9506 35.6202L47.5386 35.1567L47.3149 30.8705C48.7199 29.9004 50.9275 29.1982 53.0011 29.1982C57.6835 29.1982 61.1956 32.3757 61.1956 36.5567C61.1957 40.6037 57.8511 43.38 54.5732 43.8146Z" fill="url(#paint5_linear_194_271)"/>
</g>
<path d="M52.2544 53.6863C50.6489 53.6863 49.311 52.3819 49.311 50.7765C49.311 49.171 50.6489 47.8666 52.2544 47.8666C53.8599 47.8666 55.1978 49.171 55.1978 50.7765C55.1978 52.3819 53.8599 53.6863 52.2544 53.6863Z" fill="white"/>
<path d="M54.161 43.351V45.8597H49.4451L48.6423 39.906C52.6225 39.906 55.4319 39.0364 55.4319 36.4944C55.4319 34.8554 54.228 33.551 52.1544 33.551C50.8165 33.551 49.077 34.1529 47.5385 35.1565L46.9028 30.4069C48.3077 29.4368 50.5154 28.7346 52.589 28.7346C57.2714 28.7346 60.7835 31.9121 60.7835 36.0931C60.7835 40.14 57.439 42.9164 54.161 43.351Z" fill="white"/>
<defs>
<linearGradient id="paint0_linear_194_271" x1="34.1963" y1="44.6345" x2="26.934" y2="3.44821" gradientUnits="userSpaceOnUse">
<stop offset="0.1994" stop-color="#FA892D"/>
<stop offset="1" stop-color="#FF9A47"/>
</linearGradient>
<linearGradient id="paint1_linear_194_271" x1="33.5525" y1="44.7485" x2="29.6246" y2="22.4723" gradientUnits="userSpaceOnUse">
<stop offset="0.0832" stop-color="#FA892D"/>
<stop offset="0.5486" stop-color="#FF9A47"/>
</linearGradient>
<linearGradient id="paint2_linear_194_271" x1="31.6291" y1="26.4557" x2="27.5527" y2="3.33703" gradientUnits="userSpaceOnUse">
<stop offset="0.2374" stop-color="#FFA85C"/>
<stop offset="1" stop-color="#FFDF80"/>
</linearGradient>
<linearGradient id="paint3_linear_194_271" x1="58.911" y1="58.0713" x2="45.9238" y2="22.3892" gradientUnits="userSpaceOnUse">
<stop offset="0.2486" stop-color="#948BF7"/>
<stop offset="0.9279" stop-color="#C7CBFF"/>
</linearGradient>
<linearGradient id="paint4_linear_194_271" x1="53.6624" y1="53.9762" x2="51.6707" y2="48.504" gradientUnits="userSpaceOnUse">
<stop offset="0.2486" stop-color="#8171DC"/>
<stop offset="1" stop-color="#887BE1"/>
</linearGradient>
<linearGradient id="paint5_linear_194_271" x1="57.0803" y1="45.4109" x2="51.1762" y2="29.1895" gradientUnits="userSpaceOnUse">
<stop offset="0.2486" stop-color="#8171DC"/>
<stop offset="1" stop-color="#887BE1"/>
</linearGradient>
</defs>
</svg>
This diff is collapsed.
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:gen_rentals/Screens/DashboardScreen.dart';
import 'package:provider/provider.dart';
import '../../Notifier/RentalContactProvider .dart';
import '../../Utility/AdvancedSnackbar.dart';
......@@ -73,19 +74,21 @@ class _OtpScreenState extends State<OtpScreen> {
setState(() => _isVerifying = true);
await Future.delayed(const Duration(milliseconds: 800));
// Compare with current OTP (not widget.otp)
// Compare with current OTP (not widget.otp)
if (enteredOtp == _currentOtp.toString()) {
// OTP verified successfully
// OTP verified successfully
if (!mounted) return;
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text(" OTP Verified Successfully!"),
content: Text(" OTP Verified Successfully!"),
backgroundColor: Colors.green,
),
);
// Example navigation:
// Navigator.pushReplacement(context, MaterialPageRoute(builder: (_) => const HomeScreen()));
// navigation:
Navigator.pushReplacement(context,
MaterialPageRoute(builder: (_) => const DashboardScreen())
);
} else {
// ❌ Invalid OTP
......@@ -100,7 +103,7 @@ class _OtpScreenState extends State<OtpScreen> {
if (mounted) setState(() => _isVerifying = false);
}
/// 🔁 Resend OTP Function
/// Resend OTP Function
Future<void> _resendOtp(BuildContext context) async {
setState(() => _isResending = true);
......@@ -118,14 +121,14 @@ class _OtpScreenState extends State<OtpScreen> {
if (rentalProvider.rentalContact != null &&
rentalProvider.rentalContact!.error == 0) {
// Update current OTP with the new one from API response
// Update current OTP with the new one from API response
final newOtp = rentalProvider.rentalContact!.otp!;
setState(() {
_currentOtp = newOtp; // Update current OTP
_currentOtp = newOtp; // Update current OTP
_secondsRemaining = 22;
});
// Clear previous OTP fields
// Clear previous OTP fields
for (var controller in _controllers) {
controller.clear();
}
......@@ -133,7 +136,7 @@ class _OtpScreenState extends State<OtpScreen> {
_isValid = false;
});
// Restart timer
// Restart timer
_startTimer();
AnimatedSnackBar.success(
......@@ -210,7 +213,7 @@ class _OtpScreenState extends State<OtpScreen> {
onTap: () => FocusScope.of(context).unfocus(),
child: Stack(
children: [
// 🏙️ Background image
// Background image
Positioned.fill(
child: Image.asset(
'assets/images/background.jpg',
......@@ -218,12 +221,12 @@ class _OtpScreenState extends State<OtpScreen> {
),
),
// 🌑 Overlay
// Overlay
Positioned.fill(
child: Container(color: Colors.black.withOpacity(0.5)),
),
// 🌈 Gradient overlay
// Gradient overlay
Positioned.fill(
child: Container(
decoration: const BoxDecoration(
......@@ -236,7 +239,7 @@ class _OtpScreenState extends State<OtpScreen> {
),
),
// 📦 Foreground content
// Foreground content
SingleChildScrollView(
padding: EdgeInsets.only(
bottom: MediaQuery.of(context).viewInsets.bottom + 20,
......@@ -283,7 +286,7 @@ class _OtpScreenState extends State<OtpScreen> {
),
const SizedBox(height: 20),
// 🔁 Resend OTP
// Resend OTP
TextButton(
onPressed: _secondsRemaining == 0 && !_isResending
? () => _resendOtp(context)
......@@ -315,7 +318,7 @@ class _OtpScreenState extends State<OtpScreen> {
const SizedBox(height: 30),
// 🔘 Continue Button
// Continue Button
Padding(
padding: const EdgeInsets.symmetric(horizontal: 24),
child: SizedBox(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment