tailwind实现云服务空间托管数据库管理仪表盘后台ui交互效果代码
代码语言:html
所属分类:布局界面
代码描述:tailwind实现云服务空间托管数据库管理仪表盘后台ui交互效果代码
代码标签: tailwind 云 服务 空间 托管 数据库 管理 仪表盘 后台 ui 交互
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nebula Cloud | 企业级云空间管理平台</title>
<!-- Tailwind CSS -->
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.4.0.css">
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/tailwindcss.3.4.16.js"></script>
<!-- 2. 引入 JS 库 -->
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue.2.7.14.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/axios.1.6.7.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/mock.min.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/chart.js"></script>
<style>
/* 自定义滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.fade-enter-active, .fade-leave-active { transition: opacity 0.3s; }
.fade-enter, .fade-leave-to { opacity: 0; }
/* 代码编辑器模拟样式 */
.json-editor {
font-family: 'Consolas', 'Monaco', monospace;
background-color: #1e293b;
color: #a5b4fc;
}
</style>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#4f46e5',
secondary: '#64748b',
dark: '#0f172a',
}
}
}
}
</script>
</head>
<body class="bg-gray-50 text-slate-800 font-sans antialiased h-screen overflow-hidden">
<div id="app" class="flex h-full">
<!-- Sidebar -->
<aside class="w-64 bg-slate-900 text-white flex flex-col shadow-2xl z-20">
<div class="h-16 flex items-center px-6 border-b border-slate-800">
<i class="fa-solid fa-cloud text-indigo-500 text-2xl mr-3"></i>
<span class="text-xl font-bold tracking-wide">Nebula Cloud</span>
</div>
<nav class="flex-1 py-6 space-y-1">
<a href="#" @click.prevent="currentView = 'dashboard'"
:class="{'bg-indigo-600 text-white border-r-4 border-indigo-300': currentView === 'dashboard', 'text-slate-400 hover:bg-slate-800 hover:text-white': currentView !== 'dashboard'}"
class="flex items-center px-6 py-3 transition-colors duration-200">
<i class="fa-solid fa-chart-line w-6"></i>
<span class="font-medium">总览仪表盘</span>
</a>
<a href="#" @click.prevent="currentView = 'spaces'"
:class="{'bg-indigo-600 text-white border-r-4 border-indigo-300': currentView === 'spaces', 'text-slate-400 hover:bg-slate-800 hover:text-white': currentView !== 'spaces'}"
class="flex items-center px-6 py-3 transition-colors duration-200">
<i class="fa-solid fa-server w-6"></i>
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0