Blame view
src/components/SignUp.vue
5.91 KB
988b5d20a
|
1 2 |
<template> <main class="landing-page"> |
5684145ce
|
3 |
<div class="container-fluid main-wrp"> |
988b5d20a
|
4 |
<nav class="navbar navbar-expand-sm spotLight-nav"> |
56f4b7548
|
5 |
<a class="navbar-brand" href="javascript:void(0);" |
5684145ce
|
6 7 8 9 10 11 12 13 14 15 16 |
><img src="../assets/images/logo.png" /></a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample03" aria-controls="navbarsExample03" aria-expanded="false" aria-label="Toggle navigation" > |
988b5d20a
|
17 18 19 20 |
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span> </button> |
5684145ce
|
21 |
|
988b5d20a
|
22 23 24 |
<div class="collapse navbar-collapse" id="navbarsExample03"> <ul class="navbar-nav mr-auto"> <li class="nav-item active"> |
56f4b7548
|
25 |
<a class="nav-link" href="javascript:void(0);">About</a> |
988b5d20a
|
26 27 |
</li> <li class="nav-item"> |
56f4b7548
|
28 |
<a class="nav-link" href="javascript:void(0);">Masterclass</a> |
988b5d20a
|
29 30 |
</li> <li class="nav-item"> |
56f4b7548
|
31 |
<a class="nav-link" href="javascript:void(0);">Stories</a> |
988b5d20a
|
32 33 |
</li> <li class="nav-item spotLight-img"> |
56f4b7548
|
34 |
<a class="nav-link" href="javascript:void(0);" |
5684145ce
|
35 36 |
><img src="../assets/images/SPOTLight.svg" /></a> |
988b5d20a
|
37 38 |
</li> <li class="nav-item"> |
56f4b7548
|
39 |
<a class="nav-link" href="javascript:void(0);">Library</a> |
988b5d20a
|
40 41 42 |
</li> </ul> </div> |
5684145ce
|
43 44 |
</nav> <!-- menu wrapper --> |
f2328546d
|
45 |
<div class="sign-login-wrp"> |
5684145ce
|
46 |
<!-- users land image --> |
f2328546d
|
47 |
<div class="s-l-left-section"> |
5684145ce
|
48 |
<h1> |
56f4b7548
|
49 50 51 52 |
Hello, there!<br /> welcome to spotlight <!-- Welcome to <br /> Productgrowth --> |
5684145ce
|
53 |
</h1> |
988b5d20a
|
54 |
<ul class="sign-in-up-list"> |
5684145ce
|
55 56 |
<li> <img src="../assets/images/check.svg" /><span |
56f4b7548
|
57 |
>Collaborate, Contribute and Explore with fellow product enthusiasts</span |
5684145ce
|
58 59 60 61 |
> </li> <li> <img src="../assets/images/check.svg" /><span |
56f4b7548
|
62 |
>Get access to insightful Case Studies and participate in Roundtables</span |
5684145ce
|
63 64 65 66 |
> </li> <li> <img src="../assets/images/check.svg" /><span |
56f4b7548
|
67 68 69 |
>Engage actively on the Bounce Board - we’re all ears! </span |
5684145ce
|
70 71 |
> </li> |
988b5d20a
|
72 |
</ul> |
5684145ce
|
73 74 |
</div> <!-- users land image --> |
f2328546d
|
75 76 |
<div class="s-l-right-section"> <div class="form-layout"> |
56f4b7548
|
77 78 |
<form v-on:keyup.enter="signup"> <h5>Sign Up using</h5> |
5684145ce
|
79 |
<div class="social-login"> |
56f4b7548
|
80 81 82 83 84 85 86 87 88 89 90 91 92 |
<ul> <li> <a @click="login" class="cursor-pointer"><img src="../assets/images/google.svg" /></a> </li> <li> <a @click="login" class="cursor-pointer"><img src="../assets/images/linkdin.svg" /></a> </li> <li> <a @click="login" class="cursor-pointer"><img src="../assets/images/twitter.svg" /></a> </li> </ul> </div> <h5>or Sign Up with Email</h5> |
5684145ce
|
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
<div class="fill-form"> <label for="inputEmail" class="sr-only">Email address</label> <input type="email" id="inputEmail" class="form-control" placeholder="Your Email ID" autocomplete="off" v-model="userData.email" /> <label for="inputPassword" class="sr-only">Password</label> <input type="password" id="inputPassword" class="form-control" placeholder="Password" v-model="userData.password" /> |
988b5d20a
|
111 |
|
5684145ce
|
112 113 114 115 116 117 118 |
<a href="javascript:void(0);" class="btn btn-lg sb-button" @click="signup"> <img src="../assets/images/user-plus.svg" /> Create Account </a> <p class=""> By signing up I agree to the <a>Privacy Policy</a> and <a>Terms of Service</a> </p> |
56f4b7548
|
119 |
<h3 class="ft-normal">Have an account? <a class="cursor-pointer no-underline" @click="goToLogin">Login</a></h3> |
5684145ce
|
120 121 122 123 124 |
</div> </form> </div> </div> <!-- sign up --> |
f2328546d
|
125 |
|
988b5d20a
|
126 127 128 129 130 131 132 |
</div> <!-- body wrapper --> </div> </main> </template> <script> |
988b5d20a
|
133 134 |
import Vue from "vue"; import router from "../router"; |
5684145ce
|
135 |
import axios from "axios"; |
988b5d20a
|
136 137 138 139 140 141 |
export default { name: "SignUp", data() { return { |
5684145ce
|
142 |
userData: {}, |
988b5d20a
|
143 144 |
}; }, |
56f4b7548
|
145 146 |
mounted() { // this.$auth.logout(); |
f2328546d
|
147 148 149 150 151 152 |
// localStorage.removeItem("spotlight_usertoken"); var userdata = localStorage.getItem("spotlight_usertoken"); if (userdata) { this.$router.push("/profile"); } // localStorage.removeItem("spotlight_email"); |
56f4b7548
|
153 |
}, |
988b5d20a
|
154 |
methods: { |
56f4b7548
|
155 156 157 |
login() { this.$auth.loginWithRedirect(); }, |
5684145ce
|
158 |
goToLogin() { |
56f4b7548
|
159 |
this.$router.push("/login"); |
5684145ce
|
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
}, signup() { axios .post("/signup", this.userData) .then((response) => { this.$toaster.success(response.data.message); if(response.data.status == 'success'){ localStorage.setItem('spotlight_email', this.userData.email); this.$router.push({ name: 'Otp', params: { flag: false }}); } }) .catch( (error) =>{ if (error.response) { this.$toaster.error(error.response.data.message); } }); }, |
988b5d20a
|
177 178 179 |
}, }; </script> |
56f4b7548
|
180 181 182 183 184 |
<style> .light-font-weight { font-weight: 500 !important; } </style> |