article-author.vue 744 Bytes
<template>
  <div class="container">
    <WidgetAvatar :lazy="true" class="widget-avatar" :src="userHeadIco" :width="70" :height="70"></WidgetAvatar>
    <span>{{userName}}</span>
  </div>
</template>

<script>
import WidgetAvatar from '../../../components/widget-avatar';

export default {
  name: 'articleAuthor',
  components: {
    WidgetAvatar
  },
  props: {
    userHeadIco: String,
    userName: String
  }
};
</script>

<style lang="scss" scoped>
.container {
  height: 100px;
  padding-left: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;

  .widget-avatar {
    width: 70px;
    height: 70px;
  }

  span {
    margin-left: 20px;
    font-size: 24px;
    color: #222;
    letter-spacing: 0.05px;
  }
}
</style>