PageSourceSearch

https://rizkyfauzan.id/_nuxt/NFohEQzN.js

js rizkyfauzan.id collected 2026-10-04 08:09:51 UTC 8,463 bytes, 1 lines download raw bytes

1import{d as C,u as $,o as S,c,g as i,w as T,C as I,e,z as A,m as _,x as m,j as h,F as E,y as F,r as x,b as d,_ as R}from"./DdY59M0t.js";import{_ as B}from"./BKM-R7Hm.js";import"./DDlvirwQ.js";const N=async t=>{try{const o=await(await fetch(`https://api.lanyard.rest/v1/users/${t}`)).json();return o.success?{discord_status:o.data.discord_status,activities:o.data.activities||[]}:null}catch(a){return console.error("Failed to fetch Discord status:",a),null}},H=t=>{switch(t){case"online":return"Online";case"idle":return"Idle";case"dnd":return"DND";default:return"Offline"}},L=t=>{switch(t){case 0:return"Playing";case 1:return"Streaming";case 2:return"Listening to";case 3:return"Watching";case 4:return"";case 5:return"Competing in";default:return"Activity"}},M=t=>{if(!t)return"";let o=`${L(t.type)} ${t.name}`;return t.details&&(o+=` - ${t.details}`),t.state&&t.state!==t.details&&(o+=` (${t.state})`),o},O=t=>{const a="text-xs px-2 py-0.5 rounded-xl border";switch(t){case"online":return`${a} bg-white border-green-500 text-green-700`;case"idle":return`${a} bg-white border-yellow-500 text-yellow-700`;case"dnd":return`${a} bg-white border-red-500 text-red-700`;default:return`${a} bg-white border-gray-300 text-gray-700`}},j=async t=>{try{return await navigator.clipboard.writeText(t),!0}catch(a){return console.error("Failed to copy Discord username:",a),!1}},U=globalThis.setInterval,V={class:"p-6"},P={key:0,class:"fixed bottom-20 left-1/2 transform -translate-x-1/2 z-50 bg-black text-white px-4 py-3 rounded-lg shadow-lg flex items-center space-x-2"},G={class:"flex flex-wrap justify-center gap-6 mb-12"},W={href:"mailto:[email protected]",class:"bg-white border border-gray-200 rounded-lg p-6 hover:shadow-lg transition-all duration-300 group w-full sm:w-80 flex items-center"},X={class:"flex items-center space-x-4"},q={class:"shrink-0"},J={href:"https://www.linkedin.com/in/rizky-fauzan-hanif",target:"_blank",rel:"noopener noreferrer",class:"bg-white border border-gray-200 rounded-lg p-6 hover:shadow-lg transition-all duration-300 group w-full sm:w-80 flex items-center"},K={class:"flex items-center space-x-4"},Q={class:"shrink-0 relative"},Y={href:"https://x.com/rizkyfauzanid",target:"_blank",rel:"noopener noreferrer",class:"bg-white border border-gray-200 rounded-lg p-6 hover:shadow-lg transition-all duration-300 group w-full sm:w-80 flex items-center"},Z={class:"flex items-center space-x-4"},ee={class:"shrink-0"},te={href:"https://bsky.app/profile/rizkyfauzan.id",target:"_blank",rel:"noopener noreferrer",class:"bg-white border border-gray-200 rounded-lg p-6 hover:shadow-lg transition-all duration-300 group w-full sm:w-80 flex items-center"},se={class:"flex items-center space-x-4"},ae={class:"shrink-0"},re={href:"https://instagram.com/rizkyfauzan.id",target:"_blank",rel:"noopener noreferrer",class:"bg-white border border-gray-200 rounded-lg p-6 hover:shadow-lg transition-all duration-300 group w-full sm:w-80 flex items-center"},oe={class:"flex items-center space-x-4"},ne={class:"shrink-0"},ie={href:"https://t.me/rizkyfauzanid",target:"_blank",rel:"noopener noreferrer",class:"bg-white border border-gray-200 rounded-lg p-6 hover:shadow-lg transition-all duration-300 group w-full sm:w-80 flex items-center"},le={class:"flex items-center space-x-4"},ce={class:"shrink-0"},de={class:"flex items-center space-x-4"},ue={class:"shrink-0 relative"},ge={class:"min-w-0 flex-1"},pe={class:"flex items-center space-x-2"},fe={key:0,class:"absolute left-0 top-full mt-2 w-full bg-white border border-gray-200 text-black text-xs rounded-lg p-3 shadow-lg opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none z-10"},me={class:"space-y-2"},he={class:"font-medium text-black"},xe={key:0,class:"text-gray-500 text-xs mt-1"},be="536379400686665778",k="fzzzn_",ke=C({__name:"contact",setup(t){$({title:"Contact - Rizky Fauzan Hanif",meta:[{name:"description",content:"Get in touch with Rizky Fauzan Hanif via email, LinkedIn, Twitter, Discord, or Telegram. Network Engineer available for opportunities and collaborations."},{property:"og:title",content:"Contact - Rizky Fauzan Hanif"},{property:"og:description",content:"Connect with Rizky Fauzan Hanif - Network Engineer. Available via email, LinkedIn, Twitter, Discord, and Telegram."},{property:"og:image",content:"https://rizkyfauzan.id/og-image.png"}]});const a=x(!1),o=x("offline"),u=x([]),g=x(!0),w=async()=>{await j(k)&&(a.value=!0,setTimeout(()=>{a.value=!1},3e3))},v=async()=>{g.value=!0;const r=await N(be);r?(o.value=r.discord_status,u.value=r.activities):(o.value="offline",u.value=[]),g.value=!1},z=r=>H(r),D=r=>{if(!r)return null;const s=Date.now(),n=new Date(r).getTime(),b=s-n,l=Math.floor(b/1e3),p=Math.floor(l/60),f=Math.floor(p/60),y=Math.floor(f/24);return y>0?`${y}d ${f%24}h`:f>0?`${f}h ${p%60}m`:p>0?`${p}m ${l%60}s`:`${l}s`};return S(()=>{v(),U(v,6e4)}),(r,s)=>{const n=R,b=B;return d(),c("div",V,[i(I,{"enter-active-class":"transition ease-out duration-300","enter-from-class":"opacity-0 translate-y-2","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"transition ease-in duration-200","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 translate-y-2"},{default:T(()=>[a.value?(d(),c("div",P,[i(n,{name:"heroicons:check-circle",size:"20",class:"text-green-400"}),s[0]||(s[0]=e("span",{class:"font-medium"},"Discord username copied to clipboard!",-1))])):h("",!0)]),_:1}),i(b,{title:"Contact"}),e("div",G,[e("a",W,[e("div",X,[e("div",q,[i(n,{name:"heroicons:envelope",size:"24",class:"text-black/60 group-hover:text-black transition-colors"})]),s[1]||(s[1]=e("div",{class:"min-w-0 flex-1"},[e("h3",{class:"text-lg font-bold text-black group-hover:text-gray-800"},"Email"),e("p",{class:"text-gray-600 text-sm"},"[email protected]")],-1))])]),e("a",J,[e("div",K,[e("div",Q,[i(n,{name:"simple-icons:linkedin",size:"24",class:"text-black/60 group-hover:text-black transition-colors"})]),s[2]||(s[2]=e("div",{class:"min-w-0 flex-1"},[e("h3",{class:"text-lg font-bold text-black group-hover:text-gray-800"},"LinkedIn"),e("p",{class:"text-gray-600 text-sm"},"rizky-fauzan-hanif")],-1))])]),e("a",Y,[e("div",Z,[e("div",ee,[i(n,{name:"simple-icons:x",size:"24",class:"text-black/60 group-hover:text-black transition-colors"})]),s[3]||(s[3]=e("div",{class:"min-w-0 flex-1"},[e("h3",{class:"text-lg font-bold text-black group-hover:text-gray-800"},"X (Twitter)"),e("p",{class:"text-gray-600 text-sm"},"@rizkyfauzanid")],-1))])]),e("a",te,[e("div",se,[e("div",ae,[i(n,{name:"simple-icons:bluesky",size:"24",class:"text-black/60 group-hover:text-black transition-colors"})]),s[4]||(s[4]=e("div",{class:"min-w-0 flex-1"},[e("h3",{class:"text-lg font-bold text-black group-hover:text-gray-800"},"Bluesky"),e("p",{class:"text-gray-600 text-sm"},"rizkyfauzan.id")],-1))])]),e("a",re,[e("div",oe,[e("div",ne,[i(n,{name:"simple-icons:instagram",size:"24",class:"text-black/60 group-hover:text-black transition-colors"})]),s[5]||(s[5]=e("div",{class:"min-w-0 flex-1"},[e("h3",{class:"text-lg font-bold text-black group-hover:text-gray-800"},"Instagram"),e("p",{class:"text-gray-600 text-sm"},"@rizkyfauzan.id")],-1))])]),e("a",ie,[e("div",le,[e("div",ce,[i(n,{name:"simple-icons:telegram",size:"24",class:"text-black/60 group-hover:text-black transition-colors"})]),s[6]||(s[6]=e("div",{class:"min-w-0 flex-1"},[e("h3",{class:"text-lg font-bold text-black group-hover:text-gray-800"},"Telegram"),e("p",{class:"text-gray-600 text-sm"},"@rizkyfauzanid")],-1))])]),e("div",{class:"bg-white border border-gray-200 rounded-lg p-6 hover:shadow-lg transition-all duration-300 group cursor-pointer w-full sm:w-80 relative",onClick:w},[e("div",de,[e("div",ue,[i(n,{name:"simple-icons:discord",size:"24",class:"text-black/60 group-hover:text-black transition-colors"}
1)]),e("div",ge,[e("div",pe,[s[7]||(s[7]=e("h3",{class:"text-lg font-bold text-black group-hover:text-gray-800"},"Discord",-1)),g.value?h("",!0):(d(),c("span",{key:0,class:A(("getDiscordStatusBadgeClasses"in r?r.getDiscordStatusBadgeClasses:_(O))(o.value))},m(z(o.value)),3))]),e("p",{class:"text-gray-600 text-sm font-mono"},m(k))])]),u.value.length>0&&!g.value?(d(),c("div",fe,[e("div",me,[(d(!0),c(E,null,F(u.value,l=>(d(),c("div",{key:l.id},[e("p",he,m(("formatActivity"in r?r.formatActivity:_(M))(l)),1),l.timestamps?.start?(d(),c("p",xe,m(D(l.timestamps.start))+" elapsed ",1)):h("",!0)]))),128))])])):h("",!0)])])])}}});export{ke as default};

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.