dsb3 / index.html
MarcRyan's picture
Add 3 files
55d99a8 verified
Raw History Blame Contribute Delete
14.3 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DeepSeek v3 Website Builder</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.split-view {
display: flex;
height: 100vh;
overflow: hidden;
}
.panel {
flex: 1;
overflow: auto;
padding: 20px;
transition: all 0.3s ease;
}
.resizer {
width: 10px;
background: #e5e7eb;
cursor: col-resize;
transition: background 0.3s;
}
.resizer:hover {
background: #9ca3af;
}
.node {
margin-left: 20px;
position: relative;
}
.node::before {
content: "";
position: absolute;
left: -15px;
top: 0;
bottom: 50%;
width: 1px;
background: #d1d5db;
}
.node:last-child::before {
bottom: 0;
}
.node::after {
content: "";
position: absolute;
left: -15px;
top: 50%;
width: 15px;
height: 1px;
background: #d1d5db;
}
.tree-view {
font-family: 'Courier New', monospace;
font-size: 14px;
}
.preview-frame {
width: 100%;
height: 100%;
border: none;
background: white;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.typing-indicator::after {
content: "...";
animation: typing 1.5s infinite;
}
@keyframes typing {
0% { content: "."; }
33% { content: ".."; }
66% { content: "..."; }
}
</style>
</head>
<body class="bg-gray-100">
<div class="split-view">
<!-- AI Agent Panel -->
<div class="panel bg-white">
<div class="flex items-center justify-between mb-6">
<h1 class="text-2xl font-bold text-indigo-600">
<i class="fas fa-robot mr-2"></i> DeepSeek v3 Builder
</h1>
<div class="flex space-x-2">
<button id="newProjectBtn" class="px-4 py-2 bg-indigo-100 text-indigo-700 rounded hover:bg-indigo-200 transition">
<i class="fas fa-plus mr-2"></i>New Project
</button>
<button id="exportBtn" class="px-4 py-2 bg-green-100 text-green-700 rounded hover:bg-green-200 transition">
<i class="fas fa-file-export mr-2"></i>Export
</button>
</div>
</div>
<div class="mb-6">
<div class="flex items-center mb-2">
<label class="block text-sm font-medium text-gray-700 mr-2">Project Name:</label>
<input type="text" id="projectName" class="flex-1 px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500" value="MyWebsite">
</div>
<div class="flex items-center">
<label class="block text-sm font-medium text-gray-700 mr-2">Base URL:</label>
<input type="text" id="baseUrl" class="flex-1 px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500" value="https://mywebsite.com">
</div>
</div>
<div class="flex items-center mb-4">
<input type="text" id="pagePrompt" class="flex-1 px-4 py-2 border border-gray-300 rounded-l-md focus:outline-none focus:ring-2 focus:ring-indigo-500" placeholder="Describe the page you want to create...">
<button id="generateBtn" class="px-4 py-2 bg-indigo-600 text-white rounded-r-md hover:bg-indigo-700 transition">
<i class="fas fa-magic mr-2"></i>Generate
</button>
</div>
<div class="bg-gray-50 p-4 rounded-lg mb-4">
<div class="flex items-center justify-between mb-2">
<h3 class="font-medium text-gray-800">Database Tree Structure</h3>
<div class="flex space-x-2">
<button id="expandAllBtn" class="text-xs px-2 py-1 bg-gray-200 rounded hover:bg-gray-300">
<i class="fas fa-expand mr-1"></i>Expand All
</button>
<button id="collapseAllBtn" class="text-xs px-2 py-1 bg-gray-200 rounded hover:bg-gray-300">
<i class="fas fa-compress mr-1"></i>Collapse All
</button>
</div>
</div>
<div id="databaseTree" class="tree-view">
<div class="node">
<div class="flex items-center cursor-pointer">
<i class="fas fa-folder-open text-yellow-500 mr-2"></i>
<span class="font-medium">root</span>
</div>
<div class="node">
<div class="flex items-center cursor-pointer">
<i class="fas fa-file-code text-blue-500 mr-2"></i>
<span>index.html</span>
</div>
</div>
<div class="node">
<div class="flex items-center cursor-pointer">
<i class="fas fa-folder text-yellow-500 mr-2"></i>
<span class="font-medium">pages</span>
</div>
<div class="node">
<div class="flex items-center cursor-pointer">
<i class="fas fa-file-code text-blue-500 mr-2"></i>
<span>about.html</span>
</div>
</div>
<div class="node">
<div class="flex items-center cursor-pointer">
<i class="fas fa-file-code text-blue-500 mr-2"></i>
<span>contact.html</span>
</div>
</div>
</div>
<div class="node">
<div class="flex items-center cursor-pointer">
<i class="fas fa-folder text-yellow-500 mr-2"></i>
<span class="font-medium">assets</span>
</div>
<div class="node">
<div class="flex items-center cursor-pointer">
<i class="fas fa-folder text-yellow-500 mr-2"></i>
<span class="font-medium">css</span>
</div>
<div class="node">
<div class="flex items-center cursor-pointer">
<i class="fas fa-file-code text-blue-500 mr-2"></i>
<span>styles.css</span>
</div>
</div>
</div>
<div class="node">
<div class="flex items-center cursor-pointer">
<i class="fas fa-folder text-yellow-500 mr-2"></i>
<span class="font-medium">js</span>
</div>
<div class="node">
<div class="flex items-center cursor-pointer">
<i class="fas fa-file-code text-blue-500 mr-2"></i>
<span>main.js</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="bg-gray-50 p-4 rounded-lg">
<h3 class="font-medium text-gray-800 mb-2">AI Agent Console</h3>
<div id="agentConsole" class="bg-black text-green-400 p-3 rounded font-mono text-sm h-40 overflow-y-auto">
<div>> DeepSeek v3 initialized</div>
<div>> Ready to build your website structure</div>
<div>> Current project: MyWebsite</div>
<div id="agentMessage" class="typing-indicator"></div>
</div>
</div>
</div>
<!-- Resizer -->
<div class="resizer"></div>
<!-- Preview Panel -->
<div class="panel bg-gray-200">
<div class="flex items-center justify-between mb-4">
<h2 class="text-xl font-bold text-gray-800">
<i class="fas fa-eye mr-2"></i>Website Preview
</h2>
<div class="flex items-center space-x-2">
<select id="pageSelect" class="px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500">
<option value="index.html">index.html</option>
<option value="about.html">about.html</option>
<option value="contact.html">contact.html</option>
</select>
<button id="refreshPreviewBtn" class="p-2 bg-white rounded hover:bg-gray-100">
<i class="fas fa-sync-alt"></i>
</button>
</div>
</div>
<div class="bg-white rounded-lg shadow overflow-hidden h-full">
<iframe id="previewFrame" class="preview-frame" src="about:blank"></iframe>
</div>
</div>
</div>
<script>
// Sample website data
const websiteData = {
"index.html": `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MyWebsite - Home</title>
<link rel="stylesheet" href="assets/css/styles.css">
</head>
<body class="bg-gray-100">
<header class="bg-white shadow">
<div class="container mx-auto px-6 py-4">
<div class="flex items-center justify-between">
<h1 class="text-2xl font-bold text-indigo-600">MyWebsite</h1>
<nav>
<ul class="flex space-x-6">
<li><a href="index.html" class="text-indigo-600 font-medium">Home</a></li>
<li><a href="pages/about.html" class="text-gray-600 hover:text-indigo-600">About</a></li>
<li><a href="pages/contact.html" class="text-gray-600 hover:text-indigo-600">Contact</a></li>
</ul>
</nav>
</div>
</div>
</header>
<main class="container mx-auto px-6 py-8">
<section class="bg-white rounded-lg shadow p-8 mb-8">
<h2 class="text-3xl font-bold text-gray-800 mb-4">Welcome to MyWebsite</h2>
<p class="text-gray-600 mb-4">This is a sample homepage created by DeepSeek v3 Website Builder.</p>
<button class="px-6 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 transition">Get Started</button>
</section>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-white rounded-lg shadow p-6">
<div class="text-indigo-500 text-2xl mb-4">
<i class="fas fa-rocket"></i>
</div>
<h3 class="text-xl font-bold text-gray-800 mb-2">Fast Performance</h3>
<p class="text-gray-600">Optimized for speed and efficiency.</p>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="text-indigo-500 text-2xl mb-4">
<i class="fas fa-mobile-alt"></i>
</div>
<h3 class="text-xl font-bold text-gray-800 mb-2">Responsive Design</h3>
<p class="text-gray-600">Looks great on all devices.</p>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="text-indigo-500 text-2xl mb-4">
<i class="fas fa-cog"></i>
</div>
<h3 class="text-xl font-bold text-gray-800 mb-2">Easy to Customize</h3>
<p class="text-gray-600">Change colors, fonts and more.</p>
</div>
</div>
</main>
<footer class="bg-gray-800 text-white py-8">
<div class="container mx-auto px-6 text-center">
<p>&copy; 2023 MyWebsite. All rights reserved.</p>
</div>
</footer>
<script src="assets/js/main.js"></script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=MarcRyan/dsb3" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>