tailwind布局消息列表代码

代码语言:html

所属分类:布局界面

代码描述:tailwind布局消息列表代码,可清空消息和关闭窗口。

代码标签: tailwind 布局 消息 列表 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

  
  
<style>
body {
	background-image: linear-gradient(
		40deg,
		hsl(240deg 62% 88%) 0%,
		hsl(259deg 100% 83%) 39%,
		hsl(282deg 100% 74%) 61%,
		hsl(299deg 100% 50%) 100%
	);

}

</style>

<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/tailwind.2.2.7.css">
  <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.5.1.css">
  
</head>

<body translate="no">

<div class="relative" id="notifications">
	<div class="absolute left z-10 mt-5 flex w-screen max-w-max -translate-x-1/2 px-4">
		<div class="w-screen max-w-md flex-auto overflow-hidden rounded-3xl text-sm leading-6 shadow-lg ring-2 ring-gray-900/6 bg-gradient-to-r from-gray-50 to-blue-100">
			<div class="p-4">
				<button type="button" class="inline-flex items-center gap-x-1 text-sm font-semibold leading-6 text-gray-900" aria-expanded="false">
					<span>Notifications</span>
					<i class="fa-solid fa-chevron-down text-gray-600 group-hover:text-indigo-600 animate-bounce"></i>
				</button>
				<div id="messages">
					<div class="group relative flex gap-x-6 rounded-lg p-4 hover:bg-gray-200">
						<div class="mt-1 flex h-11 w-11 flex-none items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white">
							<i class="fa-brands fa-instagram fa-xl text-gray-600 group-hover:text-indigo-600"></i>
						</div>
						<div>
							<a href="#" class="font-semibold text-gray-900">
								New Post <span class="text-xs text-gray-400 animate-pulse">8:24AM</span>
								<span class="absolute inset-0"></span>
							</a>
							<p class="mt-1 text-gray-600">Sarah just posted a story</p>
						</div>
					</div>
					<div class="group relative flex gap-x-6 rounded-lg p-4 hover:bg-gray-200">
						<div class="mt-1 flex h-11 w-11 flex-none items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white">
							<i class="fa-solid fa-thumbs-up fa-xl text-gray-600 group-hover:text-indigo-600"></i>
						</div>
						<div>
							<a href="#" class="font-semibold text-gray-900">
								Engagement <span class="text-xs text-gray-400 animate-pulse">8:44AM</span>
								<span class="absolute inset-0"></span>
							</a>
							<p class="mt-1 text-gray-600">Daves like your post</p>
						</div>
					</div>
					<div class="group relative flex gap-x-6 rounded-lg p-4 hover:bg-gray-200">
						<div class="mt-1 flex h-11 w-11 flex-none items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white">
							<i class="fa-solid fa-arrow-right-to-bracket fa-xl text-gray-600 group-hover:text-indigo-600"></i>
						</div>
						<div>
							<a href="#" class="font-semibold text-gray-900">
								Security Alert <span class="text-xs text-gray-400 animate-pulse">8:56AM</span>
								<span class="absolute inset-0"></span>
							</a>
	.........完整代码请登录后点击上方下载按钮下载查看

网友评论0