mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2025-12-15 11:12:22 +01:00
2 lines
7.4 KiB
JavaScript
2 lines
7.4 KiB
JavaScript
import{i as q,_ as L}from"./Navbar.vue.354ce1ab.js";import{d as k,h as S,r as v,i as D,o as y,j as A,b as _,c as m,e as t,k as g,v as f,u as d,t as w,l as b,m as N,n as T,p as I,f as x,w as M,F as P,g as l}from"./entry.c886c6ae.js";import{_ as B}from"./ScreenCenter.03c820c6.js";import"./composables.47d3641d.js";const E=""+new URL("picture-dark.ad19452c.png",import.meta.url).href,F=""+new URL("picture-light.a3c44647.png",import.meta.url).href,R=""+new URL("picture-bright.9bdab578.png",import.meta.url).href,U=""+new URL("picture-nolight.9ff9bfb3.png",import.meta.url).href;function p(c){let n,s=c[0],i=1;for(;i<c.length;){const e=c[i],o=c[i+1];if(i+=2,(e==="optionalAccess"||e==="optionalCall")&&s==null)return;e==="access"||e==="optionalAccess"?(n=s,s=o(s)):(e==="call"||e==="optionalCall")&&(s=o((...r)=>s.call(n,...r)),n=void 0)}return s}const j={class:"relative"},X={class:"flex items-center h-60 w-60"},z={src:E,alt:"",class:"max-h-full max-w-full"},V={src:F,alt:"",class:"max-h-full max-w-full"},G={src:R,alt:"",class:"max-h-full max-w-full"},H={src:U,alt:"",class:"max-h-full max-w-full"},O={key:0,class:"absolute bottom-0 left-0 w-full"},Y={class:"w-fit mx-auto px-2 pt-1 mb-1 bg-gray-200 dark:bg-gray-700"},J=k({__name:"ProfilePicture",setup(c){const{t:n}=S(),s=v(D()),i=v("");return y(()=>{let e=p([document,"access",a=>a.querySelector,"call",a=>a("html"),"optionalAccess",a=>a.classList,"access",a=>a.contains,"call",a=>a("dark")])?"dark1":"light1",o={dark1:{image:"dark",message:"",expect:"dark",next:"bright"},bright:{image:"bright",message:"that's bright",expect:"light",next:"dark2"},dark2:{image:"dark",message:"better",expect:"dark",next:"light_final"},light1:{image:"light",message:"",expect:"light",next:"nolights"},nolights:{image:"no light",message:"where lights",expect:"dark",next:"light2"},light2:{image:"light",message:"here lights",expect:"light",next:"dark_final"},dark_final:{image:"dark",message:"",expect:"dark",next:"light_final"},light_final:{image:"light",message:"",expect:"light",next:"dark_final"}};function r(){s.value=p([o,"access",a=>a[e],"optionalAccess",a=>a.image]),i.value=p([o,"access",a=>a[e],"optionalAccess",a=>a.message])!==""?n(p([o,"access",a=>a[e],"optionalAccess",a=>a.message])):""}function h(){e=p([o,"access",a=>a[e],"optionalAccess",a=>a.next])}r(),new MutationObserver(function(a){const C=p([document,"access",u=>u.querySelector,"call",u=>u("html"),"optionalAccess",u=>u.classList,"access",u=>u.contains,"call",u=>u("dark")]);o[o[e].next].expect===(C?"dark":"light")&&(h(),r(),e==="bright"?A("picture-bright"):e==="nolights"&&A("picture-nolights"))}).observe(document.querySelector("html"),{attributes:!0,attributeFilter:["class"]})}),(e,o)=>(_(),m("div",j,[t("div",X,[g(t("img",z,null,512),[[f,d(s)==="dark"]]),g(t("img",V,null,512),[[f,d(s)==="light"]]),g(t("img",G,null,512),[[f,d(s)==="bright"]]),g(t("img",H,null,512),[[f,d(s)==="no light"]])]),d(i)?(_(),m("div",O,[t("p",Y,w(d(i)),1)])):b("",!0)]))}});function K(c){let n,s=c[0],i=1;for(;i<c.length;){const e=c[i],o=c[i+1];if(i+=2,(e==="optionalAccess"||e==="optionalCall")&&s==null)return;e==="access"||e==="optionalAccess"?(n=s,s=o(s)):(e==="call"||e==="optionalCall")&&(s=o((...r)=>s.call(n,...r)),n=void 0)}return s}const Q={class:"h-full w-fit"},W={key:0,class:"flex h-full w-full items-center justify-center"},Z=t("span",{class:"animate-ping absolute inline-flex h-5 w-5 rounded-full bg-slate-800 dark:bg-slate-200 opacity-75"},null,-1),ee=[Z],te={id:"gr_grid_widget_1673812364",class:"h-full"},se=k({__name:"Goodreads",setup(c){const n=v(!0);return y(()=>{document.querySelector("#script-goodreads")&&K([document,"access",e=>e.querySelector,"call",e=>e("#script-goodreads"),"optionalAccess",e=>e.remove,"call",e=>e()]);let s=document.createElement("script");s.src="https://www.goodreads.com/review/grid_widget/158866642?cover_size=medium&hide_link=true&hide_title=true&num_books=20&order=d&shelf=currently-reading&sort=date_updated&widget_id=1673812364",s.id="script-goodreads",s.type="text/javascript",document.getElementsByTagName("head")[0].appendChild(s);let i=new MutationObserver(function(e){document.querySelectorAll("#gr_grid_widget_1673812364 > * img").forEach(o=>o.src=o.src.replace("_SX98_","_SY475_")),i.disconnect(),n.value=!1});i.observe(document.querySelector("#gr_grid_widget_1673812364"),{childList:!0})}),(s,i)=>(_(),m("div",Q,[d(n)?(_(),m("div",W,ee)):b("",!0),g(t("div",te,null,512),[[f,!d(n)]])]))}});const ae={class:"flex flex-col md:flex-row md:justify-between items-center h-full"},ie={class:"text-xl order-2 md:order-1 [&>*>p]:mb-2"},oe={class:"text-5xl font-bold mb-5"},ne={key:0},le=t("p",null,[l(" Mi chiamo "),t("span",{"data-popover-target":"popover-name",class:"underline decoration-dashed decoration-slate-900/70 dark:decoration-slate-50/70"},"Xia Tian Cheng"),l(", spesso conosciuto come Xia (cognome) o Riccardo. Studio informatica all'Università di Bologna e al momento i miei interessi sono orientati verso l'analisi dati e l'intelligenza artificiale. ")],-1),ce=t("p",null,[l(" Oltre a premere tasti sulla tastiera, mi piace leggere, sperimentare in cucina "),t("span",{class:"text-xs"},"(preferibilmente con un estintore nei paraggi)"),l(" e giocare a giochi strategici. ")],-1),re=t("p",null,[l(" Secondo "),t("a",{class:"hover:underline italic",href:"https://www.16personalities.com"},"16Personalities"),l(" sono un "),t("a",{class:"font-mono hover:underline",href:"https://www.16personalities.com/profiles/6b57f54bf1242"},"Architetto (INTJ)"),l(". Devo dire che la descrizione è decisamente accurata. ")],-1),de=[le,ce,re],ue={key:1},_e=t("p",null,[l(" My name is "),t("span",{"data-popover-target":"popover-name",class:"underline decoration-dashed decoration-slate-900/70 dark:decoration-slate-50/70"},"Xia Tian Cheng"),l(", frequently known as Xia (surname) or Richard. I am a computer science student at the University of Bologna and currently my interests are focused on data analysis and artificial intelligence. ")],-1),me=t("p",null,[l(" Aside from pressing keys on a keyboard, I like reading, cooking "),t("span",{class:"text-xs"},"(preferably with a fire extinguisher nearby)"),l(" and playing strategic games. ")],-1),he=t("p",null,[l(" According to "),t("a",{class:"hover:underline italic",href:"https://www.16personalities.com"},"16Personalities"),l(" I'm an "),t("a",{class:"font-mono hover:underline",href:"https://www.16personalities.com/profiles/6b57f54bf1242"},"Architect (INTJ)"),l(". I must admit that the description is quite accurate. ")],-1),pe=[_e,me,he],ge={class:"order-1 mb-3 ml-0 md:order-2 md:mb-0 md:ml-10"},fe={class:"mt-5"},xe={class:"text-center text-xl"},ve={class:"flex justify-center h-48"},be=t("div",{"data-popover":"",id:"popover-name",role:"tooltip",class:"absolute z-10 invisible inline-block transition-opacity duration-500 opacity-0"},[t("div",{class:"text-lg px-3 py-2 bg-slate-200 dark:bg-slate-800 rounded"}," 夏天成 ")],-1),Ae=k({__name:"about",setup(c){const{t:n,locale:s}=S(),i=v(s.value);return N({title:n("title_about")}),T(()=>{const e=new Date,o=new Date(2001,8,29),r=e.getMonth()-o.getMonth();let h=e.getFullYear()-o.getFullYear();return(r<0||r===0&&e.getDate()<o.getDate())&&h--,h}),y(()=>{q()}),I(s,()=>{i.value=s.value}),(e,o)=>{const r=L,h=J,$=se,a=B;return _(),m(P,null,[x(r),x(a,null,{default:M(()=>[t("main",null,[t("div",ae,[t("div",ie,[t("h1",oe,w(e.$t("about me")),1),d(i)==="it"?(_(),m("div",ne,de)):b("",!0),d(i)==="en"?(_(),m("div",ue,pe)):b("",!0)]),t("div",ge,[x(h)])]),t("div",fe,[t("p",xe,w(e.$t("reading")),1),t("div",ve,[x($)])])])]),_:1}),be],64)}}});export{Ae as default};
|