UNPKG

lightswind

Version:

A modern frontend library with pre-built Tailwind CSS components for building responsive and interactive user interfaces.

126 lines (105 loc) 9.91 kB
import React from 'react'; const HoverSocialButton = () => { return ( <div className="bg-white dark:bg-darklw grid place-items-center relative h-[100vh]"> <div className="inline-flex items-center justify-center flex-wrap gap-4"> <div className="relative group mx-5 flex flex-col items-center justify-center cursor-pointer transform transition-transform duration-300 ease-in-out hover:scale-110"> <div className="absolute hidden group-hover:block bg-darklw dark:bg-white text-white dark:text-darklw text-lg font-medium py-2 px-4 rounded-2xl shadow-lg transition-all duration-300 ease-out -top-16 z-10"> Facebook <span className="absolute left-1/2 bottom-[-6px] transform -translate-x-1/2 rotate-45 bg-darklw dark:bg-white w-3 h-3 hover:scale-110 hover:scale-110"></span> </div> <span className="w-16 h-16 bg-darklw dark:bg-white rounded-full shadow-xl flex items-center justify-center text-2xl text-darklw transition-all duration-300 ease-out"> <svg className="w-8 text-white dark:text-darklw group-hover:text-blue-700 dark:group-hover:text-blue-700" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"> <path fill-rule="evenodd" d="M13.135 6H15V3h-1.865a4.147 4.147 0 0 0-4.142 4.142V9H7v3h2v9.938h3V12h2.021l.592-3H12V6.591A.6.6 0 0 1 12.592 6h.543Z" clip-rule="evenodd" /> </svg> </span> </div> <div className="relative group mx-5 flex flex-col items-center justify-center cursor-pointer transform transition-transform duration-300 ease-in-out hover:scale-110"> <div className="absolute hidden group-hover:block bg-darklw dark:bg-white text-white dark:text-darklw text-lg font-medium py-2 px-4 rounded-2xl shadow-lg transition-all duration-300 ease-out -top-16 z-10"> Twitter <span className="absolute left-1/2 bottom-[-6px] transform -translate-x-1/2 rotate-45 bg-darklw dark:bg-white w-3 h-3 hover:scale-110 hover:scale-110"></span> </div> <span className="w-16 h-16 bg-darklw dark:bg-white rounded-full shadow-xl flex items-center justify-center text-2xl text-darklw transition-all duration-300 ease-out"> <svg className="w-8 text-white dark:text-darklw group-hover:text-blue-500 dark:group-hover:text-blue-500" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"> <path fill-rule="evenodd" d="M22 5.892a8.178 8.178 0 0 1-2.355.635 4.074 4.074 0 0 0 1.8-2.235 8.343 8.343 0 0 1-2.605.981A4.13 4.13 0 0 0 15.85 4a4.068 4.068 0 0 0-4.1 4.038c0 .31.035.618.105.919A11.705 11.705 0 0 1 3.4 4.734a4.006 4.006 0 0 0 1.268 5.392 4.165 4.165 0 0 1-1.859-.5v.05A4.057 4.057 0 0 0 6.1 13.635a4.192 4.192 0 0 1-1.856.07 4.108 4.108 0 0 0 3.831 2.807A8.36 8.36 0 0 1 2 18.184 11.732 11.732 0 0 0 8.291 20 11.502 11.502 0 0 0 19.964 8.5c0-.177 0-.349-.012-.523A8.143 8.143 0 0 0 22 5.892Z" clip-rule="evenodd" /> </svg> </span> </div> <div className="relative group mx-5 flex flex-col items-center justify-center cursor-pointer transform transition-transform duration-300 ease-in-out hover:scale-110"> <div className="absolute hidden group-hover:block bg-darklw dark:bg-white text-white dark:text-darklw text-lg font-medium py-2 px-4 rounded-2xl shadow-lg transition-all duration-300 ease-out -top-16 z-10"> Instagram <span className="absolute left-1/2 bottom-[-6px] transform -translate-x-1/2 rotate-45 bg-darklw dark:bg-white w-3 h-3 hover:scale-110 hover:scale-110"></span> </div> <span className="w-16 h-16 bg-darklw dark:bg-white rounded-full shadow-xl flex items-center justify-center text-2xl text-darklw transition-all duration-300 ease-out"> <svg className="w-8 text-white dark:text-darklw group-hover:text-pink-500 dark:group-hover:text-pink-500 " aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"> <path fill="currentColor" fill-rule="evenodd" d="M3 8a5 5 0 0 1 5-5h8a5 5 0 0 1 5 5v8a5 5 0 0 1-5 5H8a5 5 0 0 1-5-5V8Zm5-3a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3H8Zm7.597 2.214a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2h-.01a1 1 0 0 1-1-1ZM12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm-5 3a5 5 0 1 1 10 0 5 5 0 0 1-10 0Z" clip-rule="evenodd" /> </svg> </span> </div> <div className="relative group mx-5 flex flex-col items-center justify-center cursor-pointer transform transition-transform duration-300 ease-in-out hover:scale-110"> <div className="absolute hidden group-hover:block bg-darklw dark:bg-white text-white dark:text-darklw text-lg font-medium py-2 px-4 rounded-2xl shadow-lg transition-all duration-300 ease-out -top-16 z-10"> Github <span className="absolute left-1/2 bottom-[-6px] transform -translate-x-1/2 rotate-45 bg-darklw dark:bg-white w-3 h-3 hover:scale-110 hover:scale-110"></span> </div> <span className="w-16 h-16 bg-darklw dark:bg-white rounded-full shadow-xl flex items-center justify-center text-2xl text-darklw transition-all duration-300 ease-out"> <svg className="w-8 text-white dark:text-darklw group-hover:text-gray-800 dark:group-hover:text-gray-800 " aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"> <path fill-rule="evenodd" d="M12.006 2a9.847 9.847 0 0 0-6.484 2.44 10.32 10.32 0 0 0-3.393 6.17 10.48 10.48 0 0 0 1.317 6.955 10.045 10.045 0 0 0 5.4 4.418c.504.095.683-.223.683-.494 0-.245-.01-1.052-.014-1.908-2.78.62-3.366-1.21-3.366-1.21a2.711 2.711 0 0 0-1.11-1.5c-.907-.637.07-.621.07-.621.317.044.62.163.885.346.266.183.487.426.647.71.135.253.318.476.538.655a2.079 2.079 0 0 0 2.37.196c.045-.52.27-1.006.635-1.37-2.219-.259-4.554-1.138-4.554-5.07a4.022 4.022 0 0 1 1.031-2.75 3.77 3.77 0 0 1 .096-2.713s.839-.275 2.749 1.05a9.26 9.26 0 0 1 5.004 0c1.906-1.325 2.74-1.05 2.74-1.05.37.858.406 1.828.101 2.713a4.017 4.017 0 0 1 1.029 2.75c0 3.939-2.339 4.805-4.564 5.058a2.471 2.471 0 0 1 .679 1.897c0 1.372-.012 2.477-.012 2.814 0 .272.18.592.687.492a10.05 10.05 0 0 0 5.388-4.421 10.473 10.473 0 0 0 1.313-6.948 10.32 10.32 0 0 0-3.39-6.165A9.847 9.847 0 0 0 12.007 2Z" clip-rule="evenodd" /> </svg> </span> </div> <div className="relative group mx-5 flex flex-col items-center justify-center cursor-pointer transform transition-transform duration-300 ease-in-out hover:scale-110"> <div className="absolute hidden group-hover:block bg-darklw dark:bg-white text-white dark:text-darklw text-lg font-medium py-2 px-4 rounded-2xl shadow-lg transition-all duration-300 ease-out -top-16 z-10"> YouTube <span className="absolute left-1/2 bottom-[-6px] transform -translate-x-1/2 rotate-45 bg-darklw dark:bg-white w-3 h-3 hover:scale-110 hover:scale-110"></span> </div> <span className="w-16 h-16 bg-darklw dark:bg-white rounded-full shadow-xl flex items-center justify-center text-2xl text-darklw transition-all duration-300 ease-out"> <svg className="w-8 text-white dark:text-darklw group-hover:text-red-600 dark:group-hover:text-red-600" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"> <path fill-rule="evenodd" d="M21.7 8.037a4.26 4.26 0 0 0-.789-1.964 2.84 2.84 0 0 0-1.984-.839c-2.767-.2-6.926-.2-6.926-.2s-4.157 0-6.928.2a2.836 2.836 0 0 0-1.983.839 4.225 4.225 0 0 0-.79 1.965 30.146 30.146 0 0 0-.2 3.206v1.5a30.12 30.12 0 0 0 .2 3.206c.094.712.364 1.39.784 1.972.604.536 1.38.837 2.187.848 1.583.151 6.731.2 6.731.2s4.161 0 6.928-.2a2.844 2.844 0 0 0 1.985-.84 4.27 4.27 0 0 0 .787-1.965 30.12 30.12 0 0 0 .2-3.206v-1.516a30.672 30.672 0 0 0-.202-3.206Zm-11.692 6.554v-5.62l5.4 2.819-5.4 2.801Z" clip-rule="evenodd" /> </svg> </span> </div> </div> </div> ); }; export default HoverSocialButton;