mirror of
https://github.com/Sea-Haven-Industries/seahaven-site.git
synced 2026-09-30 22:53:16 +00:00
* chore(build): add Eleventy scaffold
Thin Eleventy build (v3.1.6, pinned) — passthrough-copies assets/,
robots.txt, sitemap.xml; outputs flat HTML to _site/. _data/site.json
holds site-wide constants; _data/images.json maps image keys to
src+width+height for the {% image %} shortcode (CLS fix). Output stays
flat HTML served from the same S3 bucket + CloudFront.
* refactor(templates): base layout, partials, shared JS, CSS extraction
- _includes/base.njk + nav/mobile-menu/footer partials reproduce the
shared chrome once (was hand-duplicated across 13 pages). Adds a
skip-link and <main> landmark (WCAG 2.4.1), aria-expanded/role=dialog
hooks on the menu, and a {% year %} shortcode replacing document.write.
- assets/js/nav.js: extracted sticky-nav + accessible mobile-menu dialog
(focus trap, Escape, focus return) + rAF-throttled hero parallax.
- assets/js/form.js: Basin AJAX submit with an accessible status region.
- assets/css/*.css: per-page inline <style> extracted into page CSS files
(home/about/services/careers/jobs/contact/social/legal/404); skip-link
+ :focus-visible added to main.css.
- index.njk: homepage converted as the reference page.
* fix(css): make hero-bg url root-relative after extraction
Inline CSS used a document-relative url('assets/...') that resolves
correctly from / but breaks once moved into /assets/css/home.css.
Rewrite to /assets/images/.
* refactor(pages): convert 12 pages to Eleventy templates
Convert about, services, careers (listing + 3 jobs), contact, social-
accountability, privacy-policy, terms-of-service, eula, and 404 from
standalone HTML to .njk against base.njk. Each page now carries only
front-matter (title/description/SEO) + its <main> content; shared head/
nav/footer/scripts come from the layout. JobPosting + LocalBusiness
JSON-LD preserved. Images use the {% image %} shortcode (width/height).
Contact gets an accessible #form-status region. form.js generalized to
wire BOTH the contact form and the .apply-form job application forms
(was contact-only), preserving each submit button's own label.
* fix(a11y): footer contrast to WCAG AA + scope services .form-group
Raise footer text colors (footer-bottom/col/brand/social/contact) and
darken --text-muted so muted text clears 4.5:1 on the dark footer and
warm-gray surfaces. Scope services' flex .form-group override to
.contact-form .form-group so it can't leak to the global rule.
* perf(seo): og-cover image, webp logos, hero preload
Add a real 1200x630 og-cover.jpg (was a 153x49 favicon) wired site-wide
via base.njk og:image/twitter:image. Convert nav/footer logos to webp
(nav 58KB->22KB); PNGs kept as passthrough so old URLs still resolve.
Preload the LCP hero image on the homepage (fetchpriority=high). All
<img> carry width/height via the image shortcode (CLS).
* ci(deploy): build-then-sync, cache headers, safe concurrency
Rename main.yml -> deploy.yaml (org convention). Build with Eleventy
(npm ci && npm run build) and sync _site/ instead of the repo root, so
only built output ships (no source/templates/node_modules). Split
Cache-Control (1-day assets, no-cache HTML) and keep /* invalidation
since filenames are not yet fingerprinted. concurrency cancel-in-progress
false so a deploy is never cut mid sync. ci.yaml validates _site/ via
ci-static build mode.
* docs: README for the Eleventy build and structure
* fix(security): wire services form, guard build, harden deploy
Fable build-review findings:
- BLOCK: services puts .contact-form on the <form> itself (contact uses a
wrapper div), so form.js selector '.contact-form form' never matched it
— the services lead form submitted natively with an empty reCAPTCHA
token. Selector now also matches form.contact-form.
- Guard the build before the --delete S3 sync: require index/contact/404
and >=40 files, so a silently-empty build can never wipe the live bucket.
- npm ci --ignore-scripts on deploy (build verified to pass) to shrink the
supply-chain window on the OIDC-credentialed runner.
- Escape quotes in the image shortcode alt text.
142 lines
3.8 KiB
CSS
142 lines
3.8 KiB
CSS
/* ── Services page (extracted from inline <style>; consolidate shared rules into main.css) ── */
|
|
.grecaptcha-badge { visibility: hidden; }
|
|
|
|
/* ── Services Intro ── */
|
|
.services-intro-section { background: var(--surface); }
|
|
.services-intro-content {
|
|
max-width: 680px;
|
|
}
|
|
.services-intro-content .label { margin-bottom: 0.75rem; }
|
|
.services-intro-content p {
|
|
color: var(--text-muted);
|
|
font-size: 1.0625rem;
|
|
line-height: 1.75;
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
/* ── Service Cards ── */
|
|
.services-cards-section {
|
|
background: var(--surface);
|
|
padding-top: 0;
|
|
}
|
|
.services-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1.5rem;
|
|
}
|
|
.service-card {
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-radius: 3px;
|
|
aspect-ratio: 4/5;
|
|
background: var(--warm-gray);
|
|
}
|
|
.service-card img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.6s ease;
|
|
}
|
|
.service-card:hover img { transform: scale(1.04); }
|
|
.service-card-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(to top, rgba(20,16,12,0.88) 0%, rgba(20,16,12,0.1) 55%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
padding: 1.75rem;
|
|
}
|
|
.service-card-num {
|
|
font-size: 0.6875rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.12em;
|
|
color: var(--rose);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.service-card h3 {
|
|
font-family: var(--font-display);
|
|
font-size: 1.5rem;
|
|
color: #fff;
|
|
line-height: 1.15;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.service-card p {
|
|
font-size: 0.875rem;
|
|
color: rgba(255,255,255,0.65);
|
|
line-height: 1.6;
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.35s ease, opacity 0.35s ease;
|
|
opacity: 0;
|
|
}
|
|
.service-card:hover p {
|
|
max-height: 5rem;
|
|
opacity: 1;
|
|
}
|
|
.service-card-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
font-size: 0.8125rem;
|
|
font-weight: 600;
|
|
color: var(--rose);
|
|
margin-top: 0.875rem;
|
|
transition: gap 0.2s;
|
|
}
|
|
.service-card-link:hover { gap: 0.625rem; }
|
|
|
|
.service-card-wide {
|
|
grid-column: span 2;
|
|
aspect-ratio: 2/1;
|
|
}
|
|
|
|
/* ── Contact Form Section ── */
|
|
.contact-section { background: var(--warm-gray); }
|
|
.contact-inner {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1.2fr;
|
|
gap: clamp(3rem, 6vw, 6rem);
|
|
align-items: start;
|
|
}
|
|
.contact-text .label { margin-bottom: 0.75rem; }
|
|
.contact-text h2 { margin-bottom: 1rem; }
|
|
.contact-text p {
|
|
color: var(--text-muted);
|
|
font-size: 1rem;
|
|
line-height: 1.75;
|
|
}
|
|
.contact-form {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1rem;
|
|
}
|
|
.contact-form .form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.375rem;
|
|
}
|
|
.contact-form .form-group.full-width {
|
|
grid-column: span 2;
|
|
}
|
|
.contact-form .form-group label .required {
|
|
color: var(--rose);
|
|
}
|
|
.form-submit {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
/* ── Responsive (page-specific) ── */
|
|
@media (max-width: 1024px) {
|
|
.services-grid { grid-template-columns: 1fr 1fr; }
|
|
.service-card-wide { grid-column: span 2; aspect-ratio: 16/9; }
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.services-grid { grid-template-columns: 1fr; }
|
|
.service-card-wide { grid-column: span 1; aspect-ratio: 4/3; }
|
|
.contact-inner { grid-template-columns: 1fr; }
|
|
.contact-form { grid-template-columns: 1fr; }
|
|
.contact-form .form-group.full-width { grid-column: span 1; }
|
|
.form-submit { grid-column: span 1; }
|
|
}
|