Skip to content

Commit

Permalink
Add className prop to GlowingBtn component
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave-lab12 committed Mar 20, 2024
1 parent 2c424bb commit e1cd978
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/components/GlowingBtn.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ export interface Props {
text: string;
href: string;
fontSize?: string;
className?: string;
}
const { text, href, fontSize } = Astro.props;
const { text, href, fontSize, className } = Astro.props;
---

<a class="btn" href={href} target="_blank">{text}</a>
<a class=`btn ${className}` href={href} target="_blank">{text}</a>

<style define:vars={{ fontSize }}>
.btn {
Expand Down
8 changes: 4 additions & 4 deletions src/components/sections/Joinus.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ import GlowingBtn from "../GlowingBtn.astro";
</div>
</div>
<div class="mt-12 md:mt-16 mb-16">
<a
<GlowingBtn
href="https://social.mindplex.ai/public/local"
class="btn-glow text-2xl md:text-4xl"
style="font-size: 26px;">Join Us</a
>
text="Join Us"
className="text-2xl md:text-4xl"
/>
</div>
</div>
</section>

0 comments on commit e1cd978

Please sign in to comment.