Skip to content

Commit d9de600

Browse files
sangeeth.ssangeeth.s
sangeeth.s
authored and
sangeeth.s
committed
feat: add feedback carousel and feedbacks for #20
1 parent 3999ad6 commit d9de600

File tree

4 files changed

+101
-1
lines changed

4 files changed

+101
-1
lines changed

.editorconfig

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[*]
2+
indent_style = space
3+
tab_width = 2
4+
insert_final_newline = true

.vuepress/components/EventTalk.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<iframe :src="recording" width="100%" height="100%" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen />
66
</div>
77
<div v-if="description" v-html="description"></div>
8+
<ItemRow v-if="feedbacks">
9+
<FeedbackGallery :feedbacks="feedbacks" />
10+
</ItemRow>
811
<EventSpeaker :speaker="speaker" :bio="bio" />
912
<ItemRow v-if="deck">
1013
<Icon name="deck" slot="icon" />
@@ -19,7 +22,7 @@
1922

2023
<script>
2124
export default {
22-
props: ['title', 'description', 'speaker', 'bio', 'deck', 'issue', 'recording'],
25+
props: ['title', 'description', 'speaker', 'bio', 'deck', 'issue', 'recording', 'feedbacks'],
2326
filters: {
2427
filename (value) {
2528
return value.split('/').pop()
+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<template>
2+
<div class="feedbacks-wrapper">
3+
<p>
4+
<slot>
5+
Here are some feedbacks from our attendees for this talk:
6+
</slot>
7+
</p>
8+
<Carousel
9+
class="feedbacks-carousel"
10+
:perPage="1"
11+
:autoplay="true"
12+
:loop="true"
13+
>
14+
<Slide v-for="(feedback, i) in feedbacks" :key="i" class="slide">
15+
<div class="slide">
16+
<blockquote class="quote">{{ feedback }}</blockquote>
17+
</div>
18+
</Slide>
19+
</Carousel>
20+
</div>
21+
</template>
22+
23+
<script>
24+
import { Carousel, Slide } from "../../node_modules/vue-carousel/src/index.js";
25+
26+
export default {
27+
props: {
28+
feedbacks: Array
29+
},
30+
components: { Carousel, Slide }
31+
};
32+
</script>
33+
34+
<style scoped>
35+
/* Fixes for the vue-carousel */
36+
.feedbacks-wrapper >>> .VueCarousel-dot-container {
37+
margin-top: 0 !important;
38+
}
39+
40+
.feedbacks-wrapper >>> .VueCarousel-dot {
41+
margin-top: 0 !important;
42+
}
43+
44+
.feedbacks-wrapper {
45+
margin: 1rem 0;
46+
width: 100%;
47+
}
48+
49+
p {
50+
margin: 0;
51+
}
52+
53+
.feedbacks-carousel {
54+
width: 100%;
55+
}
56+
57+
.slide {
58+
box-sizing: border-box;
59+
width: 100%;
60+
min-height: 150px;
61+
display: flex;
62+
align-items: center;
63+
padding: 10px;
64+
}
65+
66+
.quote {
67+
border-left: none;
68+
padding: 0;
69+
text-align: center;
70+
color: #3eaf7c;
71+
font-style: italic;
72+
line-height: 1.3;
73+
font-size: 2rem;
74+
width: 100%;
75+
margin: 0;
76+
}
77+
78+
.quote::before {
79+
content: "\201C";
80+
}
81+
82+
.quote::after {
83+
content: "\201D";
84+
}
85+
</style>

20-lets-talk-about-test/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,20 @@ agenda:
2828
<br>I'll also talk about
2929
<br>1. Why is it necessary.
3030
<br>2. What type of bugs can be caught by Visual Testing.
31+
feedbacks:
32+
- "I liked the use cypress for visual testing. Would like to implement in one of our application."
33+
- "I learned that there's a thing called Visual Testing and that's a great way to test visual layouts easily."
34+
- "It was something useful for my day to day work. Thanks ✨"
3135
- title: Revisiting Tests and How to Sneak Test Driven Development Into Your Work
3236
type: talk
3337
speaker: Chandrashekhar
3438
bio: I'm a frontend developer and a Javascript fan. Currently write Vue and vanilla JS at work, and play with React hooks at night. Evenings are for walks and coffees at Udupis of Bangalore.
3539
recording: https://www.youtube.com/embed/_vYqSq-PC3g
3640
description: People have sung paeans about TDD. Here's one more - but this time, we'll look at the "gotchas", useful workflows/patterns and a way to sneak TDD into your work when your team leaves no time for it in the planning. All in the context of Vue, Jest and the holy ghost of unit tests.
41+
feedbacks:
42+
- "I liked the concept of using test driven development in our product. It may help developer a lot to get better code then earlier."
43+
- "Loved the idea behind why to test. Testing that drives code discipline."
44+
- "Informed and well explained with examples."
3745
sponsors:
3846
- type: venue
3947
sponsor: Hasura <@HasuraHQ>

0 commit comments

Comments
 (0)