parrotmaker commited on
Commit
d2f78a1
·
verified ·
1 Parent(s): 5598947

Upload index.html

Browse files
Files changed (1) hide show
  1. index.html +96 -0
index.html ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
6
+ <title>Web Playground</title>
7
+ <style>
8
+ * {
9
+ box-sizing: border-box;
10
+ }
11
+ body {
12
+ margin: 0;
13
+ font-family: system-ui, sans-serif;
14
+ display: flex;
15
+ height: 100vh;
16
+ background: #f5f5f5;
17
+ }
18
+ .sidebar {
19
+ width: 300px;
20
+ background: #ddd;
21
+ display: flex;
22
+ flex-direction: column;
23
+ justify-content: flex-end;
24
+ padding: 1rem;
25
+ border-radius: 0 0 0 30px;
26
+ }
27
+ .sidebar input {
28
+ border: none;
29
+ padding: 0.75rem 1rem;
30
+ border-radius: 30px;
31
+ margin-top: auto;
32
+ outline: none;
33
+ }
34
+ .main {
35
+ flex: 1;
36
+ display: flex;
37
+ flex-direction: column;
38
+ border-radius: 0 0 30px 0;
39
+ }
40
+ .tab-bar {
41
+ display: flex;
42
+ align-items: center;
43
+ padding: 0.5rem 1rem;
44
+ gap: 0.5rem;
45
+ background: #ccc;
46
+ border-radius: 0 0 0 30px;
47
+ }
48
+ .tab-bar .tab {
49
+ background: white;
50
+ border-radius: 30px;
51
+ padding: 0.4rem 1rem;
52
+ cursor: pointer;
53
+ border: none;
54
+ }
55
+ .tab-bar .actions {
56
+ margin-left: auto;
57
+ display: flex;
58
+ gap: 1rem;
59
+ }
60
+ .tab-bar .actions button {
61
+ background: none;
62
+ border: none;
63
+ font-weight: bold;
64
+ cursor: pointer;
65
+ }
66
+ .editor {
67
+ flex: 1;
68
+ background: #eee;
69
+ padding: 1rem;
70
+ }
71
+ </style>
72
+ </head>
73
+ <body>
74
+ <!-- Left: Assistant -->
75
+ <div class="sidebar">
76
+ <input type="text" placeholder="Write what you want ✨" />
77
+ </div>
78
+
79
+ <!-- Right: Editor UI -->
80
+ <div class="main">
81
+ <div class="tab-bar">
82
+ <button class="tab">index.html</button>
83
+ <button class="tab">styles.css</button>
84
+ <button class="tab">script.js</button>
85
+ <button class="tab">+</button>
86
+ <div class="actions">
87
+ <button>▶️ Run</button>
88
+ <button>Download</button>
89
+ </div>
90
+ </div>
91
+ <div class="editor">
92
+ <textarea style="width: 100%; height: 100%; border: none; outline: none; background: transparent;" placeholder="Your code..."></textarea>
93
+ </div>
94
+ </div>
95
+ </body>
96
+ </html>