Spaces:
Running
Running
修改成跟图片一样的样式
Browse files- components/footer.js +2 -2
- components/navbar.js +8 -8
- index.html +71 -76
- style.css +5 -5
components/footer.js
CHANGED
|
@@ -4,13 +4,13 @@ class CustomFooter extends HTMLElement {
|
|
| 4 |
this.shadowRoot.innerHTML = `
|
| 5 |
<style>
|
| 6 |
footer {
|
| 7 |
-
background: #
|
| 8 |
color: #f9fafb;
|
| 9 |
padding: 3rem 2rem;
|
| 10 |
text-align: center;
|
| 11 |
margin-top: auto;
|
| 12 |
}
|
| 13 |
-
|
| 14 |
max-width: 6xl;
|
| 15 |
margin: 0 auto;
|
| 16 |
}
|
|
|
|
| 4 |
this.shadowRoot.innerHTML = `
|
| 5 |
<style>
|
| 6 |
footer {
|
| 7 |
+
background: #111827;
|
| 8 |
color: #f9fafb;
|
| 9 |
padding: 3rem 2rem;
|
| 10 |
text-align: center;
|
| 11 |
margin-top: auto;
|
| 12 |
}
|
| 13 |
+
.footer-content {
|
| 14 |
max-width: 6xl;
|
| 15 |
margin: 0 auto;
|
| 16 |
}
|
components/navbar.js
CHANGED
|
@@ -4,9 +4,9 @@ class CustomNavbar extends HTMLElement {
|
|
| 4 |
this.shadowRoot.innerHTML = `
|
| 5 |
<style>
|
| 6 |
nav {
|
| 7 |
-
background: rgba(
|
| 8 |
backdrop-filter: blur(10px);
|
| 9 |
-
border-bottom: 1px solid rgba(
|
| 10 |
padding: 1rem 2rem;
|
| 11 |
display: flex;
|
| 12 |
justify-content: space-between;
|
|
@@ -19,10 +19,10 @@ class CustomNavbar extends HTMLElement {
|
|
| 19 |
transition: all 0.3s ease;
|
| 20 |
}
|
| 21 |
.logo {
|
| 22 |
-
color: #
|
| 23 |
font-weight: 800;
|
| 24 |
font-size: 1.5rem;
|
| 25 |
-
background: linear-gradient(135deg, #
|
| 26 |
-webkit-background-clip: text;
|
| 27 |
-webkit-text-fill-color: transparent;
|
| 28 |
}
|
|
@@ -34,14 +34,14 @@ class CustomNavbar extends HTMLElement {
|
|
| 34 |
padding: 0;
|
| 35 |
}
|
| 36 |
a {
|
| 37 |
-
color: #
|
| 38 |
text-decoration: none;
|
| 39 |
font-weight: 500;
|
| 40 |
transition: all 0.2s ease;
|
| 41 |
position: relative;
|
| 42 |
}
|
| 43 |
a:hover {
|
| 44 |
-
color: #
|
| 45 |
}
|
| 46 |
a::after {
|
| 47 |
content: '';
|
|
@@ -50,13 +50,13 @@ class CustomNavbar extends HTMLElement {
|
|
| 50 |
height: 2px;
|
| 51 |
bottom: -4px;
|
| 52 |
left: 0;
|
| 53 |
-
background: linear-gradient(135deg, #
|
| 54 |
transition: width 0.3s ease;
|
| 55 |
}
|
| 56 |
a:hover::after {
|
| 57 |
width: 100%;
|
| 58 |
}
|
| 59 |
-
|
| 60 |
nav {
|
| 61 |
padding: 1rem;
|
| 62 |
flex-direction: column;
|
|
|
|
| 4 |
this.shadowRoot.innerHTML = `
|
| 5 |
<style>
|
| 6 |
nav {
|
| 7 |
+
background: rgba(17, 24, 39, 0.95);
|
| 8 |
backdrop-filter: blur(10px);
|
| 9 |
+
border-bottom: 1px solid rgba(55, 65, 81, 0.5);
|
| 10 |
padding: 1rem 2rem;
|
| 11 |
display: flex;
|
| 12 |
justify-content: space-between;
|
|
|
|
| 19 |
transition: all 0.3s ease;
|
| 20 |
}
|
| 21 |
.logo {
|
| 22 |
+
color: #ffffff;
|
| 23 |
font-weight: 800;
|
| 24 |
font-size: 1.5rem;
|
| 25 |
+
background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
|
| 26 |
-webkit-background-clip: text;
|
| 27 |
-webkit-text-fill-color: transparent;
|
| 28 |
}
|
|
|
|
| 34 |
padding: 0;
|
| 35 |
}
|
| 36 |
a {
|
| 37 |
+
color: #d1d5db;
|
| 38 |
text-decoration: none;
|
| 39 |
font-weight: 500;
|
| 40 |
transition: all 0.2s ease;
|
| 41 |
position: relative;
|
| 42 |
}
|
| 43 |
a:hover {
|
| 44 |
+
color: #ffffff;
|
| 45 |
}
|
| 46 |
a::after {
|
| 47 |
content: '';
|
|
|
|
| 50 |
height: 2px;
|
| 51 |
bottom: -4px;
|
| 52 |
left: 0;
|
| 53 |
+
background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
|
| 54 |
transition: width 0.3s ease;
|
| 55 |
}
|
| 56 |
a:hover::after {
|
| 57 |
width: 100%;
|
| 58 |
}
|
| 59 |
+
@media (max-width: 768px) {
|
| 60 |
nav {
|
| 61 |
padding: 1rem;
|
| 62 |
flex-direction: column;
|
index.html
CHANGED
|
@@ -11,107 +11,117 @@
|
|
| 11 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 12 |
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
|
| 13 |
</head>
|
| 14 |
-
<body class="min-h-screen bg-
|
| 15 |
-
|
| 16 |
<!-- Hero Section -->
|
| 17 |
-
<section id="hero" class="relative min-h-screen flex items-center justify-center overflow-hidden">
|
| 18 |
-
<div class="absolute inset-0 z-0
|
|
|
|
|
|
|
|
|
|
| 19 |
<div class="relative z-10 max-w-6xl mx-auto px-4 text-center">
|
| 20 |
-
<h1 class="text-5xl md:text-7xl font-bold text-
|
| 21 |
FlexGen Studio
|
| 22 |
</h1>
|
| 23 |
-
<p class="text-xl md:text-2xl text-gray-
|
| 24 |
轻松生成 MyBatis Flex 代码 🎯
|
| 25 |
</p>
|
| 26 |
<div class="flex flex-col sm:flex-row gap-4 justify-center">
|
| 27 |
<a href="#generator" class="bg-blue-600 hover:bg-blue-700 text-white px-8 py-4 rounded-lg font-semibold text-lg transition-all duration-300 transform hover:scale-105 shadow-lg">
|
| 28 |
开始生成
|
| 29 |
</a>
|
| 30 |
-
<a href="#features" class="border-2 border-
|
| 31 |
了解更多
|
| 32 |
</a>
|
| 33 |
</div>
|
| 34 |
</div>
|
| 35 |
</section>
|
| 36 |
<!-- Features Section -->
|
| 37 |
-
<section id="features" class="py-20 bg-
|
| 38 |
<div class="max-w-6xl mx-auto px-4">
|
| 39 |
-
<h2 class="text-4xl font-bold text-center text-
|
| 40 |
<div class="grid md:grid-cols-3 gap-8">
|
| 41 |
-
<div class="text-center p-6">
|
| 42 |
-
<div class="w-16 h-16 bg-blue-
|
| 43 |
-
<i data-feather="zap" class="text-blue-
|
| 44 |
</div>
|
| 45 |
-
<h3 class="text-xl font-semibold mb-4">闪电般快速</h3>
|
| 46 |
-
<p class="text-gray-
|
| 47 |
</div>
|
| 48 |
-
<div class="text-center p-6">
|
| 49 |
-
<div class="w-16 h-16 bg-green-
|
| 50 |
-
<i data-feather="code" class="text-green-
|
| 51 |
</div>
|
| 52 |
-
<h3 class="text-xl font-semibold mb-4">简洁代码</h3>
|
| 53 |
-
<p class="text-gray-
|
| 54 |
</div>
|
| 55 |
-
<div class="text-center p-6">
|
| 56 |
-
<div class="w-16 h-16 bg-purple-
|
| 57 |
-
<i data-feather="settings" class="text-purple-
|
| 58 |
</div>
|
| 59 |
-
<h3 class="text-xl font-semibold mb-4">高度可定制</h3>
|
| 60 |
-
<p class="text-gray-
|
| 61 |
</div>
|
| 62 |
</div>
|
| 63 |
</div>
|
| 64 |
</section>
|
| 65 |
<!-- Code Generator Section -->
|
| 66 |
-
<section id="generator" class="py-20 bg-gray-
|
| 67 |
<div class="max-w-6xl mx-auto px-4">
|
| 68 |
-
<h2 class="text-4xl font-bold text-center text-
|
| 69 |
-
<div class="bg-
|
| 70 |
<div class="grid lg:grid-cols-2 gap-8">
|
| 71 |
<!-- Input Section -->
|
| 72 |
<div class="space-y-6">
|
| 73 |
<div>
|
| 74 |
-
<label class="block text-sm font-medium text-
|
| 75 |
<div class="grid grid-cols-2 gap-4">
|
| 76 |
-
<input type="text" placeholder="Database URL" class="w-full px-4 py-3 border border-gray-
|
| 77 |
-
<input type="text" placeholder="Username" class="w-full px-4 py-3 border border-gray-
|
| 78 |
</div>
|
| 79 |
</div>
|
| 80 |
<div>
|
| 81 |
-
<label class="block text-sm font-medium text-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
<div>
|
| 83 |
-
<label class="block text-sm font-medium text-
|
| 84 |
<div class="space-y-3">
|
| 85 |
-
<label class="flex items-center">
|
| 86 |
-
<input type="checkbox" class="rounded border-gray-
|
| 87 |
-
<span class="ml-2"
|
| 88 |
</label>
|
| 89 |
-
<label class="flex items-center">
|
| 90 |
-
<input type="checkbox" class="rounded border-gray-
|
| 91 |
-
<span class="ml-2"
|
| 92 |
</label>
|
| 93 |
-
<label class="flex items-center">
|
| 94 |
-
<input type="checkbox" class="rounded border-gray-
|
| 95 |
-
<span class="ml-2"
|
| 96 |
</label>
|
| 97 |
</div>
|
| 98 |
</div>
|
| 99 |
<button onclick="generateCode()" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-4 px-6 rounded-lg font-semibold text-lg transition-all duration-300 transform hover:scale-105">
|
| 100 |
-
|
| 101 |
</button>
|
| 102 |
</div>
|
| 103 |
<!-- Output Preview -->
|
| 104 |
<div>
|
| 105 |
-
<label class="block text-sm font-medium text-
|
| 106 |
-
<div class="bg-
|
| 107 |
<pre id="code-output" class="text-green-400 text-sm font-mono">// Generated code will appear here...</pre>
|
| 108 |
</div>
|
| 109 |
<div class="mt-4 flex gap-3">
|
| 110 |
-
<button onclick="copyCode()" class="flex-1 bg-gray-
|
| 111 |
<i data-feather="copy" class="inline w-4 h-4 mr-2"></i>
|
| 112 |
复制代码
|
| 113 |
</button>
|
| 114 |
-
<button onclick="downloadCode()" class="flex-1 bg-green-
|
| 115 |
<i data-feather="download" class="inline w-4 h-4 mr-2"></i>
|
| 116 |
下载
|
| 117 |
</button>
|
|
@@ -121,37 +131,36 @@
|
|
| 121 |
</div>
|
| 122 |
</div>
|
| 123 |
</section>
|
| 124 |
-
|
| 125 |
-
<custom-footer></custom-footer>
|
| 126 |
<!-- Documentation Section -->
|
| 127 |
-
<section id="documentation" class="py-20 bg-
|
| 128 |
<div class="max-w-6xl mx-auto px-4">
|
| 129 |
-
<h2 class="text-4xl font-bold text-center text-
|
| 130 |
-
<div class="bg-gray-
|
| 131 |
<div class="grid md:grid-cols-2 gap-8">
|
| 132 |
<div class="space-y-6">
|
| 133 |
-
<div class="bg-blue-
|
| 134 |
-
<h3 class="text-xl font-semibold mb-4">快速开始</h3>
|
| 135 |
-
<p class="text-gray-
|
| 136 |
-
<pre class="bg-
|
| 137 |
<dependency>
|
| 138 |
<groupId>com.mybatis-flex</groupId>
|
| 139 |
<artifactId>mybatis-flex-codegen</artifactId>
|
| 140 |
<version>1.11.3</version>
|
| 141 |
</dependency></pre>
|
| 142 |
</div>
|
| 143 |
-
<div class="bg-green-
|
| 144 |
-
<h3 class="text-xl font-semibold mb-4">AI 代码生成功能</h3>
|
| 145 |
-
<p class="text-gray-
|
| 146 |
<a href="https://ai.mybatis-flex.com" target="_blank" class="inline-block bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-lg font-medium transition-colors">
|
| 147 |
访问 AI 代码生成器
|
| 148 |
</a>
|
| 149 |
</div>
|
| 150 |
</div>
|
| 151 |
<div class="space-y-6">
|
| 152 |
-
<div class="bg-purple-
|
| 153 |
-
<h3 class="text-xl font-semibold mb-4">支持生成的产物</h3>
|
| 154 |
-
<ul class="list-disc list-inside text-gray-
|
| 155 |
<li>Entity 实体类</li>
|
| 156 |
<li>Mapper 映射类</li>
|
| 157 |
<li>TableDef 表定义辅助类</li>
|
|
@@ -165,8 +174,7 @@
|
|
| 165 |
</div>
|
| 166 |
</div>
|
| 167 |
</section>
|
| 168 |
-
|
| 169 |
-
<custom-footer></custom-footer>
|
| 170 |
|
| 171 |
<!-- Scripts -->
|
| 172 |
<script src="components/navbar.js"></script>
|
|
@@ -174,19 +182,6 @@
|
|
| 174 |
<script src="script.js"></script>
|
| 175 |
<script>
|
| 176 |
feather.replace();
|
| 177 |
-
// Initialize Vanta.js background
|
| 178 |
-
VANTA.GLOBE({
|
| 179 |
-
el: "#vanta-bg",
|
| 180 |
-
mouseControls: true,
|
| 181 |
-
touchControls: true,
|
| 182 |
-
gyroControls: false,
|
| 183 |
-
minHeight: 200.00,
|
| 184 |
-
minWidth: 200.00,
|
| 185 |
-
scale: 1.00,
|
| 186 |
-
scaleMobile: 1.00,
|
| 187 |
-
color: 0x3b82f6,
|
| 188 |
-
backgroundColor: 0xf8fafc
|
| 189 |
-
});
|
| 190 |
</script>
|
| 191 |
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 192 |
</body>
|
|
|
|
| 11 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 12 |
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
|
| 13 |
</head>
|
| 14 |
+
<body class="min-h-screen bg-gray-900">
|
| 15 |
+
<custom-navbar></custom-navbar>
|
| 16 |
<!-- Hero Section -->
|
| 17 |
+
<section id="hero" class="relative min-h-screen flex items-center justify-center overflow-hidden bg-gradient-to-br from-gray-900 via-blue-900 to-gray-900">
|
| 18 |
+
<div class="absolute inset-0 z-0 opacity-20">
|
| 19 |
+
<div class="absolute top-1/4 left-1/4 w-64 h-64 bg-blue-500 rounded-full filter blur-3xl"></div>
|
| 20 |
+
<div class="absolute bottom-1/4 right-1/4 w-64 h-64 bg-purple-500 rounded-full filter blur-3xl"></div>
|
| 21 |
+
</div>
|
| 22 |
<div class="relative z-10 max-w-6xl mx-auto px-4 text-center">
|
| 23 |
+
<h1 class="text-5xl md:text-7xl font-bold text-white mb-6">
|
| 24 |
FlexGen Studio
|
| 25 |
</h1>
|
| 26 |
+
<p class="text-xl md:text-2xl text-gray-300 mb-8">
|
| 27 |
轻松生成 MyBatis Flex 代码 🎯
|
| 28 |
</p>
|
| 29 |
<div class="flex flex-col sm:flex-row gap-4 justify-center">
|
| 30 |
<a href="#generator" class="bg-blue-600 hover:bg-blue-700 text-white px-8 py-4 rounded-lg font-semibold text-lg transition-all duration-300 transform hover:scale-105 shadow-lg">
|
| 31 |
开始生成
|
| 32 |
</a>
|
| 33 |
+
<a href="#features" class="border-2 border-white text-white hover:bg-white hover:text-gray-900 px-8 py-4 rounded-lg font-semibold text-lg transition-all duration-300">
|
| 34 |
了解更多
|
| 35 |
</a>
|
| 36 |
</div>
|
| 37 |
</div>
|
| 38 |
</section>
|
| 39 |
<!-- Features Section -->
|
| 40 |
+
<section id="features" class="py-20 bg-gray-900">
|
| 41 |
<div class="max-w-6xl mx-auto px-4">
|
| 42 |
+
<h2 class="text-4xl font-bold text-center text-white mb-16">为什么选择 FlexGen Studio?</h2>
|
| 43 |
<div class="grid md:grid-cols-3 gap-8">
|
| 44 |
+
<div class="text-center p-6 bg-gray-800 rounded-2xl hover:bg-gray-700 transition-all duration-300">
|
| 45 |
+
<div class="w-16 h-16 bg-blue-900 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 46 |
+
<i data-feather="zap" class="text-blue-400"></i>
|
| 47 |
</div>
|
| 48 |
+
<h3 class="text-xl font-semibold mb-4 text-white">闪电般快速</h3>
|
| 49 |
+
<p class="text-gray-400">使用智能模板,在几秒钟内生成优化的 MyBatis Flex 代码。</p>
|
| 50 |
</div>
|
| 51 |
+
<div class="text-center p-6 bg-gray-800 rounded-2xl hover:bg-gray-700 transition-all duration-300">
|
| 52 |
+
<div class="w-16 h-16 bg-green-900 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 53 |
+
<i data-feather="code" class="text-green-400"></i>
|
| 54 |
</div>
|
| 55 |
+
<h3 class="text-xl font-semibold mb-4 text-white">简洁代码</h3>
|
| 56 |
+
<p class="text-gray-400">生产就绪、结构良好的代码,遵循最佳实践和约定。</p>
|
| 57 |
</div>
|
| 58 |
+
<div class="text-center p-6 bg-gray-800 rounded-2xl hover:bg-gray-700 transition-all duration-300">
|
| 59 |
+
<div class="w-16 h-16 bg-purple-900 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 60 |
+
<i data-feather="settings" class="text-purple-400"></i>
|
| 61 |
</div>
|
| 62 |
+
<h3 class="text-xl font-semibold mb-4 text-white">高度可定制</h3>
|
| 63 |
+
<p class="text-gray-400">根据您的特定项目需求和偏好定制生成的代码。</p>
|
| 64 |
</div>
|
| 65 |
</div>
|
| 66 |
</div>
|
| 67 |
</section>
|
| 68 |
<!-- Code Generator Section -->
|
| 69 |
+
<section id="generator" class="py-20 bg-gray-800">
|
| 70 |
<div class="max-w-6xl mx-auto px-4">
|
| 71 |
+
<h2 class="text-4xl font-bold text-center text-white mb-16">代码生成器</h2>
|
| 72 |
+
<div class="bg-gray-900 rounded-2xl shadow-2xl p-8 border border-gray-700">
|
| 73 |
<div class="grid lg:grid-cols-2 gap-8">
|
| 74 |
<!-- Input Section -->
|
| 75 |
<div class="space-y-6">
|
| 76 |
<div>
|
| 77 |
+
<label class="block text-sm font-medium text-white mb-2">数据库配置</label>
|
| 78 |
<div class="grid grid-cols-2 gap-4">
|
| 79 |
+
<input type="text" placeholder="Database URL" class="w-full px-4 py-3 bg-gray-800 border border-gray-700 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent text-white">
|
| 80 |
+
<input type="text" placeholder="Username" class="w-full px-4 py-3 bg-gray-800 border border-gray-700 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent text-white">
|
| 81 |
</div>
|
| 82 |
</div>
|
| 83 |
<div>
|
| 84 |
+
<label class="block text-sm font-medium text-white mb-2">表选择</label>
|
| 85 |
+
<select class="w-full px-4 py-3 bg-gray-800 border border-gray-700 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent text-white">
|
| 86 |
+
<option>选择表...</option>
|
| 87 |
+
<option>user</option>
|
| 88 |
+
<option>order</option>
|
| 89 |
+
<option>product</option>
|
| 90 |
+
</select>
|
| 91 |
+
</div>
|
| 92 |
<div>
|
| 93 |
+
<label class="block text-sm font-medium text-white mb-2">输出配置</label>
|
| 94 |
<div class="space-y-3">
|
| 95 |
+
<label class="flex items-center text-white">
|
| 96 |
+
<input type="checkbox" class="rounded border-gray-700 bg-gray-800 text-blue-500 focus:ring-blue-500">
|
| 97 |
+
<span class="ml-2">生成实体类</span>
|
| 98 |
</label>
|
| 99 |
+
<label class="flex items-center text-white">
|
| 100 |
+
<input type="checkbox" class="rounded border-gray-700 bg-gray-800 text-blue-500 focus:ring-blue-500" checked>
|
| 101 |
+
<span class="ml-2">生成 Mapper 接口</span>
|
| 102 |
</label>
|
| 103 |
+
<label class="flex items-center text-white">
|
| 104 |
+
<input type="checkbox" class="rounded border-gray-700 bg-gray-800 text-blue-500 focus:ring-blue-500">
|
| 105 |
+
<span class="ml-2">生成 Service 类</span>
|
| 106 |
</label>
|
| 107 |
</div>
|
| 108 |
</div>
|
| 109 |
<button onclick="generateCode()" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-4 px-6 rounded-lg font-semibold text-lg transition-all duration-300 transform hover:scale-105">
|
| 110 |
+
生成代码
|
| 111 |
</button>
|
| 112 |
</div>
|
| 113 |
<!-- Output Preview -->
|
| 114 |
<div>
|
| 115 |
+
<label class="block text-sm font-medium text-white mb-2">生成代码预览</label>
|
| 116 |
+
<div class="bg-black rounded-lg p-4 h-96 overflow-auto border border-gray-700">
|
| 117 |
<pre id="code-output" class="text-green-400 text-sm font-mono">// Generated code will appear here...</pre>
|
| 118 |
</div>
|
| 119 |
<div class="mt-4 flex gap-3">
|
| 120 |
+
<button onclick="copyCode()" class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-3 px-4 rounded-lg font-medium transition-colors">
|
| 121 |
<i data-feather="copy" class="inline w-4 h-4 mr-2"></i>
|
| 122 |
复制代码
|
| 123 |
</button>
|
| 124 |
+
<button onclick="downloadCode()" class="flex-1 bg-green-700 hover:bg-green-600 text-white py-3 px-4 rounded-lg font-medium transition-colors">
|
| 125 |
<i data-feather="download" class="inline w-4 h-4 mr-2"></i>
|
| 126 |
下载
|
| 127 |
</button>
|
|
|
|
| 131 |
</div>
|
| 132 |
</div>
|
| 133 |
</section>
|
| 134 |
+
<custom-footer></custom-footer>
|
|
|
|
| 135 |
<!-- Documentation Section -->
|
| 136 |
+
<section id="documentation" class="py-20 bg-gray-900">
|
| 137 |
<div class="max-w-6xl mx-auto px-4">
|
| 138 |
+
<h2 class="text-4xl font-bold text-center text-white mb-16">MyBatis-Flex 代码生成器文档</h2>
|
| 139 |
+
<div class="bg-gray-800 rounded-2xl p-8 border border-gray-700">
|
| 140 |
<div class="grid md:grid-cols-2 gap-8">
|
| 141 |
<div class="space-y-6">
|
| 142 |
+
<div class="bg-blue-900 p-6 rounded-lg border border-blue-700">
|
| 143 |
+
<h3 class="text-xl font-semibold mb-4 text-white">快速开始</h3>
|
| 144 |
+
<p class="text-gray-300 mb-4">添加 mybatis-flex-codegen 的 Maven 依赖:</p>
|
| 145 |
+
<pre class="bg-black text-green-400 p-4 rounded-lg text-sm border border-gray-700">
|
| 146 |
<dependency>
|
| 147 |
<groupId>com.mybatis-flex</groupId>
|
| 148 |
<artifactId>mybatis-flex-codegen</artifactId>
|
| 149 |
<version>1.11.3</version>
|
| 150 |
</dependency></pre>
|
| 151 |
</div>
|
| 152 |
+
<div class="bg-green-900 p-6 rounded-lg border border-green-700">
|
| 153 |
+
<h3 class="text-xl font-semibold mb-4 text-white">AI 代码生成功能</h3>
|
| 154 |
+
<p class="text-gray-300 mb-4">MyBatis-Flex 提供了一个在线的 AI 代码生成器,可以通过您的产品需求描述,自动生成完整的 SpringBoot + MyBatisFlex 项目代码以及 SQL 脚本。</p>
|
| 155 |
<a href="https://ai.mybatis-flex.com" target="_blank" class="inline-block bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-lg font-medium transition-colors">
|
| 156 |
访问 AI 代码生成器
|
| 157 |
</a>
|
| 158 |
</div>
|
| 159 |
</div>
|
| 160 |
<div class="space-y-6">
|
| 161 |
+
<div class="bg-purple-900 p-6 rounded-lg border border-purple-700">
|
| 162 |
+
<h3 class="text-xl font-semibold mb-4 text-white">支持生成的产物</h3>
|
| 163 |
+
<ul class="list-disc list-inside text-gray-300 space-y-2">
|
| 164 |
<li>Entity 实体类</li>
|
| 165 |
<li>Mapper 映射类</li>
|
| 166 |
<li>TableDef 表定义辅助类</li>
|
|
|
|
| 174 |
</div>
|
| 175 |
</div>
|
| 176 |
</section>
|
| 177 |
+
<custom-footer></custom-footer>
|
|
|
|
| 178 |
|
| 179 |
<!-- Scripts -->
|
| 180 |
<script src="components/navbar.js"></script>
|
|
|
|
| 182 |
<script src="script.js"></script>
|
| 183 |
<script>
|
| 184 |
feather.replace();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
</script>
|
| 186 |
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 187 |
</body>
|
style.css
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
|
| 2 |
/* Shared styles across all pages */
|
| 3 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
|
| 4 |
-
|
| 5 |
body {
|
| 6 |
font-family: 'Inter', sans-serif;
|
| 7 |
scroll-behavior: smooth;
|
|
|
|
|
|
|
| 8 |
}
|
| 9 |
-
|
| 10 |
/* Documentation section styles */
|
| 11 |
-
.bg-blue-50 { background-color: #
|
| 12 |
-
.bg-green-50 { background-color: #
|
| 13 |
-
.bg-purple-50 { background-color: #
|
| 14 |
/* Custom scrollbar for code preview */
|
| 15 |
#code-output::-webkit-scrollbar {
|
| 16 |
width: 8px;
|
|
|
|
| 1 |
|
| 2 |
/* Shared styles across all pages */
|
| 3 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
|
|
|
|
| 4 |
body {
|
| 5 |
font-family: 'Inter', sans-serif;
|
| 6 |
scroll-behavior: smooth;
|
| 7 |
+
background: #111827;
|
| 8 |
+
color: #f9fafb;
|
| 9 |
}
|
|
|
|
| 10 |
/* Documentation section styles */
|
| 11 |
+
.bg-blue-50 { background-color: #1e3a8a; }
|
| 12 |
+
.bg-green-50 { background-color: #064e3b; }
|
| 13 |
+
.bg-purple-50 { background-color: #581c87; }
|
| 14 |
/* Custom scrollbar for code preview */
|
| 15 |
#code-output::-webkit-scrollbar {
|
| 16 |
width: 8px;
|