Fix layout duplicate includes and retheme to AutoTQ red/white palette

This commit is contained in:
gator 2026-03-10 22:11:21 +00:00
parent 52d126affe
commit 11646f2731
13 changed files with 44 additions and 60 deletions

View file

@ -1,13 +1,13 @@
:root { :root {
--bg: #071225; --bg: #ffffff;
--bg-alt: #0c1d39; --bg-alt: #f7f7f7;
--text: #e8eefc; --text: #1a1a1a;
--muted: #9eb0d3; --muted: #4a4a4a;
--accent: #4cc9f0; --accent: #d12020;
--accent-2: #8b5cf6; --accent-2: #dc0000;
--card: rgba(255, 255, 255, 0.06); --card: #ffffff;
--border: rgba(255, 255, 255, 0.14); --border: #e6e6e6;
--shadow: 0 20px 50px rgba(4, 10, 22, 0.45); --shadow: 0 10px 30px rgba(0,0,0,0.08);
} }
* { box-sizing: border-box; } * { box-sizing: border-box; }
@ -15,35 +15,35 @@ html, body { margin: 0; padding: 0; }
body { body {
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
color: var(--text); color: var(--text);
background: radial-gradient(1000px 400px at 10% -10%, #1b3769, transparent), var(--bg); background: var(--bg);
line-height: 1.6; line-height: 1.6;
} }
a { color: inherit; text-decoration: none; } a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; } img { max-width: 100%; height: auto; display: block; }
.container { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; } .container { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; }
.section { padding: 4.5rem 0; } .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 { .site-header {
position: sticky; top: 0; z-index: 999; position: sticky; top: 0; z-index: 999;
backdrop-filter: blur(14px); background: #ffffff;
background: rgba(7, 18, 37, 0.72);
border-bottom: 1px solid var(--border); 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; } .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 { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; }
.brand img { width: 44px; height: 44px; object-fit: contain; } .brand img { width: 44px; height: 44px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: .95rem; } .site-nav { display: flex; align-items: center; gap: .95rem; }
.site-nav a { color: var(--muted); font-weight: 500; transition: .25s ease; } .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 { display: none; border: 0; background: transparent; padding: .25rem; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--text); display: block; margin: 5px 0; } .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 { padding: 6rem 0 3.5rem; position: relative; overflow: clip; }
.hero-bg { .hero-bg {
position: absolute; inset: 0; position: absolute; inset: 0;
background: radial-gradient(700px 350px at 70% -30%, rgba(76,201,240,.35), transparent), background: radial-gradient(700px 350px at 70% -30%, rgba(209,32,32,.12), transparent),
radial-gradient(500px 280px at 20% 0%, rgba(139,92,246,.22), 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; } .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; } .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; padding: .75rem 1.1rem; border-radius: 999px; font-weight: 600;
border: 1px solid transparent; transition: .25s ease; border: 1px solid transparent; transition: .25s ease;
} }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #061023; } .btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); } .btn-primary:hover { transform: translateY(-2px); background: var(--accent-2); }
.btn-ghost { border-color: var(--border); color: var(--text); } .btn-ghost { border-color: #cfcfcf; color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); } .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.glass-card { .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; } .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; } .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, .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; } .page-hero { padding: 5rem 0 1.5rem; }
.text-link { color: var(--accent); font-weight: 600; } .text-link { color: var(--accent); font-weight: 600; }
.checklist { padding-left: 1.1rem; } .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 label { display: block; font-weight: 500; margin-bottom: .8rem; }
.inquiry-form input, .inquiry-form textarea { .inquiry-form input, .inquiry-form textarea {
width: 100%; margin-top: .35rem; padding: .7rem .8rem; width: 100%; margin-top: .35rem; padding: .7rem .8rem;
border-radius: 12px; border: 1px solid var(--border); border-radius: 12px; border: 1px solid #cccccc;
background: rgba(7,18,37,.6); color: var(--text); background: #ffffff; color: var(--text);
} }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; } .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.alert { .alert {
margin-top: 1rem; padding: .8rem .9rem; border-radius: 12px; margin-top: 1rem; padding: .8rem .9rem; border-radius: 12px;
border: 1px solid rgba(255,130,130,.35); background: rgba(136,30,30,.2); border: 1px solid #f0b3b3; background: #fff1f1;
color: #ffdede; 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-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 1.2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; } .footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: .5rem 0; color: var(--muted); } .footer-links li { margin: .5rem 0; color: #bdbdbd; }
.footer-bottom { padding: 1.25rem 0 1.8rem; color: var(--muted); } .footer-bottom { padding: 1.25rem 0 1.8rem; color: #bdbdbd; }
.legal { color: var(--muted); } .legal { color: #bdbdbd; }
@media (max-width: 980px) { @media (max-width: 980px) {
.hero-grid, .split, .grid-3 { grid-template-columns: 1fr; } .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; } .mobile-toggle { display: inline-block; }
.site-nav { .site-nav {
position: absolute; top: 76px; right: 1rem; left: 1rem; 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; border-radius: 14px; padding: .9rem; flex-direction: column; align-items: stretch;
transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none; transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none;
} }

View file

@ -56,14 +56,14 @@ module.exports = {
], ],
theme: { theme: {
colors: { colors: {
bg: '#071225', bg: '#ffffff',
bgAlt: '#0b1a33', bgAlt: '#f7f7f7',
text: '#e8eefc', text: '#1a1a1a',
muted: '#9eb0d3', muted: '#4a4a4a',
accent: '#4cc9f0', accent: '#d12020',
accent2: '#8b5cf6', accent2: '#dc0000',
card: 'rgba(255, 255, 255, 0.06)', card: '#ffffff',
border: 'rgba(255, 255, 255, 0.12)' border: '#e6e6e6'
}, },
radius: { radius: {
sm: '10px', sm: '10px',

View file

@ -1,4 +1,3 @@
<%- include('partials/header', { config, pageName: 'about' }) %>
<main> <main>
<section class="page-hero"> <section class="page-hero">
<div class="container"> <div class="container">
@ -22,4 +21,3 @@
</div> </div>
</section> </section>
</main> </main>
<%- include('partials/footer', { config }) %>

View file

@ -1,4 +1,3 @@
<%- include('partials/header', { config, pageName: 'articles' }) %>
<main> <main>
<section class="page-hero"> <section class="page-hero">
<div class="container"> <div class="container">
@ -19,4 +18,3 @@
</div> </div>
</section> </section>
</main> </main>
<%- include('partials/footer', { config }) %>

View file

@ -1,4 +1,3 @@
<%- include('partials/header', { config, pageName: 'company' }) %>
<main> <main>
<section class="page-hero"> <section class="page-hero">
<div class="container"> <div class="container">
@ -23,4 +22,3 @@
</div> </div>
</section> </section>
</main> </main>
<%- include('partials/footer', { config }) %>

View file

@ -1,4 +1,3 @@
<%- include('partials/header', { config, pageName: 'contact' }) %>
<main> <main>
<section class="page-hero"> <section class="page-hero">
<div class="container"> <div class="container">
@ -35,4 +34,3 @@
</div> </div>
</section> </section>
</main> </main>
<%- include('partials/footer', { config }) %>

View file

@ -1,5 +1,3 @@
<%- include('partials/header', { config, pageName: 'home' }) %>
<main> <main>
<section class="hero"> <section class="hero">
<div class="hero-bg"></div> <div class="hero-bg"></div>
@ -51,5 +49,3 @@
</div> </div>
</section> </section>
</main> </main>
<%- include('partials/footer', { config }) %>

View file

@ -15,7 +15,7 @@
<% const _pageName = (typeof pageName !== 'undefined' && pageName) ? pageName : 'default'; %> <% const _pageName = (typeof pageName !== 'undefined' && pageName) ? pageName : 'default'; %>
<body class="page-<%= _pageName %>"> <body class="page-<%= _pageName %>">
<%- include('partials/header', { config, pageName: _pageName }) %> <%- include('partials/header', { config, pageName: _pageName }) %>
<main><%- body %></main> <%- body %>
<%- include('partials/footer', { config }) %> <%- include('partials/footer', { config }) %>
<script src="/js/main.js" defer></script> <script src="/js/main.js" defer></script>
</body> </body>

View file

@ -1,4 +1,3 @@
<%- include('partials/header', { config, pageName: 'literature' }) %>
<main> <main>
<section class="page-hero"> <section class="page-hero">
<div class="container"> <div class="container">
@ -18,4 +17,3 @@
</div> </div>
</section> </section>
</main> </main>
<%- include('partials/footer', { config }) %>

View file

@ -1,4 +1,3 @@
<%- include('partials/header', { config, pageName: 'news' }) %>
<main> <main>
<section class="page-hero"> <section class="page-hero">
<div class="container"> <div class="container">
@ -19,4 +18,3 @@
</div> </div>
</section> </section>
</main> </main>
<%- include('partials/footer', { config }) %>

View file

@ -1,4 +1,3 @@
<%- include('partials/header', { config, pageName: 'research' }) %>
<main> <main>
<section class="page-hero"> <section class="page-hero">
<div class="container"> <div class="container">
@ -19,4 +18,3 @@
</div> </div>
</section> </section>
</main> </main>
<%- include('partials/footer', { config }) %>

View file

@ -1,4 +1,3 @@
<%- include('partials/header', { config, pageName: 'testimonials' }) %>
<main> <main>
<section class="page-hero"> <section class="page-hero">
<div class="container"> <div class="container">
@ -14,4 +13,3 @@
</div> </div>
</section> </section>
</main> </main>
<%- include('partials/footer', { config }) %>

View file

@ -1,4 +1,3 @@
<%- include('partials/header', { config, pageName: 'training' }) %>
<main> <main>
<section class="page-hero"> <section class="page-hero">
<div class="container"> <div class="container">
@ -23,4 +22,3 @@
</div> </div>
</section> </section>
</main> </main>
<%- include('partials/footer', { config }) %>