domma-js 0.9.6-alpha → 0.9.7-alpha
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.
- package/bin/domma-cli.js +231 -22
- package/package.json +1 -1
- package/public/dist/domma-syntax.min.js +3 -3
- package/public/dist/domma.css +3 -3
- package/public/dist/domma.esm.js +4 -4
- package/public/dist/domma.min.js +4 -4
- package/public/dist/elements.css +3 -3
- package/public/dist/grid.css +3 -3
- package/public/dist/syntax.css +3 -3
- package/public/dist/themes/domma-themes.css +3 -3
- package/templates/kickstart/README.md +139 -0
- package/templates/kickstart/backend/.gitkeep +0 -0
- package/templates/kickstart/backend/README.md +160 -0
- package/templates/kickstart/domma.config.json +14 -10
- package/templates/kickstart/frontend/assets/logo/placeholder.svg +6 -0
- package/templates/kickstart/frontend/css/custom.css +121 -0
- package/templates/kickstart/frontend/js/app.js +166 -0
- package/templates/kickstart/frontend/pages/about/about.js +10 -0
- package/templates/kickstart/frontend/pages/about/index.html +229 -0
- package/templates/kickstart/frontend/pages/blog/blog.js +10 -0
- package/templates/kickstart/frontend/pages/blog/index.html +218 -0
- package/templates/kickstart/frontend/pages/contact/contact.js +33 -0
- package/templates/kickstart/frontend/pages/contact/index.html +196 -0
- package/templates/kickstart/frontend/pages/cookies/cookies.js +51 -0
- package/templates/kickstart/frontend/pages/cookies/index.html +381 -0
- package/templates/kickstart/frontend/pages/docs/docs.js +28 -0
- package/templates/kickstart/frontend/pages/docs/index.html +286 -0
- package/templates/kickstart/frontend/pages/index.html +161 -0
- package/templates/kickstart/frontend/pages/index.js +10 -0
- package/templates/kickstart/frontend/pages/privacy/index.html +277 -0
- package/templates/kickstart/frontend/pages/privacy/privacy.js +51 -0
- package/templates/kickstart/frontend/pages/terms/index.html +369 -0
- package/templates/kickstart/frontend/pages/terms/terms.js +51 -0
- package/templates/kickstart-old/domma.config.json +74 -0
- package/templates/page-template/page.html +51 -0
- package/templates/page-template/page.js +10 -0
- /package/templates/{kickstart → kickstart-old}/about/index.html +0 -0
- /package/templates/{kickstart → kickstart-old}/assets/logo/placeholder.svg +0 -0
- /package/templates/{kickstart → kickstart-old}/blog/index.html +0 -0
- /package/templates/{kickstart → kickstart-old}/contact/index.html +0 -0
- /package/templates/{kickstart → kickstart-old}/css/custom.css +0 -0
- /package/templates/{kickstart → kickstart-old}/docs/index.html +0 -0
- /package/templates/{kickstart → kickstart-old}/index.html +0 -0
- /package/templates/{kickstart → kickstart-old}/js/app.js +0 -0
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Terms of Service - {{projectName}}</title>
|
|
7
|
+
|
|
8
|
+
<!-- Domma CSS -->
|
|
9
|
+
<link rel="stylesheet" href="../../dist/domma.css">
|
|
10
|
+
<link rel="stylesheet" href="../../dist/grid.css">
|
|
11
|
+
<link rel="stylesheet" href="../../dist/elements.css">
|
|
12
|
+
<link rel="stylesheet" href="../../dist/themes/domma-themes.css">
|
|
13
|
+
|
|
14
|
+
<!-- Custom CSS -->
|
|
15
|
+
<link rel="stylesheet" href="../../css/custom.css">
|
|
16
|
+
</head>
|
|
17
|
+
<body class="dm-theme-{{theme}}">
|
|
18
|
+
<!-- Navigation -->
|
|
19
|
+
<nav id="main-navbar"></nav>
|
|
20
|
+
|
|
21
|
+
<!-- Page Header -->
|
|
22
|
+
<section class="container py-6">
|
|
23
|
+
<h1 class="display-2 mb-3">Terms of Service</h1>
|
|
24
|
+
<p class="lead text-secondary">
|
|
25
|
+
Last updated: <time datetime="{{year}}-01-01">January {{year}}</time>
|
|
26
|
+
</p>
|
|
27
|
+
</section>
|
|
28
|
+
|
|
29
|
+
<!-- Terms Content -->
|
|
30
|
+
<section class="container py-4">
|
|
31
|
+
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6">
|
|
32
|
+
<!-- Table of Contents -->
|
|
33
|
+
<aside>
|
|
34
|
+
<div class="card sticky" style="top: 80px;">
|
|
35
|
+
<div class="card-body">
|
|
36
|
+
<h2 class="h5 mb-3">Contents</h2>
|
|
37
|
+
<nav class="nav flex-column">
|
|
38
|
+
<a href="#agreement" class="nav-link">Agreement to Terms</a>
|
|
39
|
+
<a href="#use-license" class="nav-link">Use License</a>
|
|
40
|
+
<a href="#user-accounts" class="nav-link">User Accounts</a>
|
|
41
|
+
<a href="#prohibited-uses" class="nav-link">Prohibited Uses</a>
|
|
42
|
+
<a href="#intellectual-property" class="nav-link">Intellectual Property</a>
|
|
43
|
+
<a href="#user-content" class="nav-link">User Content</a>
|
|
44
|
+
<a href="#disclaimers" class="nav-link">Disclaimers</a>
|
|
45
|
+
<a href="#limitation-liability" class="nav-link">Limitation of Liability</a>
|
|
46
|
+
<a href="#indemnification" class="nav-link">Indemnification</a>
|
|
47
|
+
<a href="#termination" class="nav-link">Termination</a>
|
|
48
|
+
<a href="#governing-law" class="nav-link">Governing Law</a>
|
|
49
|
+
<a href="#changes" class="nav-link">Changes to Terms</a>
|
|
50
|
+
<a href="#contact" class="nav-link">Contact Us</a>
|
|
51
|
+
</nav>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</aside>
|
|
55
|
+
|
|
56
|
+
<!-- Main Content -->
|
|
57
|
+
<main class="lg:col-span-3">
|
|
58
|
+
<!-- Agreement to Terms -->
|
|
59
|
+
<section id="agreement" class="mb-6">
|
|
60
|
+
<h2 class="h3 mb-4">Agreement to Terms</h2>
|
|
61
|
+
<p>
|
|
62
|
+
These Terms of Service ("Terms") constitute a legally binding agreement between you and {{projectName}}
|
|
63
|
+
("Company", "we", "us", or "our") concerning your access to and use of our website and services.
|
|
64
|
+
</p>
|
|
65
|
+
<p class="mt-3">
|
|
66
|
+
By accessing or using our website, you agree that you have read, understood, and agree to be bound by
|
|
67
|
+
these Terms. If you do not agree with these Terms, you must not access or use our website.
|
|
68
|
+
</p>
|
|
69
|
+
|
|
70
|
+
<div class="alert alert-warning mt-4">
|
|
71
|
+
<span data-icon="alert-triangle" class="me-2"></span>
|
|
72
|
+
<strong>Important:</strong> Please read these Terms carefully before using our services.
|
|
73
|
+
</div>
|
|
74
|
+
</section>
|
|
75
|
+
|
|
76
|
+
<!-- Use License -->
|
|
77
|
+
<section id="use-license" class="mb-6">
|
|
78
|
+
<h2 class="h3 mb-4">Use License</h2>
|
|
79
|
+
<p class="mb-3">
|
|
80
|
+
Subject to your compliance with these Terms, we grant you a limited, non-exclusive, non-transferable,
|
|
81
|
+
and revocable license to access and use our website for personal or commercial purposes.
|
|
82
|
+
</p>
|
|
83
|
+
|
|
84
|
+
<h3 class="h5 mb-3">This license does not include the right to:</h3>
|
|
85
|
+
<ul>
|
|
86
|
+
<li>Modify, copy, or distribute any content from our website without our written permission</li>
|
|
87
|
+
<li>Use our website for any unlawful purpose or in violation of these Terms</li>
|
|
88
|
+
<li>Attempt to reverse engineer or derive source code from our software</li>
|
|
89
|
+
<li>Remove any copyright, trademark, or other proprietary notices</li>
|
|
90
|
+
<li>Transfer, sublicense, or resell access to our services</li>
|
|
91
|
+
</ul>
|
|
92
|
+
</section>
|
|
93
|
+
|
|
94
|
+
<!-- User Accounts -->
|
|
95
|
+
<section id="user-accounts" class="mb-6">
|
|
96
|
+
<h2 class="h3 mb-4">User Accounts</h2>
|
|
97
|
+
<p class="mb-3">
|
|
98
|
+
When you create an account with us, you must provide accurate, complete, and current information.
|
|
99
|
+
Failure to do so constitutes a breach of these Terms.
|
|
100
|
+
</p>
|
|
101
|
+
|
|
102
|
+
<div class="card bg-surface mb-4">
|
|
103
|
+
<div class="card-body">
|
|
104
|
+
<h3 class="h5 mb-3">Account Security</h3>
|
|
105
|
+
<p class="mb-2">You are responsible for:</p>
|
|
106
|
+
<ul class="mb-0">
|
|
107
|
+
<li>Maintaining the confidentiality of your account credentials</li>
|
|
108
|
+
<li>All activities that occur under your account</li>
|
|
109
|
+
<li>Notifying us immediately of any unauthorized access</li>
|
|
110
|
+
<li>Ensuring your account information remains accurate</li>
|
|
111
|
+
</ul>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
<p>
|
|
116
|
+
We reserve the right to refuse service, terminate accounts, or remove content at our sole discretion
|
|
117
|
+
if we believe you have violated these Terms.
|
|
118
|
+
</p>
|
|
119
|
+
</section>
|
|
120
|
+
|
|
121
|
+
<!-- Prohibited Uses -->
|
|
122
|
+
<section id="prohibited-uses" class="mb-6">
|
|
123
|
+
<h2 class="h3 mb-4">Prohibited Uses</h2>
|
|
124
|
+
<p class="mb-3">You agree not to use our website for any of the following purposes:</p>
|
|
125
|
+
|
|
126
|
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
|
127
|
+
<div class="card border-danger">
|
|
128
|
+
<div class="card-body">
|
|
129
|
+
<span data-icon="x-circle" class="text-danger mb-2" style="font-size: 1.5rem;"></span>
|
|
130
|
+
<h3 class="h6 mb-2">Illegal Activities</h3>
|
|
131
|
+
<p class="text-secondary mb-0">
|
|
132
|
+
Any unlawful purpose or in violation of any applicable laws
|
|
133
|
+
</p>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
<div class="card border-danger">
|
|
138
|
+
<div class="card-body">
|
|
139
|
+
<span data-icon="shield-off" class="text-danger mb-2" style="font-size: 1.5rem;"></span>
|
|
140
|
+
<h3 class="h6 mb-2">Security Breaches</h3>
|
|
141
|
+
<p class="text-secondary mb-0">
|
|
142
|
+
Attempting to breach security or interfere with our services
|
|
143
|
+
</p>
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
|
|
147
|
+
<div class="card border-danger">
|
|
148
|
+
<div class="card-body">
|
|
149
|
+
<span data-icon="mail" class="text-danger mb-2" style="font-size: 1.5rem;"></span>
|
|
150
|
+
<h3 class="h6 mb-2">Spam & Abuse</h3>
|
|
151
|
+
<p class="text-secondary mb-0">
|
|
152
|
+
Sending unsolicited messages or harassing other users
|
|
153
|
+
</p>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
|
|
157
|
+
<div class="card border-danger">
|
|
158
|
+
<div class="card-body">
|
|
159
|
+
<span data-icon="copy" class="text-danger mb-2" style="font-size: 1.5rem;"></span>
|
|
160
|
+
<h3 class="h6 mb-2">Infringement</h3>
|
|
161
|
+
<p class="text-secondary mb-0">
|
|
162
|
+
Violating intellectual property rights of others
|
|
163
|
+
</p>
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
</section>
|
|
168
|
+
|
|
169
|
+
<!-- Intellectual Property -->
|
|
170
|
+
<section id="intellectual-property" class="mb-6">
|
|
171
|
+
<h2 class="h3 mb-4">Intellectual Property Rights</h2>
|
|
172
|
+
<p class="mb-3">
|
|
173
|
+
The website and its entire contents, features, and functionality (including but not limited to all
|
|
174
|
+
information, software, text, displays, images, video, and audio) are owned by {{projectName}}, its
|
|
175
|
+
licensors, or other providers of such material.
|
|
176
|
+
</p>
|
|
177
|
+
|
|
178
|
+
<div class="card bg-surface">
|
|
179
|
+
<div class="card-body">
|
|
180
|
+
<p class="mb-2">
|
|
181
|
+
<strong>Protected Content:</strong> All content on our website is protected by:
|
|
182
|
+
</p>
|
|
183
|
+
<ul class="mb-0">
|
|
184
|
+
<li>Copyright laws</li>
|
|
185
|
+
<li>Trademark laws</li>
|
|
186
|
+
<li>Patent laws (where applicable)</li>
|
|
187
|
+
<li>Other intellectual property rights</li>
|
|
188
|
+
</ul>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
</section>
|
|
192
|
+
|
|
193
|
+
<!-- User Content -->
|
|
194
|
+
<section id="user-content" class="mb-6">
|
|
195
|
+
<h2 class="h3 mb-4">User-Generated Content</h2>
|
|
196
|
+
<p class="mb-3">
|
|
197
|
+
Our website may allow you to post, submit, publish, display, or transmit content ("User Content").
|
|
198
|
+
By providing User Content, you grant us a worldwide, non-exclusive, royalty-free license to use,
|
|
199
|
+
reproduce, modify, and distribute your content.
|
|
200
|
+
</p>
|
|
201
|
+
|
|
202
|
+
<h3 class="h5 mb-3">Content Standards</h3>
|
|
203
|
+
<p class="mb-2">User Content must not:</p>
|
|
204
|
+
<ul>
|
|
205
|
+
<li>Contain any material that is defamatory, obscene, or offensive</li>
|
|
206
|
+
<li>Violate any applicable laws or regulations</li>
|
|
207
|
+
<li>Infringe on the rights of any third party</li>
|
|
208
|
+
<li>Contain viruses or other harmful computer code</li>
|
|
209
|
+
<li>Impersonate any person or misrepresent your affiliation</li>
|
|
210
|
+
</ul>
|
|
211
|
+
|
|
212
|
+
<div class="alert alert-info mt-4">
|
|
213
|
+
<span data-icon="info" class="me-2"></span>
|
|
214
|
+
We reserve the right to remove any User Content that violates these Terms or is otherwise objectionable.
|
|
215
|
+
</div>
|
|
216
|
+
</section>
|
|
217
|
+
|
|
218
|
+
<!-- Disclaimers -->
|
|
219
|
+
<section id="disclaimers" class="mb-6">
|
|
220
|
+
<h2 class="h3 mb-4">Disclaimers</h2>
|
|
221
|
+
|
|
222
|
+
<div class="card bg-surface">
|
|
223
|
+
<div class="card-body">
|
|
224
|
+
<p class="mb-3">
|
|
225
|
+
<strong>THE WEBSITE IS PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS.</strong>
|
|
226
|
+
</p>
|
|
227
|
+
<p class="mb-2">We make no warranties or representations about:</p>
|
|
228
|
+
<ul>
|
|
229
|
+
<li>The accuracy, reliability, or completeness of content</li>
|
|
230
|
+
<li>The availability or uninterrupted access to our website</li>
|
|
231
|
+
<li>The security of our website or freedom from viruses</li>
|
|
232
|
+
<li>The results you may obtain from using our website</li>
|
|
233
|
+
</ul>
|
|
234
|
+
</div>
|
|
235
|
+
</div>
|
|
236
|
+
</section>
|
|
237
|
+
|
|
238
|
+
<!-- Limitation of Liability -->
|
|
239
|
+
<section id="limitation-liability" class="mb-6">
|
|
240
|
+
<h2 class="h3 mb-4">Limitation of Liability</h2>
|
|
241
|
+
|
|
242
|
+
<div class="alert alert-danger">
|
|
243
|
+
<span data-icon="alert-triangle" class="me-2"></span>
|
|
244
|
+
<strong>Important Legal Notice</strong>
|
|
245
|
+
</div>
|
|
246
|
+
|
|
247
|
+
<p class="mb-3">
|
|
248
|
+
TO THE MAXIMUM EXTENT PERMITTED BY LAW, {{projectName}} SHALL NOT BE LIABLE FOR ANY INDIRECT,
|
|
249
|
+
INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, OR ANY LOSS OF PROFITS OR REVENUES,
|
|
250
|
+
WHETHER INCURRED DIRECTLY OR INDIRECTLY.
|
|
251
|
+
</p>
|
|
252
|
+
|
|
253
|
+
<p>
|
|
254
|
+
Our total liability to you for all claims arising from your use of the website shall not exceed
|
|
255
|
+
the amount you paid to us (if any) in the twelve (12) months preceding the claim.
|
|
256
|
+
</p>
|
|
257
|
+
</section>
|
|
258
|
+
|
|
259
|
+
<!-- Indemnification -->
|
|
260
|
+
<section id="indemnification" class="mb-6">
|
|
261
|
+
<h2 class="h3 mb-4">Indemnification</h2>
|
|
262
|
+
<p>
|
|
263
|
+
You agree to defend, indemnify, and hold harmless {{projectName}} and its officers, directors,
|
|
264
|
+
employees, contractors, agents, licensors, and suppliers from and against any claims, liabilities,
|
|
265
|
+
damages, judgments, awards, losses, costs, expenses, or fees (including reasonable legal fees)
|
|
266
|
+
arising out of or relating to:
|
|
267
|
+
</p>
|
|
268
|
+
<ul>
|
|
269
|
+
<li>Your violation of these Terms</li>
|
|
270
|
+
<li>Your use of the website</li>
|
|
271
|
+
<li>Your User Content</li>
|
|
272
|
+
<li>Your violation of any rights of another</li>
|
|
273
|
+
</ul>
|
|
274
|
+
</section>
|
|
275
|
+
|
|
276
|
+
<!-- Termination -->
|
|
277
|
+
<section id="termination" class="mb-6">
|
|
278
|
+
<h2 class="h3 mb-4">Termination</h2>
|
|
279
|
+
<p class="mb-3">
|
|
280
|
+
We may terminate or suspend your account and access to our website immediately, without prior notice
|
|
281
|
+
or liability, for any reason whatsoever, including without limitation if you breach these Terms.
|
|
282
|
+
</p>
|
|
283
|
+
|
|
284
|
+
<div class="card bg-surface">
|
|
285
|
+
<div class="card-body">
|
|
286
|
+
<h3 class="h5 mb-3">Upon Termination:</h3>
|
|
287
|
+
<ul class="mb-0">
|
|
288
|
+
<li>Your right to use the website will immediately cease</li>
|
|
289
|
+
<li>We may delete your account and content</li>
|
|
290
|
+
<li>All provisions of these Terms that should survive termination shall continue</li>
|
|
291
|
+
</ul>
|
|
292
|
+
</div>
|
|
293
|
+
</div>
|
|
294
|
+
</section>
|
|
295
|
+
|
|
296
|
+
<!-- Governing Law -->
|
|
297
|
+
<section id="governing-law" class="mb-6">
|
|
298
|
+
<h2 class="h3 mb-4">Governing Law and Jurisdiction</h2>
|
|
299
|
+
<p>
|
|
300
|
+
These Terms shall be governed by and construed in accordance with the laws of [Your Jurisdiction],
|
|
301
|
+
without regard to its conflict of law provisions.
|
|
302
|
+
</p>
|
|
303
|
+
<p class="mt-3">
|
|
304
|
+
Any disputes arising out of or in connection with these Terms shall be subject to the exclusive
|
|
305
|
+
jurisdiction of the courts located in [Your Jurisdiction].
|
|
306
|
+
</p>
|
|
307
|
+
</section>
|
|
308
|
+
|
|
309
|
+
<!-- Changes to Terms -->
|
|
310
|
+
<section id="changes" class="mb-6">
|
|
311
|
+
<h2 class="h3 mb-4">Changes to These Terms</h2>
|
|
312
|
+
<p>
|
|
313
|
+
We reserve the right to modify or replace these Terms at any time at our sole discretion.
|
|
314
|
+
We will provide notice of any material changes by posting the new Terms on this page and updating
|
|
315
|
+
the "Last updated" date.
|
|
316
|
+
</p>
|
|
317
|
+
<p class="mt-3">
|
|
318
|
+
Your continued use of our website following the posting of revised Terms means that you accept
|
|
319
|
+
and agree to the changes. You are expected to check this page periodically so you are aware of
|
|
320
|
+
any changes.
|
|
321
|
+
</p>
|
|
322
|
+
</section>
|
|
323
|
+
|
|
324
|
+
<!-- Contact -->
|
|
325
|
+
<section id="contact" class="mb-6">
|
|
326
|
+
<h2 class="h3 mb-4">Contact Us</h2>
|
|
327
|
+
<p class="mb-4">
|
|
328
|
+
If you have any questions about these Terms, please contact us:
|
|
329
|
+
</p>
|
|
330
|
+
|
|
331
|
+
<div class="card bg-surface">
|
|
332
|
+
<div class="card-body">
|
|
333
|
+
<dl class="mb-0">
|
|
334
|
+
<dt class="mb-2">Email</dt>
|
|
335
|
+
<dd class="mb-4">
|
|
336
|
+
<a href="mailto:legal@example.com">legal@example.com</a>
|
|
337
|
+
</dd>
|
|
338
|
+
|
|
339
|
+
<dt class="mb-2">Contact Form</dt>
|
|
340
|
+
<dd class="mb-4">
|
|
341
|
+
<a href="../contact/">Submit a contact request</a>
|
|
342
|
+
</dd>
|
|
343
|
+
|
|
344
|
+
<dt class="mb-2">Related Policies</dt>
|
|
345
|
+
<dd class="mb-0">
|
|
346
|
+
<a href="../privacy/">Privacy Policy</a> |
|
|
347
|
+
<a href="../cookies/">Cookie Policy</a>
|
|
348
|
+
</dd>
|
|
349
|
+
</dl>
|
|
350
|
+
</div>
|
|
351
|
+
</div>
|
|
352
|
+
</section>
|
|
353
|
+
</main>
|
|
354
|
+
</div>
|
|
355
|
+
</section>
|
|
356
|
+
|
|
357
|
+
<!-- Footer -->
|
|
358
|
+
<footer class="page-footer"></footer>
|
|
359
|
+
|
|
360
|
+
<!-- Domma JavaScript -->
|
|
361
|
+
<script src="../../dist/domma.min.js"></script>
|
|
362
|
+
|
|
363
|
+
<!-- Global App Initialization -->
|
|
364
|
+
<script src="../../js/app.js"></script>
|
|
365
|
+
|
|
366
|
+
<!-- Page-specific Initialization -->
|
|
367
|
+
<script src="terms.js"></script>
|
|
368
|
+
</body>
|
|
369
|
+
</html>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Terms of Service Page Initialization
|
|
3
|
+
* Smooth scroll navigation, highlight active sections
|
|
4
|
+
*/
|
|
5
|
+
$(() => {
|
|
6
|
+
// Smooth scroll for table of contents links
|
|
7
|
+
$('.nav-link').on('click', function(e) {
|
|
8
|
+
e.preventDefault();
|
|
9
|
+
const targetId = $(this).attr('href');
|
|
10
|
+
const $target = $(targetId);
|
|
11
|
+
|
|
12
|
+
if ($target.length) {
|
|
13
|
+
$target[0].scrollIntoView({ behavior: 'smooth' });
|
|
14
|
+
|
|
15
|
+
// Update active state
|
|
16
|
+
$('.nav-link').removeClass('active');
|
|
17
|
+
$(this).addClass('active');
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// Highlight active section on scroll
|
|
22
|
+
let ticking = false;
|
|
23
|
+
$(window).on('scroll', () => {
|
|
24
|
+
if (!ticking) {
|
|
25
|
+
window.requestAnimationFrame(() => {
|
|
26
|
+
updateActiveSection();
|
|
27
|
+
ticking = false;
|
|
28
|
+
});
|
|
29
|
+
ticking = true;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
function updateActiveSection() {
|
|
34
|
+
const sections = $('section[id]');
|
|
35
|
+
const scrollPos = $(window).scrollTop() + 100;
|
|
36
|
+
|
|
37
|
+
sections.each((section) => {
|
|
38
|
+
const $section = $(section);
|
|
39
|
+
const sectionTop = $section.offset().top;
|
|
40
|
+
const sectionBottom = sectionTop + $section.outerHeight();
|
|
41
|
+
|
|
42
|
+
if (scrollPos >= sectionTop && scrollPos < sectionBottom) {
|
|
43
|
+
const id = $section.attr('id');
|
|
44
|
+
$('.nav-link').removeClass('active');
|
|
45
|
+
$(`.nav-link[href="#${id}"]`).addClass('active');
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
console.log('Terms of Service page initialized');
|
|
51
|
+
});
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"project": {
|
|
3
|
+
"name": "{{projectName}}",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "A Domma-powered web project"
|
|
6
|
+
},
|
|
7
|
+
"theme": {
|
|
8
|
+
"default": "{{theme}}",
|
|
9
|
+
"selector": "{{includeThemeSelector}}",
|
|
10
|
+
"persist": true,
|
|
11
|
+
"autoDetect": false
|
|
12
|
+
},
|
|
13
|
+
"navbar": {
|
|
14
|
+
"brand": {
|
|
15
|
+
"text": "{{projectName}}",
|
|
16
|
+
"logo": "assets/logo/placeholder.svg",
|
|
17
|
+
"url": "/"
|
|
18
|
+
},
|
|
19
|
+
"items": [
|
|
20
|
+
{
|
|
21
|
+
"text": "Home",
|
|
22
|
+
"url": "/",
|
|
23
|
+
"active": true
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"text": "About",
|
|
27
|
+
"url": "/about/"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"text": "Contact",
|
|
31
|
+
"url": "/contact/"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"text": "Blog",
|
|
35
|
+
"url": "/blog/"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"text": "Docs",
|
|
39
|
+
"url": "/docs/"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"text": "QuickStart",
|
|
43
|
+
"url": "https://github.com/dcbw-it/domma#quick-start-with-cli-recommended",
|
|
44
|
+
"badge": "New"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"variant": "dark",
|
|
48
|
+
"position": "sticky",
|
|
49
|
+
"collapsible": true
|
|
50
|
+
},
|
|
51
|
+
"footer": {
|
|
52
|
+
"copyright": "© {{year}} {{projectName}}. All rights reserved.",
|
|
53
|
+
"links": [
|
|
54
|
+
{
|
|
55
|
+
"text": "Privacy Policy",
|
|
56
|
+
"url": "#privacy"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"text": "Terms of Service",
|
|
60
|
+
"url": "#terms"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"text": "Contact Us",
|
|
64
|
+
"url": "/contact/"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"features": {
|
|
69
|
+
"icons": true,
|
|
70
|
+
"backToTop": true,
|
|
71
|
+
"codeCopy": true,
|
|
72
|
+
"smoothScroll": true
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>{{pageTitle}} - My Project</title>
|
|
7
|
+
|
|
8
|
+
<!-- Domma CSS -->
|
|
9
|
+
<link rel="stylesheet" href="../../dist/domma.css">
|
|
10
|
+
<link rel="stylesheet" href="../../dist/grid.css">
|
|
11
|
+
<link rel="stylesheet" href="../../dist/elements.css">
|
|
12
|
+
<link rel="stylesheet" href="../../dist/themes/domma-themes.css">
|
|
13
|
+
|
|
14
|
+
<!-- Custom CSS -->
|
|
15
|
+
<link rel="stylesheet" href="../../css/custom.css">
|
|
16
|
+
</head>
|
|
17
|
+
<body class="dm-cloaked dm-theme-{{theme}}">
|
|
18
|
+
<!-- Navigation -->
|
|
19
|
+
<nav id="main-navbar"></nav>
|
|
20
|
+
|
|
21
|
+
<!-- Page Header -->
|
|
22
|
+
<section class="container py-6">
|
|
23
|
+
<h1 class="display-2 mb-3">{{pageTitle}}</h1>
|
|
24
|
+
<p class="lead text-secondary">
|
|
25
|
+
Welcome to the {{pageTitle}} page.
|
|
26
|
+
</p>
|
|
27
|
+
</section>
|
|
28
|
+
|
|
29
|
+
<!-- Main Content -->
|
|
30
|
+
<section class="container py-4">
|
|
31
|
+
<div class="card shadow-md">
|
|
32
|
+
<div class="card-body">
|
|
33
|
+
<h2 class="h4 mb-3">Content</h2>
|
|
34
|
+
<p>Add your content here.</p>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</section>
|
|
38
|
+
|
|
39
|
+
<!-- Footer -->
|
|
40
|
+
<footer class="page-footer"></footer>
|
|
41
|
+
|
|
42
|
+
<!-- Domma JavaScript -->
|
|
43
|
+
<script src="../../dist/domma.min.js"></script>
|
|
44
|
+
|
|
45
|
+
<!-- Global App Initialization -->
|
|
46
|
+
<script src="../../js/app.js"></script>
|
|
47
|
+
|
|
48
|
+
<!-- Page-specific Initialization -->
|
|
49
|
+
<script src="{{pageName}}.js"></script>
|
|
50
|
+
</body>
|
|
51
|
+
</html>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* {{pageTitle}} Page Initialization
|
|
3
|
+
* Page-specific Domma configuration and event bindings
|
|
4
|
+
*/
|
|
5
|
+
$(() => {
|
|
6
|
+
// Page-specific component initialization
|
|
7
|
+
// Example: Initialize modals, carousels, forms, etc.
|
|
8
|
+
|
|
9
|
+
console.log('{{pageTitle}} page initialized');
|
|
10
|
+
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|