Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <template>
  2. <v-flex xs10>
  3. <h1 class="page-title">SPONSORS</h1>
  4. <v-layout row align-content-center wrap>
  5. <v-flex xs6 class="sponsor-element mb-3" v-for="i in sponsors" :key="i.id">
  6. <p class="sponsor-name">{{ i.category }}</p>
  7. <img :src="i.image" alt="" class="sponsor-logo" :class="i.name">
  8. </v-flex>
  9. </v-layout>
  10. </v-flex>
  11. </template>
  12.  
  13. <style lang="scss" scoped>
  14. .sponsor-name {
  15. width: 100%;
  16. display: block;
  17. text-align: center;
  18. margin-bottom: 20px;
  19. }
  20.  
  21. .sponsor-logo {
  22. width: auto;
  23. height: 120px;
  24. display: block !important;
  25. margin: 0 auto;
  26.  
  27. &.Kaspersky {
  28. width: 75%;
  29. height: auto;
  30. }
  31.  
  32. &.SAS {
  33. width: 40%;
  34. height: auto;
  35. }
  36. }
  37. </style>
  38.  
  39.  
  40. <script>
  41. export default {
  42. name: 'information-sponsors',
  43. data () {
  44. return {
  45. sponsors: []
  46. }
  47. },
  48. async mounted () {
  49. try {
  50. const sponsors = await this.$axios.$get('/api/sponsor/')
  51. sponsors.map(value => this.sponsors.push(value))
  52. } catch (err) {
  53. console.error(err)
  54. }
  55. }
  56. }
  57. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement