<template>
  <div class="intro-y news p-5 box mt-8">
    <!-- BEGIN: Blog Layout -->
    <h2 class="intro-y font-medium text-xl sm:text-2xl">
      {{ $f()[0].news[0].title }}
    </h2>
    <div
      class="intro-y text-gray-700 dark:text-gray-600 mt-3 text-xs sm:text-sm"
    >
      {{ $f()[0].dates[0] }} <span class="mx-1">•</span>
      <a class="text-theme-1 dark:text-theme-10" href="">{{
        $f()[0].products[0].category
      }}</a>
      <span class="mx-1">•</span> 7 Min read
    </div>
    <div class="intro-y mt-6">
      <div class="news__preview image-fit">
        <img
          alt="Midone Tailwind HTML Admin Template"
          class="rounded-md"
          :src="require(`@/assets/images/${$f()[0].images[0]}`)"
        />
      </div>
    </div>
    <div class="intro-y flex relative pt-16 sm:pt-6 items-center pb-6">
      <Tippy
        tag="a"
        href=""
        class="intro-x w-8 h-8 sm:w-10 sm:h-10 flex flex-none items-center justify-center rounded-full border border-gray-500 dark:border-dark-5 dark:bg-dark-5 dark:text-gray-300 text-gray-600 mr-3"
        content="Bookmark"
      >
        <BookmarkIcon class="w-3 h-3" />
      </Tippy>
      <div class="intro-x flex mr-3">
        <div class="intro-x w-8 h-8 sm:w-10 sm:h-10 image-fit">
          <Tippy
            tag="img"
            alt="Midone Tailwind HTML Admin Template"
            class="rounded-full border border-white zoom-in"
            :src="require(`@/assets/images/${$f()[0].photos[0]}`)"
            :content="$f()[0].users[0].name"
          />
        </div>
        <div class="intro-x w-8 h-8 sm:w-10 sm:h-10 image-fit -ml-4">
          <Tippy
            tag="img"
            alt="Midone Tailwind HTML Admin Template"
            class="rounded-full border border-white zoom-in"
            :src="require(`@/assets/images/${$f()[0].photos[1]}`)"
            :content="$f()[0].users[1].name"
          />
        </div>
        <div class="intro-x w-8 h-8 sm:w-10 sm:h-10 image-fit -ml-4">
          <Tippy
            tag="img"
            alt="Midone Tailwind HTML Admin Template"
            class="rounded-full border border-white zoom-in"
            :src="require(`@/assets/images/${$f()[0].photos[2]}`)"
            :content="$f()[0].users[2].name"
          />
        </div>
      </div>
      <div
        class="absolute sm:relative -mt-12 sm:mt-0 w-full flex text-gray-700 dark:text-gray-600 text-xs sm:text-sm"
      >
        <div class="intro-x mr-1 sm:mr-3">
          Comments:
          <span class="font-medium">{{ $f()[0].totals[0] }}</span>
        </div>
        <div class="intro-x mr-1 sm:mr-3">
          Views: <span class="font-medium">{{ $f()[0].totals[1] }}k</span>
        </div>
        <div class="intro-x sm:mr-3 ml-auto">
          Likes: <span class="font-medium">{{ $f()[0].totals[2] }}k</span>
        </div>
      </div>
      <Tippy
        tag="a"
        href=""
        class="intro-x w-8 h-8 sm:w-10 sm:h-10 flex flex-none items-center justify-center rounded-full bg-theme-14 dark:bg-dark-5 dark:text-gray-300 text-theme-10 ml-auto sm:ml-0"
        content="Share"
      >
        <Share2Icon class="w-3 h-3" />
      </Tippy>
      <Tippy
        tag="a"
        href=""
        class="intro-x w-8 h-8 sm:w-10 sm:h-10 flex flex-none items-center justify-center rounded-full bg-theme-1 text-white ml-3"
        content="Download PDF"
      >
        <ShareIcon class="w-3 h-3" />
      </Tippy>
    </div>
    <div class="intro-y text-justify leading-relaxed">
      <p class="mb-5">{{ $f()[1].news[0].content }}</p>
      <p class="mb-5">{{ $f()[2].news[0].content }}</p>
      <p>{{ $f()[3].news[0].content }}</p>
    </div>
    <div
      class="intro-y flex text-xs sm:text-sm flex-col sm:flex-row items-center mt-5 pt-5 border-t border-gray-200 dark:border-dark-5"
    >
      <div class="flex items-center">
        <div class="w-12 h-12 flex-none image-fit">
          <img
            alt="Midone Tailwind HTML Admin Template"
            class="rounded-full"
            :src="require(`@/assets/images/${$f()[0].photos[0]}`)"
          />
        </div>
        <div class="ml-3 mr-auto">
          <a href="" class="font-medium">{{ $f()[0].users[0].name }}</a
          >, Author
          <div class="text-gray-600">Senior Frontend Engineer</div>
        </div>
      </div>
      <div
        class="flex items-center text-gray-700 dark:text-gray-600 sm:ml-auto mt-5 sm:mt-0"
      >
        Share this post:
        <Tippy
          tag="a"
          href=""
          class="w-8 h-8 sm:w-10 sm:h-10 rounded-full flex items-center justify-center border dark:border-dark-5 ml-2 text-gray-500 zoom-in"
          content="Facebook"
        >
          <FacebookIcon class="w-3 h-3 fill-current" />
        </Tippy>
        <Tippy
          tag="a"
          href=""
          class="w-8 h-8 sm:w-10 sm:h-10 rounded-full flex items-center justify-center border dark:border-dark-5 ml-2 text-gray-500 zoom-in"
          content="Twitter"
        >
          <TwitterIcon class="w-3 h-3 fill-current" />
        </Tippy>
        <Tippy
          tag="a"
          href=""
          class="w-8 h-8 sm:w-10 sm:h-10 rounded-full flex items-center justify-center border dark:border-dark-5 ml-2 text-gray-500 zoom-in"
          content="Linked In"
        >
          <LinkedinIcon class="w-3 h-3 fill-current" />
        </Tippy>
      </div>
    </div>
    <!-- END: Blog Layout -->
    <!-- BEGIN: Comments -->
    <div class="intro-y mt-5 pt-5 border-t border-gray-200 dark:border-dark-5">
      <div class="text-base sm:text-lg font-medium">2 Responses</div>
      <div class="news__input relative mt-5">
        <MessageCircleIcon
          class="w-5 h-5 absolute my-auto inset-y-0 ml-6 left-0 text-gray-600"
        />
        <textarea
          class="input w-full bg-gray-200 pl-16 py-6 placeholder-theme-13 resize-none"
          rows="1"
          placeholder="Post a comment..."
        ></textarea>
      </div>
    </div>
    <div class="intro-y mt-5 pb-10">
      <div class="pt-5">
        <div class="flex">
          <div class="w-10 h-10 sm:w-12 sm:h-12 flex-none image-fit">
            <img
              alt="Midone Tailwind HTML Admin Template"
              class="rounded-full"
              :src="require(`@/assets/images/${$f()[0].photos[0]}`)"
            />
          </div>
          <div class="ml-3 flex-1">
            <div class="flex items-center">
              <a href="" class="font-medium">{{ $f()[0].users[0].name }}</a>
              <a href="" class="ml-auto text-xs text-gray-600">Reply</a>
            </div>
            <div class="text-gray-600 text-xs sm:text-sm">
              {{ $f()[0].formatted_times[0] }}
            </div>
            <div class="mt-2">{{ $f()[0].news[0].short_content }}</div>
          </div>
        </div>
      </div>
      <div class="mt-5 pt-5 border-t border-gray-200 dark:border-dark-5">
        <div class="flex">
          <div class="w-10 h-10 sm:w-12 sm:h-12 flex-none image-fit">
            <img
              alt="Midone Tailwind HTML Admin Template"
              class="rounded-full"
              :src="require(`@/assets/images/${$f()[0].photos[1]}`)"
            />
          </div>
          <div class="ml-3 flex-1">
            <div class="flex items-center">
              <a href="" class="font-medium">{{ $f()[0].users[1].name }}</a>
              <a href="" class="ml-auto text-xs text-gray-600">Reply</a>
            </div>
            <div class="text-gray-600 text-xs sm:text-sm">
              {{ $f()[1].formatted_times[0] }}
            </div>
            <div class="mt-2">{{ $f()[1].news[0].short_content }}</div>
          </div>
        </div>
      </div>
    </div>
    <!-- END: Comments -->
  </div>
</template>
