<template>
  <div class="space-y-5">
    <Card title="Images">
      <Image
        :src="image1"
        alt="image one"
        imageClass="rounded-md"
      />
    </Card>
    <Card title="Responsive images">
      <span
        class="block text-base font-medium tracking-[0.01em] dark:text-slate-300 text-slate-500 uppercase mb-6 mt-5"
        >Small image with fluid</span
      >
      <Image
        :src="image2"
        alt="Small image with fluid:"
        imageClass="rounded-md mb-6"
      />
      <span
        class="block text-base font-medium tracking-[0.01em] dark:text-slate-300 text-slate-500 uppercase mb-6 mt-5"
        >Large image with fluid-grow:</span
      >
      <Image
        :src="image3"
        alt="Small image with fluid-grow:"
        imageClass="rounded-md w-full "
      />
    </Card>
    <Card title="Responsive images">
      <div
        class="grid xl:grid-cols-6 lg:grid-cols-3 md:grid-cols-2 grid-cols-1 gap-5"
      >
        <Image
          :src="item.src"
          alt="thumb-1"
          imageClass="rounded-md border-4 border-slate-300"
          v-for="(item, i) in images"
          :key="i"
        />
      </div>
    </Card>
  </div>
</template>
<script>
import Card from '@/components/Card';
import Image from '@/components/Image';
// Image Import
import image1 from "@/assets/images/all-img/image-1.png"
import image2 from "@/assets/images/all-img/image-2.png"
import image3 from "@/assets/images/all-img/image-3.png"
import responsiveImage1 from "@/assets/images/all-img/thumb-1.png"
import responsiveImage2 from "@/assets/images/all-img/thumb-2.png"
import responsiveImage3 from "@/assets/images/all-img/thumb-3.png"
import responsiveImage4 from "@/assets/images/all-img/thumb-4.png"
import responsiveImage5 from "@/assets/images/all-img/thumb-5.png"
import responsiveImage6 from "@/assets/images/all-img/thumb-6.png"

export default {
  components: {
    Card,
    Image,
  },
  data() {
    return {
      image1,
      image2,
      image3,
      images: [
        {
          src: responsiveImage1,
        },
        {
          src: responsiveImage2,
        },
        {
          src: responsiveImage3,
        },
        {
          src: responsiveImage4,
        },
        {
          src: responsiveImage5,
        },
        {
          src: responsiveImage6,
        },
      ],
    };
  },
};
</script>
<style lang=""></style>
