-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuilder.html
More file actions
82 lines (81 loc) · 3.1 KB
/
builder.html
File metadata and controls
82 lines (81 loc) · 3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Site Builder — Vibecodes</title>
<link rel="stylesheet" href="https://unpkg.com/grapesjs/dist/css/grapes.min.css">
<link rel="stylesheet" href="/styles.css">
<style>
/* Builder chrome uses Vibecodes design tokens from styles.css */
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); }
.builder-chrome {
display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
padding: var(--space-2) var(--space-4);
background: var(--bg-card);
border-bottom: 1px solid var(--border);
}
.builder-chrome input, .builder-chrome button {
padding: var(--space-2) var(--space-3);
border-radius: var(--radius-sm);
border: 1px solid var(--border);
font-size: var(--text-sm);
font-family: inherit;
}
.builder-chrome input {
background: var(--bg-elevated);
color: var(--text-primary);
min-width: 140px;
}
.builder-chrome input::placeholder { color: var(--text-muted); }
.builder-chrome input:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-soft);
}
.builder-chrome button {
background: var(--bg-hover);
color: var(--text-primary);
cursor: pointer;
font-weight: var(--font-medium);
transition: background var(--transition), border-color var(--transition);
}
.builder-chrome button:hover {
background: var(--border);
border-color: var(--text-muted);
}
.builder-chrome .brand-mini {
font-weight: var(--font-bold);
letter-spacing: 0.02em;
color: var(--text-secondary);
margin-right: var(--space-2);
}
.builder-chrome .brand-mini { color: inherit; text-decoration: none; }
.builder-chrome .brand-mini:hover { color: var(--accent); }
.builder-chrome .status { margin-left: auto; font-size: var(--text-xs); color: var(--text-muted); }
.builder-chrome a:not(.brand-mini) { color: var(--accent); text-decoration: none; }
.builder-chrome a:hover { text-decoration: underline; }
#gjs { height: calc(100vh - 52px); border: none; }
</style>
</head>
<body>
<div class="builder-chrome">
<a href="/" class="brand-mini">Vibecodes</a>
<input type="email" id="email" placeholder="Email">
<input type="password" id="password" placeholder="Password">
<button id="register">Register</button>
<button id="login">Login</button>
<span class="status" id="authStatus">Not logged in</span>
<input type="text" id="siteName" placeholder="Site name">
<button id="save">Save</button>
<button id="publish">Publish</button>
<button id="deploy">Deploy to host</button>
<span class="status" id="siteInfo"></span>
</div>
<div id="gjs"></div>
<script src="https://unpkg.com/grapesjs"></script>
<script src="https://unpkg.com/grapesjs-blocks-basic@1.0.2/dist/index.js"></script>
<script src="/builder.js"></script>
</body>
</html>