add template + document framework in root README
template/README.md: stripped to a one-liner bootstrap command. README.md: full project docs (structure, add page, add component, build.sh). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
0d5c2fbd35
commit
6796e102e0
16 changed files with 663 additions and 1 deletions
24
template/sources/pages/home/home.css
Normal file
24
template/sources/pages/home/home.css
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
.home {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.home h2 {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: #cdd6f4;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.home p {
|
||||
color: #6c7086;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.home code {
|
||||
background: #313244;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
font-family: monospace;
|
||||
font-size: 13px;
|
||||
color: #89b4fa;
|
||||
}
|
||||
14
template/sources/pages/home/home.js
Normal file
14
template/sources/pages/home/home.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
class HomePage extends HTMLElement {
|
||||
connectedCallback() {
|
||||
this.innerHTML = `
|
||||
<div class="home">
|
||||
<h2>Bienvenue</h2>
|
||||
<p>Modifiez cette page dans <code>sources/pages/home/</code>.</p>
|
||||
</div>
|
||||
`
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define('home-page', HomePage)
|
||||
|
||||
export function init(_main) {}
|
||||
1
template/sources/pages/home/index.html
Normal file
1
template/sources/pages/home/index.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<home-page></home-page>
|
||||
5
template/sources/pages/home/manifest.json
Normal file
5
template/sources/pages/home/manifest.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"route": "home",
|
||||
"label": "Home",
|
||||
"icon": "home"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue