Blame view
src/components/SignUp.vue
5.95 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 --> |
de0f96bc5
|
45 |
<div class="sign-wrp"> |
5684145ce
|
46 47 48 49 50 |
<div class="row col-reverse"> <div class="col-sm-3 col-md-1 col-lg-1 col-xl-3"></div> <!-- users land image --> <div class="col-sm-5 col-md-6 col-lg-7 col-xl-4 wc-spc-lf-tp"> <h1> |
56f4b7548
|
51 52 53 54 |
Hello, there!<br /> welcome to spotlight <!-- Welcome to <br /> Productgrowth --> |
5684145ce
|
55 |
</h1> |
988b5d20a
|
56 |
<ul class="sign-in-up-list"> |
5684145ce
|
57 58 |
<li> <img src="../assets/images/check.svg" /><span |
56f4b7548
|
59 |
>Collaborate, Contribute and Explore with fellow product enthusiasts</span |
5684145ce
|
60 61 62 63 |
> </li> <li> <img src="../assets/images/check.svg" /><span |
56f4b7548
|
64 |
>Get access to insightful Case Studies and participate in Roundtables</span |
5684145ce
|
65 66 67 68 |
> </li> <li> <img src="../assets/images/check.svg" /><span |
56f4b7548
|
69 70 71 |
>Engage actively on the Bounce Board - we’re all ears! </span |
5684145ce
|
72 73 |
> </li> |
988b5d20a
|
74 |
</ul> |
5684145ce
|
75 76 77 78 |
</div> <!-- users land image --> <div class="col-sm-4 col-md-4 col-lg-4 col-xl-4"> <div class="form-layout signup-frm-spc"> |
56f4b7548
|
79 80 |
<form v-on:keyup.enter="signup"> <h5>Sign Up using</h5> |
5684145ce
|
81 |
<div class="social-login"> |
56f4b7548
|
82 83 84 85 86 87 88 89 90 91 92 93 94 |
<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
|
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
<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
|
113 |
|
5684145ce
|
114 115 116 117 118 119 120 |
<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
|
121 |
<h3 class="ft-normal">Have an account? <a class="cursor-pointer no-underline" @click="goToLogin">Login</a></h3> |
5684145ce
|
122 123 124 125 126 |
</div> </form> </div> </div> <!-- sign up --> |
de0f96bc5
|
127 |
</div> |
988b5d20a
|
128 129 130 131 132 133 134 |
</div> <!-- body wrapper --> </div> </main> </template> <script> |
988b5d20a
|
135 136 |
import Vue from "vue"; import router from "../router"; |
5684145ce
|
137 |
import axios from "axios"; |
988b5d20a
|
138 139 140 141 142 143 |
export default { name: "SignUp", data() { return { |
5684145ce
|
144 |
userData: {}, |
988b5d20a
|
145 146 |
}; }, |
56f4b7548
|
147 148 149 150 151 |
mounted() { // this.$auth.logout(); localStorage.removeItem("spotlight_usertoken"); localStorage.removeItem("spotlight_email"); }, |
988b5d20a
|
152 |
methods: { |
56f4b7548
|
153 154 155 |
login() { this.$auth.loginWithRedirect(); }, |
5684145ce
|
156 |
goToLogin() { |
56f4b7548
|
157 |
this.$router.push("/login"); |
5684145ce
|
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
}, 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
|
175 176 177 |
}, }; </script> |
56f4b7548
|
178 179 180 181 182 |
<style> .light-font-weight { font-weight: 500 !important; } </style> |