-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.js
More file actions
204 lines (191 loc) · 5.73 KB
/
Copy pathdata.js
File metadata and controls
204 lines (191 loc) · 5.73 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
#!/usr/bin/env node
const data = {
header__HTML: `
<header class="header">
<div class="container">
<div class="header__title-wrapper">
<h1 class="header__title">CodeSplitter
<svg xmlns="http://www.w3.org/2000/svg" height="44" viewBox="0 -960 960 960" width="44"><path d="m234-480-12-60q-12-5-22.5-10.5T178-564l-58 18-40-68 46-40q-2-13-2-26t2-26l-46-40 40-68 58 18q11-8 21.5-13.5T222-820l12-60h80l12 60q12 5 22.5 10.5T370-796l58-18 40 68-46 40q2 13 2 26t-2 26l46 40-40 68-58-18q-11 8-21.5 13.5T326-540l-12 60h-80Zm40-120q33 0 56.5-23.5T354-680q0-33-23.5-56.5T274-760q-33 0-56.5 23.5T194-680q0 33 23.5 56.5T274-600ZM592-40l-18-84q-17-6-31.5-14.5T514-158l-80 26-56-96 64-56q-2-18-2-36t2-36l-64-56 56-96 80 26q14-11 28.5-19.5T574-516l18-84h112l18 84q17 6 31.5 14.5T782-482l80-26 56 96-64 56q2 18 2 36t-2 36l64 56-56 96-80-26q-14 11-28.5 19.5T722-124l-18 84H592Zm56-160q50 0 85-35t35-85q0-50-35-85t-85-35q-50 0-85 35t-35 85q0 50 35 85t85 35Z"/>
<animateTransform
attributeName="transform"
attributeType="XML"
type="rotate"
from="0 0 0"
to="360 0 0"
dur="10s"
repeatCount="indefinite"
/>
</svg>
</h1>
</div>
</div>
</header>
`,
header__CSS: `
.header {
height: 100vh;
max-width: 100%;
background-image: linear-gradient(to right bottom, #FAD02E 0%, #FAD02E 33%, #FF6B6B 33%, #FF6B6B 66%, #2E8B57 66%, #2E8B57 100%);
}
.header__title-wrapper {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.header__title {
font-size: 4rem;
text-align: center;
background: linear-gradient(to bottom, #f2a7c3, #c3e7e5);
padding: 1rem 3rem;
border-radius: 15px;
color: #000;
cursor: pointer;
transition-property: letter-spacing, opacity;
transition-duration: 300ms;
}
.header__title:hover {
letter-spacing: 3px;
opacity: 0.9;
}
`,
global__header__HTML: `
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<title>CodeSplitter</title>
</head>
<body>
`,
global__footer__HTML: `
</body>
</html>
`,
global__CSS: `
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 16px;
}
.container {
max-width: 1200px;
margin: 0 auto;
height: 100%;
}
`,
html__constructor: "S::global --> H::header --> header --> H::footer",
packagejson: `
{
"name": "code-splitter-build",
"version": "1.0.0",
"description": "",
"main": "cs.config.js",
"scripts": {},
"author": "",
"license": "ISC",
"dependencies": {
"browser-sync": "^2.29.3",
"chalk": "^4.1.2",
"express": "^4.18.2"
}
}
`,
main__HTML: `
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<title>CodeSplitter</title>
</head>
<body>
<header class="header">
<div class="container">
<div class="header__title-wrapper">
<h1 class="header__title">CodeSplitter
<svg xmlns="http://www.w3.org/2000/svg" height="44" viewBox="0 -960 960 960" width="44"><path d="m234-480-12-60q-12-5-22.5-10.5T178-564l-58 18-40-68 46-40q-2-13-2-26t2-26l-46-40 40-68 58 18q11-8 21.5-13.5T222-820l12-60h80l12 60q12 5 22.5 10.5T370-796l58-18 40 68-46 40q2 13 2 26t-2 26l46 40-40 68-58-18q-11 8-21.5 13.5T326-540l-12 60h-80Zm40-120q33 0 56.5-23.5T354-680q0-33-23.5-56.5T274-760q-33 0-56.5 23.5T194-680q0 33 23.5 56.5T274-600ZM592-40l-18-84q-17-6-31.5-14.5T514-158l-80 26-56-96 64-56q-2-18-2-36t2-36l-64-56 56-96 80 26q14-11 28.5-19.5T574-516l18-84h112l18 84q17 6 31.5 14.5T782-482l80-26 56 96-64 56q2 18 2 36t-2 36l64 56-56 96-80-26q-14 11-28.5 19.5T722-124l-18 84H592Zm56-160q50 0 85-35t35-85q0-50-35-85t-85-35q-50 0-85 35t-35 85q0 50 35 85t85 35Z"/>
<animateTransform
attributeName="transform"
attributeType="XML"
type="rotate"
from="0 0 0"
to="360 0 0"
dur="10s"
repeatCount="indefinite"
/>
</svg>
</h1>
</div>
</div>
</header>
</body>
</html>
`,
main__CSS: `
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 16px;
}
.container {
max-width: 1200px;
margin: 0 auto;
height: 100%;
}
.header {
height: 100vh;
max-width: 100%;
background-image: linear-gradient(to right bottom, #FAD02E 0%, #FAD02E 33%, #FF6B6B 33%, #FF6B6B 66%, #2E8B57 66%, #2E8B57 100%);
}
.header__title-wrapper {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.header__title {
font-size: 4rem;
text-align: center;
background: linear-gradient(to bottom, #f2a7c3, #c3e7e5);
padding: 1rem 3rem;
border-radius: 15px;
color: #000;
cursor: pointer;
transition-property: letter-spacing, opacity;
transition-duration: 300ms;
}
.header__title:hover {
letter-spacing: 3px;
opacity: 0.9;
}
`,
prompts: [
{
initial: "components",
type: 'input',
name: 'entry',
message: 'What is your entry point?'
},
{
initial: "dist",
type: 'input',
name: 'outputName',
message: 'What is your output point?'
},
{
initial: "index",
type: 'input',
name: 'htmlName',
message: 'What is your output HTML?'
}
]
};
module.exports = data;