Skip to content

Commit 4ea605f

Browse files
committed
fix: other card
1 parent 1bff62e commit 4ea605f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/components/HomePage.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ import govIcon from '@/assets/icons/gov.svg';
1111
1212
const router = useRouter();
1313
14+
function isNoxLink(link: string) {
15+
return link.startsWith('/nox-protocol');
16+
}
17+
1418
function handleCardClick(link: string) {
15-
if (link.startsWith('/nox-protocol')) {
19+
if (isNoxLink(link)) {
1620
window.location.href = link;
1721
} else {
1822
router.go(link);
@@ -119,7 +123,7 @@ const dappFeatures = [
119123
<a
120124
v-for="card in protocolCards"
121125
:key="card.title"
122-
:href="card.link"
126+
:href="isNoxLink(card.link) ? undefined : card.link"
123127
class="protocol-card"
124128
@click.stop.prevent="handleCardClick(card.link)"
125129
>
@@ -145,7 +149,7 @@ const dappFeatures = [
145149
<a
146150
v-for="feature in financialFeatures"
147151
:key="feature.title"
148-
:href="feature.link"
152+
:href="isNoxLink(feature.link) ? undefined : feature.link"
149153
class="feature-card"
150154
@click.stop.prevent="handleCardClick(feature.link)"
151155
>
@@ -171,7 +175,7 @@ const dappFeatures = [
171175
<a
172176
v-for="feature in dappFeatures"
173177
:key="feature.title"
174-
:href="feature.link"
178+
:href="isNoxLink(feature.link) ? undefined : feature.link"
175179
class="feature-card"
176180
@click.stop.prevent="handleCardClick(feature.link)"
177181
>
@@ -410,6 +414,7 @@ const dappFeatures = [
410414
overflow: hidden;
411415
text-decoration: none;
412416
color: inherit;
417+
cursor: pointer;
413418
transition:
414419
box-shadow 0.3s,
415420
border-color 0.3s;
@@ -528,6 +533,7 @@ const dappFeatures = [
528533
overflow: hidden;
529534
text-decoration: none;
530535
color: inherit;
536+
cursor: pointer;
531537
transition:
532538
box-shadow 0.3s,
533539
border-color 0.3s;

0 commit comments

Comments
 (0)