forked from noxious/client
Major refractor, cleaning and improvements. pt.2
This commit is contained in:
@ -29,7 +29,7 @@
|
||||
<script setup lang="ts">
|
||||
import { useGameStore } from '@/stores/game';
|
||||
import { ref } from 'vue';
|
||||
import InventoryItems from '@/components/utilities/inventory/partials/InventoryItems.vue';
|
||||
import InventoryItems from '@/components/gui/partials/InventoryItems.vue';
|
||||
|
||||
const gameStore = useGameStore()
|
||||
let inventory = false
|
||||
|
17
src/components/gui/partials/InventoryItems.vue
Normal file
17
src/components/gui/partials/InventoryItems.vue
Normal file
@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<div class="grow flex flex-col w-full h-full relative overflow-auto">
|
||||
<div class="m-5 relative">
|
||||
<h4 class="m-auto font-medium text-lg max-w-[375px]">Inventory</h4>
|
||||
<div class="flex gap-3 mt-4 mx-auto flex-wrap max-w-[375px]">
|
||||
<div v-for="n in 24" class="bg-gray-300/80 border-solid border-2 border-cyan-200 w-12 h-12 rounded-md aspect-square shrink-0 justify-self-stretch hover:bg-gray-200"></div>
|
||||
</div>
|
||||
<div class="absolute -left-5 -bottom-5 w-[calc(100%_+_40px)] my-px h-px bg-cyan-200"></div>
|
||||
</div>
|
||||
<div class="m-5">
|
||||
<h4 class="m-auto font-medium text-lg max-w-[375px]">Quest items</h4>
|
||||
<div class="flex gap-3 mt-4 mx-auto flex-wrap max-w-[375px]">
|
||||
<div v-for="n in 12" class="bg-gray-300/80 border-solid border-2 border-cyan-200 w-12 h-12 rounded-md aspect-square shrink-0 justify-self-stretch hover:bg-gray-200"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
Reference in New Issue
Block a user