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,484 @@
/* Devigo - Norwegian Consulting Website Styles */
:root {
--primary-color: #2563eb;
--secondary-color: #1e40af;
--accent-color: #3b82f6;
--text-primary: #1f2937;
--text-secondary: #6b7280;
--bg-light: #f8fafc;
--bg-white: #ffffff;
--border-color: #e5e7eb;
--success-color: #10b981;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6;
color: var(--text-primary);
font-size: 16px;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
/* Navigation */
.navbar {
background: var(--bg-white);
border-bottom: 1px solid var(--border-color);
position: sticky;
top: 0;
z-index: 1000;
padding: 1rem 0;
}
.navbar .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-brand {
display: flex;
align-items: center;
gap: 0.75rem;
}
.logo {
width: 40px;
height: 40px;
}
.brand-name {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary-color);
}
.nav-links {
display: flex;
list-style: none;
gap: 2rem;
}
.nav-links a {
text-decoration: none;
color: var(--text-primary);
font-weight: 500;
transition: color 0.3s ease;
}
.nav-links a:hover {
color: var(--primary-color);
}
/* Hero Section */
.hero {
padding: 5rem 0;
background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}
.hero .container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
align-items: center;
}
.hero-content h1 {
font-size: 3.5rem;
font-weight: 800;
line-height: 1.1;
margin-bottom: 1.5rem;
color: var(--text-primary);
}
.hero-subtitle {
font-size: 1.25rem;
color: var(--text-secondary);
margin-bottom: 2rem;
line-height: 1.7;
}
.hero-actions {
display: flex;
gap: 1rem;
}
.hero-image img {
width: 100%;
height: auto;
}
/* Buttons */
.btn {
display: inline-block;
padding: 0.875rem 2rem;
border-radius: 0.5rem;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
border: 2px solid transparent;
}
.btn-primary {
background: var(--primary-color);
color: white;
}
.btn-primary:hover {
background: var(--secondary-color);
transform: translateY(-2px);
}
.btn-secondary {
background: transparent;
color: var(--primary-color);
border-color: var(--primary-color);
}
.btn-secondary:hover {
background: var(--primary-color);
color: white;
}
/* Sections */
section {
padding: 5rem 0;
}
.section-title {
font-size: 2.5rem;
font-weight: 700;
text-align: center;
margin-bottom: 1rem;
color: var(--text-primary);
}
.section-subtitle {
font-size: 1.25rem;
color: var(--text-secondary);
text-align: center;
margin-bottom: 3rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
/* Services */
.services {
background: var(--bg-light);
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.service-card {
background: var(--bg-white);
padding: 2.5rem;
border-radius: 1rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
transform: translateY(-4px);
box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}
.service-icon {
width: 60px;
height: 60px;
margin-bottom: 1.5rem;
background: var(--primary-color);
border-radius: 0.75rem;
display: flex;
align-items: center;
justify-content: center;
}
.service-icon img {
width: 30px;
height: 30px;
filter: brightness(0) invert(1);
}
.service-card h3 {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1rem;
color: var(--text-primary);
}
.service-card p {
color: var(--text-secondary);
line-height: 1.7;
}
/* About */
.about .container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
align-items: center;
}
.about h2 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 1.5rem;
color: var(--text-primary);
}
.about p {
font-size: 1.125rem;
color: var(--text-secondary);
margin-bottom: 1.5rem;
line-height: 1.7;
}
.stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
margin-top: 3rem;
}
.stat {
text-align: center;
}
.stat-number {
display: block;
font-size: 2.5rem;
font-weight: 800;
color: var(--primary-color);
margin-bottom: 0.5rem;
}
.stat-label {
font-size: 0.875rem;
color: var(--text-secondary);
font-weight: 500;
}
.about-image img {
width: 100%;
border-radius: 1rem;
}
/* Testimonials */
.testimonials {
background: var(--bg-light);
}
.testimonial-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 2rem;
}
.testimonial {
background: var(--bg-white);
padding: 2.5rem;
border-radius: 1rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.testimonial blockquote {
font-size: 1.125rem;
line-height: 1.7;
color: var(--text-primary);
margin-bottom: 1.5rem;
font-style: italic;
}
.testimonial cite {
font-size: 0.875rem;
color: var(--text-secondary);
font-weight: 500;
}
/* Contact */
.contact {
background: var(--primary-color);
color: white;
}
.contact h2 {
color: white;
font-size: 2.5rem;
margin-bottom: 1rem;
}
.contact p {
font-size: 1.25rem;
margin-bottom: 3rem;
opacity: 0.9;
}
.contact-info {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}
.contact-item h4 {
font-size: 1.125rem;
margin-bottom: 0.5rem;
font-weight: 600;
}
.contact-item p {
opacity: 0.8;
margin-bottom: 0;
}
.contact .btn-primary {
background: white;
color: var(--primary-color);
}
.contact .btn-primary:hover {
background: var(--bg-light);
}
/* Footer */
.footer {
background: var(--text-primary);
color: white;
padding: 3rem 0 1rem;
}
.footer-content {
display: grid;
grid-template-columns: 2fr 1fr 1fr;
gap: 3rem;
margin-bottom: 2rem;
}
.footer-brand .brand-name {
color: white;
font-size: 1.5rem;
margin-bottom: 0.5rem;
display: block;
}
.footer-brand p {
opacity: 0.7;
margin-bottom: 0;
}
.footer-links h4,
.footer-contact h4 {
margin-bottom: 1rem;
font-weight: 600;
}
.footer-links ul {
list-style: none;
}
.footer-links li {
margin-bottom: 0.5rem;
}
.footer-links a {
color: white;
text-decoration: none;
opacity: 0.7;
transition: opacity 0.3s ease;
}
.footer-links a:hover {
opacity: 1;
}
.footer-contact p {
opacity: 0.7;
margin-bottom: 0.5rem;
}
.footer-bottom {
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding-top: 2rem;
text-align: center;
}
.footer-bottom p {
opacity: 0.7;
margin-bottom: 0;
}
/* Responsive Design */
@media (max-width: 768px) {
.container {
padding: 0 1rem;
}
.hero .container,
.about .container {
grid-template-columns: 1fr;
text-align: center;
}
.hero-content h1 {
font-size: 2.5rem;
}
.nav-links {
gap: 1rem;
}
.hero-actions {
justify-content: center;
}
.stats {
grid-template-columns: 1fr;
gap: 1rem;
}
.footer-content {
grid-template-columns: 1fr;
text-align: center;
}
.testimonial-grid {
grid-template-columns: 1fr;
}
.services-grid {
grid-template-columns: 1fr;
}
}
/* Insertr Demo Gate Styles */
.insertr-gate {
background: var(--primary-color);
color: white;
border: none;
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
font-size: 0.75rem;
cursor: pointer;
margin-left: 0.5rem;
opacity: 0.8;
transition: opacity 0.3s ease;
}
.insertr-gate:hover {
opacity: 1;
}