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

feat: current speed cards redesign #169

Merged
merged 1 commit into from Feb 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
38 changes: 20 additions & 18 deletions src/components/Core/SpeedCard.vue
@@ -1,29 +1,31 @@
<template>
<v-card
flat
rounded="md"
color="secondary"
class="speedCard"
data-testid="SpeedCard"
>
<v-layout row :class="color + '--text'">
<v-flex v-if="icon" xs2>
<v-icon data-testid="SpeedCard-icon" :color="color" size="16px">
<v-layout row align-center :class="color + '--text'">
<v-flex v-if="icon" xs2 class="pl-1">
<v-icon data-testid="SpeedCard-icon" :color="color" size="20px">
{{ icon }}
</v-icon>
</v-flex>
<v-flex xs6 class="text-center font-weight-bold robot-mono">
<span data-testid="SpeedCard-value">
{{ value | getSpeedValue }}
</span>
</v-flex>
<v-flex
xs4
class="caption robot-mono text-right mt-1"
>
<span data-testid="SpeedCard-unit">
{{ value | getDataUnit(1) }}/s
</span>
</v-flex>
<v-layout column xs10>
<v-flex class="text-center font-weight-bold robot-mono">
<span data-testid="SpeedCard-value">
{{ value | getSpeedValue }}
</span>
</v-flex>
<v-flex
class="caption robot-mono text-center mt-n1"
>
<span data-testid="SpeedCard-unit">
{{ value | getDataUnit(1) }}/s
</span>
</v-flex>
</v-layout>
</v-layout>
</v-card>
</template>
Expand All @@ -47,7 +49,7 @@ export default {

<style scoped>
.speedCard {
padding: 32px 16px !important;
font-size: 1.05em;
padding: 20px 20px !important;
font-size: 1.10em;
}
</style>