From 11646f2731ec022262f237b88de97638df8133ad Mon Sep 17 00:00:00 2001 From: gator Date: Tue, 10 Mar 2026 22:11:21 +0000 Subject: [PATCH] Fix layout duplicate includes and retheme to AutoTQ red/white palette --- public/css/style.css | 64 +++++++++++++++++++++++------------------- site.config.js | 16 +++++------ views/about.ejs | 2 -- views/articles.ejs | 2 -- views/company.ejs | 2 -- views/contact.ejs | 2 -- views/index.ejs | 4 --- views/layout.ejs | 2 +- views/literature.ejs | 2 -- views/news.ejs | 2 -- views/research.ejs | 2 -- views/testimonials.ejs | 2 -- views/training.ejs | 2 -- 13 files changed, 44 insertions(+), 60 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index 9cc29a8..d547ce4 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1,13 +1,13 @@ :root { - --bg: #071225; - --bg-alt: #0c1d39; - --text: #e8eefc; - --muted: #9eb0d3; - --accent: #4cc9f0; - --accent-2: #8b5cf6; - --card: rgba(255, 255, 255, 0.06); - --border: rgba(255, 255, 255, 0.14); - --shadow: 0 20px 50px rgba(4, 10, 22, 0.45); + --bg: #ffffff; + --bg-alt: #f7f7f7; + --text: #1a1a1a; + --muted: #4a4a4a; + --accent: #d12020; + --accent-2: #dc0000; + --card: #ffffff; + --border: #e6e6e6; + --shadow: 0 10px 30px rgba(0,0,0,0.08); } * { box-sizing: border-box; } @@ -15,35 +15,35 @@ html, body { margin: 0; padding: 0; } body { font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); - background: radial-gradient(1000px 400px at 10% -10%, #1b3769, transparent), var(--bg); + background: var(--bg); line-height: 1.6; } a { color: inherit; text-decoration: none; } img { max-width: 100%; height: auto; display: block; } .container { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; } .section { padding: 4.5rem 0; } -.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005)); } +.section-alt { background: var(--bg-alt); } .site-header { position: sticky; top: 0; z-index: 999; - backdrop-filter: blur(14px); - background: rgba(7, 18, 37, 0.72); + background: #ffffff; border-bottom: 1px solid var(--border); + box-shadow: 0 2px 10px rgba(0,0,0,0.05); } .nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; } .brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; } .brand img { width: 44px; height: 44px; object-fit: contain; } .site-nav { display: flex; align-items: center; gap: .95rem; } .site-nav a { color: var(--muted); font-weight: 500; transition: .25s ease; } -.site-nav a:hover, .site-nav a.active { color: var(--text); } +.site-nav a:hover, .site-nav a.active { color: var(--accent); } .mobile-toggle { display: none; border: 0; background: transparent; padding: .25rem; } .mobile-toggle span { width: 22px; height: 2px; background: var(--text); display: block; margin: 5px 0; } .hero { padding: 6rem 0 3.5rem; position: relative; overflow: clip; } .hero-bg { position: absolute; inset: 0; - background: radial-gradient(700px 350px at 70% -30%, rgba(76,201,240,.35), transparent), - radial-gradient(500px 280px at 20% 0%, rgba(139,92,246,.22), transparent); + background: radial-gradient(700px 350px at 70% -30%, rgba(209,32,32,.12), transparent), + radial-gradient(500px 280px at 20% 0%, rgba(220,0,0,.08), transparent); } .hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; } .eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: .82rem; } @@ -57,9 +57,9 @@ h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; margin-top: 0; } padding: .75rem 1.1rem; border-radius: 999px; font-weight: 600; border: 1px solid transparent; transition: .25s ease; } -.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #061023; } -.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); } -.btn-ghost { border-color: var(--border); color: var(--text); } +.btn-primary { background: var(--accent); color: #ffffff; } +.btn-primary:hover { transform: translateY(-2px); background: var(--accent-2); } +.btn-ghost { border-color: #cfcfcf; color: var(--text); background: #fff; } .btn-ghost:hover { border-color: var(--accent); color: var(--accent); } .glass-card { @@ -75,7 +75,7 @@ h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; margin-top: 0; } .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; } .split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: center; } .feature-card, .literature-card, .quote-card { transition: transform .25s ease, border-color .25s ease; } -.feature-card:hover, .literature-card:hover, .quote-card:hover { transform: translateY(-4px); border-color: rgba(76,201,240,.45); } +.feature-card:hover, .literature-card:hover, .quote-card:hover { transform: translateY(-4px); border-color: rgba(209,32,32,.45); } .page-hero { padding: 5rem 0 1.5rem; } .text-link { color: var(--accent); font-weight: 600; } .checklist { padding-left: 1.1rem; } @@ -84,22 +84,28 @@ h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; margin-top: 0; } .inquiry-form label { display: block; font-weight: 500; margin-bottom: .8rem; } .inquiry-form input, .inquiry-form textarea { width: 100%; margin-top: .35rem; padding: .7rem .8rem; - border-radius: 12px; border: 1px solid var(--border); - background: rgba(7,18,37,.6); color: var(--text); + border-radius: 12px; border: 1px solid #cccccc; + background: #ffffff; color: var(--text); } .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; } .alert { margin-top: 1rem; padding: .8rem .9rem; border-radius: 12px; - border: 1px solid rgba(255,130,130,.35); background: rgba(136,30,30,.2); - color: #ffdede; + border: 1px solid #f0b3b3; background: #fff1f1; + color: #b42323; } -.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 2.5rem; } +.site-footer { + border-top: 1px solid #2a2a2a; + margin-top: 3rem; + padding-top: 2.5rem; + background: #1a1a1a; + color: #f2f2f2; +} .footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 1.2rem; } .footer-links { list-style: none; padding: 0; margin: 0; } -.footer-links li { margin: .5rem 0; color: var(--muted); } -.footer-bottom { padding: 1.25rem 0 1.8rem; color: var(--muted); } -.legal { color: var(--muted); } +.footer-links li { margin: .5rem 0; color: #bdbdbd; } +.footer-bottom { padding: 1.25rem 0 1.8rem; color: #bdbdbd; } +.legal { color: #bdbdbd; } @media (max-width: 980px) { .hero-grid, .split, .grid-3 { grid-template-columns: 1fr; } @@ -107,7 +113,7 @@ h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; margin-top: 0; } .mobile-toggle { display: inline-block; } .site-nav { position: absolute; top: 76px; right: 1rem; left: 1rem; - background: rgba(7,18,37,.97); border: 1px solid var(--border); + background: #ffffff; border: 1px solid var(--border); border-radius: 14px; padding: .9rem; flex-direction: column; align-items: stretch; transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none; } diff --git a/site.config.js b/site.config.js index 0c08f07..9010718 100644 --- a/site.config.js +++ b/site.config.js @@ -56,14 +56,14 @@ module.exports = { ], theme: { colors: { - bg: '#071225', - bgAlt: '#0b1a33', - text: '#e8eefc', - muted: '#9eb0d3', - accent: '#4cc9f0', - accent2: '#8b5cf6', - card: 'rgba(255, 255, 255, 0.06)', - border: 'rgba(255, 255, 255, 0.12)' + bg: '#ffffff', + bgAlt: '#f7f7f7', + text: '#1a1a1a', + muted: '#4a4a4a', + accent: '#d12020', + accent2: '#dc0000', + card: '#ffffff', + border: '#e6e6e6' }, radius: { sm: '10px', diff --git a/views/about.ejs b/views/about.ejs index 288bed8..cd6bd23 100644 --- a/views/about.ejs +++ b/views/about.ejs @@ -1,4 +1,3 @@ -<%- include('partials/header', { config, pageName: 'about' }) %>
@@ -22,4 +21,3 @@
-<%- include('partials/footer', { config }) %> diff --git a/views/articles.ejs b/views/articles.ejs index b3f28a9..91094f4 100644 --- a/views/articles.ejs +++ b/views/articles.ejs @@ -1,4 +1,3 @@ -<%- include('partials/header', { config, pageName: 'articles' }) %>
@@ -19,4 +18,3 @@
-<%- include('partials/footer', { config }) %> diff --git a/views/company.ejs b/views/company.ejs index 597f254..381d86d 100644 --- a/views/company.ejs +++ b/views/company.ejs @@ -1,4 +1,3 @@ -<%- include('partials/header', { config, pageName: 'company' }) %>
@@ -23,4 +22,3 @@
-<%- include('partials/footer', { config }) %> diff --git a/views/contact.ejs b/views/contact.ejs index c635e00..7ca9cc1 100644 --- a/views/contact.ejs +++ b/views/contact.ejs @@ -1,4 +1,3 @@ -<%- include('partials/header', { config, pageName: 'contact' }) %>
@@ -35,4 +34,3 @@
-<%- include('partials/footer', { config }) %> diff --git a/views/index.ejs b/views/index.ejs index a1efa57..a7087ad 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -1,5 +1,3 @@ -<%- include('partials/header', { config, pageName: 'home' }) %> -
@@ -51,5 +49,3 @@
- -<%- include('partials/footer', { config }) %> diff --git a/views/layout.ejs b/views/layout.ejs index 22a2879..907a7d1 100644 --- a/views/layout.ejs +++ b/views/layout.ejs @@ -15,7 +15,7 @@ <% const _pageName = (typeof pageName !== 'undefined' && pageName) ? pageName : 'default'; %> <%- include('partials/header', { config, pageName: _pageName }) %> -
<%- body %>
+ <%- body %> <%- include('partials/footer', { config }) %> diff --git a/views/literature.ejs b/views/literature.ejs index aba13bb..12e7756 100644 --- a/views/literature.ejs +++ b/views/literature.ejs @@ -1,4 +1,3 @@ -<%- include('partials/header', { config, pageName: 'literature' }) %>
@@ -18,4 +17,3 @@
-<%- include('partials/footer', { config }) %> diff --git a/views/news.ejs b/views/news.ejs index 716519d..5da85a7 100644 --- a/views/news.ejs +++ b/views/news.ejs @@ -1,4 +1,3 @@ -<%- include('partials/header', { config, pageName: 'news' }) %>
@@ -19,4 +18,3 @@
-<%- include('partials/footer', { config }) %> diff --git a/views/research.ejs b/views/research.ejs index 53743ec..cab4b85 100644 --- a/views/research.ejs +++ b/views/research.ejs @@ -1,4 +1,3 @@ -<%- include('partials/header', { config, pageName: 'research' }) %>
@@ -19,4 +18,3 @@
-<%- include('partials/footer', { config }) %> diff --git a/views/testimonials.ejs b/views/testimonials.ejs index 4d0565b..5688eeb 100644 --- a/views/testimonials.ejs +++ b/views/testimonials.ejs @@ -1,4 +1,3 @@ -<%- include('partials/header', { config, pageName: 'testimonials' }) %>
@@ -14,4 +13,3 @@
-<%- include('partials/footer', { config }) %> diff --git a/views/training.ejs b/views/training.ejs index e76210d..ac9f4ee 100644 --- a/views/training.ejs +++ b/views/training.ejs @@ -1,4 +1,3 @@ -<%- include('partials/header', { config, pageName: 'training' }) %>
@@ -23,4 +22,3 @@
-<%- include('partials/footer', { config }) %>