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

Styling of AnalyticsComponent #487

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/main'
# Conflicts:
#	frontend/src/components/AnalyticsDataComponent.vue
123noahB committed Oct 25, 2023
commit dd3de4123f484e034a66ddc463c8337e60b2f9c4
33 changes: 4 additions & 29 deletions frontend/src/components/AnalyticsDataComponent.vue
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
<div style="text-align: center;">
{{ allSessions }}
</div>
<br />
<br/>
<h2 class="numbers">{{ tweenedOverAllAttendees.toFixed(0) }}</h2>
<div style="text-align: center;">
{{ allAttendees }}
@@ -31,7 +31,7 @@
<div style="text-align: center;">
{{ allSessions }}
</div>
<br />
<br>
<h2 class="numbers">
{{ tweenedOverAllAttendeesFromLastMonth.toFixed(0) }}
</h2>
@@ -52,7 +52,7 @@
<div style="text-align: center;">
{{ allSessions }}
</div>
<br />
<br/>
<h2 class="numbers">
{{ tweendCurrentAttendees.toFixed(0) }}
</h2>
@@ -62,14 +62,13 @@
</b-card-text>
</b-card>
</b-card-group>
<br />
<br/>
</b-container>
</template>
<script lang="ts">
import Vue from "vue";
import gsap from "gsap";
import apiService from "@/services/api.service";

export default Vue.extend({
name: "AnalyticsDataComponent",
data() {
@@ -89,29 +88,6 @@ export default Vue.extend({
tweendCurrentAttendees: 0,
};
},
watch: {
overAllSessions(n) {
gsap.to(this, {duration: 1.25, tweenedOverAllSessions: Number(n) || 0})
},
overAllAttendees(n) {
gsap.to(this, {duration: 1.25, tweenedOverAllAttendees: Number(n) || 0})
},
overAllSessionsFromLastMonth(n) {
gsap.to(this, {duration: 1.25, tweenedOverAllSessionsFromLastMonth: Number(n) || 0})
},
overAllAttendeesFromLastMonth(n) {
gsap.to(this, {duration: 1.25, tweetweenedOverAllAttendeesFromLastMonthned: Number(n) || 0})
},
currentSessions(n) {
gsap.to(this, {duration: 1.25, tweenedCurrentSessions: Number(n) || 0})
},
currentAttendees(n) {
gsap.to(this, {duration: 1.25, tweendCurrentAttendees: Number(n) || 0})
}
},
created() {
this.getAllDiveniData();
},
computed: {
headerText() {
return this.$t("page.landing.meeting.analytics.title");
@@ -179,7 +155,6 @@ export default Vue.extend({
border-radius: 2rem;
background-color: var(--landingPageCardsBackground);
}

.numbers {
text-align: center;
}
You are viewing a condensed version of this merge commit. You can view the full changes here.