Skip to content

Commit 2b8d07c

Browse files
committed
refactor: update Button component usage in bonus chapter for improved consistency
1 parent ec67bf2 commit 2b8d07c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/ui/Button.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<button
33
type="button"
4-
class="inline-flex h-11 cursor-pointer items-center justify-center rounded-lg border-none bg-[#fcd15a]! px-5 py-2 text-base font-medium text-[#1e1e1e] transition-all duration-200 hover:-translate-y-0.5 hover:transform hover:bg-[#ffb74d] hover:shadow-md focus:shadow-[0_0_0_2px_rgba(252,209,90,0.3)] focus:outline-none disabled:cursor-not-allowed disabled:opacity-60"
4+
class="inline-flex h-11 cursor-pointer items-center justify-center rounded-lg border-none bg-[#fcd15a]! px-5! py-2 text-base font-medium text-[#1e1e1e]! transition-all duration-200 hover:-translate-y-0.5 hover:transform hover:bg-[#ffb74d] hover:shadow-md focus:shadow-[0_0_0_2px_rgba(252,209,90,0.3)] focus:outline-none disabled:cursor-not-allowed disabled:opacity-60"
55
>
66
<slot />
77
</button>

src/overview/helloWorld/5-bonusChapter.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup>
22
import CouponCode from '../../modules/helloWorld/CouponCode.vue';
3+
import Button from '../../components/ui/Button.vue';
34
</script>
45

56
# 🎉 Bonus chapter
@@ -44,9 +45,9 @@ import CouponCode from '../../modules/helloWorld/CouponCode.vue';
4445
</ClientOnly>
4546
</div>
4647

47-
<a href="https://www.iex.ec/voucher" class="inline-block bg-[#fcd15a] hover:bg-[#ffb74d] text-[#1e1e1e] font-semibold rounded-lg px-6 py-3 text-base shadow transition-all duration-200 no-underline" target="_blank" data-track="claimVoucher">
48+
<Button as="a" href="https://www.iex.ec/voucher" target="_blank" data-track="claimVoucher">
4849
Claim your $20 voucher
49-
</a>
50+
</Button>
5051

5152
<div class="bg-gradient-to-r from-green-400/10 to-green-400/5 rounded-[6px] p-6 border-l-4 border-green-600 mt-8 mb-6">
5253
<p class="m-0!">Thank you for being part of the iExec journey! We can't wait to see what you'll build next! 🚀</p>

0 commit comments

Comments
 (0)