From 3641ee5e2ce64ff2e3e41c8574f93ce4d0cc669f Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 17 May 2021 13:47:23 +0100 Subject: [PATCH] Work in progress, moving login form around a bit. --- packages/builder/assets/google-logo.png | Bin 0 -> 1771 bytes .../src/components/login/GoogleButton.svelte | 41 ++++++++++++++ .../src/components/login/LoginForm.svelte | 53 ++++++++++++++---- 3 files changed, 84 insertions(+), 10 deletions(-) create mode 100644 packages/builder/assets/google-logo.png create mode 100644 packages/builder/src/components/login/GoogleButton.svelte diff --git a/packages/builder/assets/google-logo.png b/packages/builder/assets/google-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..3f52a66ae9619e0bb383d220a449a327560d6135 GIT binary patch literal 1771 zcmV;P)`k0=zBfB zkn`M?`8j|fxCf@%+vGftwhhaK7Gne>{zi-5z}97RWX_k##(G@`1A@Tfqv4ShjOlj= zphhI~r^tOhfI^{jV1Q#XcL$;QC}b6l2+c-HubidYT6F>pC`u8`hnFI{1d(k#Oy=nf z2%sEvXhSsJ#(oz_YD$zwS~C=f)gv(~{{UAocEa z?)X43@~=l}TUX8p0B{uyZ~+ni%za=O`K8x{#=kx6((O;w)o{2GPc>YDyoUzoJujL3 zJ<`d{0Wg_k^(ZimGW6;8HJ{$r!qx{+C^!rT6hTD224SirJAQM->O6gz+s~FjXFl}M z3Fh{a$o3Dip^n>Ns>uanXhxYlNS!}?Ivm$@E=J>BfXT9T^uc8L26e#0cS^MoISy2U zvrOoNDN&g2gUg#KRbV2eFMTi|rMeG}Ehbcg6TYVlj(!UP*L`5$bfrpg%m;MA3Ey)9 z?3#qD1V_9`7o0Yj6W}W`tbqq{0t^SIo^?u}i&PCx_<=4s>P=379pdqxH7t3gD0^1n z;h&`%T((eqTRe)eXAbawgVY-t<~2z{VA=%d z)R6Sg=N&wST1~vB(3hrp4u#IUb0*hCo8Z&o7=185L&>~Nn-cWiXg7oVv@reLZE89i zwWDp50fYSrcdRM_#jp{7h5ub2S2M_aXy!$2)lMV+R2ahHwK^&T03bhVX$yURxpzOP zQk~P9Ke6k@)R;X8hxcR{hVU>=5&J3BmIS|H<~{~`=p?8*R&!bz2Bw~sA&tPrjU>Y3 zQbF+sfB(-0ULSjCroX#wY(ttRv;cth?g}LBq|-9A=fhI0eU#5s$Uw?JZdP7pA?#{# z0_@NjN;ELsd@CZLfk6&tUdBkA6|JCynsZT(sxibo6+(gHtg-pej1JI@YZ;@It-^+^5sS*AMWpQ}yF6 z)&r08yVS0ARj}}KsZcH%!<&vSWIz4R9~!nx@+htOVJW=Hu>gi!wy>zLyNxcG|GBzk z=-!HlPJJ`0NH$*(hlLazX1m`E<1}H=;n@4YE{Qn%O8_G3lKQw=>x9|GqW|g3w?`~E zsnFCSkNAcRSVHQ6`NoK~Vd(D0qrsSFm+_=F=fXyZj+pl)^3hkdpl?l50USuWmpa0G za(rWk_Lkz26bYL<=ye!7nHsjXNha)u#g-W@1=fK}w5&axb%mhFZd*=E0g7K4d8Z!K zWM+hK$QPCB#DZyz#2t!!MkRQ6#R= z^$$I0!#dncgO+aCO|l%uDdd&x+V+6SP#% zcP5-0!J=)b*Tk{B85RKx=S6LS!b=5Suq)PzwfBB-NiVn;+zWo>_8%1)ADpoFWwrnS N002ovPDHLkV1fkhT8IDu literal 0 HcmV?d00001 diff --git a/packages/builder/src/components/login/GoogleButton.svelte b/packages/builder/src/components/login/GoogleButton.svelte new file mode 100644 index 0000000000..ff04e82ebe --- /dev/null +++ b/packages/builder/src/components/login/GoogleButton.svelte @@ -0,0 +1,41 @@ + + +
+ +
+ google icon +

Sign in with Google

+
+ +
+ + diff --git a/packages/builder/src/components/login/LoginForm.svelte b/packages/builder/src/components/login/LoginForm.svelte index f6f4f314c8..2eecbe3078 100644 --- a/packages/builder/src/components/login/LoginForm.svelte +++ b/packages/builder/src/components/login/LoginForm.svelte @@ -2,11 +2,13 @@ import { goto } from "@roxi/routify" import { notifications, - Link, Input, Modal, ModalContent, + Button, + Divider, } from "@budibase/bbui" + import GoogleButton from "./GoogleButton.svelte" import { auth } from "stores/backend" let username = "" @@ -25,35 +27,66 @@ notifications.error("Invalid credentials") } } + + async function forgot() { + + } -