Files
notxia.github.io/_nuxt/about.d108520b.js
2024-01-24 19:37:48 +00:00

2 lines
7.2 KiB
JavaScript

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