Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

2 righe
5.8 KiB

  1. import{j as F,k as o,z as L,s as R,r as S,c as m,a,i as u,A as i,t as l,b as j,w as z,y as x,F as B,d as N,p as V,q as A,e as D,o as b,_ as E}from"./index-5dca7a6a.js";import{c as P,g as f,p as T}from"./api-2fe5baa7.js";const n=d=>(V("data-v-52dc9373"),d=d(),A(),d),q={class:"page-wrapper",id:"app","data-layout":"horizontal","data-navbarbg":"skin6","data-sidebartype":"full","data-sidebar-position":"fixed","data-header-position":"fixed"},M=N('<header class="app-header" data-v-52dc9373><nav class="navbar navbar-expand-lg navbar-light container-fluid px-0" data-v-52dc9373><ul class="navbar-nav" data-v-52dc9373><li class="nav-item d-block d-lg-none" data-v-52dc9373><a class="nav-link sidebartoggler ms-n3" id="sidebarCollapse" href="javascript:void(0)" data-v-52dc9373><i class="ti ti-menu-2" data-v-52dc9373></i></a></li><li class="nav-item d-none d-lg-block" data-v-52dc9373><a href="index.html" class="text-nowrap nav-link" data-v-52dc9373><img src="'+D+'" class="light-logo" width="180" alt="" data-v-52dc9373></a></li></ul></nav></header>',1),W={class:"body-wrapper overflow-hidden"},Y={class:"position-relative overflow-hidden min-vh-100 d-flex align-items-center justify-content-center drawise-auth-bg"},G={class:"d-flex align-items-center justify-content-center w-100"},H={class:"row justify-content-center w-100"},J={key:0,class:"col-md-8 col-lg-8 col-xxl-8"},K={class:"card mb-0"},O={class:"card-body"},Q=n(()=>a("h1",{class:"display-6 fs-7 mb-4 text-center"}," Your Branding Logo and Color ",-1)),U={class:"container"},X={class:"row"},Z={class:"col-12"},aa=["src"],ea=["href"],sa=n(()=>a("i",{class:"ti ti-download fs-4 me-2"},null,-1)),ta={class:"col-12 mt-4"},oa={class:"container"},la={class:"row"},ca={class:"col-4 col-lg-2 text-center"},ia={class:"col-4 col-lg-2 text-center"},na={class:"col-4 col-lg-2 text-center"},da={class:"col-4 col-lg-2 text-center"},ra={class:"col-4 col-lg-2 text-center"},_a={class:"col-4 col-lg-2 text-center"},va={class:"col-12"},ua=["src"],ha={class:"col-12"},pa=["src"],ga={class:"col-12"},ma=["src"],ba=n(()=>a("p",{class:"fs-8 fw-4 mt-4 text-center"}," Instagram Posts ",-1)),fa={class:"col-12"},wa={class:"container"},ya={class:"row"},xa={class:"col-12 col-md-6 col-lg-6 text-center mb-4"},ka=["src"],$a={class:"col-12 col-md-6 col-lg-6 text-center mb-4"},Ca=["src"],Ia={class:"col-12 col-md-6 col-lg-6 text-center mb-4"},Fa=["src"],La=n(()=>a("i",{class:"ti ti-chevron-right fs-4 me-2"},null,-1)),Ra=n(()=>a("div",{class:"track"},[a("div",{class:"bar"})],-1)),Sa=n(()=>a("h3",{style:{"font-size":"1rem","text-align":"center"}},[u("Please Wait."),a("br"),u(" Drawise is creating your Brand and website with AI. it may takes few minutes.")],-1)),ja=F({__name:"branding",setup(d){const s=o(!1),r=o("Continue"),k=o(),w=L(),$=w.params.id,C=w.params.company,y=o(),e=o([]),t=o([]),h=o();R(()=>{P(),I()});async function I(){s.value=!0;try{(await f)(`/create_site/sites/${$}/`).then(c=>{console.log(c.data),k.value=c.data.site_name,y.value=c.data.color_swatch,f("/color_swatches/").then(p=>{console.log(p.data),p.data.forEach(_=>{_.id==y.value&&(e.value=_,f(`/create_site/company/${C}/`).then(v=>{console.log(v.data),h.value=v.data.logo_path,T("/create_icon/brand_create/",{logo_path:v.data.logo_path,company_id:v.data.id}).then(g=>{g.data&&(console.log("branding",g.data),t.value=g.data,console.log(t.value),s.value=!1)}).catch(()=>{s.value=!1,r.value="Failed. Try Again"})}).catch(()=>{s.value=!1,r.value="Failed. Refresh the page"}))})}).catch(()=>{s.value=!1,r.value="Failed. Refresh the page"})}).catch(()=>{s.value=!1,r.value="Failed. Refresh the page"})}catch(c){console.error(c)}}return(c,p)=>{const _=S("RouterLink");return b(),m("div",q,[M,a("div",W,[a("div",Y,[a("div",G,[a("div",H,[s.value?x("",!0):(b(),m("div",J,[a("div",K,[a("div",O,[Q,a("div",U,[a("div",X,[a("div",Z,[a("img",{src:`https://api.drawise.net${h.value}`,alt:"",width:"200"},null,8,aa),a("a",{href:`https://api.drawise.net${h.value}`,download:"",class:"btn"},[sa,u(" Download Logo")],8,ea)]),a("div",ta,[a("div",oa,[a("div",la,[a("div",ca,[a("div",{class:"color-item",style:i(`background-color: ${e.value.color1}`)},null,4),a("p",null,l(e.value.color1),1)]),a("div",ia,[a("div",{class:"color-item",style:i(`background-color: ${e.value.color2}`)},null,4),a("p",null,l(e.value.color2),1)]),a("div",na,[a("div",{class:"color-item",style:i(`background-color: ${e.value.color3}`)},null,4),a("p",null,l(e.value.color3),1)]),a("div",da,[a("div",{class:"color-item",style:i(`background-color: ${e.value.color4}`)},null,4),a("p",null,l(e.value.color4),1)]),a("div",ra,[a("div",{class:"color-item",style:i(`background-color: ${e.value.color5}`)},null,4),a("p",null,l(e.value.color5),1)]),a("div",_a,[a("div",{class:"color-item",style:i(`background-color: ${e.value.color6}`)},null,4),a("p",null,l(e.value.color6),1)])])])]),a("div",va,[a("img",{class:"rounded drawise-logo-image mb-4",src:`https://api.drawise.net/${t.value[0]}`,alt:""},null,8,ua)]),a("div",ha,[a("img",{class:"rounded drawise-logo-image mb-4",src:`https://api.drawise.net/${t.value[1]}`,alt:""},null,8,pa)]),a("div",ga,[a("img",{class:"rounded drawise-logo-image mb-4",src:`https://api.drawise.net/${t.value[2]}`,alt:""},null,8,ma)]),ba,a("div",fa,[a("div",wa,[a("div",ya,[a("div",xa,[a("img",{class:"rounded drawise-logo-image",src:`https://api.drawise.net/${t.value[3]}`,alt:""},null,8,ka)]),a("div",$a,[a("img",{class:"rounded drawise-logo-image",src:`https://api.drawise.net/${t.value[4]}`,alt:""},null,8,Ca)]),a("div",Ia,[a("img",{class:"rounded drawise-logo-image",src:`https://api.drawise.net/${t.value[5]}`,alt:""},null,8,Fa)])])])])])]),j(_,{to:{name:"pricing"},disabled:s.value,class:"btn btn-success w-100 py-8 mb-4 rounded-2"},{default:z(()=>[u(l(s.value?"Loading ... ":"Continue")+" ",1),La]),_:1},8,["disabled"])])])])),s.value?(b(),m(B,{key:1},[Ra,Sa],64)):x("",!0)])])])])])}}});const Na=E(ja,[["__scopeId","data-v-52dc9373"]]);export{Na as default};