seahaven-site/services/index.njk
Adam Moussa 5ee640074c
Migrate to thin Eleventy build + a11y/SEO/perf/CI hardening (#20)
* 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.
2026-06-12 17:02:06 -04:00

149 lines
7.6 KiB
Text

---
layout: base.njk
title: "Services — Sea Haven Industries"
description: "Sea Haven Industries offers reliable electrical, plumbing, HVAC, handyman, and garage door repair services for every need."
pageCss: services
recaptcha: true
---
<!-- ── Page Hero ── -->
<section class="page-hero">
<div class="container">
<nav class="breadcrumb" aria-label="Breadcrumb">
<a href="/">Home</a>
<span aria-hidden="true">/</span>
<span>Services</span>
</nav>
<h1>Reliable Services for Every Need</h1>
</div>
</section>
<!-- ── Services Intro ── -->
<section class="section services-intro-section">
<div class="container">
<div class="services-intro-content">
<p class="label">Services</p>
<p>Sea Haven Industries offers a comprehensive suite of facilities maintenance services designed to meet the diverse needs of commercial and industrial clients.</p>
</div>
</div>
</section>
<!-- ── Service Cards ── -->
<section class="section services-cards-section">
<div class="container">
<div class="services-grid">
<div class="service-card">
{% image "electrical", "Electrical installation work", 'loading="lazy"' %}
<div class="service-card-overlay">
<div class="service-card-num">01 — Electrical</div>
<h3>Electrical Work</h3>
<p>We offer a wide array of electrical services, including installation, maintenance, and repair of electrical systems and components.</p>
<a href="/services/" class="service-card-link" aria-label="Learn more about Electrical Work">
Learn more
<svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true" focusable="false"><path d="M3 8h10M9 4l4 4-4 4"/></svg>
</a>
</div>
</div>
<div class="service-card">
{% image "plumbing", "Professional plumbing services", 'loading="lazy"' %}
<div class="service-card-overlay">
<div class="service-card-num">02 — Plumbing</div>
<h3>Plumbing</h3>
<p>From minor repairs to major installations, our experienced and professional plumbers are ready to handle all your plumbing needs.</p>
<a href="/services/" class="service-card-link" aria-label="Learn more about Plumbing">
Learn more
<svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true" focusable="false"><path d="M3 8h10M9 4l4 4-4 4"/></svg>
</a>
</div>
</div>
<div class="service-card">
{% image "hvac", "HVAC air conditioning service", 'loading="lazy"' %}
<div class="service-card-overlay">
<div class="service-card-num">03 — HVACR</div>
<h3>HVACR Services</h3>
<p>Our HVACR services include expert installation, efficient repair, and maintenance of heating, ventilation, and air conditioning systems.</p>
<a href="/services/" class="service-card-link" aria-label="Learn more about HVACR Services">
Learn more
<svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true" focusable="false"><path d="M3 8h10M9 4l4 4-4 4"/></svg>
</a>
</div>
</div>
<div class="service-card">
{% image "handyman", "Handyman services", 'loading="lazy"' %}
<div class="service-card-overlay">
<div class="service-card-num">04 — Handyman</div>
<h3>Handyman Services</h3>
<p>Our expert team is equipped to handle a variety of repair and maintenance tasks, ensuring your facility always remains in prime condition.</p>
<a href="/services/" class="service-card-link" aria-label="Learn more about Handyman Services">
Learn more
<svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true" focusable="false"><path d="M3 8h10M9 4l4 4-4 4"/></svg>
</a>
</div>
</div>
<div class="service-card service-card-wide">
{% image "garage-door", "Garage door repair service", 'loading="lazy" style="object-position: center 60%"' %}
<div class="service-card-overlay">
<div class="service-card-num">05 — Garage Door Repair</div>
<h3>Garage Door Repair</h3>
<p>We provide expert repair and maintenance services to ensure the smooth operation and extended longevity of your garage doors.</p>
<a href="/services/" class="service-card-link" aria-label="Learn more about Garage Door Repair">
Learn more
<svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true" focusable="false"><path d="M3 8h10M9 4l4 4-4 4"/></svg>
</a>
</div>
</div>
</div>
</div>
</section>
<!-- ── Contact Form ── -->
<section class="section contact-section">
<div class="container">
<div class="contact-inner">
<div class="contact-text">
<p class="label">Contact Us</p>
<h2 class="display-lg">Have a Question or Project Idea? Let's Talk!</h2>
<p>Have a project in mind or need more information about our construction services? Contact us today! Our friendly and knowledgeable team is ready to answer your questions and provide you with a detailed estimate.</p>
</div>
<div class="form-success" id="form-success" style="display:none; background: var(--rose-tint); border-left: 3px solid var(--rose); padding: 1.25rem 1.5rem; border-radius: 2px;">
<strong style="color: var(--text);">Message sent!</strong>
<p style="color: var(--text-muted); margin-top: 0.25rem; font-size: 0.875rem;">Thank you for reaching out. We'll get back to you shortly.</p>
</div>
<form class="contact-form" action="https://usebasin.com/f/08bc652e1969" method="POST">
<input type="hidden" name="_gotcha" style="display:none">
<input type="hidden" name="g-recaptcha-response" id="g-recaptcha-response">
<input type="hidden" name="g-recaptcha-version" value="v3">
<div class="form-group">
<label for="first-name">First Name <span class="required">*</span></label>
<input type="text" id="first-name" name="first_name" required>
</div>
<div class="form-group">
<label for="last-name">Last Name <span class="required">*</span></label>
<input type="text" id="last-name" name="last_name" required>
</div>
<div class="form-group">
<label for="phone">Phone</label>
<input type="tel" id="phone" name="phone">
</div>
<div class="form-group">
<label for="subject">Subject</label>
<input type="text" id="subject" name="subject">
</div>
<div class="form-group full-width">
<label for="email">Email <span class="required">*</span></label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-group full-width">
<label for="message">Message <span class="required">*</span></label>
<textarea id="message" name="message" rows="5" required></textarea>
</div>
<div class="form-submit">
<button type="submit" class="btn btn-primary">Send Message</button>
</div>
</form>
</div>
</div>
</section>