Catalogo design-system components/category-previews

← catalogo / components/category-previews

Components · Category previews · With split images

TW-CO-CP-06 Tailwind Plus

tailwind/ecommerce/components/category-previews/06-with-split-images

Anteprima disegnata disponibile solo per la versione html: questa e' vue, sotto c'e' il sorgente.

Da toccare per il marchio

  • collegamenti a vuoto: puntali alle rotte vere

Sorgente (vue)

<template>
  <!--
    This example requires updating your template:

    ```
    <html class="h-full bg-gray-50">
    <body class="h-full">
    ```
  -->
  <div class="grid min-h-full grid-cols-1 grid-rows-2 lg:grid-cols-2 lg:grid-rows-1">
    <div class="relative flex">
      <img src="https://tailwindcss.com/plus-assets/img/ecommerce-images/home-page-02-edition-01.jpg" alt="" class="absolute inset-0 size-full object-cover" />
      <div class="relative flex w-full flex-col items-start justify-end bg-black/40 p-8 sm:p-12">
        <h2 class="text-lg font-medium text-white/75">Self-Improvement</h2>
        <p class="mt-1 text-2xl font-medium text-white">Journals and note-taking</p>
        <a href="#" class="mt-4 rounded-md bg-white px-4 py-2.5 text-sm font-medium text-gray-900 hover:bg-gray-50">Shop now</a>
      </div>
    </div>
    <div class="relative flex">
      <img src="https://tailwindcss.com/plus-assets/img/ecommerce-images/home-page-02-edition-02.jpg" alt="" class="absolute inset-0 size-full object-cover" />
      <div class="relative flex w-full flex-col items-start justify-end bg-black/40 p-8 sm:p-12">
        <h2 class="text-lg font-medium text-white/75">Desk and Office</h2>
        <p class="mt-1 text-2xl font-medium text-white">Work from home accessories</p>
        <a href="#" class="mt-4 rounded-md bg-white px-4 py-2.5 text-sm font-medium text-gray-900 hover:bg-gray-50">Shop now</a>
      </div>
    </div>
  </div>
</template>