summaryrefslogtreecommitdiff
path: root/src/components/widgets/Steps2.astro
diff options
context:
space:
mode:
authorDawid Rycerz <dawid@rycerz.xyz>2025-07-22 17:11:44 +0300
committerDawid Rycerz <dawid@rycerz.xyz>2025-07-22 17:11:44 +0300
commitd6608c822370ca7aad42c0ed54caf421ead8bb50 (patch)
tree468ec79a662b1bdfa48e78b2657ce490f5e30192 /src/components/widgets/Steps2.astro
parent6c71a67a7473ee30c424ac63b4d2b27c38007d5e (diff)
Update widget
Diffstat (limited to 'src/components/widgets/Steps2.astro')
-rw-r--r--src/components/widgets/Steps2.astro10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/widgets/Steps2.astro b/src/components/widgets/Steps2.astro
index 0891663..7a84282 100644
--- a/src/components/widgets/Steps2.astro
+++ b/src/components/widgets/Steps2.astro
@@ -23,7 +23,10 @@ const {
function makeEmailsClickable(text: string | undefined): string {
if (!text) return '';
const emailRegex = /([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})/g;
- return text.replace(emailRegex, '<a href="mailto:$1" class="text-primary hover:text-secondary transition-colors">$1</a>');
+ return text.replace(
+ emailRegex,
+ '<a href="mailto:$1" class="text-primary hover:text-secondary transition-colors">$1</a>'
+ );
}
---
@@ -67,7 +70,10 @@ function makeEmailsClickable(text: string | undefined): string {
</div>
<div class="pl-4 rtl:pl-0 rtl:pr-4">
<h3 class="mb-4 text-xl font-semibold font-heading" set:html={title2} />
- <p class="text-muted dark:text-gray-400" set:html={description ? makeEmailsClickable(description) : ''} />
+ <p
+ class="text-muted dark:text-gray-400"
+ set:html={description ? makeEmailsClickable(description) : ''}
+ />
</div>
</li>
))