mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-06 20:55:18 +02:00
2 lines
8.9 KiB
JavaScript
2 lines
8.9 KiB
JavaScript
import{j as e,G as g,H as x,r as l}from"../script.js";import{m as t}from"./proxy-D4owT0uO.js";import{C as b}from"./check-DuEcDcyK.js";import{U as f}from"./users-BmJA6T-g.js";import{S as y}from"./star-DBf-izIT.js";function j(){return e.jsxs(t.a,{href:"https://github.com/sponsors/eshanized",target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.05,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)"},whileTap:{scale:.95},className:"inline-flex items-center gap-3 px-6 py-3 bg-[#2ea44f] text-white rounded-lg shadow-md hover:bg-[#2c974b] transition-all duration-300 ease-out",children:[e.jsx(g,{className:"h-5 w-5"}),e.jsx("span",{className:"font-semibold",children:"Sponsor on GitHub"})]})}function u(s){return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:0,maximumFractionDigits:0}).format(s)}const N=.012,v=[{name:"Community Hero",amount:999,description:"Support the ongoing development of Snigdha OS",benefits:["Special recognition on our GitHub repository","Access to sponsor-only updates","Vote on feature priorities"]},{name:"Security Champion",amount:2999,description:"Help shape the future of security testing",benefits:["All Community Hero benefits","Early access to new features","Priority support on GitHub","Exclusive security tips newsletter"],featured:!0},{name:"Enterprise Partner",amount:5999,description:"Perfect for organizations using Snigdha OS",benefits:["All Security Champion benefits","Custom support channel","Training materials access","Team collaboration features","Priority feature requests"]}],d=s=>(s*N).toFixed(2);function w(){return e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:v.map(s=>e.jsxs(t.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},className:`relative rounded-2xl ${s.featured?"bg-gradient-to-b from-cornflower-blue/10 to-cornflower-blue/5 border-2 border-cornflower-blue":"bg-white/80 border border-gray-200"} backdrop-blur-sm p-6 shadow-lg`,children:[s.featured&&e.jsx("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2",children:e.jsx("span",{className:"px-4 py-1 bg-cornflower-blue text-white text-sm rounded-full",children:"Most Popular"})}),e.jsxs("div",{className:"mb-4",children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:s.name}),e.jsxs("div",{className:"mt-2",children:[e.jsx("span",{className:"text-3xl font-bold text-gray-900",children:u(s.amount)}),e.jsx("span",{className:"text-gray-600",children:" / ₹"}),e.jsxs("span",{className:"text-3xl font-bold text-gray-900 ml-2",children:["$",d(s.amount)]}),e.jsx("span",{className:"text-gray-600",children:" / USD"})]}),e.jsx("p",{className:"mt-2 text-gray-600",children:s.description})]}),e.jsx("ul",{className:"space-y-3 mb-6",children:s.benefits.map(r=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(b,{className:"h-5 w-5 text-green-500 flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-gray-600",children:r})]},r))}),e.jsx("a",{href:`https://github.com/sponsors/eshanized?frequency=one-time&amount=${d(s.amount)}`,target:"_blank",rel:"noopener noreferrer",className:`block w-full text-center py-2 px-4 rounded-lg transition-colors ${s.featured?"bg-cornflower-blue text-white hover:bg-blue-600":"bg-gray-100 text-gray-900 hover:bg-gray-200"}`,children:"Make a One-Time Donation"})]},s.name))})}const S=[{label:"Total Sponsors",value:"6+",icon:f,color:"text-blue-500"},{label:"Total Support",value:u(164563.08),icon:x,color:"text-red-500"},{label:"GitHub Stars",value:"200+",icon:y,color:"text-yellow-500"}];function D(){return e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:S.map((s,r)=>e.jsxs(t.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:r*.1},className:"bg-white/80 backdrop-blur-sm p-6 rounded-xl border border-gray-200",children:[e.jsx(s.icon,{className:`h-8 w-8 ${s.color} mb-2`}),e.jsx("p",{className:"text-2xl font-bold text-gray-900",children:s.value}),e.jsx("p",{className:"text-gray-600",children:s.label})]},s.label))})}const k=[{username:"TIAsCode",description:"Enterprise Partner & Server Provider",amount:"₹82,025.36"},{username:"ixintl",description:"Strategic Development Partner",amount:"₹54,399.36"},{username:"SkullSync",description:"Strategic Development Partner",amount:"₹12,181.36"}],I=[{username:"d3v1l0n",amount:"₹4,183.00"},{username:"myself-meghna",amount:"₹8,554"},{username:"lawrencecracker",amount:"₹3,220"}];async function m(s){return await(await fetch(`https://api.github.com/users/${s}`)).json()}function T(){const[s,r]=l.useState([]),[c,h]=l.useState([]);return l.useEffect(()=>{(async()=>{const o=await Promise.all(k.map(async n=>{const i=await m(n.username);return{...n,name:i.name||n.username,avatar_url:i.avatar_url}}));r(o);const p=await Promise.all(I.map(async n=>{const i=await m(n.username);return{...n,name:i.name||n.username,avatar_url:i.avatar_url}}));h(p)})()},[]),e.jsxs("div",{className:"space-y-16",children:[e.jsxs("div",{className:"bg-gradient-to-r from-cornflower-blue/5 to-blue-50/50 rounded-2xl p-8",children:[e.jsx("h2",{className:"text-3xl font-semibold text-gray-900 text-center mb-8",children:"Key Sponsors"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:s.map((a,o)=>e.jsx(t.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:o*.1},className:"bg-white/90 backdrop-blur-sm rounded-xl p-6 border border-cornflower-blue/20 shadow-xl hover:shadow-2xl transition-shadow",children:e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx("div",{className:"p-4 bg-cornflower-blue/10 rounded-lg shadow-sm",children:e.jsx("img",{src:a.avatar_url,alt:a.name,className:"h-10 w-10 rounded-full object-cover"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:a.name}),e.jsx("p",{className:"text-sm text-gray-600",children:a.description}),e.jsxs("p",{className:"text-lg text-gray-800 mt-3 font-semibold",children:["Amount: ",e.jsx("span",{className:"text-green-600",children:a.amount})]})]})]})},a.username))})]}),e.jsxs("div",{className:"bg-gradient-to-r from-indigo-100/10 to-blue-50/50 rounded-2xl p-8",children:[e.jsx("h2",{className:"text-3xl font-semibold text-gray-900 text-center mb-8",children:"Individual Donors"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:c.map((a,o)=>e.jsx(t.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:o*.1},className:"bg-white/90 backdrop-blur-sm rounded-xl p-6 border border-indigo-200/50 shadow-md hover:shadow-lg transition-shadow",children:e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx("div",{className:"p-4 bg-indigo-200/10 rounded-lg shadow-sm",children:e.jsx("img",{src:a.avatar_url,alt:a.name,className:"h-10 w-10 rounded-full object-cover"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:a.name}),e.jsx("p",{className:"text-sm text-gray-600",children:"Generous Individual Donor"}),e.jsxs("p",{className:"text-lg text-gray-800 mt-3 font-semibold",children:["Amount: ",e.jsx("span",{className:"text-green-600",children:a.amount})]})]})]})},a.username))})]})]})}function A(){return e.jsx("div",{className:"min-h-screen bg-gradient-to-b from-gray-50 via-white to-gray-100 py-16",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-6 sm:px-8 lg:px-12",children:[e.jsxs(t.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-16",children:[e.jsx(t.div,{initial:{scale:.8},animate:{scale:1},transition:{duration:.6,bounce:.4},children:e.jsx(x,{className:"h-16 w-16 text-red-500 mx-auto mb-4"})}),e.jsx("h1",{className:"text-4xl md:text-5xl font-extrabold text-gray-900",children:"Support Snigdha OS"}),e.jsx("p",{className:"mt-4 text-lg md:text-xl text-gray-600 max-w-2xl mx-auto",children:"Your support helps us maintain and improve Snigdha OS, keeping it free and open source for the security community."}),e.jsx(t.div,{className:"mt-8",whileHover:{scale:1.05},whileTap:{scale:.95},children:e.jsx(j,{})})]}),e.jsxs("div",{className:"space-y-20",children:[e.jsxs("section",{className:"relative",children:[e.jsx("div",{className:"absolute -top-10 -left-10 w-32 h-32 bg-cornflower-blue/10 rounded-full blur-3xl"}),e.jsx(T,{})]}),e.jsx("section",{children:e.jsx(D,{})}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 text-center mb-12",children:"Choose Your Sponsorship Tier"}),e.jsx(w,{})]}),e.jsxs("section",{className:"max-w-3xl mx-auto text-center bg-gray-100 rounded-2xl p-10 shadow-lg",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-6",children:"Why Sponsor Snigdha OS?"}),e.jsx("p",{className:"text-gray-600 text-lg leading-relaxed",children:"Your sponsorship directly supports the development of cutting-edge security tools, maintenance of our infrastructure, and helps us keep Snigdha OS at the forefront of security testing. Join our community of sponsors and help shape the future of security testing."})]})]})]})})}export{A as default};
|