<template>
  <mainLayout>
    <div class="home p-6">
      <h1 class="text-3xl font-bold text-D mb-4">Contoh penggunaan halaman</h1>

      <!-- Komponen Struk -->
      <StrukOverlay :isOpen="true" />

      <hr class="my-6 border-D" />
      <h1 class="text-xl font-bold text-D mb-4">Contoh grid</h1>
      <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4">
        <div v-for="value in data" :key="value" class="p-5 shadow-lg rounded-lg shadow-C bg-A text-D text-lg">
          Item: {{ value }}
        </div>
      </div>
    </div>
  </mainLayout>
</template>

<script setup>
import { ref } from 'vue'
import mainLayout from '../layouts/mainLayout.vue'
import StrukOverlay from '../components/StrukOverlay.vue' // pastikan path sesuai

const message = ref("Style dan message dari script dan style di dalam halaman")
const data = ref([1, 2, 3, 4, 5])
</script>