Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	pro modal
Browse files- components/pro-modal/index.tsx +11 -13
- public/banner.png +0 -0
    	
        components/pro-modal/index.tsx
    CHANGED
    
    | @@ -18,6 +18,8 @@ export const ProModal = ({ | |
| 18 | 
             
                if (html !== defaultHTML) {
         | 
| 19 | 
             
                  setStorage(html);
         | 
| 20 | 
             
                }
         | 
|  | |
|  | |
| 21 | 
             
              };
         | 
| 22 | 
             
              return (
         | 
| 23 | 
             
                <Dialog open={open} onOpenChange={onClose}>
         | 
| @@ -34,28 +36,24 @@ export const ProModal = ({ | |
| 34 | 
             
                          🥳
         | 
| 35 | 
             
                        </div>
         | 
| 36 | 
             
                      </div>
         | 
| 37 | 
            -
                      < | 
| 38 | 
            -
                        Only 9 | 
| 39 | 
            -
                      </ | 
| 40 | 
             
                      <p className="text-neutral-500 text-base mt-2 max-w-sm">
         | 
| 41 | 
             
                        It seems like you have reached the monthly free limit of DeepSite.
         | 
| 42 | 
             
                      </p>
         | 
| 43 | 
             
                      <hr className="bg-neutral-200 w-full max-w-[150px] my-6" />
         | 
| 44 | 
             
                      <p className="text-lg mt-3 text-neutral-900 font-semibold">
         | 
| 45 | 
            -
                        Upgrade to a <ProTag className="mx-1" /> Account, and unlock | 
|  | |
| 46 | 
             
                      </p>
         | 
| 47 | 
             
                      <ul className="mt-3 space-y-1 text-neutral-500">
         | 
| 48 | 
            -
                        <li className="text-sm space-x-2 flex items-center justify-start gap-2">
         | 
| 49 | 
            -
                           | 
| 50 | 
            -
                          DeepSite unlimited access to all Inference Providers
         | 
| 51 | 
            -
                        </li>
         | 
| 52 | 
            -
                        <li className="text-sm space-x-2 flex items-center justify-start gap-2">
         | 
| 53 | 
            -
                          <CheckCheck className="text-emerald-500 size-4" />
         | 
| 54 | 
            -
                          Get highest priority and 8x more quota on Spaces ZeroGPU
         | 
| 55 | 
             
                        </li>
         | 
| 56 | 
             
                        <li className="text-sm space-x-2 flex items-center justify-start gap-2">
         | 
| 57 | 
             
                          <CheckCheck className="text-emerald-500 size-4" />
         | 
| 58 | 
            -
                           | 
| 59 | 
             
                        </li>
         | 
| 60 | 
             
                        <li className="text-sm space-x-2 flex items-center justify-start gap-2">
         | 
| 61 | 
             
                          <CheckCheck className="text-emerald-500 size-4" />
         | 
| @@ -66,7 +64,7 @@ export const ProModal = ({ | |
| 66 | 
             
                          Get free credits across all Inference Providers
         | 
| 67 | 
             
                        </li>
         | 
| 68 | 
             
                        <li className="text-sm text-neutral-500 space-x-2 flex items-center justify-start gap-2 mt-3">
         | 
| 69 | 
            -
                          ... and  | 
| 70 | 
             
                        </li>
         | 
| 71 | 
             
                      </ul>
         | 
| 72 | 
             
                      <Button
         | 
|  | |
| 18 | 
             
                if (html !== defaultHTML) {
         | 
| 19 | 
             
                  setStorage(html);
         | 
| 20 | 
             
                }
         | 
| 21 | 
            +
                window.open("https://huggingface.co/subscribe/pro?from=DeepSite", "_blank");
         | 
| 22 | 
            +
                onClose(false);
         | 
| 23 | 
             
              };
         | 
| 24 | 
             
              return (
         | 
| 25 | 
             
                <Dialog open={open} onOpenChange={onClose}>
         | 
|  | |
| 36 | 
             
                          🥳
         | 
| 37 | 
             
                        </div>
         | 
| 38 | 
             
                      </div>
         | 
| 39 | 
            +
                      <h2 className="text-2xl font-bold text-neutral-950">
         | 
| 40 | 
            +
                        Only $9 to enhance your possibilities
         | 
| 41 | 
            +
                      </h2>
         | 
| 42 | 
             
                      <p className="text-neutral-500 text-base mt-2 max-w-sm">
         | 
| 43 | 
             
                        It seems like you have reached the monthly free limit of DeepSite.
         | 
| 44 | 
             
                      </p>
         | 
| 45 | 
             
                      <hr className="bg-neutral-200 w-full max-w-[150px] my-6" />
         | 
| 46 | 
             
                      <p className="text-lg mt-3 text-neutral-900 font-semibold">
         | 
| 47 | 
            +
                        Upgrade to a <ProTag className="mx-1" /> Account, and unlock your
         | 
| 48 | 
            +
                        DeepSite high quota access ⚡
         | 
| 49 | 
             
                      </p>
         | 
| 50 | 
             
                      <ul className="mt-3 space-y-1 text-neutral-500">
         | 
| 51 | 
            +
                        <li className="text-sm text-neutral-500 space-x-2 flex items-center justify-start gap-2 mb-3">
         | 
| 52 | 
            +
                          You'll also unlock some Hugging Face PRO features, like:
         | 
|  | |
|  | |
|  | |
|  | |
|  | |
| 53 | 
             
                        </li>
         | 
| 54 | 
             
                        <li className="text-sm space-x-2 flex items-center justify-start gap-2">
         | 
| 55 | 
             
                          <CheckCheck className="text-emerald-500 size-4" />
         | 
| 56 | 
            +
                          Get acces to thousands of AI app (ZeroGPU) with high quota
         | 
| 57 | 
             
                        </li>
         | 
| 58 | 
             
                        <li className="text-sm space-x-2 flex items-center justify-start gap-2">
         | 
| 59 | 
             
                          <CheckCheck className="text-emerald-500 size-4" />
         | 
|  | |
| 64 | 
             
                          Get free credits across all Inference Providers
         | 
| 65 | 
             
                        </li>
         | 
| 66 | 
             
                        <li className="text-sm text-neutral-500 space-x-2 flex items-center justify-start gap-2 mt-3">
         | 
| 67 | 
            +
                          ... and lots more!
         | 
| 68 | 
             
                        </li>
         | 
| 69 | 
             
                      </ul>
         | 
| 70 | 
             
                      <Button
         | 
    	
        public/banner.png
    CHANGED
    
    |   | 
|   | 
