All files / components ProjectThumb.vue

0% Statements 0/1
100% Branches 0/0
0% Functions 0/1
0% Lines 0/1

Press n or j to go to the next uncoveteal block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75                                                                                                                                                     
<template>
  <q-card class="card q-ma-sm">
    <q-item v-if="!hideUser">
      <q-item-section avatar>
        <q-avatar>
          <q-img basic src="https://cdn.quasar.dev/img/avatar2.jpg"/>
        </q-avatar>
      </q-item-section>
      <q-item-section>
        <q-item-label>Title</q-item-label>
        <q-item-label caption>Subhead</q-item-label>
      </q-item-section>
      <q-item-section side v-if="featured">
        <q-icon name="fas fa-star" color="teal-4" size="15px"/>
      </q-item-section>
    </q-item>
    <q-item v-if="showControls">
      <q-item-section>Title</q-item-section>
      <q-item-section side>
        <q-btn flat dense>
          <q-icon name="fas fa-ellipsis-v" size="14px"/>
          <q-menu anchor="bottom left" self="top right">
            <q-list style="min-width: 100px">
              <q-item clickable v-close-popup>
                <q-item-section>Edit</q-item-section>
              </q-item>
              <q-item clickable v-close-popup>
                <q-item-section>Share</q-item-section>
              </q-item>
              <q-separator/>
              <q-item clickable v-close-popup>
                <q-item-section>Delete</q-item-section>
              </q-item>
            </q-list>
          </q-menu>
        </q-btn>
      </q-item-section>
    </q-item>
    <q-img src="http://placehold.it/512x512" basic ratio="1"/>
    <q-item>
      <q-item-section></q-item-section>
      <q-item-section side>
        <div class="row q-gutter-sm">
          <div class="col">
            <q-icon name="fas fa-download" class="q-mr-xs"/>100
          </div>
          <div class="col">
            <q-icon name="fas fa-heart" class="q-mr-xs"/>100
          </div>
        </div>
      </q-item-section>
    </q-item>
  </q-card>
</template>
 
<script>
export default {
  // name: 'ComponentName',
  props: ["hideUser", "showControls"],
  data() {
    return { featured: true };
  }
};
</script>
 
<style>
.project-thumb .card {
}
.project-thumb {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
</style>