-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
275 lines (246 loc) · 7.39 KB
/
index.html
File metadata and controls
275 lines (246 loc) · 7.39 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- SEO Meta Tags -->
<meta name="description"
content="🧩 ZeroCode SaaS Builder – Build and deploy your own SaaS applications without writing a single line of code." />
<meta name="keywords" content="ZeroCode, SaaS Builder, no-code, low-code, web app builder, react, vite" />
<meta name="author" content="AyeshaTechX" />
<!-- Social Media (Open Graph) -->
<meta property="og:title" content="🧩 ZeroCode SaaS Builder" />
<meta property="og:description"
content="Build powerful SaaS apps without coding. Fast, flexible, and fully customizable." />
<meta property="og:image" content="https://yourdomain.com/preview-image.png" />
<meta property="og:url" content="https://yourdomain.com" />
<meta property="og:type" content="website" />
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="🧩 ZeroCode SaaS Builder" />
<meta name="twitter:description" content="Build powerful SaaS apps without code – A product by AyeshaTechX" />
<meta name="twitter:image" content="https://yourdomain.com/preview-image.png" />
<title>🧩 ZeroCode SaaS Builder</title>
<!-- Favicon (optional) -->
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<!-- Optional custom fonts or CSS -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet" />
<style>
body {
font-family: sans-serif;
padding: 20px;
background: #131313;
}
h1 {
text-align: center;
color: #13A10E;
}
h2 {
text-align: center;
color: #13A10E;
}
.blocks {
display: flex;
gap: 15px;
margin-bottom: 20px;
justify-content: center;
}
.btn {
padding: 10px 15px;
border: none;
outline: none;
color: #fff;
cursor: grab;
position: relative;
z-index: 0;
border-radius: 12px;
margin-top:20px;
}
.btn::after {
content: "";
z-index: -1;
position: absolute;
width: 100%;
height: 100%;
background-color: #333;
left: 0;
top: 0;
border-radius: 10px;
}
.btn::before {
content: "";
background: linear-gradient(45deg,
#FF0000, #FF7300, #FFFB00, #48FF00,
#00FFD5, #002BFF, #FF00C8, #FF0000);
position: absolute;
top: -2px;
left: -2px;
background-size: 600%;
z-index: -1;
width: calc(100% + 4px);
height: calc(100% + 4px);
filter: blur(8px);
animation: glowing 20s linear infinite;
transition: opacity .3s ease-in-out;
border-radius: 10px;
opacity: 1;
}
@keyframes glowing {
0% {
background-position: 0 0;
}
0% {
background-position: 400% 0;
}
0% {
background-position: 400% 0;
}
}
/* hover */
.btn:hover::before {
opacity: 1;
}
.btn:active:after {
background: transparent;
}
.btn:active {
color: #000;
font-weight: bold;
}
#canvas {
min-height: 2000px;
border: 2px dashed #999;
background:transparent;
padding: 20px;
border-radius: 8px;
color: white;
font-family: sans-serif;
}
.buttons {
text-align: center;
margin-top: 20px;
display: flex;
text-align: center;
justify-content: center;
gap: 1%;
}
.button {
padding: 10px 15px;
border: none;
outline: none;
color: #fff;
cursor: grab;
position: relative;
z-index: 0;
border-radius: 12px;
cursor: pointer;
}
.button::after {
content: "";
z-index: -1;
position: absolute;
width: 100%;
height: 100%;
background-color: #333;
left: 0;
top: 0;
border-radius: 10px;
}
.button::before {
content: "";
background: linear-gradient(45deg,
#FF0000, #FF7300, #FFFB00, #48FF00,
#00FFD5, #002BFF, #FF00C8, #FF0000);
position: absolute;
top: -2px;
left: -2px;
background-size: 600%;
z-index: -1;
width: calc(100% + 4px);
height: calc(100% + 4px);
filter: blur(8px);
animation: glowing 20s linear infinite;
transition: opacity .3s ease-in-out;
border-radius: 10px;
opacity: 1;
}
/* hover */
.button:hover::before {
opacity: 1;
}
.button:active:after {
background: transparent;
}
.button:active {
color: #000;
font-weight: bold;
}
</style>
</head>
<body>
<h1>🧩 ZeroCode SaaS Builder</h1>
<h2>Important note: Drag only one product at a time</h2>
<!-- UI Blocks -->
<div class="blocks">
<div class="btn" draggable="true" data-component="navbar">Navbar</div>
<div class="btn" draggable="true" data-component="loginform">Login Form</div>
<div class="btn" draggable="true" data-component="pricing">Pricing Table</div>
<div class="btn" draggable="true" data-component="dashboard">Dashboard</div>
<div class="btn" draggable="true" data-component="hero">Hero Section</div>
<div class="btn" draggable="true" data-component="features">Features</div>
<div class="btn" draggable="true" data-component="contact">Contact Form</div>
<div class="btn" draggable="true" data-component="testimonial">Testimonial</div>
<div class="btn" draggable="true" data-component="about">About Us</div>
<div class="btn" draggable="true" data-component="cta">Call to Action</div>
<div class="btn" draggable="true" data-component="footer">Footer</div>
<div class="btn" draggable="true" data-component="services">Services</div>
<div class="btn" draggable="true" data-component="stats">Stats Counter</div>
<div class="btn" draggable="true" data-component="faq">FAQ Section</div>
</div>
<!-- Drop Canvas -->
<div id="canvas" ondrop="drop(event)" ondragover="allowDrop(event)">
<p>Drop here 👇</p>
</div>
<!-- Buttons -->
<div class="buttons">
<button onclick="saveLayout()" class="button">Save</button>
<button onclick="loadLayout()" class="button">Load</button>
</div>
<script>
// Allow drop on canvas
function allowDrop(ev) {
ev.preventDefault();
}
// Handle drop event
function drop(ev) {
ev.preventDefault();
const component = ev.dataTransfer.getData("component");
fetch(`component/${component}.html`)
.then(res => res.text())
.then(html => {
const container = document.createElement("div");
container.innerHTML = html;
document.getElementById("canvas").appendChild(container);
});
}
// Make blocks draggable
document.querySelectorAll('.btn').forEach(el => {
el.addEventListener('dragstart', (ev) => {
ev.dataTransfer.setData("component", ev.target.dataset.component);
});
});
// Save layout
function saveLayout() {
const layout = document.getElementById('canvas').innerHTML;
localStorage.setItem('savedLayout', layout);
alert("Layout saved!");
}
// Load layout
function loadLayout() {
const saved = localStorage.getItem('savedLayout');
document.getElementById('canvas').innerHTML = saved || '';
}
</script>
</body>
</html>