67 lines
1.9 KiB
Vue
67 lines
1.9 KiB
Vue
<template>
|
|
<div class="rarity-card">
|
|
<img
|
|
src="data:image/svg+xml,%3csvg width='114' height='76' viewBox='0 0 114 76' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.2632 1.65C11.3783 0.590661 12.8576 0 14.3957 0H99.6043C101.142 0 102.622 0.590661 103.737 1.65L112.132 9.62587C113.325 10.7586 114 12.3312 114 13.9759V70C114 73.3137 111.314 76 108 76H6C2.68629 76 0 73.3137 0 70V13.9759C0 12.3312 0.67512 10.7586 1.8675 9.62587L10.2632 1.65Z' fill='%239954DC'/%3e %3c/svg%3e"
|
|
class="icon">
|
|
<span class="title">Hero</span>
|
|
<img
|
|
src="data:image/svg+xml,%3csvg width='98' height='40' viewBox='0 0 98 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M0 8C0 3.58172 3.58172 0 8 0H90C94.4183 0 98 3.58172 98 8V38C98 39.1046 97.1046 40 96 40H2C0.89543 40 0 39.1046 0 38V8Z' fill='%23340067'/%3e %3c/svg%3e"
|
|
class="valueStack">
|
|
<span class="rarity">Epic</span></div>
|
|
</template>
|
|
<script lang="ts">
|
|
import { Component, Vue } from 'vue-property-decorator'
|
|
|
|
@Component({
|
|
name: 'RarityCard',
|
|
components: {
|
|
}
|
|
})
|
|
export default class extends Vue {}
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
.rarity-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
width: 7.125em;
|
|
height: 4.75em;
|
|
position: relative;
|
|
align-items: center;
|
|
|
|
.title {
|
|
position: absolute;
|
|
text-transform: uppercase;
|
|
font-weight: bolder;
|
|
font-size: 0.875em;
|
|
width: 2.375em;
|
|
height: 1.375em;
|
|
left: 2.4375em;
|
|
top: 0.375em;
|
|
}
|
|
.icon {
|
|
width: 100%;
|
|
}
|
|
|
|
.valueStack {
|
|
position: absolute;
|
|
width: 6.125em;
|
|
border-radius: 0.5em 0.5em 0.125em 0.125em;
|
|
left: 0.5em;
|
|
top: 1.75em;
|
|
}
|
|
|
|
.rarity {
|
|
position: absolute;
|
|
font-weight: bolder;
|
|
font-size: 0.875em;
|
|
line-height: 1.57;
|
|
width: 4.4375em;
|
|
height: 1.375em;
|
|
bottom: 1.0625em;
|
|
color: #ffffff;
|
|
text-align: center;
|
|
}
|
|
}
|
|
</style>
|