Merged
Conversation
Collaborator
waleedlatif1
commented
Oct 6, 2025
- fix(blog): center footer, fix dark mode, fix avatar (fix(blog): center footer, fix dark mode, fix avatar #1559)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Greptile Overview
Summary
This PR implements blog-related UI improvements to the Sim platform's landing pages. The changes center around enhancing the user experience for the `/building` route, which appears to contain blog content including comparison articles about AI agent workflow builders.The key modifications include:
- Theme Management: Forces light theme for the
/buildingroute by adding it to the theme provider's conditional logic, ensuring consistent visual presentation for blog content - Navigation Enhancement: Adds a "Building" link to the footer's "More Sim" section, providing easy access to the new blog content
- Layout Improvements: Configures the footer to use full-width styling with centered content specifically for building/blog pages
- Avatar Standardization: Refactors author profile displays from Next.js Image components to shadcn Avatar components, improving design system consistency and providing better fallback handling
These changes integrate seamlessly with the existing codebase architecture, following established patterns for route-specific styling, footer navigation, and component usage. The modifications maintain the existing responsive design patterns and accessibility features while standardizing the blog section's visual presentation.
Important Files Changed
Changed Files
| Filename | Score | Overview |
|---|---|---|
| apps/sim/app/theme-provider.tsx | 5/5 | Adds '/building' route to force light theme mode for blog content |
| apps/sim/app/(landing)/components/footer/footer.tsx | 5/5 | Adds new 'Building' navigation link to footer's 'More Sim' section |
| apps/sim/app/(landing)/building/layout.tsx | 5/5 | Configures footer with fullWidth prop for centered blog layout |
| apps/sim/app/(landing)/building/openai-vs-n8n-vs-sim/openai-n8n-sim.tsx | 5/5 | Refactors author avatars from Image to Avatar components for consistency |
Confidence score: 5/5
- This PR is safe to merge with minimal risk
- Score reflects simple, focused changes that follow established patterns and don't modify core functionality
- No files require special attention
Sequence Diagram
sequenceDiagram
participant User
participant BuildingLayout
participant Footer
participant OpenAiN8nSim
participant Nav
participant ThemeProvider
User->>BuildingLayout: "Navigate to /building/openai-vs-n8n-vs-sim"
BuildingLayout->>ThemeProvider: "Check pathname for forced theme"
ThemeProvider-->>BuildingLayout: "Force light theme for /building"
BuildingLayout->>Nav: "Render with hideAuthButtons=false, variant='landing'"
Nav-->>BuildingLayout: "Navigation component rendered"
BuildingLayout->>OpenAiN8nSim: "Render blog post content"
OpenAiN8nSim-->>BuildingLayout: "Blog post with structured data rendered"
BuildingLayout->>Footer: "Render with fullWidth=true"
Footer-->>BuildingLayout: "Footer with centered content rendered"
BuildingLayout-->>User: "Complete blog page displayed in light mode"
4 files reviewed, no comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.