Skip to content

feat(docs): implement custom hero animations and visual demo - #46

Merged
Vaishnav88sk merged 4 commits into
masterfrom
feat/hero-landing
Jun 16, 2026
Merged

Vaishnav88sk merged 4 commits into
masterfrom
feat/hero-landing

Conversation

@Vaishnav88sk

@Vaishnav88sk Vaishnav88sk commented Jun 16, 2026 •

Copy link
Copy Markdown
Owner

📖 Description

Resolves #42.

This PR overhauls the Claritty website's homepage, completely replacing the static hero section with a dynamic, highly-animated, and visually stunning landing page designed to maximize user engagement and "wow" factor.

💡 What Changed

  • Visual Demo Embedding: Integrated the clarctl scan terminal screenshot prominently beneath the hero CTA buttons. The image is housed within a sleek, custom-built Mac-style floating window container.
  • CSS Micro-Animations (custom.css):
    • Cascading Entrance: Added fade-in-up keyframes with staggered animation delays so the headline, subtitle, buttons, and feature cards load sequentially.
    • Infinite Float: The terminal mockup now utilizes a continuous float animation on the Y-axis.
  • Hover Physics: Upgraded the Call-to-Action buttons and the feature grid cards with responsive physics. They now lift (translateY) and scale up, emitting a glowing purple box-shadow when hovered over.
  • Asset Migration: Copied claritty-clarctl-1.png from the root repository into website/static/img/ to ensure it is bundled correctly by Docusaurus.

✅ Checklist

  • Website builds successfully (cd website && npm run build).
  • Animations execute smoothly without performance stuttering.
  • Layout is perfectly responsive.

Summary by CodeRabbit

  • New Features

    • Added a “Visual Demo” terminal-style section on the homepage with animated presentation and imagery.
  • Style

    • Introduced new fade-in-up and float animations, including reusable delay utilities.
    • Updated the hero layout and tagline to use animated styling.
    • Refreshed feature cards and header buttons with improved hover/transition effects and animation timing.
  • SEO / Page Metadata

    • Updated the homepage title and open-graph metadata and added a description for better sharing/search previews.

@Vaishnav88sk Vaishnav88sk self-assigned this Jun 16, 2026
@Vaishnav88sk Vaishnav88sk added documentation Improvements or additions to documentation enhancement New feature or request labels Jun 16, 2026
@coderabbitai

coderabbitai Bot commented Jun 16, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5701f5f3-458c-4164-8307-2ba6a199d3a4

📥 Commits

Reviewing files that changed from the base of the PR and between f5d0591 and 29706f6.

📒 Files selected for processing (2)
  • website/src/css/custom.css
  • website/src/pages/index.tsx
🚧 Files skipped from review as they are similar to previous changes (2)
  • website/src/css/custom.css
  • website/src/pages/index.tsx

📝 Walkthrough

Walkthrough

Adds two CSS animation definitions (fadeInUp and float) with utility and delay classes, then applies them across the homepage hero headline, tagline, CTA buttons, and features grid. A new terminal mockup section is inserted in the hero. Page metadata is updated with an explicit description prop and Head tags.

Changes

Homepage Animation & Visual Demo

Layer / File(s) Summary
CSS animation keyframes and utility classes
website/src/css/custom.css
Adds @keyframes fadeInUp with .animate-fade-in-up and .delay-1–.delay-4 stagger classes, plus @keyframes float with .animate-float.
Hero section and tagline animations
website/src/pages/index.tsx
Adds Head import; applies animation classes to hero headline and tagline paragraph.
CTA buttons and terminal mockup section
website/src/pages/index.tsx
Replaces static button block with hover-animated version featuring onMouseEnter, onMouseLeave, onFocus, onBlur handlers that adjust transform and boxShadow; inserts new animated terminal mockup section with image and styled containers.
Features grid and card hover interactions
website/src/pages/index.tsx
Adds animation delay class to features row container; adjusts feature card transition timing and replaces hover handlers with direct state manipulation of transform and boxShadow on mouse and focus events.
Page metadata and head tags
website/src/pages/index.tsx
Passes constant description prop to Layout; adds Head block with explicit title and og:title meta tags, replacing dynamic title construction from siteConfig.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • Vaishnav88sk/claritty#44: Modifies the same website/src/css/custom.css and website/src/pages/index.tsx files, expanding the custom homepage and styles on which this PR builds.

Poem

🐰 Bounce, bounce, the page comes alive,
With fadeInUp and a terminal dive!
Buttons hover, features glow,
A hero section steals the show —
Hop along, the wow-factor's high! 🎉

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main changes: implementing custom hero animations and adding a visual demo section to the homepage.
Linked Issues check ✅ Passed All requirements from issue #42 are addressed: custom hero section with animations, CTA buttons with hover effects, embedded visual demo terminal mockup, and features grid with glassmorphism styling.
Out of Scope Changes check ✅ Passed All changes are directly aligned with the linked issue objectives: CSS animations, hero section updates, visual demo integration, and features grid styling enhancements.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/hero-landing

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

@Vaishnav88sk Vaishnav88sk added this to the v1.1 Release milestone Jun 16, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🧹 Nitpick comments (1)
website/src/css/custom.css (1)

82-112: ⚡ Quick win

Add a reduced-motion fallback for the new entrance/float animations.

The new default animations (including infinite float) should be disabled when users request reduced motion.

Suggested fix
+@media (prefers-reduced-motion: reduce) {
+  .animate-fade-in-up,
+  .animate-float {
+    animation: none !important;
+    opacity: 1;
+    transform: none;
+  }
+}
🤖 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/src/css/custom.css` around lines 82 - 112, The animations defined in
the animate-fade-in-up, delay-1 through delay-4, and animate-float classes do
not account for users who have enabled the prefers-reduced-motion accessibility
preference. Add a media query using `@media` (prefers-reduced-motion: reduce) that
disables all animations for users with this preference by setting animation to
none on the .animate-fade-in-up and .animate-float classes, and removing
animation-delay from the delay utility classes when this preference is active.
🤖 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/src/css/custom.css`:
- Around line 71-85: The keyframe definition uses camelCase naming (fadeInUp)
but the configured stylelint rule requires kebab-case format. Rename the
`@keyframes` fadeInUp definition to `@keyframes` fade-in-up, and update the
corresponding animation property reference in the .animate-fade-in-up class to
use fade-in-up instead of fadeInUp to maintain consistency and satisfy the
linting requirement.

In `@website/src/pages/index.tsx`:
- Around line 108-113: The onMouseOut event handler is resetting the box-shadow
to an incomplete value that does not match the original base style box-shadow
defined earlier in the element's style object. Update the box-shadow assignment
in the onMouseOut handler to use the exact same two-layer shadow value that was
set in the base style (which includes both the main shadow and the secondary
shadow layer), so that cards properly return to their original visual appearance
when the mouse leaves.
- Around line 44-55: Replace the onMouseOver and onMouseOut event handlers with
onMouseEnter and onMouseLeave on the Link components to prevent event bubbling
issues. Additionally, add onFocus and onBlur handlers to both the "Get Started"
and GitHub Link elements that apply the same style transformations (transform
and boxShadow changes) to ensure keyboard users receive the same visual feedback
when tabbing through buttons and interactive elements.

---

Nitpick comments:
In `@website/src/css/custom.css`:
- Around line 82-112: The animations defined in the animate-fade-in-up, delay-1
through delay-4, and animate-float classes do not account for users who have
enabled the prefers-reduced-motion accessibility preference. Add a media query
using `@media` (prefers-reduced-motion: reduce) that disables all animations for
users with this preference by setting animation to none on the
.animate-fade-in-up and .animate-float classes, and removing animation-delay
from the delay utility classes when this preference is active.
🪄 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: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 831f337b-66e1-4f78-8716-19458a74561c

📥 Commits

Reviewing files that changed from the base of the PR and between a34483c and f5d0591.

⛔ Files ignored due to path filters (1)
  • website/static/img/claritty-clarctl-1.png is excluded by !**/*.png
📒 Files selected for processing (2)
  • website/src/css/custom.css
  • website/src/pages/index.tsx

Comment thread website/src/css/custom.css Outdated
Comment thread website/src/pages/index.tsx Outdated
Comment thread website/src/pages/index.tsx
@github-actions

Copy link
Copy Markdown

Code Coverage

Package Line Rate Health
github.com/Vaishnav88sk/claritty/clarctl-go/cmd 36% ❌
github.com/Vaishnav88sk/claritty/clarctl-go/internal/ai 72% ➖
github.com/Vaishnav88sk/claritty/clarctl-go/internal/config 92% ✔
github.com/Vaishnav88sk/claritty/clarctl-go/internal/ui 12% ❌
github.com/Vaishnav88sk/claritty/sre-agent/hub/internal/api 60% ➖
github.com/Vaishnav88sk/claritty/sre-agent/agent/internal/ai 67% ➖
github.com/Vaishnav88sk/claritty/sre-agent/agent/internal/k8s 71% ➖
Summary 62% (992 / 1622) ➖

@Vaishnav88sk
Vaishnav88sk merged commit a8f1108 into master Jun 16, 2026
9 checks passed
@Vaishnav88sk
Vaishnav88sk deleted the feat/hero-landing branch June 16, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] Build a Custom Hero Landing Page

1 participant