Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add berachain and cohere sponser logo #45

Merged
merged 8 commits into from
Jan 9, 2024
Merged

Conversation

selina-kim
Copy link
Contributor

@selina-kim selina-kim commented Jan 9, 2024

Summary by CodeRabbit

  • New Features
    • Added new sponsor logos with links to the Sponsors section.
  • Enhancements
    • Improved layout and visuals of the countdown display and application links section.

Copy link

netlify bot commented Jan 9, 2024

Deploy Preview for elaborate-croquembouche-906522 ready!

Name Link
🔨 Latest commit a4904c4
🔍 Latest deploy log https://app.netlify.com/sites/elaborate-croquembouche-906522/deploys/659d93d99ea62a00084706fb
😎 Deploy Preview https://deploy-preview-45--elaborate-croquembouche-906522.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

coderabbitai bot commented Jan 9, 2024

Walkthrough

The project saw the addition of two new sponsors, with their logos and links incorporated into the sponsors' section, enhancing the partnership display. Additionally, there was a revamp in the countdown component, refining the visual cues for closed events and improving the layout and accessibility of the application links, offering a more intuitive user experience.

Changes

Files Summary
src/components/Sponsors.astro Added logos and links for berachain and cohere sponsors.
src/components/CountdownAndLinks.astro Updated HTML structure and layout, improved "CLOSED!" text rendering, adjusted treasure chest image, and refined grid for application links.

🐇✨
In the code burrows deep and wide,
New sponsors hop in with pride.
Countdown tweaks in the moonlit glow,
Links and treasures neatly in a row. 🌙💻

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share

Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository from git and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between a502a52 and 827a8b8.
Files ignored due to filter (2)
  • src/assets/sponsor_logos/berachain.png
  • src/assets/sponsor_logos/cohere.svg
Files selected for processing (1)
  • src/components/Sponsors.astro (2 hunks)
Additional comments: 2
src/components/Sponsors.astro (2)
  • 18-19: Added imports for berachain.png and cohere.svg are consistent with the existing pattern of importing sponsor logos.

  • 170-193: The new sponsor logos for Berachain and Cohere have been added to the logoList array with appropriate classes, sources, alternative text, sizes, links, and div classes. Ensure that the await getImgSrcs function calls are properly awaited in the Astro component context and that the sizes attribute is correctly configured for responsive design.

Verification successful

The search for the pattern await getImgSrcs within .astro files has produced multiple results, confirming that the function getImgSrcs is indeed being used with await in the Sponsors.astro component. This pattern is consistent across various sponsor entries, including the newly added Berachain and Cohere sponsors.

Based on this information, it can be concluded that the use of await getImgSrcs is a standard practice within this component and is not unique to the changes introduced in the PR. Therefore, the review comment regarding the proper use of await with getImgSrcs is consistent with the established codebase pattern.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify that the getImgSrcs function is properly awaited and does not cause any runtime issues.
# Since we cannot execute the code, we should look for any existing issues reported in the repository.
rg "await getImgSrcs" --type astro

Length of output: 66



Script:

#!/bin/bash
# Since ripgrep does not recognize '.astro' as a file type, we will treat these files as text.
# We will search for the 'await getImgSrcs' pattern in files with the '.astro' extension.
rg "await getImgSrcs" -ttext

Length of output: 59



Script:

#!/bin/bash
# Since specifying a file type for '.astro' files is causing issues, we will search without specifying a file type.
# This will treat all files as text, which is the default behavior of ripgrep.
rg "await getImgSrcs" --glob '*.astro'

Length of output: 1139

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 827a8b8 and 56df18b.
Files selected for processing (1)
  • src/components/Sponsors.astro (6 hunks)
Files skipped from review as they are similar to previous changes (1)
  • src/components/Sponsors.astro

@selina-kim selina-kim self-assigned this Jan 9, 2024
@selina-kim selina-kim requested a review from err53 January 9, 2024 03:53
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 56df18b and 608ab6d.
Files ignored due to filter (2)
  • src/assets/sponsor_logos/berachain.png
  • src/assets/sponsor_logos/cohere.svg
Files selected for processing (1)
  • src/components/Sponsors.astro (6 hunks)
Files skipped from review as they are similar to previous changes (1)
  • src/components/Sponsors.astro

@selina-kim
Copy link
Contributor Author

@err53 help 😭 it fails in lighthouse and i believe it has to do with the sizing but i don't really understand how the sizes were set up

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 608ab6d and 672cbf8.
Files selected for processing (1)
  • src/components/Sponsors.astro (7 hunks)
Files skipped from review as they are similar to previous changes (1)
  • src/components/Sponsors.astro

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 672cbf8 and ff050bb.
Files selected for processing (1)
  • src/components/Sponsors.astro (7 hunks)
Files skipped from review as they are similar to previous changes (1)
  • src/components/Sponsors.astro

Copy link
Contributor

err53 commented Jan 9, 2024

@err53 help 😭 it fails in lighthouse and i believe it has to do with the sizing but i don't really understand how the sizes were set up

nah the lighthouse fails are cuz someone merged a commit that added an empty <a> tag 🤦‍♂️

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 1

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between ff050bb and 95f2acf.
Files selected for processing (1)
  • src/components/CountdownAndLinks.astro (1 hunks)
Additional comments: 2
src/components/CountdownAndLinks.astro (2)
  • 68-70: The treasure chest image is correctly implemented with an Image component from astro:assets. However, ensure that the image has a purpose in the UI and is not purely decorative. If it is decorative, consider adding role="presentation" or aria-hidden="true" to the image to improve accessibility.

  • 72-81: The grid layout for the links is well-structured and uses a map function to render each link. However, the opacity of the links is set to 75%, which might affect readability. Verify that the contrast ratio meets accessibility standards, especially for text links.

Comment on lines 58 to 64
<p class="flex text-5xl underline md:text-7xl"></p>
CLOSED!
<Image
src={arrowUpRight}
alt="Link To Apply"
class="-mt-2 w-16 md:w-24"
/>
Copy link

Choose a reason for hiding this comment

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

The <p> tag on line 58 is empty and followed by text "CLOSED!" outside of it on line 59. This could be a mistake, as typically text content should be inside the paragraph tag. Additionally, the <Image> tag that follows is meant to be associated with the "Link To Apply" but there's no link surrounding the image, which could be misleading for users who expect to click on it.

Consider wrapping the "CLOSED!" text inside the <p> tag and ensuring that the image is part of a clickable link if it's intended to be interactive.

- <p class="flex text-5xl underline md:text-7xl"></p>
- CLOSED!
+ <p class="flex text-5xl underline md:text-7xl">CLOSED!</p>

Committable suggestion

IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
<p class="flex text-5xl underline md:text-7xl"></p>
CLOSED!
<Image
src={arrowUpRight}
alt="Link To Apply"
class="-mt-2 w-16 md:w-24"
/>
<p class="flex text-5xl underline md:text-7xl">CLOSED!</p>
<Image
src={arrowUpRight}
alt="Link To Apply"
class="-mt-2 w-16 md:w-24"
/>

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 95f2acf and 55ed450.
Files selected for processing (1)
  • src/components/CountdownAndLinks.astro (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • src/components/CountdownAndLinks.astro

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 55ed450 and a4904c4.
Files selected for processing (1)
  • src/components/CountdownAndLinks.astro (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • src/components/CountdownAndLinks.astro

@err53 err53 merged commit 6c16096 into main Jan 9, 2024
7 checks passed
@err53 err53 deleted the berachain-and-cohere branch January 9, 2024 18:46
Copy link
Contributor

err53 commented Jan 9, 2024

Merge activity

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.

2 participants