tailwind布局实现简洁仪表盘后台ui设计代码
代码语言:html
所属分类:布局界面
代码描述:tailwind布局实现简洁仪表盘后台ui设计代码
代码标签: tailwind 布局 简洁 仪表盘 后台 ui 设计 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/tailwindcss.3.4.16.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
<style>
body { font-family: 'Inter', sans-serif; }
</style>
</head>
<body class="bg-gray-200 min-h-screen flex items-center justify-center px-2 py-6">
<div class="w-full max-w-7xl shadow-2xl rounded-2xl overflow-hidden border border-gray-300 bg-gray-100">
<!-- Browser window bar -->
<div class="flex items-center h-10 bg-gray-200 border-b border-gray-300 px-4">
<div class="flex items-center gap-2">
<span class="w-3 h-3 rounded-full bg-red-400"></span>
<span class="w-3 h-3 rounded-full bg-yellow-400"></span>
<span class="w-3 h-3 rounded-full bg-green-400"></span>
</div>
<div class="flex-1 flex justify-center">
<span class="text-xs text-gray-500 bg-white px-3 py-1 rounded border border-gray-200">
https://dashboard.yourapp.com
</span>
</div>
</div>
<div class="flex" style="height: 800px;">
<!-- Sidebar (Dark Mode) -->
<aside class="w-80 flex-shrink-0 bg-gray-900 text-gray-100 flex flex-col h-full border-r border-gray-800">
<div class="flex items-center h-16 px-6 border-b border-gray-800">
<span class="text-lg font-bold tracking-tight text-violet-400">YourApp</span>
</div>
<!-- Onboarding Progress -->
<div class="px-6 py-4 border-b border-gray-800">
<h2 class="text-xs font-semibold text-gray-400 uppercase mb-2">Get started</h2>
<div>
<div class="flex items-center justify-between mb-2">
<span class="text-xs text-gray-300">Setup progress</span>
<span class="text-[11px] text-gray-500">2/5</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-1.5 mb-3">
<div class="bg-violet-500 h-1.5 rounded-full" style="width: 40%"></div>
</div>
<ul class="space-y-2">
<li class="flex items-center gap-2">
<span class="inline-flex items-center justify-center w-4 h-4 rounded-full bg-violet-500">
<svg class="w-2.5 h-2.5 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M5 13l4 4L19 7"></path>
</svg>
</span>
<span class="text-sm text-gray-100">Create workspace</span>
</li>
<li class="flex items-center gap-2">
<span class="inline-flex items-center justify-center w-4 h-4 rounded-full bg-violet.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0