Skip to content

Commit

Permalink
chore: remove garbage code
Browse files Browse the repository at this point in the history
  • Loading branch information
Krish120003 committed Jan 13, 2024
1 parent 75136d3 commit ed7bec5
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 64 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"astro-critters": "^2.0.11",
"autoprefixer": "^10.4.15",
"canvas-confetti": "^1.6.0",
"clsx": "^2.1.0",
"dayjs": "^1.11.10",
"postcss": "^8.4.31",
"react": "^18.0.0",
Expand Down
9 changes: 6 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/assets/sponsor_logos/berachain.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/sponsor_logos/cse.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/sponsor_logos/logsnag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions src/components/ResponsiveImage.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
import type { GetImageResult } from "astro";
import clsx from "clsx";
import { getImage } from "astro:assets";
export const getImgSrcs = async (imgSrc: ImageMetadata, widths: number[]) => {
Expand All @@ -12,7 +13,6 @@ export const getImgSrcs = async (imgSrc: ImageMetadata, widths: number[]) => {
};
export type ResponsiveImageItem = {
class: string;
src: ImageMetadata;
alt: string;
srcs: {
Expand All @@ -31,14 +31,13 @@ const { image: responsiveImage, loading } = Astro.props;
---

<img
class={responsiveImage?.class}
class={"min-w-[80%] brightness-0 invert object-contain max-h-32 p-2"}
src={responsiveImage?.src.src}
alt={responsiveImage?.alt}
width={responsiveImage?.src.width}
height={responsiveImage?.src.height}
srcset={responsiveImage?.srcs
.map((img) => `${img.src.src} ${img.width}w`)
.join(", ")}
sizes={responsiveImage?.sizes}
loading={loading}
/>
Loading

0 comments on commit ed7bec5

Please sign in to comment.