Skip to content

Comments

Home page#39

Merged
AllanKoder merged 5 commits intomasterfrom
home-page
Sep 14, 2025
Merged

Home page#39
AllanKoder merged 5 commits intomasterfrom
home-page

Conversation

@AllanKoder
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings September 14, 2025 02:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

// 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
Copy link

Copilot AI Sep 14, 2025

Choose a reason for hiding this comment

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

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.

Copilot uses AI. Check for mistakes.
AllanKoder and others added 3 commits September 13, 2025 20:24
…resources_difficulty_to_set.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@AllanKoder AllanKoder merged commit 3f54679 into master Sep 14, 2025
3 checks passed
@AllanKoder AllanKoder deleted the home-page branch September 14, 2025 02:30
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