parent
e754e40622
commit
cf0b4011d1
5 changed files with 76 additions and 2 deletions
|
|
@ -2,11 +2,15 @@ import "mini-strap-core";
|
|||
import render from "./render";
|
||||
|
||||
import layout from "./templates/form.html";
|
||||
import table from "./templates/table.html";
|
||||
|
||||
document.querySelector<HTMLDivElement>("#app")!.innerHTML = `
|
||||
<main class="msp-container">
|
||||
<section>
|
||||
${render(layout, { name: "ale" })}
|
||||
</section>
|
||||
<section class="msp-mb-3">
|
||||
${render(table, { name: "ale" })}
|
||||
</section>
|
||||
</main>
|
||||
`;
|
||||
|
|
|
|||
29
packages/website/src/templates/table.html
Normal file
29
packages/website/src/templates/table.html
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="msp-text-center">#</th>
|
||||
<th scope="col">First</th>
|
||||
<th scope="col">Last</th>
|
||||
<th scope="col">Handle</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">1</th>
|
||||
<td>Mark</td>
|
||||
<td>Otto</td>
|
||||
<td>@mdo</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">2</th>
|
||||
<td>Jacob</td>
|
||||
<td>Thornton</td>
|
||||
<td>@fat</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">3</th>
|
||||
<td colspan="2">Larry the Bird</td>
|
||||
<td>@twitter</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
Loading…
Add table
Add a link
Reference in a new issue