123456789101112131415161718192021222324252627 |
- <template>
- <div v-if="photo">
- <img class="photo" alt="Photo of current user." :src="photo" />
- </div>
- <div v-else>
- <span class="photo-missing">👤</span>
- <p>No photo on file.</p>
- </div>
- </template>
- <script>
- export default {
- name: "Photo",
- props: ["photo"]
- };
- </script>
- <style scoped>
- .photo {
- max-width: 100px;
- min-width: 40px;
- }
- .photo-missing {
- font-size: 150px;
- }
- </style>
|