@caweb/template 1.0.2 → 1.0.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ v1.0.4
2
+ - Updated logo.png so that it uses a .png instead of .webp
3
+ - Updated content/index.html to provide instructions
4
+
5
+ v1.0.3
6
+ - Card component card-title element changed from div to H5
7
+
1
8
  v1.0.2
2
9
  - Removed divi reference
3
10
 
@@ -29,7 +29,7 @@
29
29
  {{/if}}
30
30
  <div class="card-body{{bsAttr 'text' this.contentColor }}">
31
31
  {{#if this.subHeading }}
32
- <div class="card-title{{bsAttr 'text' this.subHeadingAlignment }}"{{#if this.url }} data-url="{{this.url}}"{{/if}}>{{~ this.subHeading ~}}</div>
32
+ <h5 class="card-title{{bsAttr 'text' this.subHeadingAlignment }}"{{#if this.url }} data-url="{{this.url}}"{{/if}}>{{~ this.subHeading ~}}</h5>
33
33
  {{/if}}
34
34
  {{{ this.content }}}
35
35
  </div>
@@ -1,4 +1,116 @@
1
- <div class="container">
2
- <b>Content file was not found.</b>
3
- <p>To add content, add a <code style="color:red">/content/index.html</code> to the root of the <code style="color:red">{{title}}</code> project.</p>
4
- </div>
1
+ <div class="container-fluid py-3" style="background-color: #0e4366;">
2
+ <h1 class="text-center py-5" style="color: #e09900">Get Started - Template</h1>
3
+ </div>
4
+
5
+ <div class="container mt-5">
6
+ <div class="row">
7
+ <div class="col-8">
8
+ <h3>Getting Started</h3>
9
+ <p>Welcome to the template project! This is a starting point for your new project.</p>
10
+ <p>To start customizing your site, you can add a <span class="text-danger">/content/index.html</span> file to your project and start editing.</p>
11
+ <p>The template loads as a Handlebars Logic-less template, thus supporting most Mustache syntax.</p>
12
+ <p>The framework used is <span class="text-danger">@caweb/framework</span> built with Bootstrap, which provides a responsive layout and a wide range of components to help you build your project quickly and efficiently.</p>
13
+ <h3>How to's</h3>
14
+ <ul>
15
+ <li>Add more pages, you can create additional HTML files in the <span class="text-danger">/content/pages/</span> directory. Each file will be rendered as a separate page in your project.</li>
16
+ <li>Use media on your pages, you can place your media files in the <span class="text-danger">/content/media/</span> directory. You can then reference these files in your HTML pages.</li>
17
+ <li>Change the favicon, you can place your favicon file in the <span class="text-danger">/content/media/</span> directory. File name must be <span class="text-danger">favicon.ico</span>.</li>
18
+ <li>Change the logo, you can place your logo file in the <span class="text-danger">/content/media/</span> directory. File name must be <span class="text-danger">logo.png</span>.</li>
19
+ <li>For more information on how to, visit our <a href="/how-to/index.html">How To's</a> page.</li>
20
+ </ul>
21
+
22
+ </div>
23
+ <div class="col-4">
24
+ {{> card
25
+ layout="standout"
26
+ heading="More Information"
27
+ content="<strong>Logic-less template</strong>
28
+ <ul>
29
+ <li><a href=\"https://mustache.github.io/\" target=\"_blank\">Mustache</a></li>
30
+ <li><a href=\"https://handlebarsjs.com/\" target=\"_blank\">Handlebars</a></li>
31
+ </ul>
32
+ <strong>Frontend Framework</strong>
33
+ <ul>
34
+ <li><a href=\"https://www.npmjs.com/package/@caweb/framework\" target=\"_blank\">@caweb/framework</a></li>
35
+ <li><a href=\"https://getbootstrap.com/docs/5.3/getting-started/introduction/\" target=\"_blank\">Bootstrap 5</a></li>
36
+ </ul>
37
+ "
38
+ }}
39
+ </div>
40
+ </div>
41
+ <div class="row">
42
+ <div class="col-12">
43
+ <h3>Guidelines</h3>
44
+ <p>Follow these guidelines to ensure your project is set up correctly:</p>
45
+ <ul>
46
+ <li>When referencing local files, use absolute paths and not relative paths.</li>
47
+ <li>Content should be structured as followed:
48
+ <div class="d-flex">
49
+ <div class="w-50">
50
+
51
+ </div>
52
+ <div class="w-50">
53
+
54
+ </div>
55
+ </div>
56
+ </li>
57
+ </ul>
58
+ <h3>Content Structuring</h3>
59
+ </div>
60
+ </div>
61
+ <div class="row">
62
+ <div class="col-6">
63
+ <h5>Regular Sections</h5>
64
+ <p>
65
+ <code class="text-danger">
66
+ &lt;div class="container"&gt;<br/>
67
+ &nbsp;&nbsp;&lt;div class="row"&gt;<br/>
68
+ &nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="col-#"&gt;<br/>
69
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;Content goes here&lt;/p&gt;<br/>
70
+ &nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br/>
71
+ &nbsp;&nbsp;&lt;/div&gt;<br/>
72
+ &lt;/div&gt;<br/>
73
+ </code>
74
+ </p>
75
+ </div>
76
+ <div class="col-6">
77
+ <h5>Regular Sections w/ Background Color</h5>
78
+ <p>
79
+ <code class="text-danger">
80
+ &lt;div class="container-fluid" style="background-color: blue;"&gt;<br/>
81
+ &nbsp;&nbsp;&lt;div class="container"&gt;<br/>
82
+ &nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="row"&gt;<br/>
83
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="col-#"&gt;<br/>
84
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;Content goes here&lt;/p&gt;<br/>
85
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br/>
86
+ &nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br/>
87
+ &nbsp;&nbsp;&lt;/div&gt;<br/>
88
+ &lt;/div&gt;
89
+ </code>
90
+
91
+ </p>
92
+ </div>
93
+ </div>
94
+ <div class="row">
95
+ <div class="col-6">
96
+ <h5>Fullwidth Sections</h5>
97
+ <p>
98
+ <code class="text-danger">
99
+ &lt;div class="container-fluid"&gt;<br/>
100
+ &nbsp;&nbsp;&lt;p&gt;Content goes here&lt;/p&gt;<br/>
101
+ &lt;/div&gt;
102
+ </code>
103
+ </p>
104
+ </div>
105
+ <div class="col-6">
106
+ <h5>Fullwidth Sections w/ Background Color</h5>
107
+ <p>
108
+ <code class="text-danger">
109
+ &lt;div class="container-fluid" style="background-color: blue;"&gt;<br/>
110
+ &nbsp;&nbsp;&lt;p&gt;Content goes here&lt;/p&gt;<br/>
111
+ &lt;/div&gt;
112
+ </code>
113
+ </p>
114
+ </div>
115
+ </div>
116
+ </div>
package/media/logo.png CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/template",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "author": "CAWebPublishing",
5
5
  "description": "CAWebPublishing Template",
6
6
  "license": "ISC",
package/media/test.png DELETED
Binary file