Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements a new home page for the Computer Science Resources website, replacing the previous redirect to /resources with a dedicated landing page that showcases statistics and resource highlights.
Key changes:
- Added a new home route with controller and view
- Created a statistics service to gather and display resource data
- Built a responsive home page with coverflow gallery and role-based sections
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| routes/web.php | Updated root route to use HomeController instead of redirecting to resources |
| resources/js/Pages/Home.vue | New home page component with hero section, statistics, and role-based content |
| resources/js/Components/Navigation/Navbar.vue | Updated logo link to point to home page |
| resources/js/Components/CoverflowGallery.vue | New component for displaying resource images in coverflow style |
| resources/js/Components/ApplicationHeaderLogo.vue | Adjusted logo height for better mobile display |
| database/migrations/2025_09_06_223541_change_computer_science_resources_difficulty_to_set.php | Added data cleanup in rollback migration |
| app/Services/HomeStatisticsService.php | Service to aggregate statistics for home page display |
| app/Http/Controllers/HomeController.php | Controller to handle home page requests and data |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
database/migrations/2025_09_06_223541_change_computer_science_resources_difficulty_to_set.php
Show resolved
Hide resolved
| // observe the root for layout changes (images/font load) | ||
| const ro = new ResizeObserver(measure) | ||
| if (root.value) ro.observe(root.value) | ||
| ;(root.value || {}).__ro = ro |
There was a problem hiding this comment.
Attaching the ResizeObserver to the DOM element as a custom property (__ro) is unconventional and could cause memory leaks. Consider storing the observer in a ref or variable that's properly cleaned up.
…resources_difficulty_to_set.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
No description provided.