Press n or j to go to the next uncovered 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 76 77 78 | <template> <q-card class="card q-ma-md"> <div v-if="project"> <q-item v-if="!hideUser"> <q-item-section avatar> <q-avatar> <q-img basic :src="project.userAvatar" /> </q-avatar> </q-item-section> <q-item-section> <q-item-label :lines="1">{{project.name}}</q-item-label> <q-item-label :lines="1" caption>{{project.username}}</q-item-label> </q-item-section> <q-item-section side v-if="featured"> <q-icon name="fas fa-star" color="grey-4" size="15px" /> </q-item-section> </q-item> <q-item v-if="showControls"> <q-item-section>{{project.name}}</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="project.thumbnail" 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> </div> <div v-else>Loading...</div> </q-card> </template> <script> export default { // name: 'ComponentName', props: ["hideUser", "showControls", "project"], data() { return { featured: true }; } }; </script> <style> .project-thumb .card { } .project-thumb { width: 100%; margin-left: auto; margin-right: auto; } </style> |