Skip to content

MAIN - #17280

Open
niteeshkanna-sh wants to merge 34 commits into
react:mainfrom
niteeshkanna-sh:main
Open

MAIN#17280
niteeshkanna-sh wants to merge 34 commits into
react:mainfrom
niteeshkanna-sh:main

Conversation

@niteeshkanna-sh

Copy link
Copy Markdown

No description provided.

This workflow sets up a CI pipeline for Node.js projects, including installation, caching, building, and testing across multiple Node.js versions.
@meta-cla

meta-cla Bot commented Aug 27, 2026

Copy link
Copy Markdown

Hi @niteeshkanna-sh!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

niteeshkanna-sh and others added 27 commits September 1, 2026 16:46
Scaffold a new standalone single-page app alongside the existing project:

- Vite 8 with @vitejs/plugin-react, TypeScript, React 19
- Tailwind CSS v4 wired through @tailwindcss/vite
- Replace the Vite demo page with a minimal starter component
- Pin an inline (empty) PostCSS config so Vite does not walk up and load
  the parent directory's postcss.config.js, which broke the build
- README covering setup, scripts, and layout

Verified: npm run lint, npm run build, and npm run dev all pass, and the
dev server renders the styled page with working component state.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
`npm ci` failed at the install step of every CI job:

    npm ERR! `npm ci` can only install packages when your package.json
    npm ERR! and package-lock.json are in sync.
    npm ERR! Missing: yaml@2.9.1 from lock file

The lockfile predates the current dependency tree: tailwindcss 3.4.19
pulls postcss-load-config, which needs yaml@^2, but the lockfile only
carried the top-level yaml@1.10.2.

Regenerated with `npm install --package-lock-only`. The change adds the
missing nested yaml@2.9.1 and drops some stale `peer` metadata flags; no
dependency version or integrity hash changes.

Verified `npm ci` validates under both npm 10 and npm 8.19.4, the version
the lint workflow pins via Node 16.

This unblocks the install step only. The workflows have further problems
that predate this branch, noted on the pull request.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
Adds a workflow that builds my-app and publishes it to GitHub Pages, plus
the CNAME for the custom domain.

The workflow installs with `npm ci`, lints, builds, and uploads my-app/dist
as the Pages artifact. It triggers on pushes to main that touch my-app/, and
on manual dispatch. Because it is scoped to main, merging is what deploys;
nothing publishes from a feature branch.

`public/CNAME` is copied verbatim into dist/ by Vite, landing at the site
root where Pages looks for it.

Vite's default base of '/' is correct here: a custom domain serves from the
root, and the built asset paths are root-relative to match.

Verified by running the workflow's exact steps locally -- npm ci, npm run
lint, npm run build -- and confirming dist/ contains CNAME, index.html with
root-relative asset URLs, and the hashed JS/CSS bundles.

Deploying still needs two manual steps that cannot be done from here:
enabling Pages with the GitHub Actions source, and pointing DNS at GitHub.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
Scaffolds my-app/ as a standalone Vite + React + TypeScript + Tailwind SPA,
syncs the root package-lock.json with package.json so npm ci works again, and
adds a GitHub Pages deploy workflow with a CNAME for niteshacars.in.

Merged at the repo owner's request. CI is red from pre-existing failures that
reproduce on main and are unrelated to these changes; see the pull request
description for the four causes.
Every workflow run in this repo's history has failed, on main as well as on
every branch. The cause is commit dc079b1, which replaced the monorepo's root
package.json with a create-react-app app's. That dropped the `workspaces` field
and the alex, eslint, prettier and test:integration scripts the inherited CI
depends on, leaving four distinct failures:

    lint              npm run alex        -> Missing script: "alex"
    Build / build     react-scripts build -> no public/index.html
    Integration Tests npm run test:integration -> Missing script
    E2E               tasks/publish.sh    -> No workspaces found

Remove build-and-test.yml, e2e-base.yml and lint.yml. These are upstream
create-react-app CI: they exercise packages/ through lerna, verdaccio and
puppeteer on Node 16. Restoring the old root package.json would not fix them
either -- it runs `prettier --list-different` and `eslint .` across the whole
repo, now including the uploaded public_html/ tree and my-app/, so it trades
four failures for a larger set.

Retarget node.js.yml at my-app, the app this repo actively maintains, running
install, lint and build. Drop the 18.x matrix leg: Vite 8 requires
^20.19.0 || >=22.12.0, so that leg could never pass.

This also closes a real gap. No workflow covered my-app on pull requests --
deploy-my-app.yml only runs on main -- so its code was never built or linted
before reaching the default branch.

packages/, docusaurus/, tasks/ and test/ are left untouched; only CI changes.

Verified by running the workflow's exact steps -- npm ci, npm run lint,
npm run build -- from my-app on Node 22.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
Removes the inherited upstream create-react-app CI (build-and-test.yml,
e2e-base.yml, lint.yml), which exercised packages/ through lerna, verdaccio and
puppeteer on Node 16 and could not pass after commit dc079b1 replaced the
monorepo root package.json with a create-react-app app's.

Retargets node.js.yml at my-app, running install, lint and build on Node 20.x
and 22.x. The 18.x leg is dropped because Vite 8 requires ^20.19.0 || >=22.12.0.

This also gives my-app its first pull request coverage; deploy-my-app.yml only
runs on main, so its code was previously never built or linted before reaching
the default branch.
This repository forked create-react-app and carried its entire monorepo, none
of which was ever developed here. Commit dc079b1 replaced the root package.json
with an app's, dropping the workspaces field, so the monorepo had already
stopped being buildable; PR #4 then removed the CI that exercised it. What
remained was 116k lines of upstream source that nothing builds, tests, or ships.

Removed:

  packages/       334 files, 7.7M  upstream CRA packages
  docusaurus/      59 files, 508K  upstream documentation site
  test/            78 files, 456K  upstream integration tests
  tasks/           15 files,  88K  upstream release and e2e scripts
  CHANGELOG*.md     6 files        upstream release history
  CONTRIBUTING.md                  upstream contributor guide
  SECURITY.md                      Create React App disclosure policy
  screencast*.svg                  upstream README assets

Also removed, because each only configured the directories above and now
resolves to nothing:

  lerna.json                       monorepo config, no packages left
  netlify.toml                     builds docusaurus/website
  .eslintrc.json, .eslintignore    scoped to packages/, test/, docusaurus/
  .prettierrc, .prettierignore     scoped to packages/, test/
  .alexrc, .alexignore             alex prose linter, upstream prose only
  .github/CODEOWNERS               assigns packages/ and docusaurus/ to
                                   upstream maintainers who do not work here
  .github/FUNDING.yml              upstream funding links
  .github/ISSUE_TEMPLATE/          templates for reporting CRA bugs
  .github/lock.yml, stale.yml      upstream issue-bot config

LICENSE is kept: the fork lineage is real and removing a license is not a
cleanup decision. CODE_OF_CONDUCT.md and the pull request template are generic
and still apply.

README.md described a create-react-app app at the repo root via `npm start`.
No such app exists -- the root has no src/ or public/ -- so it was boilerplate
for something that could not run. Rewritten to describe what is actually here:
my-app and public_html, how each is built and deployed, and this history.

Nothing in my-app/ or public_html/ referenced any removed path. Verified with
the CI steps -- npm ci, npm run lint, npm run build -- from my-app, and dist/
still contains CNAME, index.html and the hashed bundles.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
Removes ~116,000 lines of upstream create-react-app source that nothing in this
repository builds, tests, or ships: packages/, docusaurus/, test/, tasks/, the
changelogs, CONTRIBUTING.md, SECURITY.md and the screencast assets, along with
the configs that only scoped to those directories -- lerna.json, netlify.toml,
the eslint/prettier/alex configs, and the upstream .github meta files.

LICENSE is kept; the fork lineage is real. CODE_OF_CONDUCT.md and the pull
request template are generic and still apply.

README.md described a create-react-app app at the repo root that does not
exist, since the root has no src/ or public/. Rewritten to describe my-app and
public_html, how each is built and deployed, and this history.

Verified with the CI steps from my-app -- npm ci, npm run lint, npm run build --
and by grepping the tree for references to every removed path.
Replaces the Vite starter with an actual site for the business: hero, filterable
fleet, how-it-works, and an enquiry form that posts to the live admin API.

The old public site's theme is not in this repository. asset-manifest.json
references /static/css/main.0700b630.css and /static/js/main.b3748527.js, and
neither file was ever committed. What did survive is the brand token block in
public_html/admin.niteshacars.in/admin/admin.css, whose comments name the
colours outright -- navy #0A0E20, gold #F5A500, Poppins, 14px radius, warm
#FAF8F4 ground. Those are carried into @theme in index.css, so the public site
and the admin panel now share one palette.

The fleet in src/data/cars.ts is placeholder data shaped to the real vehicles
and vehicle_rates tables: body type, fuel, transmission, seats, model year,
daily/weekly/monthly rates, KM limit, extra-KM rate and deposit. Editing that
file is all it takes to put the real cars up.

The enquiry form is wired to the real endpoint rather than mocked.
api/enquiry-submit.php needs no sign-in and config.sample.php already
allowlists https://niteshacars.in for CORS, so submissions land in the admin
panel. It sends the honeypot field the endpoint expects, surfaces per-field
errors from the API, and shows the returned enquiry number on success.

vehicle_id is deliberately not sent. The endpoint validates it against the
vehicles table and the placeholder ids do not exist there, so sending one would
be rejected; the chosen car goes in `requirements` as free text instead. Once
cars.ts carries real ids the vehicle can be linked properly.

Live inventory is not fetched because api/vehicles.php calls
api_guard('vehicle.view'), which a public page cannot satisfy.

Images reuse the two web-sized files already in public_html: background
car.webp (8.4K) and brezza1.avif (27K). The two PNGs there are 876K and 3.5M,
too heavy to ship without processing.

Verified with npm ci, npm run lint and npm run build, then driven in a real
browser: six cards render, the SUV filter narrows to two, and clicking a card's
enquire button preselects that car in the form. The only console error is the
Google Fonts request, which this sandbox's proxy blocks.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
Replaces the Vite starter with a site for the business: hero, filterable fleet,
how-it-works, and an enquiry form posting to the live admin API.

The theme is rebuilt from the brand tokens in the admin panel's admin.css --
navy #0A0E20, gold #F5A500, Poppins, 14px radius -- because the old public
site's compiled CSS and JS were never committed to this repository.

The fleet in src/data/cars.ts is placeholder data shaped to the real vehicles
and vehicle_rates tables; editing that file puts the real cars up. Live
inventory cannot be fetched because api/vehicles.php requires authentication.

Verified with lint and build on Node 20 and 22, and driven in a browser.
public_html/admin.niteshacars.in/admin/config.php was committed with real
values: a database name, user and password that are in use. This repository is
a fork of facebook/create-react-app and is public, so those credentials are
readable by anyone who finds it.

Untracks the file and adds it to .gitignore. config.sample.php is the template
to copy on a new server, and its values were checked against the live ones --
they differ, so the sample leaks nothing.

The working copy is left in place; `git rm --cached` only stops tracking. The
copy on the server is untouched, and the panel keeps running.

This does NOT remove the file from git history. Every commit that carried it
still does, so the credentials remain readable to anyone who clones. Rotating
the database password is what actually closes this; that has to happen in the
hosting panel.

Scanned the rest of public_html for other committed secrets. Only two other
files matched a credential-shaped pattern, and neither is one:
config.sample.php holds example values, and tools/test-auth.php uses a fixed
throwaway password for a test user it creates and deletes in the same run.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
config.php was committed with a real database name, user and password. This
repository is public, so those values were readable by anyone who found it.

Untracks the file and adds it to .gitignore. The working copy and the server's
copy are both untouched, so the admin panel keeps running.

This does not remove the file from git history; rotating the database password
in the hosting panel is what actually closes the exposure.
Replaces the placeholders the site shipped with -- +91 90000 00000 and
hello@niteshacars.in -- which were visible to customers on the live domain.

Four places: the header's Call us button, and the footer's phone and email,
each as both the visible text and the tel:/mailto: href.

The tel: href carries no spaces (+916374942976) so phone dialers parse it,
while the visible text keeps the readable +91 63749 42976 grouping.

Verified in a browser: all four resolve to the new values, and a grep over
my-app confirms no placeholder survives.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
Replaces the placeholders the site shipped with -- +91 90000 00000 and
hello@niteshacars.in -- which were visible to customers on the live domain.

Four places: the header's Call us button, and the footer's phone and email,
each as both the visible text and the tel:/mailto: href.

The tel: href carries no spaces so phone dialers parse it, while the visible
text keeps the readable +91 63749 42976 grouping.

Verified in a browser, and by grepping my-app for surviving placeholders.
The site shipped with six invented vehicles -- a Brezza, Swift, City, Innova,
Baleno and Nexon EV -- with invented rates, KM limits and deposits. On a live
domain that is worse than showing nothing: a customer could read a price for a
car that does not exist and call about it.

cars.ts is now an empty array with a commented template for one entry. Adding
the real fleet is filling it back in; nothing else has to change.

The three places that read the array each handle it being empty, so the page
stays coherent rather than rendering a blank grid:

  Fleet     shows a card inviting an enquiry or a call, and hides the
            body-type filters, which would otherwise be a row of controls
            that filter nothing
  Enquiry   hides the car picker, and relabels the free-text field to
            "What kind of car do you need?" so the visitor can say what the
            dropdown would have asked
  Header    unchanged; it never read the fleet

Verified in a browser: no placeholder name appears anywhere on the page, zero
cards and zero filters render, the empty-state card shows, the car picker is
gone, the enquiry form still works, and there are no page errors.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
Replaces the single scrolling page with six routes matching the old site's
menu: Home, About Us, Our Cars, Tariff, Blog, Contact, plus a 404.

  /          Home      hero, how it works, a closing call to action
  /about     About Us  what hiring involves; deliberately generic copy
  /cars      Our Cars  the fleet listing
  /tariff    Tariff    a rate table built from the same fleet data
  /blog      Blog      post list, currently empty
  /contact   Contact   phone and email cards, and the enquiry form
  *          404       a real page rather than a blank screen

Uses react-router-dom. The nav marks the current page with a gold dot above
it, matching the menu on the old site, and collapses to a button-toggled list
below the lg breakpoint so the six items do not crowd a phone.

Two components were written for one page and had to be rewired. Fleet took an
onEnquire callback to scroll down to the form; it now links to
/contact?car=<name>, and Enquiry reads that query parameter, so choosing a car
survives the navigation between pages. Neither takes props any more.

Tariff and Blog handle being empty the same way the fleet listing does: a card
that invites a call or an enquiry, rather than an empty table or an empty list.
About and Blog carry TODO comments -- their copy states only what the booking
flow actually does, because inventing a founding year, a fleet size or posts
would put untrue claims on a live site.

scripts/spa-fallback.mjs copies dist/index.html to dist/404.html after every
build. GitHub Pages serves static files and knows nothing about client-side
routes, so without it a direct visit to /about, or a refresh on /cars, returns
Pages' own 404 and the app never boots. Pages does serve 404.html for anything
it cannot match, so an exact copy loads the app and the router resolves the
URL. Copied rather than symlinked because the Pages artifact upload does not
follow symlinks, and written in Node so the build still works on Windows.

ScrollToTop resets scroll on navigation, since a client-side route change
otherwise keeps the previous scroll position and opens a page halfway down.
Hash links are left alone so #anchors still work.

Verified in a browser: all seven routes render the right heading, clicking a
nav item changes the URL, /contact?car= is handled with the fleet empty, the
enquiry form is present, the mobile menu opens with all seven links, and no
page errors are raised. 404.html is byte-identical to index.html.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
)

Two changes shipped together.

The six invented vehicles are gone. cars.ts is now an empty array with a
commented template; everything reading it handles being empty, so no page
renders a hole. Adding the real fleet is filling the array back in.

The single scrolling page becomes six routes matching the old site's menu --
Home, About Us, Our Cars, Tariff, Blog, Contact -- plus a 404 page. The nav
marks the current page with a gold dot and collapses to a toggle on phones.

Fleet and Enquiry were written for one page; a car chosen on the fleet page
now travels as /contact?car=<name> so the choice survives the navigation.

scripts/spa-fallback.mjs copies dist/index.html to dist/404.html after every
build. GitHub Pages knows nothing about client-side routes, so without it a
direct visit to /about or a refresh on /cars returns Pages' own 404 and the
app never boots.

About and Blog carry TODO comments: their copy states only what the booking
flow actually does, rather than inventing a founding year or posts.
Two pieces: a public read-only endpoint so the panel becomes the single place
the fleet is managed, and the SEO work needed for a client-rendered site on a
static host.

## The endpoint

api/public-vehicles.php returns vehicles whose status is Available, with rates
read from the dated rate card the same way the admin reads them, so a price
scheduled for next month does not leak out early. Adding a car in the panel
puts it on the site; setting one to Maintenance takes it off.

It deliberately omits columns the admin's own endpoint returns: reg_number, a
plate is not the public's business; current_km, which reveals how hard a car
has been worked; created_by and created_at, internal; colour, a swatch for the
panel's UI. A vehicle with no rate card is skipped rather than listed with a
blank price, since that would invite an enquiry nobody can answer.

CORS uses the existing public_site_origin allowlist, echoed rather than
wildcarded, matching enquiry-submit.php. GET only. No session, no writes.

The site falls back to src/data/cars.ts when the request fails -- offline, a
CORS rejection, or the endpoint not yet uploaded. That file is empty, so the
page degrades to its "ask us what's available" state instead of an error.

## SEO

The app renders in the browser, so every route was served the same index.html
carrying the home page's title. Google runs JavaScript and would eventually see
the right tags, but WhatsApp, Facebook and X do not run it at all -- they read
the HTML as served and stop. Sharing niteshacars.in/tariff previewed as the
home page.

scripts/prerender-seo.mjs now writes a directory per route with that route's
title, description, canonical and og: tags baked in. Pages serves /tariff/ from
/tariff/index.html. dist/404.html keeps the root page's tags, since it is what
Pages serves for unmatched paths.

src/data/seo.json is the single source for those strings and is also read by
src/lib/useSeo.ts, which updates the same tags on client-side navigation -- the
app never re-requests HTML after boot, so without it the title would stay on
whichever page loaded first.

Also added: sitemap.xml generated from the same file, robots.txt pointing at
it, and AutoRental structured data in index.html carrying the business name,
phone and email, which is what local search results are built from.

This replaces scripts/spa-fallback.mjs; the 404 copy now happens here.

Verified: php -l passes on the endpoint; all six routes build with their own
title, canonical and og:url; 404.html carries the root tags; the sitemap lists
every route. In a browser with the API unreachable, the listing falls back to
the empty state rather than hanging, the title changes on navigation, and no
page errors are raised.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
api/public-vehicles.php returns Available vehicles with rates from the dated
rate card, so adding a car in the admin panel puts it on the site. It omits
registration numbers, current KM and internal columns, and skips vehicles with
no rate card rather than listing a blank price. CORS reuses the existing
public_site_origin allowlist. The site falls back to an empty cars.ts when the
request fails, so it degrades rather than erroring.

For SEO, every route was served the same index.html carrying the home page's
title. Google runs JavaScript, but WhatsApp, Facebook and X do not -- sharing
/tariff previewed as the home page. The build now writes a directory per route
with its own title, description, canonical and og: tags, plus sitemap.xml,
robots.txt and AutoRental structured data.

The endpoint still has to be uploaded to the server; the repo is not deployed
to Hostinger.
The metadata described the service generically, so it competed with every
self-drive rental in India and matched none of the searches that actually
convert. Someone looking for a car does not search "self-drive car hire" --
they search "car rental Nagercoil".

Titles and descriptions now name the district and its towns, kept inside the
lengths search results truncate at: every title is 42-53 characters against a
~60 limit, and every description 107-150 against ~155, so none is cut mid
sentence.

The structured data declares the service area rather than only the business:
areaServed is Kanyakumari district within Tamil Nadu, and the address carries
Nagercoil and Tamil Nadu. No street address or coordinates are invented --
those have to be real to be worth anything, and a wrong one is worse than none.

Local ranking also reads the visible page, not just the head. AreasServed
lists the twelve main towns as text on the home and contact pages, so a search
for "car rental Marthandam" lands on a page that says Marthandam. The hero now
names the district and four largest towns in its opening paragraph.

Verified in a browser: all six towns checked appear on the home page, the
title is the district one, and the JSON-LD parses with areaServed "Kanyakumari
district", locality Nagercoil, region Tamil Nadu. No page errors.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
Search Console shows the site at position 3.2 for its main query, with clicks
down 47% over 28 days. The indexed listing explains part of why: it advertises
"NiteSha Cars & Bikes ... premium cars, wedding rentals, and tourist vehicle
services", and the rebuilt site mentioned none of that. Replacing a page that
ranks with one covering less of what the business does is how a ranking is
lost, and the click drop may already be that.

Three services now have their own pages, because they are separate searches
and a page can only rank for what it is about. Somebody hiring a scooter is
not the person booking a wedding car.

  /bikes             two-wheelers, hourly to weekly
  /wedding-cars      decorated cars, reserved dates, vehicles for the family
  /tourist-vehicles  cars and vans with a driver, sightseeing and temple tours

The brand was wrong throughout: the site said "Nitesha Cars", the indexed
listing and the business are "NiteSha Cars & Bikes". Inconsistent naming costs
local ranking directly, so it now comes from seo.json wherever it appears.

Titles now lead with Nagercoil rather than Kanyakumari. The district name is
what people add after the town, not before it, and the competitor ranking
above us leads with Nagercoil too. All nine titles are 40-51 characters and
all nine descriptions 107-152, inside where results truncate.

The home h1 was "Take the wheel. We'll handle the rest." -- the strongest
on-page heading, carrying no keyword at all. It now reads "Self drive car &
bike rental in Nagercoil and across Kanyakumari district", with the slogan
kept as a tagline beneath it.

Nine nav items do not fit a desktop row, so the four services sit behind one
Services trigger, which keeps the six-item menu shape the old site had. Each
service keeps its own route. The mobile menu lists all nine flat.

Menus now close from the click that navigates rather than an effect watching
the path, which oxlint flagged as cascading an extra render.

Verified in a browser: all nine routes render their own h1, the brand appears
in the header, the dropdown holds four items and closes after navigating, and
the home page links to each service two or three times over -- nav, card grid
and footer. No page errors.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
Motion throughout: the hero staggers in, sections and cards fade up as they
are scrolled to, each route change fades the new page in, menus drop open, and
cards lift on hover.

Built on CSS keyframes and one IntersectionObserver rather than a motion
library. Framer Motion is around 34 kB gzipped; this is 0.43 kB, measured
against the previous build. That matters here specifically: the site competes
on local search, Core Web Vitals feed that, and most visitors arrive on a
mid-range phone over mobile data.

Only opacity and transform are animated. Both are composited, so no frame
triggers layout or paint -- animating height, top or margin is what makes a
site judder on the hardware most people actually have. translate3d and
scale3d keep the work on the GPU.

The reveal uses an IntersectionObserver, not a scroll listener: intersections
are reported off the main thread, where a scroll handler would run on every
frame of every scroll. Each element unobserves after firing, so content
animates once rather than re-animating whenever it passes the viewport again.

Route transitions need main to be keyed on the pathname. Without the key React
reuses the DOM node, no mount happens, and the animation never replays.

prefers-reduced-motion is handled in both directions. The whole motion block
is inside a no-preference query, and a reduce query resets [data-reveal] to
full opacity -- without that second rule the reveal would leave every section
permanently invisible for anyone who has asked their system for less motion,
which is worse than having no animation at all.

AreasServed is rewritten rather than patched: wrapping its list items left the
JSX unbalanced, and the structure reads better with the chip as a span inside
the revealed li.

Verified in a browser: a below-fold section measures opacity 0 before scroll
and 1 after, the hero is already at full opacity on load, an animationstart
event for fade-up fires on main at every route change, and under reduced
motion zero elements are left invisible.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
Kanyakumari district sends a lot of people to the Gulf, Singapore and
Malaysia, and they come back for weddings, the December holidays and family
occasions. Their problems are not a local customer's: they book months ahead
from another country, land at an airport in a different state, and usually
need a vehicle for weeks rather than days. None of that was addressed
anywhere on the site.

/nri covers the things they actually ask about -- arranging a vehicle before
flying, being met at Trivandrum, which licence works, and dropping the car
back on the way out. Trivandrum is named specifically because it is the
nearest international airport to Nagercoil and where most Gulf and Singapore
flights land, and because "car rental Trivandrum airport Nagercoil" is a
search somebody makes.

WhatsApp is the primary call to action on this page, per the owner. It costs
nothing from abroad and survives the time difference, where a phone call to
India from the Gulf does neither. The link is wa.me with the country code and
no punctuation, which is what the format requires -- a space or a leading plus
fails silently. It carries a prefilled message with blanks for arrival and
return dates, so the first message already has the information we need.

The two offers the owner chose, a long-stay discount and airport pickup, are
described without figures. No percentage, no rate, no "free". They have not
set the terms, and a number on a live page is a promise a customer can hold
them to; inventing one would commit their money. The copy says the daily rate
comes down for longer hires and to ask for the rate, which is true and still
converts. A test asserts no percentage or rupee figure appears on the page.

The licence guidance is the part most worth getting right, since being turned
away at the counter after a night flight is the failure people fear: an Indian
licence works if unexpired, a foreign one needs an International Driving
Permit alongside, passport and visa or OCI as photo ID, and send a photo ahead
so it is confirmed before travelling rather than on arrival.

The services grid now holds five cards and moves to a 3-then-5 column layout
so none is orphaned on its own row.

Verified in a browser: the page renders with its own title, the WhatsApp link
resolves to wa.me/916374942976 with the prefilled text and opens in a new tab
with noopener, Trivandrum, the IDP rule, long-stay and weddings are all
mentioned, no invented figure appears anywhere, and the home page links to it
twice. No page errors.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
"Monthly car rental Nagercoil" is a different search from "self drive car
rental Nagercoil", and the competitor ranking above us has a page for it while
we had nothing. A page can only rank for what it is about.

Their version is a section: a paragraph, four bullets on what affects the
rate, and a button. This goes further, because the way to outrank a thin page
is to answer what it leaves out. Six questions somebody actually has before
handing over a month of hire -- how the KM allowance works across a month
rather than a day, who services the car while they have it, what happens on a
breakdown, whether they can extend, what deposit is held, what to bring -- and
four audiences, since a family back from the Gulf and someone on a work
posting arrive with different worries.

Their page does confirm one thing: it quotes no price either, only what
affects the rate. So the no-figures approach is not a handicap against the
site currently ranking first. This page lists five factors and offers a
same-day quote.

Both spellings of the vehicle class are present. The page said "seven-seater",
but the search is typed "7 seater" -- the numeral now appears here and on the
fleet page, where somebody looking for one would land.

Monthly is linked from the NRI page's long-stay step, which is the natural
path: a visitor reading about staying for weeks is the person who wants this.

Verified in a browser: the page renders with its own h1 and title, mentions
7 seater, NRI, work postings, extra-KM, deposits and servicing, carries six
Q&A entries, and contains no invented figure. All eleven routes still render
an h1. No page errors.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
Monthly hire, NRI visitors and weddings were reachable only through the nav or
a small card in the services grid, where they read as four equal options. They
are not equal: a month-long hire, a family flying in for a season and a wedding
booking are each worth many times a weekend rental, and they are the bookings
worth putting in front of someone before they leave the page.

Each is now a band on navy rather than the page's sand, so it reads as an
offer block instead of more body copy. The layout follows what works on the
competitor's monthly section -- icon, heading, a gold line naming the
question in the visitor's head, a paragraph, and a panel of four checked
points ending in a call to action -- because it is a good pattern, not because
it is theirs. Ours carries three of these where they have one.

Still no figures anywhere in the band. The points say what decides the rate,
not what the rate is; a test asserts no percentage or rupee figure appears.

Verified in a browser: three blocks render, each call to action points at its
own route and navigates, the band contains no invented price, and at 390px
the blocks stack with no horizontal overflow. No page errors.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
The layout pattern only: two overlapping photographs with a circular badge
across them, and beside it a pill label, a heading, a paragraph and numbered
accordion rows. The content is ours. Nobody's founder story is borrowed, and
nothing is claimed about the fleet that has not been established.

The three rows say what is actually true and worth knowing before hiring:
the rate, KM allowance, extra-KM rate and deposit are all stated before the
vehicle is handed over; we cover the whole district including airport
delivery; and cars, bikes, wedding vehicles and drivers come from one place
rather than four.

The circular badge is an SVG textPath around a circle, not letters rotated
individually with transforms -- that approach drifts at different font sizes
and falls apart when the font falls back. Only the svg spins, so the arrow in
the middle stays upright, and it stops under prefers-reduced-motion.

The accordion is buttons with aria-expanded rather than details and summary,
because only one row should be open at a time and native details has no notion
of a group. Clicking an open row closes it, so the section can be collapsed
entirely.

Reuses the two web-sized images already in the project. No new assets: the
remaining photographs in public_html are 876K and 3.5M, too heavy to ship.

Verified in a browser: three rows, the first open at load, opening the second
closes the first, its panel becomes visible, clicking again closes it, the
badge links to /contact, both images render, and at 390px there is no
horizontal overflow. No page errors.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
niteeshkanna-sh and others added 5 commits September 12, 2026 17:29
…te (#11)

Search Console showed position 3.2 with clicks down 47%, and the indexed
listing advertised bikes, wedding rentals and tourist vehicles that the
rebuilt site did not mention at all.

Adds pages for bikes, wedding cars, tourist vehicles, monthly rental and NRI
visitors, each a separate route because each is a separate search. Corrects
the brand to NiteSha Cars & Bikes, which is what the business is called and
what Google already has indexed. Titles lead with Nagercoil rather than
Kanyakumari, and the home h1 now carries the primary keyword instead of a
slogan.

Structured data declares the service area as Kanyakumari district, and an
areas-served section names the twelve main towns as visible text. No street
address or coordinates are invented.

Motion throughout, built on CSS keyframes and one IntersectionObserver rather
than a motion library: 0.43 kB gzipped against Framer Motion's ~34 kB, which
matters on a site competing on local search. Only opacity and transform are
animated, and prefers-reduced-motion is honoured in both directions.

The home page gains three highlight bands for the high-value services and a
stacked-image accordion section.

No prices appear anywhere. The owner has not set terms for the long-stay
discount or airport pickup, and a figure on a live page is a promise a
customer can hold them to.
Gold led the brand but appeared only as a highlight on navy. It now carries
the hero and every page header, with warm cream behind the body in place of
the near-grey #FAF8F4, so the site reads gold rather than gold-trimmed.

The relationship had to invert rather than simply swap. #F5A500 as text on
white measures 2.05:1, well under the 4.5:1 body-text minimum -- gold can only
be a surface. Navy on gold is 9.36:1, so gold goes behind and navy on top.

This also fixes a contrast bug already shipped. --color-gold-deep was #B36B00,
used for links on light backgrounds, and measured 4.18:1 on white: failing.
It is now #8A5A00, which is 5.61:1 on cream.

Every pairing was measured rather than judged by eye:

  hero h1, navy on gold            9.36
  hero paragraph, navy/75 on gold  5.84
  page header h1 on gold           9.36
  body text on cream               7.13
  links on cream                  19.15

The alpha ones needed computing by hand. Reading them out of the browser gave
7424264.93 for the hero paragraph, because getComputedStyle returns rgba and
the script was not compositing it against what sat behind.

The highlights band stays navy on purpose. An entirely gold page is tiring to
read, and one dark section gives the gold somewhere to land, so it reads as
premium rather than relentless.

The hero photograph drops to 15% opacity with luminosity blending, since a
full-colour image under a saturated gold turns muddy.

Verified in a browser: no bg-sand remains anywhere, every measured pairing
passes AA for body text, and no page errors.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
The previous commit made gold the surface and navy the type. The logo
does the reverse — a dark navy field with a metallic gold monogram and a
gold rule beneath. The logo is the authority, so the site follows it.

Header, hero and page headers go back to navy with gold type. Gold
becomes metallic rather than flat: the #F0D060 -> #D4AF37 -> #C8873A
range from the logo, used as a gradient in .gold-rule and on the
monogram, with .eyebrow-gold for the "PREMIUM RENTALS" lockup.

Adds Logo.tsx, which draws the NS monogram rather than loading an image
because the artwork file hasn't been supplied yet.

Keeps the --color-gold-deep fix from the previous commit (#B36B00 was
4.18:1 on white, failing for link text; #8A5A00 passes) — that bug is
independent of which way round the surfaces go.

Measured on navy: #F0D060 12.67, #D4AF37 9.11, #C9A227 7.92, #C8873A
6.37 — all pass. Hero H1 19.15, nav and eyebrow 13.06, hero paragraph
at white/70 9.53, body on cream 7.13.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
Sits between "how it works" and the areas we cover: you have just read
how to book, so this is the payoff -- the road itself -- before the page
goes back to detail. It also breaks up four light sections in a row.

The picture is a CSS background rather than an <img> so a missing file
degrades to the navy beneath instead of leaving a broken-image icon on a
live page. The artwork is not in the repo yet; the band reads as a plain
navy panel with the gold rule until it is.

The scrim is gated at 1024px. Below that the text column still spans most
of the frame, so a sideways fade would put the type over its pale end --
at 640px that measured 4.79:1 against a deliberately blown-out stand-in.
With the flat wash instead, the worst case across 390-1920px is 7.17:1.

Contrast measured from the rendered pixels with the type hidden, so the
figures fold in the photograph, both scrim layers and the compositing
rather than trusting getComputedStyle.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
Rebuild the theme around the logo: navy surface, metallic gold on top
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants