Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

2 linhas
5.6 KiB

  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 u,A as n,t as a,y as x,F as z,d as F,e as N,o as m}from"./index-5dca7a6a.js";import{c as V,g as p}from"./api-2fe5baa7.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"},I=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),P={class:"body-wrapper overflow-hidden"},S={class:"position-relative overflow-hidden min-vh-100 d-flex align-items-center justify-content-center drawise-auth-bg"},A={class:"d-flex align-items-center justify-content-center w-100"},E={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"},es={class:"col-4 col-lg-2 text-center"},os={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=s("p",{class:"fs-8 fw-4 mt-4 text-center"}," Instagram Posts ",-1),hs={class:"col-12"},vs={class:"container"},gs={class:"row"},ms={class:"col-12 col-md-6 col-lg-6 text-center mb-4"},ps=["src"],bs={class:"col-12 col-md-6 col-lg-6 text-center mb-4"},ws=["src"],fs={class:"col-12 col-md-6 col-lg-6 text-center mb-4"},ys=["src"],xs=s("i",{class:"ti ti-chevron-right fs-4 me-2"},null,-1),ks=s("div",{class:"track"},[s("div",{class:"bar"})],-1),$s=s("h3",{style:{"font-size":"1rem","text-align":"center"}},[u("Please Wait."),s("br"),u(" Drawise is creating your Brand and website with AI. it may takes few minutes.")],-1),js=L({__name:"branding",setup(Cs){const l=t(!1),h=t("Loading..."),k=t(),$=B().params.id,b=t(),w=t(),e=t([]),i=t([]),d=t([]),v=t();R(()=>{V(),C()});async function C(){l.value=!0;try{(await p)(`/create_site/sites/${$}/`).then(o=>{console.log(o.data),k.value=o.data.site_name,w.value=o.data.color_swatch,b.value=o.data.company,p("/color_swatches/").then(r=>{console.log(r.data),r.data.forEach(_=>{_.id==w.value&&(e.value=_,p(`/create_site/company/${b.value}/`).then(c=>{v.value=c.data.logo_path,console.log(c.data),i.value=c.data.brand_photo.instagram_brand_post,d.value=c.data.brand_photo.tshirt_brand,console.log(i.value),console.log(d.value),l.value=!1}).catch(c=>{console.log(c),h.value="Failed. Refresh the page"}))})}).catch(r=>{console.log(r),h.value="Failed. Refresh the page"})}).catch(o=>{console.log(o),h.value="Failed. Refresh the page"})}catch(o){console.error(o)}}return(o,r)=>{const _=j("RouterLink");return m(),g("div",D,[I,s("div",P,[s("div",S,[s("div",A,[s("div",E,[l.value?x("",!0):(m(),g("div",T,[f(_,{to:"../../dashboard",class:"btn btn-outline-warning py-8 mb-4 rounded-2"},{default:y(()=>[M,u(" Back To Dashboard")]),_:1}),s("div",W,[s("div",Y,[q,s("div",G,[s("div",H,[s("div",J,[s("img",{src:`https://api.drawise.net${v.value}`,alt:"",width:"200"},null,8,K),s("a",{href:`https://api.drawise.net${v.value}`,download:"",class:"btn"},[Q,u(" Download Logo")],8,O)]),s("div",U,[s("div",X,[s("div",Z,[s("div",ss,[s("div",{class:"color-item",style:n(`background-color: ${e.value.color1}`)},null,4),s("p",null,a(e.value.color1),1)]),s("div",es,[s("div",{class:"color-item",style:n(`background-color: ${e.value.color2}`)},null,4),s("p",null,a(e.value.color2),1)]),s("div",os,[s("div",{class:"color-item",style:n(`background-color: ${e.value.color3}`)},null,4),s("p",null,a(e.value.color3),1)]),s("div",ts,[s("div",{class:"color-item",style:n(`background-color: ${e.value.color4}`)},null,4),s("p",null,a(e.value.color4),1)]),s("div",as,[s("div",{class:"color-item",style:n(`background-color: ${e.value.color5}`)},null,4),s("p",null,a(e.value.color5),1)]),s("div",ls,[s("div",{class:"color-item",style:n(`background-color: ${e.value.color6}`)},null,4),s("p",null,a(e.value.color6),1)])])])]),s("div",cs,[s("img",{class:"rounded drawise-logo-image mb-4",src:`https://api.drawise.net/${d.value[0]}`,alt:""},null,8,ns)]),s("div",is,[s("img",{class:"rounded drawise-logo-image mb-4",src:`https://api.drawise.net/${d.value[1]}`,alt:""},null,8,ds)]),s("div",rs,[s("img",{class:"rounded drawise-logo-image mb-4",src:`https://api.drawise.net/${d.value[2]}`,alt:""},null,8,_s)]),us,s("div",hs,[s("div",vs,[s("div",gs,[s("div",ms,[s("img",{class:"rounded drawise-logo-image",src:`https://api.drawise.net/${i.value[0]}`,alt:""},null,8,ps)]),s("div",bs,[s("img",{class:"rounded drawise-logo-image",src:`https://api.drawise.net/${i.value[1]}`,alt:""},null,8,ws)]),s("div",fs,[s("img",{class:"rounded drawise-logo-image",src:`https://api.drawise.net/${i.value[2]}`,alt:""},null,8,ys)])])])])])]),f(_,{to:{name:"pricing"},disabled:l.value,class:"btn btn-success w-100 py-8 mb-4 rounded-2"},{default:y(()=>[u(a(l.value?"Loading ... ":"Continue")+" ",1),xs]),_:1},8,["disabled"])])])])),l.value?(m(),g(z,{key:1},[ks,$s],64)):x("",!0)])])])])])}}});export{js as default};