Skip to content

Commit

Permalink
add tile letters
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Oct 28, 2024
1 parent d65ece4 commit 5e83893
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/components/setup/RandomMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<div class="map">
<div v-for="item of tilePlacements" :key="item.tile.name"
:style="{position:'absolute',left:`${item.x*100}px`,top:`${item.y*100}px`}">
<div class="letter">{{item.tile.name}}</div>
<AppIcon type="map-tile" :name="item.tile.name"
:style="{width:'100px','transform-origin':'50px 50px',transform:getTransform(item)}"/>
</div>
Expand Down Expand Up @@ -86,5 +87,16 @@ export default defineComponent({
overflow-y: hidden;
border-radius: 10px;
background-color: #eee;
.letter {
position: absolute;
top: 50px;
left: 50%;
transform: translate(-50%, -50%);
text-transform: uppercase;
z-index: 100;
font-size: 20px;
font-weight: bold;
text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff;
}
}
</style>

0 comments on commit 5e83893

Please sign in to comment.