You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

branding-6fbb4341.js 5.4 KiB

9 maanden geleden
1
  1. import{j as L,k as t,z as B,s as R,r as j,c as g,a as s,b as f,w as y,i as d,A as c,t as a,y as x,F as z,d as F,e as N,o as m}from"./index-b3134325.js";import{c as V,g as p}from"./api-04371953.js";const D={class:"page-wrapper",id:"app","data-layout":"horizontal","data-navbarbg":"skin6","data-sidebartype":"full","data-sidebar-position":"fixed","data-header-position":"fixed"},S=F('<header class="app-header"><nav class="navbar navbar-expand-lg navbar-light container-fluid px-0"><ul class="navbar-nav"><li class="nav-item d-block d-lg-none"><a class="nav-link sidebartoggler ms-n3" id="sidebarCollapse" href="javascript:void(0)"><i class="ti ti-menu-2"></i></a></li><li class="nav-item d-none d-lg-block"><a href="index.html" class="text-nowrap nav-link"><img src="'+N+'" class="light-logo" width="180" alt=""></a></li></ul></nav></header>',1),A={class:"body-wrapper overflow-hidden"},E={class:"position-relative overflow-hidden min-vh-100 d-flex align-items-center justify-content-center drawise-auth-bg"},I={class:"d-flex align-items-center justify-content-center w-100"},P={class:"row justify-content-center w-100"},T={key:0,class:"col-md-8 col-lg-8 col-xxl-8"},M=s("i",{class:"ti ti-chevron-left fs-4 me-2"},null,-1),W={class:"card mb-0"},Y={class:"card-body"},q=s("h1",{class:"display-6 fs-7 mb-4 text-center"}," Your Branding Logo and Color ",-1),G={class:"container"},H={class:"row"},J={class:"col-12"},K=["src"],O=["href"],Q=s("i",{class:"ti ti-download fs-4 me-2"},null,-1),U={class:"col-12 mt-4"},X={class:"container"},Z={class:"row"},ss={class:"col-4 col-lg-2 text-center"},os={class:"col-4 col-lg-2 text-center"},es={class:"col-4 col-lg-2 text-center"},ts={class:"col-4 col-lg-2 text-center"},as={class:"col-4 col-lg-2 text-center"},ls={class:"col-4 col-lg-2 text-center"},cs={class:"col-12"},ns=["src"],is={class:"col-12"},ds=["src"],rs={class:"col-12"},_s=["src"],us={class:"col-12"},hs={class:"container"},vs={class:"row"},gs={class:"col-12 col-md-6 col-lg-6 text-center mb-4"},ms=["src"],ps={class:"col-12 col-md-6 col-lg-6 text-center mb-4"},bs=["src"],ws={class:"col-12 col-md-6 col-lg-6 text-center mb-4"},fs=["src"],ys=s("i",{class:"ti ti-chevron-right fs-4 me-2"},null,-1),xs=s("div",{class:"track"},[s("div",{class:"bar"})],-1),ks=s("h3",{style:{"font-size":"1rem","text-align":"center"}},[d("Please Wait."),s("br"),d(" Drawise is creating your Brand and website with AI. it may takes few minutes.")],-1),Rs=L({__name:"branding",setup($s){const l=t(!1),_=t("Loading..."),k=t(),b=B().params.id,$=t(),w=t(),o=t([]),u=t([]),h=t([]),v=t();R(()=>{V(),C()});async function C(){l.value=!0;try{(await p)(`company/${b}/`).then(e=>{console.log(e.data),k.value=e.data.site_name,w.value=e.data.color_swatch,$.value=e.data.company,p("/colorswatch/").then(n=>{console.log(n.data),n.data.forEach(i=>{i.id==w.value&&(o.value=i,p(`/company/${b}/`).then(r=>{v.value=r.data.logo_path,console.log(r.data),l.value=!1}).catch(r=>{console.log(r),_.value="Failed. Refresh the page"}))})}).catch(n=>{console.log(n),_.value="Failed. Refresh the page"})}).catch(e=>{console.log(e),_.value="Failed. Refresh the page"})}catch(e){console.error(e)}}return(e,n)=>{const i=j("RouterLink");return m(),g("div",D,[S,s("div",A,[s("div",E,[s("div",I,[s("div",P,[l.value?x("",!0):(m(),g("div",T,[f(i,{to:"../../dashboard",class:"btn btn-outline-warning py-8 mb-4 rounded-2"},{default:y(()=>[M,d(" Back To Dashboard")]),_:1}),s("div",W,[s("div",Y,[q,s("div",G,[s("div",H,[s("div",J,[s("img",{src:`${v.value}`,alt:"",width:"200"},null,8,K),s("a",{href:`${v.value}`,download:"",class:"btn"},[Q,d(" Download Logo")],8,O)]),s("div",U,[s("div",X,[s("div",Z,[s("div",ss,[s("div",{class:"color-item",style:c(`background-color: ${o.value.color1}`)},null,4),s("p",null,a(o.value.color1),1)]),s("div",os,[s("div",{class:"color-item",style:c(`background-color: ${o.value.color2}`)},null,4),s("p",null,a(o.value.color2),1)]),s("div",es,[s("div",{class:"color-item",style:c(`background-color: ${o.value.color3}`)},null,4),s("p",null,a(o.value.color3),1)]),s("div",ts,[s("div",{class:"color-item",style:c(`background-color: ${o.value.color4}`)},null,4),s("p",null,a(o.value.color4),1)]),s("div",as,[s("div",{class:"color-item",style:c(`background-color: ${o.value.color5}`)},null,4),s("p",null,a(o.value.color5),1)]),s("div",ls,[s("div",{class:"color-item",style:c(`background-color: ${o.value.color6}`)},null,4),s("p",null,a(o.value.color6),1)])])])]),s("div",cs,[s("img",{class:"rounded drawise-logo-image mb-4",src:`https://api.drawise.net/${h.value[0]}`,alt:""},null,8,ns)]),s("div",is,[s("img",{class:"rounded drawise-logo-image mb-4",src:`https://api.drawise.net/${h.value[1]}`,alt:""},null,8,ds)]),s("div",rs,[s("img",{class:"rounded drawise-logo-image mb-4",src:`https://api.drawise.net/${h.value[2]}`,alt:""},null,8,_s)]),s("div",us,[s("div",hs,[s("div",vs,[s("div",gs,[s("img",{class:"rounded drawise-logo-image",src:`https://api.drawise.net/${u.value[0]}`,alt:""},null,8,ms)]),s("div",ps,[s("img",{class:"rounded drawise-logo-image",src:`https://api.drawise.net/${u.value[1]}`,alt:""},null,8,bs)]),s("div",ws,[s("img",{class:"rounded drawise-logo-image",src:`https://api.drawise.net/${u.value[2]}`,alt:""},null,8,fs)])])])])])]),f(i,{to:{name:"pricing"},disabled:l.value,class:"btn btn-success w-100 py-8 mb-4 rounded-2"},{default:y(()=>[d(a(l.value?"Loading ... ":"Continue")+" ",1),ys]),_:1},8,["disabled"])])])])),l.value?(m(),g(z,{key:1},[xs,ks],64)):x("",!0)])])])])])}}});export{Rs as default};