组件 标签云 标签云组件

标签云组件

专为深色模式 UI 设计的响应式标签云组件,展示了具有类似配色方案的产品组合。

预览

HTML 代码

<div class="bg-gray-900 text-gray-300 p-4 rounded-lg">
    <h2 class="text-xl font-bold mb-4">Tag Cloud</h2>
    <div class="flex flex-wrap gap-2">
        <span class="bg-gray-700 hover:bg-gray-600 transition duration-300 rounded-full px-3 py-1 text-sm font-semibold">#WebDesign</span>
        <span class="bg-gray-700 hover:bg-gray-600 transition duration-300 rounded-full px-3 py-1 text-sm font-semibold">#UI/UX</span>
        <span class="bg-gray-700 hover:bg-gray-600 transition duration-300 rounded-full px-3 py-1 text-sm font-semibold">#Development</span>
        <span class="bg-gray-700 hover:bg-gray-600 transition duration-300 rounded-full px-3 py-1 text-sm font-semibold">#Branding</span>
        <span class="bg-gray-700 hover:bg-gray-600 transition duration-300 rounded-full px-3 py-1 text-sm font-semibold">#Photography</span>
        <span class="bg-gray-700 hover:bg-gray-600 transition duration-300 rounded-full px-3 py-1 text-sm font-semibold">#Illustration</span>
        <span class="bg-gray-700 hover:bg-gray-600 transition duration-300 rounded-full px-3 py-1 text-sm font-semibold">#Typography</span>
    </div>
    <div class="mt-6">
        <h3 class="text-lg font-semibold">Featured Work</h3>
        <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 mt-4">
            <div class="bg-gray-800 rounded-lg overflow-hidden shadow-lg">
                <img class="w-full h-32 object-cover" src="https://picsum.photos/200/200?random=1" alt="Portfolio Item" />
                <div class="p-4">
                    <h4 class="font-bold">Project Title 1</h4>
                    <p class="text-gray-400">Short description of the project.</p>
                    <div class="flex items-center mt-2">
                        <img class="w-8 h-8 rounded-full" src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar" />
                        <span class="ml-2 text-sm">by Author Name</span>
                    </div>
                </div>
            </div>
            <div class="bg-gray-800 rounded-lg overflow-hidden shadow-lg">
                <img class="w-full h-32 object-cover" src="https://picsum.photos/200/200?random=2" alt="Portfolio Item" />
                <div class="p-4">
                    <h4 class="font-bold">Project Title 2</h4>
                    <p class="text-gray-400">Short description of the project.</p>
                    <div class="flex items-center mt-2">
                        <img class="w-8 h-8 rounded-full" src="https://randomuser.me/api/portraits/women/1.jpg" alt="Avatar" />
                        <span class="ml-2 text-sm">by Author Name</span>
                    </div>
                </div>
            </div>
            <div class="bg-gray-800 rounded-lg overflow-hidden shadow-lg">
                <img class="w-full h-32 object-cover" src="https://picsum.photos/200/200?random=3" alt="Portfolio Item" />
                <div class="p-4">
                    <h4 class="font-bold">Project Title 3</h4>
                    <p class="text-gray-400">Short description of the project.</p>
                    <div class="flex items-center mt-2">
                        <img class="w-8 h-8 rounded-full" src="https://randomuser.me/api/portraits/men/2.jpg" alt="Avatar" />
                        <span class="ml-2 text-sm">by Author Name</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

相关组件

新拟态标签云组件

一个响应式标签云组件,采用拟态设计,使用柔和的颜色方案和复杂的交互,专为电子商务量身定做。包含暗模式支持,并使用Tailwind CSS。

打开

复古标签云组件

一个响应式标签云组件,使用Tailwind CSS,具有复古/古典设计美学,柔和色调和简单复杂度。适用于作品集,包括暗黑模式支持。

打开

标签云组件

一个具有鲜艳色彩的3D标签云组件,用于数据可视化仪表板。

打开