<template>
    <div class="card flex flex-col">
        <div class="header bg-app-blue-4 flex items-center px-5 py-3 rounded-tl-xl rounded-tr-xl ">
            <div class="medals h-14 w-16 relative flex-grow-0">
                <div class="cycle rounded-full w-10 h-10 z-40 absolute top-0 text-center" :class='medalsColor'>
                    <div class='inside w-8 h-8 bg-app-white-2 rounded-full text-app-blue-1 absolute left-1 top-1 leading-8'>
                        01
                    </div>
                
                </div>
                <div class="trangle w-3  h-5 bg-app-red absolute top-7 left-2 z-30 transform  rotate-45 "></div>
                <div class="trangle w-3  h-5 bg-app-red absolute top-7 left-6 z-30 transform  -rotate-45 shadow-lg "></div>
            </div>
            <div class=" text-sm text-left justify-items-start flex-grow">
                <div>社区名称一</div>
                <div class=' text-xs'>当前票数 <span>57217348918</span></div>
            </div>
            <div class='flex-grow-0'>
                <app-btn text='投票' class="bg-app-blue-2 rounded" border="border-none"></app-btn>
            </div>
        </div>
        <div class="bottom bg-app-blue-3 rounded-bl-xl rounded-br-xl  px-5 py-5">
            <div class=" text-xs text-app-white">这里是社区介绍介绍，这里是社区介绍，显示30个字，超过了去更过里面查看详情…</div>
        </div>
    </div>
</template>

<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
  props: {
      medalsColor:{
        type:String,
        default:'bg-app-yellow-1'
      }
  },
  methods:{

  },
components:{
    'app-btn':()=>import('@/components/common/Btn.vue')
}
});
</script>

