ai-canvas / static /index.html
parrotmaker's picture
Rename index.html to static/index.html
451af7e verified
raw
history blame
2.19 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Web Playground</title>
<style>
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
display: flex;
height: 100vh;
background: #f5f5f5;
}
.sidebar {
width: 300px;
background: #ddd;
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 1rem;
border-radius: 0 0 0 30px;
}
.sidebar input {
border: none;
padding: 0.75rem 1rem;
border-radius: 30px;
margin-top: auto;
outline: none;
}
.main {
flex: 1;
display: flex;
flex-direction: column;
border-radius: 0 0 30px 0;
}
.tab-bar {
display: flex;
align-items: center;
padding: 0.5rem 1rem;
gap: 0.5rem;
background: #ccc;
border-radius: 0 0 0 30px;
}
.tab-bar .tab {
background: white;
border-radius: 30px;
padding: 0.4rem 1rem;
cursor: pointer;
border: none;
}
.tab-bar .actions {
margin-left: auto;
display: flex;
gap: 1rem;
}
.tab-bar .actions button {
background: none;
border: none;
font-weight: bold;
cursor: pointer;
}
.editor {
flex: 1;
background: #eee;
padding: 1rem;
}
</style>
</head>
<body>
<!-- Left: Assistant -->
<div class="sidebar">
<input type="text" placeholder="Write what you want ✨" />
</div>
<!-- Right: Editor UI -->
<div class="main">
<div class="tab-bar">
<button class="tab">index.html</button>
<button class="tab">styles.css</button>
<button class="tab">script.js</button>
<button class="tab">+</button>
<div class="actions">
<button>▶️ Run</button>
<button>Download</button>
</div>
</div>
<div class="editor">
<textarea style="width: 100%; height: 100%; border: none; outline: none; background: transparent;" placeholder="Your code..."></textarea>
</div>
</div>
</body>
</html>