chore: update preview screenshots with optimized multi-format images#149
Merged
ManukMinasyan merged 2 commits intomainfrom Feb 23, 2026
Merged
chore: update preview screenshots with optimized multi-format images#149ManukMinasyan merged 2 commits intomainfrom
ManukMinasyan merged 2 commits intomainfrom
Conversation
- Replace JPG hero images with AVIF/WebP/PNG using <picture> element for progressive enhancement (AVIF: 90KB, WebP: 97KB, PNG: 140KB) - Update GitHub README screenshot with optimized PNG (145KB) - All images captured at 2x Retina (2880x1800) for crisp rendering - Add MCP case to CreationSource enum to fix 500 error
There was a problem hiding this comment.
Pull request overview
This PR optimizes the landing page hero section by implementing progressive image enhancement with modern formats (AVIF/WebP/PNG) and adds the MCP (Model Context Protocol) enum case to prevent 500 errors when records are created via MCP tool calls.
Changes:
- Replaced single JPG preview images with responsive
<picture>element supporting AVIF (90KB), WebP (97KB), and PNG (140KB) fallbacks - Updated JavaScript theme-switcher to handle multiple source formats across light/dark modes
- Added
CreationSource::MCPenum case with proper color ('gray') and label mappings
Reviewed changes
Copilot reviewed 1 out of 10 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| resources/views/home/partials/hero.blade.php | Replaced <img> with <picture> element for progressive enhancement; updated theme-switching JS to manage AVIF/WebP/PNG sources |
| app/Enums/CreationSource.php | Added MCP enum case with complete match expression coverage for getColor() and getLabel() methods |
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.
Uh oh!
There was an error while loading. Please reload this page.