Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Commit 58c1e5d

Browse files
replace html with vuetify in QuizCountdown.vue and SocialMediaLink.vue
1 parent 1464031 commit 58c1e5d

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

src/components/SocialMediaLink.vue

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
<template>
2-
<div class="text-center col col-6">
3-
<a
4-
:href="anchorHref"
5-
target="_blank"
6-
class="icon v-btn v-btn--is-elevated v-btn--has-bg theme--dark v-size--default"
2+
<v-col cols="6" class="text-center">
3+
<v-btn :href="anchorHref" target="_blank" class="icon">
4+
<v-icon>{{ iconName }}</v-icon></v-btn
75
>
8-
<span class="v-btn__content"
9-
><i aria-hidden="true" :class="iconClass"></i></span
10-
></a>
11-
</div>
6+
</v-col>
127
</template>
138

149
<script>
@@ -19,7 +14,7 @@ export default {
1914
type: String,
2015
required: true
2116
},
22-
iconClass: {
17+
iconName: {
2318
type: String,
2419
required: true
2520
}

src/views/Quiz/QuizCountdown.vue

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -63,40 +63,45 @@
6363
</h3>
6464
</v-row>
6565
<v-row justify="center" align="center">
66-
<div class="v-card__text" align="center" style="width:200px;">
67-
<div class="row pt-3 no-gutters">
68-
<social-media-link
69-
anchor-href="https://twitter.com/intent/tweet?text=CodeWizardsHQ%20Code%20Challenge&amp;url=https%3A%2F%2Fcodewizardshq.com%2Fchallenge%2F&amp;original_referer="
70-
iconClass="v-icon notranslate mdi mdi-twitter theme--dark"
71-
/>
72-
<social-media-link
73-
anchor-href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fcodewizardshq.com%2Fchallenge%2F&amp;amp;src=sdkpreparse"
74-
iconClass="v-icon notranslate mdi mdi-facebook theme--dark"
75-
/>
76-
<social-media-link
77-
anchor-href="https://www.linkedin.com/company/codewizardshq"
78-
iconClass="v-icon notranslate mdi mdi-linkedin theme--dark"
79-
/>
80-
<social-media-link
81-
anchor-href="mailto:?subject=Join%20me%20in%20the%20CodeWizardsHQ%20Code%20Challenge!"
82-
iconClass="v-icon notranslate mdi mdi-email theme--dark"
83-
/>
84-
</div>
85-
</div>
66+
<v-card class="social-pop-over">
67+
<v-card-text>
68+
<v-row no-gutters class="pt-3">
69+
<social-media-link
70+
anchor-href="https://twitter.com/intent/tweet?text=CodeWizardsHQ%20Code%20Challenge&amp;url=https%3A%2F%2Fcodewizardshq.com%2Fchallenge%2F&amp;original_referer="
71+
icon-name="mdi-twitter"
72+
/>
73+
<social-media-link
74+
anchor-href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fcodewizardshq.com%2Fchallenge%2F&amp;amp;src=sdkpreparse"
75+
icon-name="mdi-facebook"
76+
/>
77+
<social-media-link
78+
anchor-href="https://www.linkedin.com/company/codewizardshq"
79+
icon-name="mdi-linkedin"
80+
/>
81+
<social-media-link
82+
anchor-href="mailto:?subject=Join%20me%20in%20the%20CodeWizardsHQ%20Code%20Challenge!"
83+
icon-name="mdi-email"
84+
/>
85+
</v-row>
86+
<a class="mt-6" href="https://github.com/codewizardshq/code-challenge"
87+
>Check out the source code on GitHub!</a
88+
>
89+
</v-card-text>
90+
</v-card>
8691
</v-row>
87-
<quiz-need-help />
92+
<!-- <quiz-need-help /> -->
8893
</div>
8994
</template>
9095

9196
<script>
92-
import QuizNeedHelp from "@/components/QuizNeedHelp";
97+
// import QuizNeedHelp from "@/components/QuizNeedHelp";
9398
import SocialMediaLink from "@/components/SocialMediaLink";
9499
import { Quiz, User } from "@/store";
95100
96101
export default {
97102
name: "quiz",
98103
components: {
99-
QuizNeedHelp,
104+
// QuizNeedHelp,
100105
SocialMediaLink
101106
},
102107
computed: {

0 commit comments

Comments
 (0)