<template>
  <div class="public-work">
    <m-card mode="border">
      <div class="convnient"><Convenient /></div>
      <div class="beauty"><BeautyHome /></div>
    </m-card>
    <m-card mode="border">
      <div class="duty"><Duty /></div>
      <div class="neighbor"><NeighborEntry /></div>
    </m-card>
    <m-card mode="border">
      <div class="analysis"><DutyAnalysis /></div>
      <div class="task"><KeyTask /></div>
    </m-card>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import Convenient from './convenient.vue'
import BeautyHome from './beauty-home.vue'
import Duty from './duty.vue'
import NeighborEntry from './neighbor-entry.vue'
import DutyAnalysis from './duty-analysis.vue'
import KeyTask from './key-task.vue'

export default defineComponent({
  name: 'PublicWork',
  components: {
    Convenient,
    BeautyHome,
    NeighborEntry,
    Duty,
    DutyAnalysis,
    KeyTask,
  },
  setup() {},
})
</script>

<style lang="stylus" scoped>
@import '../../components/MyComponent/main.styl';

.public-work {
  $full();
  display: flex;
  justify-content: space-between;

  >div {
    height: 100%;
    width: 33%;
  }
}

.convenient, .beauty, .duty, .analysis {
  flex: 1;
}

.task {
  height: 1rem;
}

.neighbor {
  height: 0.8rem;
}
</style>
