Skip to content

New design for Homepage and Search results - #278

Merged
vasilyyaremchuk merged 2 commits into
mainfrom
feature/home-simplified-version-2
Jul 28, 2026
Merged

New design for Homepage and Search results#278
vasilyyaremchuk merged 2 commits into
mainfrom
feature/home-simplified-version-2

Conversation

@sf-alexo

@sf-alexo sf-alexo commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Redesigned the homepage and search results experience with refreshed hero messaging, typography, gradients, responsive layouts, and navigation. Search now displays up to 999 results, uses a standalone results page with updated status, result rows, pagination, footer, and empty states, plus a responsive animated menu. Homepage and search footers now include functional privacy and home links.

@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@sf-alexo, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 47 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 30867b03-5b30-4575-a633-4996c6c0a713

📥 Commits

Reviewing files that changed from the base of the PR and between 952527b and 94b11b1.

📒 Files selected for processing (4)
  • website/modules/@apostrophecms/search/index.js
  • website/modules/@apostrophecms/search/views/index.html
  • website/public/css/search-results/search-results.css
  • website/public/js/search-results-menu.js

Walkthrough

The search module now requests up to 999 results and uses a standalone results template with updated result, pagination, footer, and navigation markup. New CSS styles the search page, responsive layouts, menu control, navigation panel, results, and footer, while JavaScript manages menu state. The simplified homepage hero and footer copy and links were updated, alongside desktop and mobile typography and spacing changes.

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise and accurately describes the main homepage and search results redesign.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@website/modules/`@apostrophecms/search/index.js:
- Around line 1-5: Remove the unbounded perPage override from the search module
configuration and restore a bounded page size that enables real pagination.
Update the options in the exported module object, preserving the existing search
behavior while preventing up to 999 documents from loading in one request.

In `@website/modules/`@apostrophecms/search/views/index.html:
- Around line 100-106: Remove the unused class: 'c-pagination' option from the
pager.render call in the search pagination block, leaving the page, total,
shown, and data.url arguments unchanged.

In `@website/public/css/home-simplified/home-simplified.css`:
- Around line 193-200: Update the contrast-sensitive colors in the .ca-hero h1
.grad gradient and the placeholder/search-affordance styles at the referenced
locations, replacing the light endpoint and gray tokens with darker colors that
meet contrast requirements against the actual page background. Preserve the
existing gradient and control styling otherwise.

In `@website/public/css/search-results/search-results.css`:
- Around line 165-191: Update the .sf-nav closed state to remove the off-screen
navigation from keyboard focus and the accessibility tree, using visibility:
hidden or an equivalent established accessibility mechanism, and toggle it to
visible in .sf-nav.open while preserving the existing transform behavior.

In `@website/public/js/search-results-menu.js`:
- Around line 7-26: Update the menu state handling around the menuButton click
listener and both close paths to keep `#nav-icon`’s aria-expanded attribute
synchronized with the menu’s open state: set it to true when opening and false
whenever the menu closes. Reuse the same menuButton state reference across all
toggle and close handlers.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: f5d14ee5-2d2b-43ac-b7db-6e090685bd26

📥 Commits

Reviewing files that changed from the base of the PR and between 27983fa and 952527b.

📒 Files selected for processing (6)
  • website/modules/@apostrophecms/search/index.js
  • website/modules/@apostrophecms/search/views/index.html
  • website/modules/home-simplified/views/page.html
  • website/public/css/home-simplified/home-simplified.css
  • website/public/css/search-results/search-results.css
  • website/public/js/search-results-menu.js

Comment thread website/modules/@apostrophecms/search/index.js
Comment thread website/modules/@apostrophecms/search/views/index.html
Comment on lines 193 to +200
.ca-hero h1 .grad {
font-weight: 800;
background: linear-gradient(95deg, #0173D7 0%, #00A896 45%, #00897B 80%, #F57600 100%);
background: linear-gradient(90deg, #0173D7 0%, #009BA6 42%, #10FFE5 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
padding-right: 0.05em;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Use contrast-safe colors for the new text and search controls.

The #10FFE5 gradient endpoint is approximately 1.3:1 against white, making the end of the H1 difficult to read. The #9DA0A6 placeholder and #9a9a9a search affordance are also very low contrast. Use darker tokens that pass against the actual page background.

Suggested direction
-  background: linear-gradient(90deg, `#0173D7` 0%, `#009BA6` 42%, `#10FFE5` 100%);
+  background: linear-gradient(90deg, `#0173D7` 0%, `#009BA6` 42%, `#007F86` 100%);

-  color: `#9DA0A6`;
+  color: `#6B6B6B`;

-    color: `#9a9a9a`;
+    color: `#6B6B6B`;

Also applies to: 255-256, 480-482

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/public/css/home-simplified/home-simplified.css` around lines 193 -
200, Update the contrast-sensitive colors in the .ca-hero h1 .grad gradient and
the placeholder/search-affordance styles at the referenced locations, replacing
the light endpoint and gray tokens with darker colors that meet contrast
requirements against the actual page background. Preserve the existing gradient
and control styling otherwise.

Comment thread website/public/css/search-results/search-results.css
Comment thread website/public/js/search-results-menu.js
@vasilyyaremchuk
vasilyyaremchuk merged commit 3cdd1fd into main Jul 28, 2026
10 of 11 checks passed
@vasilyyaremchuk
vasilyyaremchuk deleted the feature/home-simplified-version-2 branch July 28, 2026 14:33
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.

3 participants