Migrate to Chi router and add Norwegian Devigo demo

Major improvements:
- Replace Gorilla Mux with Chi v5 router for better performance and cleaner code
- Fix CSS/JS MIME type issues that prevented proper asset loading
- Add built-in CORS middleware replacing manual OPTIONS handlers
- Simplify routing with nested route syntax
- Update URL parameter extraction from mux.Vars to chi.URLParam

New Devigo demo:
- Add production Norwegian sales training website (devigo.no)
- Real-world Hugo-generated content with TailwindCSS
- 39 insertr-enhanced elements for comprehensive CMS testing
- Demonstrates international language support and B2B use cases
- Fixed asset paths for localhost serving compatibility

Technical benefits:
- Automatic MIME type detection for static files
- Reduced code complexity with built-in middleware
- Better performance with lighter dependency stack
- Production-ready CORS handling
This commit is contained in:
2025-09-17 13:34:36 +02:00
parent 12c6ec8048
commit cd202ebb1d
87 changed files with 7737 additions and 71 deletions

View File

@@ -0,0 +1,5 @@
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="40" height="40" rx="8" fill="#2563eb"/>
<path d="M12 12h6c4.4 0 8 3.6 8 8s-3.6 8-8 8h-6V12z" fill="white"/>
<circle cx="15" cy="20" r="2" fill="#2563eb"/>
</svg>

After

Width:  |  Height:  |  Size: 276 B

View File

@@ -0,0 +1,10 @@
<svg width="400" height="300" viewBox="0 0 400 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="400" height="300" fill="#f8fafc"/>
<rect x="50" y="50" width="300" height="200" rx="8" fill="white" stroke="#e5e7eb"/>
<rect x="80" y="80" width="240" height="20" rx="4" fill="#2563eb"/>
<rect x="80" y="120" width="180" height="12" rx="2" fill="#6b7280"/>
<rect x="80" y="140" width="200" height="12" rx="2" fill="#6b7280"/>
<rect x="80" y="160" width="160" height="12" rx="2" fill="#6b7280"/>
<circle cx="300" cy="180" r="40" fill="#3b82f6" opacity="0.2"/>
<circle cx="300" cy="180" r="20" fill="#2563eb"/>
</svg>

After

Width:  |  Height:  |  Size: 643 B

View File

@@ -0,0 +1,8 @@
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="15" cy="8" r="3" fill="white"/>
<circle cx="8" cy="20" r="2.5" fill="white"/>
<circle cx="22" cy="20" r="2.5" fill="white"/>
<path d="M15 12C12.2 12 10 14.2 10 17V18H20V17C20 14.2 17.8 12 15 12Z" fill="white"/>
<path d="M8 24C6.3 24 5 22.7 5 21V20.5C5 19.1 6.1 18 7.5 18H8.5C9.9 18 11 19.1 11 20.5V21C11 22.7 9.7 24 8 24Z" fill="white"/>
<path d="M22 24C20.3 24 19 22.7 19 21V20.5C19 19.1 20.1 18 21.5 18H22.5C23.9 18 25 19.1 25 20.5V21C25 22.7 23.7 24 22 24Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 602 B

View File

@@ -0,0 +1,5 @@
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M15 5L25 12L15 19L5 12L15 5Z" fill="white"/>
<path d="M15 25L25 18V12L15 19V25Z" fill="white" opacity="0.7"/>
<path d="M5 18L15 25V19L5 12V18Z" fill="white" opacity="0.7"/>
</svg>

After

Width:  |  Height:  |  Size: 290 B

View File

@@ -0,0 +1,7 @@
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="3" y="8" width="24" height="14" rx="2" fill="white"/>
<rect x="5" y="10" width="20" height="10" rx="1" fill="white" stroke="rgba(255,255,255,0.3)"/>
<circle cx="24" cy="15" r="1" fill="white"/>
<rect x="12" y="23" width="6" height="2" fill="white"/>
<rect x="8" y="25" width="14" height="1" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 427 B