This commit is contained in:
2026-03-12 20:16:40 -04:00
commit 184cdcad78
71 changed files with 10018 additions and 0 deletions

70
public/admin/config.yml Normal file
View File

@@ -0,0 +1,70 @@
backend:
name: github
repo: cachetdeco # REPLACE with your GitHub org/repo
branch: main
# For Cloudflare Pages (no Netlify Identity), use PKCE flow:
auth_type: pkce
app_id: YOUR_GITHUB_OAUTH_APP_CLIENT_ID # REPLACE with your GitHub OAuth App client ID
locale: fr
media_folder: "public/images"
public_folder: "/images"
i18n:
structure: multiple_folders
locales: [fr]
default_locale: fr
collections:
- name: "services"
label: "Services"
label_singular: "Service"
folder: "src/content/services"
create: true
delete: true
i18n: true
slug: "{{slug}}"
fields:
- { name: "title", label: "Titre", widget: "string", i18n: true }
- { name: "description", label: "Description courte", widget: "text", i18n: true }
- name: "icon"
label: "Icône (identifiant)"
widget: "select"
options: ["interior", "exterior", "commercial", "decoration", "renovation"]
required: false
i18n: duplicate
hint: "Identifiant interne pour l'icône SVG"
- { name: "image", label: "Image de couverture", widget: "image", required: false, i18n: duplicate }
- { name: "order", label: "Ordre d'affichage", widget: "number", default: 0, i18n: duplicate }
- { name: "featured", label: "Mis en vedette", widget: "boolean", default: false, i18n: duplicate }
- { name: "body", label: "Contenu détaillé", widget: "markdown", i18n: true }
- name: "settings"
label: "Paramètres du site"
files:
- label: "Général"
name: "general"
file: "src/content/settings/general.json"
fields:
- { name: "siteName", label: "Nom du site", widget: "string" }
- { name: "legalName", label: "Nom légal (NEQ)", widget: "string" }
- { name: "tagline", label: "Slogan court", widget: "string" }
- { name: "taglineHero", label: "Slogan hero", widget: "string" }
- { name: "phone", label: "Téléphone", widget: "string" }
- { name: "email", label: "Courriel", widget: "string" }
- { name: "address", label: "Adresse", widget: "string" }
- { name: "serviceArea", label: "Zone de service", widget: "string" }
- { name: "facebook", label: "Lien Facebook", widget: "string" }
- { name: "instagram", label: "Lien Instagram", widget: "string", required: false }
- { name: "rbq", label: "Numéro RBQ", widget: "string" }
- { name: "neq", label: "Numéro NEQ (Registraire)", widget: "string" }
- label: "SEO"
name: "seo"
file: "src/content/settings/seo.json"
fields:
- { name: "defaultTitle", label: "Titre par défaut", widget: "string" }
- { name: "titleTemplate", label: "Gabarit de titre (%s = titre de page)", widget: "string" }
- { name: "defaultDescription", label: "Description par défaut", widget: "text" }
- { name: "keywords", label: "Mots-clés (séparés par virgule)", widget: "string" }
- { name: "ogImage", label: "Image OG par défaut", widget: "image", required: false }

13
public/admin/index.html Normal file
View File

@@ -0,0 +1,13 @@
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<link href="config.yml" type="text/yaml" rel="cms-config-url" />
<title>Gestionnaire de contenu — Cachet Peintres Décorateurs</title>
</head>
<body>
<script src="https://unpkg.com/decap-cms@^3.1.2/dist/decap-cms.js"></script>
</body>
</html>

5
public/favicon.svg Normal file
View File

@@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="none">
<!-- Brand C shape -->
<rect width="48" height="48" rx="10" fill="#314732"/>
<text x="24" y="34" font-size="28" font-family="system-ui, sans-serif" font-weight="700" text-anchor="middle" fill="white">C</text>
</svg>

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

Binary file not shown.

BIN
public/fonts/Geoform.otf Normal file

Binary file not shown.

BIN
public/images/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

7
public/robots.txt Normal file
View File

@@ -0,0 +1,7 @@
User-agent: *
Allow: /
# Block CMS admin from indexing
Disallow: /admin/
Sitemap: https://cachetdeco.com/sitemap-index.xml