File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
<template>
<div id="Chapter2_2" class="content-wrap">
<div class="title-box mb25 flex align-center mt40">
<span class="title mr40">1. Hello WORLD</span>
<span class="subtitle">my name is dd</span>
</div>
<div class="flex justify-between align-center">
<div class="pre-btn" @click="goToPage('Chapter2_3')"><img src="../../../../resources/img/left.png" alt="">
</div>
<div class="content title-box">
<p class="title mt25 title-bg">다음을 듣고 맞는 단어를 선택하세요.</p>
<p class="subtitle2 "></p>
<div class="imgGroup">
<div class="flex justify-center">
<div class="btnGroup mt30 flex" style="gap: 60px;">
<button class="popTxt" v-for="(item, index) in items" :key="index" @click="updateContent(index)"
:class="{ active: selectedIndex === index }">
<img :src="item.imgSrc1">
<img :src="item.imgSrc2" v-if="selectedIndex === index" style="display: block;">
</button>
</div>
</div>
<div class="listen-btn">
<img src="client/resources/img/img60_36s.png" alt="">
</div>
<div class="look-text"> <button ><img src="../../../../resources/img/btn08_s.png" alt=""><p>정답확인</p></button></div>
</div>
</div>
<div class="next-btn" @click="goToPage('Chapter2_5')"><img src="../../../../resources/img/right.png" alt="">
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
items: [
{ imgSrc1: 'client/resources/img/img61_36s_1.png', imgSrc2: 'client/resources/img/img61_36s_1_Click.png' },
{ imgSrc1: 'client/resources/img/img61_36s_2.png', imgSrc2: 'client/resources/img/img61_36s_2_Click.png' },
{ imgSrc1: 'client/resources/img/img61_36s_3.png', imgSrc2: 'client/resources/img/img61_36s_4_Click.png' },
{ imgSrc1: 'client/resources/img/img61_36s_4.png', imgSrc2: 'client/resources/img/img61_36s_3_Click.png' },
],
selectedIndex: 0,
timer: "00",
intervalId: null,
};
},
methods: {
goToPage(page) {
this.$router.push({ name: page });
},
updateContent(index) {
this.selectedIndex = index;
this.currentCon = this.items[index].con;
this.startTimer();
},
},
}
</script>
<style scoped>
.look-text{bottom: 50px;}
.btnGroup{width: 1060px; height: 340px;}
.popTxt{width: 216px;}
.popTxt img {
position: absolute;
top: 0;
left: 0;
}
</style>