mirror of
https://github.com/Rakantor/personal-portfolio.git
synced 2026-05-06 12:41:05 +02:00
deploy
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import{_ as w,o as n,h as d,w as e,b as t,G as _,H as f,c as m,F as h,g as v,I as g,J as y,t as o,n as L,a as c,m as r,d as i,K as C,z as D,L as A,p as B,E as I,x as N,M as S,N as b,O as z,P as E,V as U,e as u,D as $,Q as F,R as M,S as R,T,U as H}from"./Dhg5knF6.js";const j=""+new URL("avatar_blueish.DLBh9fAt.png",import.meta.url).href,P={name:"DefaultLayout",setup(){const{smAndDown:a}=H();return{smAndDown:a}},data:()=>({projectUrl:"https://github.com/Rakantor/personal-portfolio",availableLocales:[{code:"en",name:"English"},{code:"de",name:"Deutsch"}],pages:[{icon:"mdi-home",title:"headerHome",url:"/"},{icon:"mdi-text-account",title:"headerAbout",url:"/bio"},{icon:"mdi-briefcase",title:"headerWork",url:"/portfolio"}],drawer:!1}),methods:{changeLocale(a){this.$i18n.setLocale(a),localStorage.setItem("lang",a)}},created(){const a=localStorage.getItem("lang")||this.$i18n.locale;a!=this.$i18n.locale&&this.$i18n.setLocale(a)}},W={class:"pa-2"},G={class:"text-caption text-no-wrap"};function J(a,s,K,V,O,k){return n(),d(T,{class:"v-app-bg"},{default:e(()=>[t(_,{"model-value":a.drawer,location:"right",app:"","disable-resize-watcher":""},{append:e(()=>[c("div",W,[t(r,{block:"",outlined:"",color:"primary","prepend-icon":"mdi-email-outline",href:`mailto:<${a.$config.public.myEmail}>`},{default:e(()=>[...s[2]||(s[2]=[i(" Contact ",-1)])]),_:1},8,["href"])])]),default:e(()=>[t(f,{nav:"",lines:!1},{default:e(()=>[(n(!0),m(h,null,v(a.pages,(l,p)=>(n(),d(g,{key:p,to:l.url,"active-color":"primary",router:"",exact:""},{prepend:e(()=>[t(L,{icon:l.icon},null,8,["icon"])]),default:e(()=>[t(y,{textContent:o(a.$t(l.title))},null,8,["textContent"])]),_:2},1032,["to"]))),128))]),_:1})]),_:1},8,["model-value"]),t(C,{app:"",color:"background",class:"px-md-10 py-md-4"},{prepend:e(()=>[t(N,{size:"48",color:"surface",style:{cursor:"pointer"},onClick:s[0]||(s[0]=l=>a.$router.push("/"))},{default:e(()=>[...s[3]||(s[3]=[c("img",{src:j,width:"55"},null,-1)])]),_:1})]),default:e(()=>[t(D),V.smAndDown?(n(),d(A,{key:0,onClick:s[1]||(s[1]=B(l=>a.drawer=!a.drawer,["stop"]))})):(n(),d(I,{key:1,"model-value":0,mandatory:"",variant:"plain","selected-class":"link-active"},{default:e(()=>[t(r,{ripple:!1,to:"/"},{default:e(()=>[i(o(a.$t("headerHome")),1)]),_:1}),t(r,{ripple:!1,to:"/bio"},{default:e(()=>[i(o(a.$t("headerAbout")),1)]),_:1}),t(r,{ripple:!1,to:"/portfolio"},{default:e(()=>[i(o(a.$t("headerWork")),1)]),_:1}),t(r,{ripple:!1,href:`mailto:<${a.$config.public.myEmail}>`},{default:e(()=>[i(o(a.$t("headerContact")),1)]),_:1},8,["href"])]),_:1}))]),_:1}),t(S,null,{default:e(()=>[t(b,{class:"pa-md-16 my-16"},{default:e(()=>[z(a.$slots,"default",{},void 0,!0)]),_:3})]),_:3}),t(E,{app:"",absolute:"",color:"transparent",style:{"border-top":"1px solid rgba(var(--v-theme-on-surface), 0.1)"}},{default:e(()=>[t(b,{class:"d-flex py-0 my-0"},{default:e(()=>[t(U,{"no-gutters":""},{default:e(()=>[t(u,{cols:"4",class:$(["my-auto",a.$vuetify.display.mobile?"text-left":"text-center"])},{default:e(()=>[t(r,{variant:"plain",size:"x-small",density:"compact",color:"on-surface",ripple:!1,class:"link",to:"/imprint"},{default:e(()=>[i(o(a.$t("imprint")),1)]),_:1})]),_:1},8,["class"]),t(u,{cols:"4",class:"text-center my-auto"},{default:e(()=>[c("span",G," © "+o(new Date().getFullYear())+" "+o(a.$config.public.myName),1)]),_:1}),t(u,{cols:"4",class:$(["my-auto",a.$vuetify.display.mobile?"text-right":"text-center"])},{default:e(()=>[t(r,{variant:"plain",icon:"mdi-github",density:"comfortable",color:"on-surface",ripple:!1,class:"link",href:a.projectUrl,target:"_blank"},null,8,["href"]),t(F,{location:"top right","close-on-content-click":!1},{activator:e(({props:l})=>[t(r,R(l,{variant:"plain",icon:"mdi-translate",density:"comfortable",color:"on-surface",ripple:!1,class:"link"}),null,16)]),default:e(()=>[t(f,{nav:"","min-width":"150"},{default:e(()=>[t(M,null,{default:e(()=>[i(o(a.$t("lang").toUpperCase()),1)]),_:1}),(n(!0),m(h,null,v(a.availableLocales,l=>(n(),d(g,{key:l.code,value:l,active:l.code==a.$i18n.locale,"active-color":"primary"},{default:e(()=>[t(y,{onClick:p=>k.changeLocale(l.code)},{default:e(()=>[i(o(l.name),1)]),_:2},1032,["onClick"])]),_:2},1032,["value","active"]))),128))]),_:1})]),_:1})]),_:1},8,["class"])]),_:1})]),_:1})]),_:1})]),_:3})}const Y=w(P,[["render",J],["__scopeId","data-v-49c35caf"]]);export{Y as default};
|
||||
Reference in New Issue
Block a user