-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
155 lines (147 loc) · 6.28 KB
/
index.html
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Mavo Create</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/js/bootstrap.bundle.min.js"></script>
<!-- Mavo -->
<link href="https://get.mavo.io/mavo.css" rel="stylesheet">
<script src="https://get.mavo.io/mavo.js"></script>
<!-- GrapesJS -->
<!-- <link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet"> -->
<link href="./grapesjs/dist/css/grapes.min.css" rel="stylesheet">
<script src="https://static.filestackapi.com/v3/filestack-0.1.10.js"></script>
<!-- <script src="https://unpkg.com/grapesjs"></script> -->
<script src="./grapesjs/dist/grapes.min.js"></script>
<!-- GrapesJS-mavo plugin -->
<link href="dist/grapesjs-mavo.min.css" rel="stylesheet">
<link href="./index.css" rel="stylesheet">
<script src="dist/grapesjs-mavo.min.js"></script>
</head>
<body>
<div id="gjs">
<div class="panel">
<h1 class="welcome">Welcome to</h1>
<div class="big-title">
<span><img class="logo" src="./logo.svg"> Create</span>
</div>
<div class="description" mv-multiple>
Use Mavo Create to create Mavo apps!<br>
</div>
<div class="description">
[$startup], it is time to click the preview (eye icon) and hit EDIT to CRUD the text above.
</div>
</div>
<style>
.panel {
width: 90%;
max-width: 700px;
border-radius: 3px;
padding: 30px 20px;
margin: 150px auto 0px;
background-color: #d983a6;
box-shadow: 0px 3px 10px 0px rgba(0,0,0,0.25);
color:rgba(255,255,255,0.75);
font: caption;
font-weight: 100;
}
.logo {
width:40%;
text-align: center;
}
.welcome {
text-align: center;
font-weight: 100;
margin: 0px;
}
.big-title {
text-align: center;
font-size: 3.5rem;
margin: 15px 0;
}
.description {
text-align: justify;
font-size: 1rem;
line-height: 1.5rem;
}
</style>
</div>
<div class="modal fade" id="settingsModal" tabindex="-1" role="dialog" aria-labelledby="settingsModal" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Mavo Settings</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div>Name your Mavo App:
<input type="text" id="mv-app-setting">
</div>
<div id="storage-setting">Where do you want to store your Mavo data?
<select id="storage-setting-dropdown">
<option value="local">Browser</option>
<option value="github">Github</option>
<option value="dropbox">Dropbox</option>
<option value="none">None</option>
</select>
<div><p id="storage-setting-description"></p></div>
<input class="hidden" type="text" id="storage-setting-detail"></input>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="save-settings-modal">Save changes</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="expressionsModal" tabindex="-1" role="dialog" aria-labelledby="expressionsModal" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Create an Expression</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div style='text-align:center;margin-bottom:20px;'>
<button type="button" class="btn btn-sm btn-outline-secondary" id="copy-expression-button">Copy Expression</button>
<button style="margin-left:20px;" type="button" class="btn btn-sm btn-outline-dark" id="insert-expression-button">Insert Expression</button>
</div>
<div id='expressions-modal-text-box-container'>[
<input type="text" id="expression-text-box" placeholder="Start typing you expression here" data-toggle="popover" data-html="true" data-placement="bottom" style="width:95%">
]
</div>
</div>
</div>
</div>
</div>
<div id="popover-title-html" style="display:block;">
<table class="popver-table">
<tr>
<td>Operators</td>
<td>Special Words</td>
<td>Functions</td>
<td class="hide-if-no-props">Mavo Elements</td>
</tr>
</table>
</div>
<div id="popover-content-html" style="display:block;">
<table class="popver-table">
<tr>
<td><div id="expr-operators-container"></div></td>
<td><div id="expr-specials-container"></div></td>
<td><div id="expr-functions-container"></div></td>
<td class="hide-if-no-props"><div id="expr-properties-container"></div></td>
</tr>
</table>
</div>
<script src="./index.js"></script>
</body>
</html>