1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1884],{5941:(e,l,a)=>{"use strict";a.d(l,{A:()=>d});var s=a(37876),t=a(48230),r=a.n(t),i=a(89311),n=a(57994),c=a(18480);let d=e=>{let{toolsMetaData:l={},toolHeadLine:a="",categories:t=[]}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.A,{...l}),(0,s.jsx)(n.A.CenterTop,{internalPage:!0,children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(n.A.BackButton,{}),(0,s.jsxs)(n.A.PageHeading,{className:"flex flex-col gap-0.5",children:[(0,s.jsx)(i.default.SemiBoldText,{children:a}),(0,s.jsx)("div",{className:"flex gap-0.5 items-center",children:null==t?void 0:t.map((e,l)=>(0,s.jsxs)("span",{className:"flex flex-0.5 items-center",children:[(0,s.jsxs)(r(),{href:null==e?void 0:e.link,target:"_blank",className:"text-gray-500 font-normal hover:underline text-xs",children:[" ",null==e?void 0:e.label]}),t.length-1===l?null:(0,s.jsx)("span",{className:"text-gray-500 text-xs",children:(0,s.jsx)(i.default.Dot,{})})]},null==e?void 0:e.id))})]})]})})]})}},26246:(e,l,a)=>{"use strict";a.d(l,{A:()=>n});var s=a(37876),t=a(16495),r=a(89311),i=a(26328);let n=()=>{let e=Object.values(t.SUBROUTER_PAGES_TOOLS).filter(e=>null==e?void 0:e.enable).sort(()=>Math.random()-.5).slice(0,3);return(0,s.jsx)("div",{className:"lg:px-20 pt-10 pb-40 sm:py-10 border-t-1",children:(0,s.jsxs)("div",{className:"flex flex-col gap-6 items-center",children:[(0,s.jsx)(r.default.SemiBoldText,{sm:!0,children:"More tools by the Peerlist community"}),(0,s.jsx)("div",{className:"grid grid-cols-1 md:px-0 px-4 sm:grid-cols-2 lg:grid-cols-3 items-center flex-col gap-6",children:null==e?void 0:e.map(e=>(0,s.jsx)(i.A,{data:e},null==e?void 0:e.key))})]})})}},26328:(e,l,a)=>{"use strict";a.d(l,{A:()=>p});var s=a(37876),t=a(48230),r=a.n(t),i=a(54587),n=a.n(i),c=a(93988),d=a(89311),o=a(83872),x=a(1245),m=a(95729);let p=e=>{let{data:l}=e,{label:a,url:t,tagLine:i,categories:p,target:h,buildBy:f,image:u,key:g}=l;return(0,s.jsxs)(r(),{target:"".concat(h||"_self"),href:t,className:"flex flex-col gap-4 border rounded-2xl hover:shadow-10",children:[(0,s.jsx)(c.A,{src:u,className:"rounded-t-2xl"}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 px-4 pb-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)(d.default.SemiBoldText,{children:a}),(0,s.jsx)(d.default.MutedText,{sm:!0,children:i})]}),(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsxs)("div",{className:"flex gap-1 items-center text-gray-500",children:[(0,s.jsx)("span",{className:"text-gray-500",children:(0,s.jsx)(o.LabelTagIcon,{size:16})}),(0,s.jsx)("span",{children:null==p?void 0:p.map((e,l)=>(0,s.jsxs)("span",{children:[(0,s.jsx)(r(),{className:"text-gray-500 hover:underline text-xs",href:null==e?void 0:e.link,target:"_blank",onClick:e=>{e.stopPropagation()},children:null==e?void 0:e.label}),p.length-1===l?"":", "]},null==e?void 0:e.id))})]}),(null==f?void 0:f.profilePicture)?(0,s.jsxs)("span",{children:[(0,s.jsx)(n(),{"data-tip":!0,"data-for":"build-by-vinit",role:"none",src:null==f?void 0:f.profilePicture,width:20,height:20,className:"w-5 h-5 object-cover "}),(0,s.jsx)(x.A,{id:"build-by-vinit",text:"Built by ".concat(null==f?void 0:f.fullName)})]}):(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{"data-tip":!0,"data-for":g,children:(0,s.jsx)(m.As,{size:20})}),(0,s.jsx)(x.A,{id:g,text:"Built by Peerlist"})]})]})]})]})}},45116:(e,l,a)=>{"use strict";a.r(l),a.d(l,{default:()=>_});var s=a(37876),t=a(2171),r=a(48230),i=a.n(r),n=a(14232),c=a(88391),d=a.n(c),o=a(69198),x=a(58385),m=a(21639),p=a(51915),h=a(71297),f=a(87156),u=a(83872),g=a(8712),j=a(89311);let v={Flat:e=>(0,s.jsx)(b,{type:"flat",username:e}),FlatSquare:e=>(0,s.jsx)(b,{type:"flat-square",username:e}),Plastic:e=>(0,s.jsx)(b,{type:"plastic",username:e}),Social:e=>(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"flex items-center text-[11px] overflow-hidden",children:[(0,s.jsxs)("div",{className:"flex items-center py-0.5 pl-1.5 pr-2 mr-2 bg-[#fcfcfc] border border-gray-200 rounded-[4px]","data-tip":!0,"data-for":"social-badge",children:[(0,s.jsx)(x.A.PeerlistP,{width:"12",height:"12"}),(0,s.jsx)("span",{className:"ml-1 tracking-wide text-black font-semibold",children:"Peerlist"})]}),(0,s.jsx)("div",{className:"py-0.5 px-1 text-black font-semibold bg-[#fcfcfc] relative border border-gray-200 rounded-md content social-badge-tooltip",children:e})]})}),ForTheBadge:e=>(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"flex items-center text-[11px] text-gray-00 dar
1k:text-gray-900",children:[(0,s.jsxs)("div",{className:"flex items-center p-2 bg-[#555555]",children:[(0,s.jsx)(x.A.PeerlistP,{width:"12",height:"12"}),(0,s.jsx)("span",{className:"ml-1 uppercase tracking-wides text-gray-00 dark:text-gray-900",children:"Peerlist"})]}),(0,s.jsx)("div",{className:"p-2 bg-green uppercase tracking-widest font-bold",children:e})]})})},b=e=>{let{type:l,username:a}=e,t="";switch(l){case"flat":t="rounded-[4px] overflow-hidden";break;case"plastic":t="rounded-[4px] overflow-hidden shadow-md"}return(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"flex items-center text-[11px] text-gray-00 ".concat(t),children:[(0,s.jsxs)("div",{className:"flex items-center py-1 pl-1.5 pr-2 bg-[#555555]",children:[(0,s.jsx)(x.A.PeerlistP,{width:"12",height:"12"}),(0,s.jsx)("span",{className:"ml-1 tracking-wide text-gray-00 dark:text-gray-900",children:"Peerlist"})]}),(0,s.jsx)("div",{className:"py-1 pl-1.5 pr-2 bg-green text-gray-00 dark:text-gray-900 tracking-wide",children:a})]})})},y=e=>{let{profileHandle:l}=e,{isLoggedIn:a}=(0,f.A)(),[t,r]=(0,n.useState)({value:l}),[i,c]=(0,n.useState)("flat"),x="https://github-readme-badge.peerlist.io/api",b="https://peerlist.io",y=(null==t?void 0:t.value)||"{{username}}",N="[.concat(y,")](").concat(b,"/").concat(y,")"),P="[.concat(y,"?style=").concat(i,")](").concat(b,"/").concat(y,")"),A=async()=>{try{await navigator.clipboard.writeText("flat"===i?N:P),h.A.SuccessToast(o.A.README_BADGE.readmeBadge)}catch(e){}};return(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[a?null:(0,s.jsx)(g.A,{message:"Enter your Peerlist username",medium:!0,callback:e=>r(e)}),(0,s.jsxs)("div",{className:"flex flex-col gap-10",children:[(0,s.jsx)("div",{className:"flex flex-col gap-6",children:[{name:"flat",component:"Flat",type:"flat"},{name:"flat-square",component:"FlatSquare",type:"flat-square"},{name:"plastic",component:"Plastic",type:"plastic"},{name:"social",component:"Social",type:"social"},{name:"for the badge",component:"ForTheBadge",type:"for-the-badge"}].map(e=>(0,s.jsxs)("div",{className:"flex items-center justify-between relative",children:[(0,s.jsx)(p.A,{id:e.name,name:e.name,value:e.name,checked:i===e.type,onChange:()=>c(e.type),label:e.name}),(0,s.jsx)("span",{children:v[e.component]((null==t?void 0:t.value)||l)})]},e.type))}),(0,s.jsxs)("div",{className:"py-3 px-4 rounded-lg flex flex-col gap-4 bg-[#F7F6F3] dark:bg-[#222222]",children:[(0,s.jsx)(j.default.NormalText,{sm:!0,textColor:"text-gray-700",className:"".concat(d().className," select-all"),children:(()=>"flat"===i?N:P)()}),(0,s.jsx)(m.Ay.Carbon,{small:!0,onClick:()=>A(),iconLeft:(0,s.jsx)(u.CopyIcon,{size:14}),className:"w-fit",children:"Copy Markdown"})]})]})]})};var N=a(16495),P=a(43594),A=a(26246),w=a(5941);let _=()=>{var e;let{primaryUserData:l}=(0,t.useSelector)(e=>e.PrimaryUserData),a={title:"Peerlist README Badge",description:"Peerlist README Badge for blogs, github README page.",ogImage:"".concat(N.CDNImage.readmeTools)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(w.A,{toolsMetaData:a,toolHeadLine:"Readme Badge",categories:null===N.SUBROUTER_PAGES_TOOLS||void 0===N.SUBROUTER_PAGES_TOOLS||null==(e=N.SUBROUTER_PAGES_TOOLS.readmeBadge)?void 0:e.categories}),(0,s.jsxs)("div",{className:"flex flex-col w-full items-center justify-between gap-10 py-10",children:[(0,s.jsxs)("div",{className:"px-0 w-full flex gap-10 max-w-142 flex-col items-center justify-center",children:[(0,s.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,s.jsx)(j.default.NormalText,{as:"h1",xxxxl:!0,className:"font-instrument text-center",children:"Peerlist Readme Badge"}),(0,s.jsx)(j.default.NormalText,{as:"h2",textColor:"text-gray-700 text-center",children:"Style your README.md with an awesome Peerlist markdown badge."})]}),(0,s.jsx)(P.A.Divider,{}),(0,s.jsx)("div",{className:"px-4 lg:px-0",children:(0,s.jsx)(y,{profileHandle:(null==l?void 0:l.profileHandle)||"{{ username }}"},null==l?void 0:l.id)})]}),(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsxs)(j.default.NormalText,{xs:!0,textColor:"text-gray-400",className:"text-center w-full",children:["\uD83D\uDC9A We thank"," ",(0,s.jsx)(i(),{href:"".concat(null===N.APP_PATHS||void 0===N.APP_PATHS?void 0:N.APP_PATHS.userProfile({profileHandle:"vinitshahdeo"})),target:"_blank",className:"underline hover:text-gray-600",children:"Vinit Shahdeo"})," ","for this tool!"]})})]}),(0,s.jsx)(A.A,{})]})}},82436:(e,l,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tools/readme-badge",function(){return a(45116)}])},88391:e=>{e.exports={style:{fontFamily:"'Roboto Mono', 'Roboto Mono Fallback'",fontStyle:"normal"},className:"__className_c8ca7d",variable:"__variable_c8ca7d"}}},e=>{e.O(0,[3594,636,6593,8792],()=>e(e.s=82436)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.