Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show the dedicated node discount #2744

Merged
merged 3 commits into from
May 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,17 @@
<v-tooltip bottom color="primary" close-delay="100" :disabled="!(node && node.dedicated)">
<template v-slot:activator="{ isActive, props }" v-if="num_gpu!">
<span v-bind="props" v-on="isActive" class="font-weight-bold"
><v-icon class="scale_beat mr-2" color="warning">mdi-brightness-percent</v-icon
>{{ (price_usd! / 24 / 30).toFixed(2) }} USD/Hour</span
>
</template>

<template v-slot:activator="{ isActive, props }" v-else>
<span v-bind="props" v-on="isActive" class="font-weight-bold">{{ price_usd }} USD/Month</span>
<span v-bind="props" v-on="isActive" class="font-weight-bold"
><v-icon class="scale_beat mr-2" color="warning" :disabled="!(node && node.dedicated)"
>mdi-brightness-percent</v-icon
>{{ price_usd }} USD/Month</span
>
</template>
<span>
Discounts:
Expand Down Expand Up @@ -496,4 +501,21 @@ export default {
padding: 5px 12px;
border-radius: 9999px;
}

.scale_beat {
animation: crescendo 0.5s alternate infinite ease-in;
}

@keyframes crescendo {
0% {
transform: scale(1);
}
100% {
transform: scale(1.2);
}
}

.v-icon--disabled {
opacity: 0 !important;
}
</style>
Loading