Skip to content

style: homepage updates#62

Merged
carhartlewis merged 2 commits into
mainfrom
lewis/logo
Feb 18, 2025
Merged

style: homepage updates#62
carhartlewis merged 2 commits into
mainfrom
lewis/logo

Conversation

@carhartlewis
Copy link
Copy Markdown
Contributor

@carhartlewis carhartlewis commented Feb 18, 2025

Summary by CodeRabbit

  • New Features

    • Updated homepage content with a refreshed title, description, and call-to-action that emphasize open-source compliance automation.
    • Introduced a new navigation header integrating the updated logo for a stronger brand presence.
    • Revised waitlist form messaging to guide users clearly through the enrollment process.
  • Style

    • Redesigned the logo as a modern scalable vector graphic for sharper display.
    • Refined UI color themes for improved overall visual consistency.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app ❌ Failed (Inspect) Feb 18, 2025 1:27pm
web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 18, 2025 1:27pm

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 18, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

The updates refactor several UI components and styling. In the home page, metadata and call-to-action elements have been modified, including a change to the Logo import and adjustments to header, paragraph, and button text. The Logo component has been refactored to return an SVG and is now a default export. A new LogoHeader component was added, and the MainNav now renders it instead of plain text. Changes in the waitlist form include an updated success message, simplified styling, and revised submission logic. Global CSS variables were also adjusted.

Changes

File(s) Change Summary
apps/web/src/app/(home)/page.tsx Updated metadata (title/description), revised heading, paragraph, and button text; changed Logo import from named to default; removed waitlist invitation text.
apps/web/src/app/components/logo.tsx, apps/web/src/app/components/logo-header.tsx, apps/web/src/app/components/main-nav.tsx Refactored Logo component to return an SVG and use default export; introduced new LogoHeader component; updated MainNav to render LogoHeader instead of a text span.
apps/web/src/app/components/waitlist-form.tsx Updated success message, simplified form styling and disabled state logic, removed Discord link, and added an informational paragraph.
packages/ui/src/globals.css Modified CSS custom properties for --muted and --muted-foreground in both :root and .dark contexts with updated color values.

Possibly related PRs

  • style: homepage updates #62: The changes in the main PR are directly related to those in the retrieved PR, as both involve modifications to the same Logo component import and its usage in the page.tsx file, including updates to metadata and rendered content.

Poem

I'm a rabbit in code, with whiskers set to explore,
Hopping through new components and updates galore.
SVGs and headers, a vibrant digital garden I see,
Waitlist forms and CSS tweaks set my spirit free.
In this burrow of changes, I dance with joyful glee! 🐰✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 96a9fe5 and ea8a1a4.

📒 Files selected for processing (2)
  • apps/web/src/app/components/logo-header.tsx (1 hunks)
  • apps/web/src/app/components/logo.tsx (1 hunks)

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@carhartlewis carhartlewis marked this pull request as ready for review February 18, 2025 13:21
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (3)
apps/web/src/app/components/logo.tsx (1)

5-20: Inline SVG Implementation
This functional component effectively uses inline SVG with proper accessibility via aria-label and fill="currentColor".
Consider allowing dynamic sizing by defaulting to 64×64 only when no values are passed, to make the component more flexible.

   <svg
-    width={64}
-    height={64}
+    width={props.width ?? 64}
+    height={props.height ?? 64}
     viewBox="0 0 64 64"
     fill="currentColor"
apps/web/src/app/components/main-nav.tsx (1)

9-10: Large Logo Sizing
Using w-24 h-24 for the logo might be quite large in a nav bar. Consider reducing the dimensions or making them responsive.

apps/web/src/app/components/logo-header.tsx (1)

4-17: Consider adding role="img" for better accessibility.

The SVG implementation is good, particularly:

  • Using currentColor for dynamic color changes
  • Including aria-label for accessibility

Add the role attribute to improve accessibility:

   <svg
     width={227}
     height={56}
     viewBox="0 0 227 56"
     fill="currentColor"
     aria-label="Comp AI Logo"
+    role="img"
     xmlns="http://www.w3.org/2000/svg"
     {...props}
   >
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2710f5e and 96a9fe5.

📒 Files selected for processing (6)
  • apps/web/src/app/(home)/page.tsx (3 hunks)
  • apps/web/src/app/components/logo-header.tsx (1 hunks)
  • apps/web/src/app/components/logo.tsx (1 hunks)
  • apps/web/src/app/components/main-nav.tsx (1 hunks)
  • apps/web/src/app/components/waitlist-form.tsx (4 hunks)
  • packages/ui/src/globals.css (2 hunks)
✅ Files skipped from review due to trivial changes (1)
  • packages/ui/src/globals.css
🔇 Additional comments (17)
apps/web/src/app/components/waitlist-form.tsx (5)

55-56: LGTM! Improved success message.

The updated message provides better user feedback by setting clear expectations about follow-up communication.


66-66: LGTM! Improved responsive layout.

The updated flex layout provides better responsiveness and consistent spacing across devices.


84-84: LGTM! Simplified FormMessage styling.

Relying on the default FormMessage styling from the UI library maintains consistency.


92-92: Verify form validation behavior.

The simplified disabled state improves UX by allowing users to submit and see validation errors, rather than having a disabled button with no feedback. The form is still protected by zod validation.

Please verify that:

  1. Invalid form submissions show appropriate error messages
  2. The form cannot be submitted multiple times while processing

108-110: LGTM! Added motivational context.

The new text effectively communicates the mission and provides users with a compelling reason to join the waitlist. The styling appropriately presents this as supplementary information.

apps/web/src/app/components/logo.tsx (2)

3-3: Importing React Types
This import statement is a proper approach to reference React for type declarations. No issues found.


22-22: Default Export
Switching to a default export aligns with the updated import strategy in other files. Looks good.

apps/web/src/app/components/main-nav.tsx (1)

4-4: Introduction of LogoHeader
Importing LogoHeader is consistent with the new branding approach. No concerns here.

apps/web/src/app/(home)/page.tsx (6)

6-6: Aligned Import of Logo
Switching from a named import to a default import reflects the refactored Logo component. No issues.


9-11: Enhanced Metadata
The new title and description provide clearer information on compliance scope. This is a solid improvement.


22-22: Use of
Rendering the Logo directly is consistent with the SVG-based implementation. Good job.


24-27: Updated Marketing Heading
This headline effectively highlights your open-source automation focus for multiple compliance frameworks.


30-30: Expanded Compliance Paragraph
These lines clearly describe broader coverage (SOC 2, ISO 27001, GDPR, etc.) and the open-source nature.

Also applies to: 32-34


49-49: Improved Call-to-Action
Changing button text to "Join us on Discord" is clearer and more inviting for users.

apps/web/src/app/components/logo-header.tsx (3)

1-1: LGTM!

Good use of the type import modifier to optimize bundle size.


3-3: LGTM!

Good use of TypeScript types and props spreading to allow SVG customization.

Also applies to: 11-11


20-20: LGTM!

The default export is consistent with the related changes in other components.

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.

1 participant