关注用户或主题的按钮
一个响应式的关注按钮组件,支持深色主题和微交互,专为使用Tailwind CSS的社交媒体应用设计。具有单色配色方案和复杂的互动元素。
<div class="flex items-center justify-center h-screen bg-gray-100 dark:bg-gray-900"> <div class="relative inline-block group"> <button class="px-6 py-3 text-sm font-semibold text-white bg-blue-600 rounded-full transition-all duration-300 ease-in-out transform group-hover:scale-105 group-active:scale-95 focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-blue-700 dark:group-hover:bg-blue-600 dark:focus:ring-blue-600"> Follow </button> <div class="absolute inset-0 rounded-full bg-blue-500 opacity-0 blur transition-all duration-500 ease-in-out group-hover:opacity-70"></div> </div> </div>
一个具有神经形态设计的关注按钮,适用于支持深色主题的仪表板。
<div class="flex justify-center items-center h-screen bg-gray-800 dark:bg-gray-900"> <button class="relative inline-flex items-center justify-center p-4 bg-gray-200 dark:bg-gray-700 rounded-full shadow-lg transition-transform transform hover:scale-105 active:scale-95 dark:shadow-inner shadow-gray-300 "> <span class="absolute inset-0 rounded-full bg-gradient-to-r from-pink-400 via-red-500 to-yellow-500 opacity-20 blur transition-all duration-500"></span> <span class="relative text-white font-bold text-lg"> Follow </span> </button> </div>
黑暗模式 UI 关注按钮组件,具有响应式效果和黑暗主题支持。
<button class="bg-gray-800 hover:bg-gray-700 text-white font-bold py-2 px-4 rounded-full transition duration-300 ease-in-out" > Follow </button>
一个简单的关注按钮,具有材料设计风格、响应式效果和暗模式支持。
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-md shadow-md transition duration-300 ease-in-out dark:bg-gray-700 dark:hover:bg-gray-800 dark:shadow-lg">Follow</button>
一个采用材料设计风格的响应式关注按钮组件,使用 Tailwind CSS 并支持深色模式。
<div class="flex items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-800"> <div class="flex flex-col items-center p-6 bg-white dark:bg-gray-900 rounded-lg shadow-lg space-y-4"> <img src="https://picsum.photos/100" alt="User Avatar" class="w-24 h-24 rounded-full border-2 border-indigo-500 shadow-md"> <h2 class="text-lg font-semibold text-gray-800 dark:text-gray-200">John Doe</h2> <p class="text-gray-600 dark:text-gray-400">Software Developer</p> <button class="flex items-center justify-center w-full px-4 py-2 font-semibold text-white bg-blue-600 rounded-lg shadow-md hover:bg-blue-700 focus:outline-none focus:ring focus:ring-blue-300 dark:bg-blue-500 dark:hover:bg-blue-600"> <span>Follow</span> </button> </div> </div>
一个具有玻璃风格设计的响应式关注按钮,支持暗黑模式,使用Tailwind CSS.
<template> <button class="relative inline-flex items-center justify-center p-0.5 mb-2 me-2 overflow-hidden text-sm font-medium text-gray-900 rounded-lg group bg-gradient-to-br from-purple-600 to-blue-500 group-hover:from-purple-600 group-hover:to-blue-500 hover:text-white dark:text-white focus:ring-4 focus:outline-none focus:ring-blue-300 dark:focus:ring-blue-800"> <span class="relative px-5 py-2.5 transition-all ease-in duration-75 bg-white dark:bg-gray-900 rounded-md group-hover:bg-opacity-0 backdrop-filter backdrop-blur-lg bg-opacity-20"> Follow </span> </button> </template>
一个采用粗犷主义风格设计的关注按钮组件,具有高对比度和原始、粗犷的外观。它是响应式的并支持暗主题。
<div class="flex flex-col items-center justify-center p-6 bg-white dark:bg-gray-800 rounded-lg shadow-lg"> <img class="mb-4 rounded-full border-4 border-black dark:border-white" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" width="100" height="100"> <h2 class="text-2xl font-bold text-black dark:text-white mb-2">Follow Us</h2> <p class="text-gray-700 dark:text-gray-300 text-center mb-4">Join our community and stay updated with our latest content!</p> <a href="#" class="px-4 py-2 text-lg font-bold text-white bg-black dark:bg-white dark:text-black border-4 border-black dark:border-white hover:bg-gray-600 dark:hover:bg-gray-300 transition-all duration-300">Follow</a> </div>
一个野兽派跟随按钮,支持响应式和深色模式。
<button class="bg-black text-white font-bold py-2 px-4 border border-black active:bg-zinc-700 active:border-zinc-700 focus:outline-none focus:ring-2 focus:ring-black focus:ring-opacity-50 dark:bg-white dark:text-black dark:border-white dark:active:bg-zinc-300 dark:active:border-zinc-300 dark:focus:ring-white">Follow</button>
一个响应式的关注按钮组件,采用Material Design原则设计,支持暗模式,并使用Tailwind CSS进行定制样式。
<div class="flex items-center justify-center p-4"> <div class="bg-white dark:bg-gray-800 shadow-md rounded-lg p-5 transition-shadow duration-300 hover:shadow-lg"> <div class="flex items-center"> <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-12 h-12 rounded-full shadow-lg mr-3"> <div class="flex-1"> <h2 class="text-lg font-semibold text-gray-800 dark:text-gray-200">Follow Me</h2> <p class="text-gray-600 dark:text-gray-400">Join my journey and stay updated!</p> </div> <button class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded transition duration-300 ease-in-out"> Follow </button> </div> </div> </div>