Blame view
src/components/outro.vue
9.4 KB
921970bb2
|
1 2 |
<template> <main class="landing-page"> |
c65b51996
|
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<div class="container-fluid episode-intro"> <nav class="navbar navbar-expand-sm spotLight-nav"> <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" > |
921970bb2
|
17 18 19 20 21 |
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span> </button> <div class="user-profile-photo insights-profile"> |
c65b51996
|
22 |
<a href="#"><img src="../assets/images/user.png" /></a> |
921970bb2
|
23 24 25 |
</div> </nav> <!-- menu wrapper --> |
c65b51996
|
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
<div class="intro-startup"> <div class="thanks-wrapper"> <div class="thanks-l-wrp"> <div class="thanks-pay-wrp"> <!-- <img src="../assets/images/thanks.svg" class="thanks-img" /> --> <img :src="currentSlideData.payload.metaData.authorImage[0]" class="thanks-img" /> <div class="blacktext-wrp"> CHeck out other case studies here <img src="../assets/images/arrow-bottom.svg" /> </div> <ul class="" > <li v-for="(study, i) in caseStudies" :key="i"> <a href="javascript:void(0);"> <img :src="study.intro.logoURL" /> <span ><img src="../assets/images/p-eye.svg" /> 0 Views</span > </a> </li> <!-- <li class="payments-spc-57"> <a href="#"> <img src="../assets/images/g-pay.svg" /> <span ><img src="../assets/images/p-eye.svg" /> 19.4k Views</span > </a> </li> |
921970bb2
|
56 |
<li> |
c65b51996
|
57 58 59 60 61 62 63 64 65 66 67 68 69 70 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 |
<a href="#"> <img src="../assets/images/bb.svg" /> <span ><img src="../assets/images/p-eye.svg" /> 19.4k Views</span > </a> </li> --> </ul> <!-- payments options --> <!-- <ul class=""> <li> <a href="#"> <img src="../assets/images/payment.svg" /> <span ><img src="../assets/images/p-eye.svg" /> 19.4k Views</span > </a> </li> <li class="payments-spc-57"> <a href="#"> <img src="../assets/images/uc.svg" /> <span ><img src="../assets/images/p-eye.svg" /> 19.4k Views</span > </a> </li> </ul> --> <!-- payments options --> </div> <!-- thanks pay wrp --> <img src="../assets/images/spot-light-bt.svg" class="payment-spot-light-bt" /> </div> <!-- thanks left wrp --> <div class="thanks-r-section"> <div class="logo-common-wrp"> <a href="javascript:void(0);" ><img src="../assets/images/ps-growth.svg" /> <span>Product Growth</span> </a> </div> <!-- logo wrp --> |
921970bb2
|
104 |
<div class="clearfix"></div> |
c65b51996
|
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
<p> Don’t forget to <strong> join the discussion </strong> by scrolling back and adding your comments! </p> <div class="clearfix"></div> <a href="javascript:void(0);" class="back-bt" @click="goToProfile"> <span class="s1"></span> <span class="s2"></span> <span class="s3"></span> <span class="s4"></span> <img src="../assets/images/refresh.svg" /> Back to home </a> <ul class="rating-section"> <li> <p> Excited to <strong> create case studies</strong> or help build Product Growth? </p> <a href="#" class="publish">Publish</a> </li> <li> <p class="wdth">How would you rate this case study?</p> <span class="rating-list"> <a href="javascript:void(0);" ><img src="../assets/images/f-review.svg" /></a> <a href="javascript:void(0);" ><img src="../assets/images/f-review.svg" /></a> <a href="javascript:void(0);" ><img src="../assets/images/f-review.svg" /></a> <a href="javascript:void(0);" ><img src="../assets/images/e-review.svg" /></a> </span> </li> </ul> <div class="follow-us-py"> <span>Follow us at</span> <ul class="p-follows"> <li> <a href="#"> <img src="../assets/images/p-rss.svg" /> </a> </li> <li> <a href="#"> <img src="../assets/images/p-linkedin.svg" /> </a> </li> <li> <a href="#"> <img src="../assets/images/p-twitter.svg" /> </a> </li> </ul> </div> <!-- follow us --> <div class="p-users"> <span>Author</span> <h1>{{currentSlideData.payload.metaData.authors[0]}}</h1> <!-- <span>Author</span> <h1>Pramod</h1> <span>Author</span> <h1>Sarthak</h1> --> <span>Designer</span> <h1>{{currentSlideData.payload.metaData.designer}}</h1> <span>Illustrations</span> <h1>{{currentSlideData.payload.metaData.illustrations}}</h1> </div> <!-- users --> </div> <!-- thanks payment right section --> </div> <!--- thanks wrapper --> <div class="footer-nav"> <div class="footer-top"> <ul class="top-intro-bt ps_right"> <li> <a href="javascript:void(0);" @click="goBack" ><img src="../assets/images/skip-prev.svg" /> Prev</a > </li> </ul> </div> <!-- footer top --> <div class="footer-bottom"> <ul> <li class="active"></li> <li class="active"></li> </ul> </div> <!-- footer top --> </div> <!-- footer --> </div> |
921970bb2
|
202 203 204 205 206 207 208 209 210 |
<!-- body wrapper --> </div> <!-- main wrapper --> </main> </template> <script> import Vue from "vue"; import router from "../router"; |
c65b51996
|
211 |
import axios from "axios"; |
921970bb2
|
212 213 214 215 216 |
export default { name: "Outro", data() { |
c65b51996
|
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 |
return { caseStudies: [], allSlide: [], currentSlideIndex: null, currentSlideData: null, }; }, mounted() { var allSlideData = localStorage.getItem( "spotlight_slide" + this.$route.params.caseStudyId ); if (allSlideData) { this.allSlide = JSON.parse(allSlideData); this.getCurrentSlideData(); this.getCaseStudies(); } |
921970bb2
|
233 |
}, |
921970bb2
|
234 |
methods: { |
c65b51996
|
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 |
getCurrentSlideData() { var i = this.allSlide.findIndex( (slide_) => slide_.slideId == this.$route.params.slideId ); this.currentSlideIndex = i; this.currentSlideData = this.allSlide[i]; console.log("currentSlideData", this.currentSlideData); }, goNext() { this.currentSlideIndex++; this.$router.push({ name: this.allSlide[this.currentSlideIndex].ur, params: { caseStudyId: this.allSlide[this.currentSlideIndex].caseStudyId, slideId: this.allSlide[this.currentSlideIndex].slideId, }, }); }, goBack() { this.currentSlideIndex--; this.$router.push({ name: this.allSlide[this.currentSlideIndex].ur, params: { caseStudyId: this.allSlide[this.currentSlideIndex].caseStudyId, slideId: this.allSlide[this.currentSlideIndex].slideId, }, }); }, getCaseStudies() { var userdata = localStorage.getItem("spotlight_usertoken"); if (userdata) { userdata = JSON.parse(userdata); axios .get("/caseStudy/all", { headers: { Authorization: "Bearer " + userdata.token, }, }) .then((response) => { console.log(response.data.data.caseStudies); this.caseStudies = response.data.data.caseStudies; }) .catch((error) => console.log(error)); } }, |
921970bb2
|
281 282 283 284 285 286 |
goToLogin() { this.$router.push("/"); }, goToSignUp() { this.$router.push("/signup"); }, |
c65b51996
|
287 288 289 |
goToProfile() { this.$router.push("/profile"); }, |
921970bb2
|
290 291 292 |
}, }; </script> |