create-tinyjoin 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +52 -4
  2. package/cli.js +4 -4
  3. package/package.json +1 -1
  4. package/templates/AGENTS.md.hbs +49 -12
  5. package/templates/README.md.hbs +40 -15
  6. package/templates/client/index.html.hbs +51 -45
  7. package/templates/client/package.json.hbs +3 -1
  8. package/templates/client/public/favicon.svg +6 -0
  9. package/templates/client/public/js.svg +5 -0
  10. package/templates/client/public/ts.svg +6 -0
  11. package/templates/client/src/app.ts.hbs +28 -0
  12. package/templates/client/src/button.css.hbs +25 -0
  13. package/templates/client/src/button.ts.hbs +19 -0
  14. package/templates/client/src/database.ts.hbs +50 -23
  15. package/templates/client/src/index.ts.hbs +7 -0
  16. package/templates/client/src/info.css.hbs +93 -0
  17. package/templates/client/src/info.ts.hbs +42 -0
  18. package/templates/client/src/input.css.hbs +22 -0
  19. package/templates/client/src/input.ts.hbs +16 -0
  20. package/templates/client/src/loading.css.hbs +19 -0
  21. package/templates/client/src/loading.ts.hbs +12 -0
  22. package/templates/client/src/title.css.hbs +16 -0
  23. package/templates/client/src/title.ts.hbs +16 -0
  24. package/templates/client/src/todoInput.css.hbs +9 -0
  25. package/templates/client/src/todoInput.ts.hbs +36 -0
  26. package/templates/client/src/todoItem.css.hbs +33 -0
  27. package/templates/client/src/todoItem.ts.hbs +31 -0
  28. package/templates/client/src/todoList.css.hbs +15 -0
  29. package/templates/client/src/todoList.ts.hbs +38 -0
  30. package/templates/client/src/topBar.css.hbs +13 -0
  31. package/templates/client/src/topBar.ts.hbs +13 -0
  32. package/templates/client/src/main.ts.hbs +0 -159
  33. package/templates/client/src/style.css.hbs +0 -199
@@ -1,199 +0,0 @@
1
- :root {
2
- color: #20251f;
3
- background: #f4f6f1;
4
- font-family:
5
- Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
6
- sans-serif;
7
- font-synthesis: none;
8
- text-rendering: optimizeLegibility;
9
- }
10
-
11
- * {
12
- box-sizing: border-box;
13
- }
14
-
15
- body {
16
- min-width: 20rem;
17
- min-height: 100vh;
18
- margin: 0;
19
- }
20
-
21
- button,
22
- input {
23
- font: inherit;
24
- }
25
-
26
- button {
27
- cursor: pointer;
28
- }
29
-
30
- main {
31
- width: min(36rem, calc(100% - 2rem));
32
- margin: 0 auto;
33
- padding: 5rem 0 3rem;
34
- }
35
-
36
- header {
37
- margin-bottom: 2rem;
38
- }
39
-
40
- .eyebrow {
41
- margin: 0 0 0.5rem;
42
- color: #397253;
43
- font-size: 0.78rem;
44
- font-weight: 800;
45
- letter-spacing: 0.08em;
46
- text-transform: uppercase;
47
- }
48
-
49
- h1 {
50
- margin: 0;
51
- font-family: Georgia, "Times New Roman", serif;
52
- font-size: clamp(3rem, 12vw, 5rem);
53
- line-height: 0.95;
54
- }
55
-
56
- .intro {
57
- margin: 1rem 0 0;
58
- color: #697066;
59
- }
60
-
61
- form {
62
- padding: 1rem;
63
- border: 1px solid #d7ddd3;
64
- border-radius: 1rem;
65
- background: #fff;
66
- box-shadow: 0 1rem 3rem rgb(32 49 38 / 8%);
67
- }
68
-
69
- form label {
70
- display: block;
71
- margin-bottom: 0.65rem;
72
- font-size: 0.85rem;
73
- font-weight: 750;
74
- }
75
-
76
- .composer {
77
- display: flex;
78
- gap: 0.6rem;
79
- }
80
-
81
- .composer input {
82
- min-width: 0;
83
- flex: 1;
84
- padding: 0.8rem 0.9rem;
85
- border: 1px solid #cbd3c7;
86
- border-radius: 0.7rem;
87
- color: inherit;
88
- background: #fbfcfa;
89
- }
90
-
91
- .composer input:focus {
92
- border-color: #397253;
93
- outline: 3px solid rgb(57 114 83 / 15%);
94
- }
95
-
96
- .composer button,
97
- .delete {
98
- border: 0;
99
- border-radius: 0.7rem;
100
- font-weight: 750;
101
- }
102
-
103
- .composer button {
104
- padding: 0.8rem 1.15rem;
105
- color: #fff;
106
- background: #397253;
107
- }
108
-
109
- .status,
110
- .error {
111
- min-height: 1.4rem;
112
- margin: 1rem 0 0.5rem;
113
- color: #697066;
114
- font-size: 0.85rem;
115
- }
116
-
117
- .error {
118
- color: #a0382e;
119
- }
120
-
121
- ul {
122
- display: grid;
123
- gap: 0.65rem;
124
- margin: 0;
125
- padding: 0;
126
- list-style: none;
127
- }
128
-
129
- .todo,
130
- .empty {
131
- border: 1px solid #d7ddd3;
132
- border-radius: 0.85rem;
133
- background: #fff;
134
- }
135
-
136
- .todo {
137
- display: flex;
138
- align-items: center;
139
- justify-content: space-between;
140
- gap: 1rem;
141
- padding: 0.8rem 0.9rem;
142
- }
143
-
144
- .todo label {
145
- display: flex;
146
- min-width: 0;
147
- flex: 1;
148
- align-items: center;
149
- gap: 0.75rem;
150
- }
151
-
152
- .todo input {
153
- width: 1.15rem;
154
- height: 1.15rem;
155
- accent-color: #397253;
156
- }
157
-
158
- .todo span {
159
- overflow-wrap: anywhere;
160
- }
161
-
162
- .todo.is-done span {
163
- color: #8a9088;
164
- text-decoration: line-through;
165
- }
166
-
167
- .delete {
168
- padding: 0.45rem 0.65rem;
169
- color: #7b423c;
170
- background: #f7ecea;
171
- }
172
-
173
- .empty {
174
- padding: 2rem;
175
- color: #7b8278;
176
- text-align: center;
177
- }
178
-
179
- footer {
180
- margin-top: 2rem;
181
- color: #7b8278;
182
- font-size: 0.82rem;
183
- text-align: center;
184
- }
185
-
186
- a {
187
- color: #397253;
188
- }
189
-
190
- @media (max-width: 32rem) {
191
- main {
192
- padding-top: 2.5rem;
193
- }
194
-
195
- .composer {
196
- align-items: stretch;
197
- flex-direction: column;
198
- }
199
- }