Starting code for HUD
This commit is contained in:
@ -1,5 +1,12 @@
|
||||
<template>
|
||||
|
||||
<div class="hud-wrapper">
|
||||
<div class="profile">
|
||||
<img src="/assets/avatar/default/head.png">
|
||||
</div>
|
||||
<div class="hud">
|
||||
<div class="stats"></div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
@ -7,5 +14,39 @@
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
.hud-wrapper {
|
||||
position: relative;
|
||||
.profile {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 4rem;
|
||||
height: 4rem;
|
||||
background-color: rgba(255, 255, 255, 0.8);
|
||||
border-radius: 100%;
|
||||
border: 2px solid #fff;
|
||||
z-index: 1;
|
||||
img {
|
||||
width: 2rem;
|
||||
position: absolute;
|
||||
left: calc(50% - 1rem);
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
}
|
||||
.hud {
|
||||
position: absolute;
|
||||
left: 2rem;
|
||||
top: 2rem;
|
||||
width: 15rem;
|
||||
height: 5rem;
|
||||
background-image: url('/assets/clouds.png');
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
// background-color: rgba(127, 127, 127, 0.7);
|
||||
clip-path: ellipse(3rem 3rem at 0% 0%) invert;
|
||||
border-radius: 1rem;
|
||||
border: 2px solid #fff;
|
||||
}
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user