Blame view

src/components/SignUp.vue 5.31 KB
988b5d20a   Digvijay Singh   new changes
1
2
  <template>
    <main class="landing-page">
5684145ce   Digvijay Singh   reset password,ot...
3
      <div class="container-fluid main-wrp">
988b5d20a   Digvijay Singh   new changes
4
        <nav class="navbar navbar-expand-sm spotLight-nav">
5684145ce   Digvijay Singh   reset password,ot...
5
6
7
8
9
10
11
12
13
14
15
16
          <a class="navbar-brand" href="#"
            ><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   Digvijay Singh   new changes
17
18
19
20
            <span class="navbar-toggler-icon"></span>
            <span class="navbar-toggler-icon"></span>
            <span class="navbar-toggler-icon"></span>
          </button>
5684145ce   Digvijay Singh   reset password,ot...
21

988b5d20a   Digvijay Singh   new changes
22
23
24
25
26
27
28
29
30
31
32
33
          <div class="collapse navbar-collapse" id="navbarsExample03">
            <ul class="navbar-nav mr-auto">
              <li class="nav-item active">
                <a class="nav-link" href="#">About</a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="#">Masterclass</a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="#">Stories</a>
              </li>
              <li class="nav-item spotLight-img">
5684145ce   Digvijay Singh   reset password,ot...
34
35
36
                <a class="nav-link" href="#"
                  ><img src="../assets/images/SPOTLight.svg"
                /></a>
988b5d20a   Digvijay Singh   new changes
37
38
39
40
41
42
              </li>
              <li class="nav-item">
                <a class="nav-link" href="#">Library</a>
              </li>
            </ul>
          </div>
5684145ce   Digvijay Singh   reset password,ot...
43
44
        </nav>
        <!-- menu wrapper -->
de0f96bc5   Gurvinder Singh   new files
45
        <div class="sign-wrp">
5684145ce   Digvijay Singh   reset password,ot...
46
47
48
49
50
51
52
53
          <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>
                Welcome to <br />
                Productgrowth
              </h1>
988b5d20a   Digvijay Singh   new changes
54
              <ul class="sign-in-up-list">
5684145ce   Digvijay Singh   reset password,ot...
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
                <li>
                  <img src="../assets/images/check.svg" /><span
                    >Connect & learn from fellow product enthusiasts</span
                  >
                </li>
                <li>
                  <img src="../assets/images/check.svg" /><span
                    >Share & pickup deeper insights from real world products</span
                  >
                </li>
                <li>
                  <img src="../assets/images/check.svg" /><span
                    >Access to XX Casestudies</span
                  >
                </li>
988b5d20a   Digvijay Singh   new changes
70
              </ul>
5684145ce   Digvijay Singh   reset password,ot...
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
            </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">
                <form>
                  <h5>SignUp Using</h5>
                  <div class="social-login">
                    <ul>
                      <li>
                        <a href="#"><img src="../assets/images/google.svg" /></a>
                      </li>
                      <li>
                        <a href="#"><img src="../assets/images/linkdin.svg" /></a>
                      </li>
                      <li>
                        <a href="#"><img src="../assets/images/twitter.svg" /></a>
                      </li>
                    </ul>
                  </div>
                  <h5>or Signup with email</h5>
                  <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   Digvijay Singh   new changes
109

5684145ce   Digvijay Singh   reset password,ot...
110
111
112
113
114
115
116
117
118
119
120
121
122
                    <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>
                    <h3>Have an account? <a @click="goToLogin">Login</a></h3>
                  </div>
                </form>
              </div>
            </div>
            <!-- sign up -->
de0f96bc5   Gurvinder Singh   new files
123
          </div>
988b5d20a   Digvijay Singh   new changes
124
125
126
127
128
129
130
        </div>
        <!-- body wrapper -->
      </div>
    </main>
  </template>
  
  <script>
988b5d20a   Digvijay Singh   new changes
131
132
  import Vue from "vue";
  import router from "../router";
5684145ce   Digvijay Singh   reset password,ot...
133
  import axios from "axios";
988b5d20a   Digvijay Singh   new changes
134
135
136
137
138
139
  
  export default {
    name: "SignUp",
  
    data() {
      return {
5684145ce   Digvijay Singh   reset password,ot...
140
        userData: {},
988b5d20a   Digvijay Singh   new changes
141
142
143
144
      };
    },
    mounted() {},
    methods: {
5684145ce   Digvijay Singh   reset password,ot...
145
      goToLogin() {
988b5d20a   Digvijay Singh   new changes
146
        this.$router.push("/");
5684145ce   Digvijay Singh   reset password,ot...
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
      },
      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   Digvijay Singh   new changes
164
165
166
    },
  };
  </script>