Skip to content

Commit

Permalink
use astro Image component
Browse files Browse the repository at this point in the history
  • Loading branch information
r0hitm committed Nov 5, 2024
1 parent 28dc7ae commit f50fab8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/components/Sponsor.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
import { Image } from "astro:assets";
const bmc_text = "Buy me a coffee";
const bmc_button_color = "ff813f";
const bmc_font_color = "fff";
Expand Down Expand Up @@ -33,13 +35,21 @@ const bmc_img_link =
</a>
&nbsp;&nbsp;
<a href="https://www.buymeacoffee.com/r0hitm">
<img class="bmc-img" src={bmc_img_link} alt="Buy Me a Coffee Button" />
<Image
class="bmc-img"
src={bmc_img_link}
alt="Buy Me a Coffee Button"
loading="lazy"
decoding="async"
width="144"
height="36"
/>
</a>
</div>

<style>
.sponsors {
@apply flex items-center justify-between mb-3;
@apply mb-3 flex items-center justify-between;
}
.sponsors > * {
@apply inline-block rounded-lg hover:rotate-3;
Expand Down

0 comments on commit f50fab8

Please sign in to comment.