Add AI and outdoor blog content - #14
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
There are security and SPA-navigation issues in the touched UI (reverse-tabnabbing risk via window.open, and a full reload on the 404 home link) that should be addressed before merge.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR expands the site’s blog with new AI/outdoor content, introduces a shared content source for those posts with a dynamic article route, and updates the UI theme (forest/amber/slate) across core pages.
Changes:
- Added a shared
newBlogPostscontent module and a dynamic/blog/:slugroute for rendering those posts. - Updated the Blog listing to include the new content alongside existing static posts.
- Refreshed styling across home, blog, article, and 404 pages using new shared layout classes (
site-home,site-page,site-header).
File summaries
| File | Description |
|---|---|
| src/App.tsx | Adds the dynamic blog post route. |
| src/pages/Blog.tsx | Pulls in newBlogPosts and updates blog list UI/category styling. |
| src/pages/blog/NewBlogPost.tsx | New dynamic post page that renders content from newBlogPosts by slug. |
| src/content/newBlogPosts.ts | Adds the shared editorial data source (6 new posts). |
| src/index.css | Introduces shared theme/layout utility classes and updates CSS variables. |
| src/pages/Index.tsx | Applies the refreshed theme across the home page sections. |
| src/pages/NotFound.tsx | Restyles the 404 page to match the new theme. |
| src/pages/blog/HikingOaxacaAdventure.tsx | Updates page wrapper/header classes to new theme. |
| src/pages/blog/KubernetesMonitoringKanvas.tsx | Updates page wrapper/header classes to new theme. |
| src/pages/blog/OpenSourceContributionsMeshery.tsx | Updates page wrapper/header classes to new theme. |
| src/pages/blog/DogsAndDevops.tsx | Updates page wrapper/header classes to new theme. |
Review details
Suppressed comments (1)
src/pages/Index.tsx:263
- Same reverse-tabnabbing risk here: add
noopener,noreferrer(or use an<a>withtarget+rel) when opening a new tab.
<Button
size="lg"
className="bg-amber-400 hover:bg-amber-300 text-slate-950 font-semibold transition-all duration-300 hover:scale-105"
onClick={() => window.open('https://github.com/simihablo', '_blank')}
>
- Files reviewed: 11/11 changed files
- Comments generated: 3
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
103
to
107
| <Button | ||
| size="lg" | ||
| variant="outline" | ||
| className="border-orange-500 text-orange-400 hover:bg-orange-500 hover:text-white transition-all duration-300" | ||
| className="border-emerald-400/70 text-emerald-200 hover:bg-emerald-400 hover:text-slate-950 transition-all duration-300" | ||
| onClick={() => window.open('https://github.com/simihablo', '_blank')} |
| } | ||
| }; | ||
|
|
||
| console.log('Blog component rendering'); |
Comment on lines
+20
to
22
| <a href="/" className="font-medium text-emerald-700 underline decoration-emerald-300 underline-offset-4 hover:text-emerald-900"> | ||
| Return to Home | ||
| </a> |
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.
Summary
Validation