mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-09 06:05:01 +02:00
12 lines
6.3 KiB
JavaScript
12 lines
6.3 KiB
JavaScript
import{u as k,r as h,n as R,i as O,c as v,j as e,B as C,b as S,a as _}from"./index-B6OB8wzf.js";import{u as E,a as q,e as Q,b as M,c as H,n as b,s as L,f as N,g as B,w as F,Q as D,d as P,h as G,i as T}from"./github-BW3abBpB.js";import{m as g}from"./proxy-7YlnQFop.js";import{M as I}from"./map-pin-B4Alk5XN.js";import{U}from"./users-XMi8Hcvr.js";import{S as z}from"./star-8FRNvxW_.js";function K(r,i,d){var u,y,x,f,j;const a=k(),c=E(),n=q(),s=a.defaultQueryOptions(r);(y=(u=a.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||y.call(u,s),s._optimisticResults=c?"isRestoring":"optimistic",Q(s),M(s,n),H(n);const m=!a.getQueryCache().get(s.queryHash),[t]=h.useState(()=>new i(a,s)),l=t.getOptimisticResult(s);if(h.useSyncExternalStore(h.useCallback(o=>{const w=c?b:t.subscribe(R.batchCalls(o));return t.updateResult(),w},[t,c]),()=>t.getCurrentResult(),()=>t.getCurrentResult()),h.useEffect(()=>{t.setOptions(s,{listeners:!1})},[s,t]),L(s,l))throw N(s,t,n);if(B({result:l,errorResetBoundary:n,throwOnError:s.throwOnError,query:a.getQueryCache().get(s.queryHash)}))throw l.error;if((f=(x=a.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||f.call(x,s,l),s.experimental_prefetchInRender&&!O&&F(l,c)){const o=m?N(s,t,n):(j=a.getQueryCache().get(s.queryHash))==null?void 0:j.promise;o==null||o.catch(b).finally(()=>{t.updateResult()})}return s.notifyOnChangeProps?l:t.trackResult(l)}function V(r,i){return K(r,D)}/**
|
|
* @license lucide-react v0.344.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const $=v("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
* @license lucide-react v0.344.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const A=v("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]);function J({user:r,role:i,description:d}){return e.jsxs(g.div,{whileHover:{y:-5},className:"bg-white/80 backdrop-blur-sm p-6 rounded-lg border border-gray-200",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("img",{src:r.avatar_url,alt:`${r.login}'s avatar`,className:"w-16 h-16 rounded-full"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-gray-900",children:r.name||r.login}),e.jsx("p",{className:"text-sm text-cornflower-blue",children:i}),r.location&&e.jsxs("div",{className:"flex items-center gap-1 text-sm text-gray-500 mt-1",children:[e.jsx(I,{className:"h-4 w-4"}),e.jsx("span",{children:r.location})]})]})]}),e.jsx("p",{className:"mt-4 text-gray-600",children:d}),e.jsxs("div",{className:"mt-4 flex items-center gap-4 text-sm text-gray-500",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(U,{className:"h-4 w-4"}),e.jsxs("span",{children:[r.followers.toLocaleString()," followers"]})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(C,{className:"h-4 w-4"}),e.jsxs("span",{children:[r.public_repos," repos"]})]})]}),e.jsx("a",{href:r.html_url,target:"_blank",rel:"noopener noreferrer",className:"mt-4 inline-flex items-center text-sm text-cornflower-blue hover:underline",children:"View GitHub Profile →"})]})}function W({repo:r}){return e.jsxs(g.div,{whileHover:{y:-5},className:"bg-white/80 backdrop-blur-sm p-6 rounded-lg border border-gray-200",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:e.jsx("a",{href:r.html_url,target:"_blank",rel:"noopener noreferrer",className:"hover:text-cornflower-blue transition-colors",children:r.name})}),r.description&&e.jsx("p",{className:"mt-2 text-gray-600 line-clamp-2",children:r.description}),e.jsxs("div",{className:"mt-4 flex items-center gap-4 text-sm text-gray-500",children:[r.language&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"w-3 h-3 rounded-full bg-cornflower-blue"}),r.language]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(z,{className:"h-4 w-4"}),r.stargazers_count]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(A,{className:"h-4 w-4"}),r.forks_count]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx($,{className:"h-4 w-4"}),S(r.updated_at)]})]})]})}const p=[{username:"eshanized",role:"Core Development",description:"Leading the development of Snigdha OS core system and architecture"},{username:"d3v1l0n",role:"Security Tools",description:"Managing security tools integration and package maintenance"},{username:"alokified",role:"Project Lead",description:"Overseeing project direction and community engagement"}];function te(){const r=P({queries:p.map(s=>({queryKey:["github-user",s.username],queryFn:()=>G(s.username)}))}),{data:i,isLoading:d,error:a}=V({queryKey:["github-repos","Snigdha-OS"],queryFn:()=>T("Snigdha-OS")}),c=r.some(s=>s.isLoading)||d,n=r.some(s=>s.isError)||a;return c?e.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:e.jsx(_,{className:"h-8 w-8 animate-spin text-cornflower-blue"})}):n?e.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:e.jsx("p",{className:"text-red-500",children:"Failed to load data"})}):e.jsx("div",{className:"py-12",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(g.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Our Team"}),e.jsx("p",{className:"mt-4 text-lg text-gray-600",children:"Meet the dedicated team behind Snigdha OS"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-16",children:r.map((s,m)=>s.data&&e.jsx(J,{user:s.data,role:p[m].role,description:p[m].description},s.data.login))}),e.jsxs(g.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"mt-16",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:"Our Repositories"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:i==null?void 0:i.map(s=>e.jsx(W,{repo:s},s.id))})]})]})})}export{te as default};
|