feat: add GitHub 'presents' badge to hero section and fix sponsor car…#25
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
Adds GitHub “presents” branding to the hero section and introduces GitHub as a new “Title Sponsor” in the sponsors section, along with supporting logo assets and small UI/ticker adjustments.
Changes:
- Add a new “Title Sponsor” tier to the Sponsors section and render GitHub via
SponsorCard. - Add a “GitHub presents” badge above the hero title and adjust hero spacing logic (including navbar height measurement).
- Add new GitHub logo SVG assets and update the navbar ticker items.
Reviewed changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/sections/Sponsors.tsx | Adds a Title Sponsor block and a GitHub sponsor entry. |
| src/sections/Hero.tsx | Adds the “GitHub presents” banner and updates hero layout spacing calculations. |
| src/App.tsx | Updates the ticker items list shown in the navbar. |
| public/logos/github.svg | Adds a GitHub logo SVG asset (white fill). |
| public/logos/github_black.svg | Adds a GitHub logo SVG asset (black fill) used in the hero badge. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
70
to
73
| const is20x9 = Math.abs(ratio - 9 / 20) < 0.05; | ||
| const isZFold = /SM-F|Galaxy Z Fold|GalaxyZFold|Fold/i.test(ua); | ||
| const navEl = typeof document !== 'undefined' ? document.querySelector('nav') : null; | ||
| const navEl = typeof document !== 'undefined' ? document.querySelector('header') : null; | ||
| const measuredNavHeight = navEl ? Math.round(navEl.getBoundingClientRect().height) : 0; |
Comment on lines
+18
to
+21
| name: "GitHub", | ||
| logo: "/logos/github.svg", | ||
| scale: isMobile ? 1.0 : 1.3, | ||
| hoverScale: isMobile ? 1.1 : 1.4 |
Comment on lines
+16
to
+17
| const titlesponsor = [ | ||
| { |
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.
…d sizing