<template>
	
	<!-- Start Header/Navigation -->
    <HomeButton />
    <!-- End Header/Navigation -->

	<div class="reveal" ref="revealRef">
      <div class="slides">
  
  
  
<section>
	<!-- <p class="pb-5 mb-5"> -->
		<h1>💻 팅커캐드로 생활용품 만들기</h1>
	<!-- </p> -->

	<table class="table caption-top table-borderless table-responsive card-1 p-4">
		<caption>(4~6학년)</caption>
  <thead>
    <tr class="border-bottom">
      <th>
          <span class="ml-2"># 주차</span>
      </th>
      <th>
          <span class="ml-2">주제</span>
      </th>
      <th>
          <span class="ml-4">Action</span>
      </th>
    </tr>
  </thead>
  <tbody>
    <tr class="border-bottom">
		<td>
			<div class="p-2">
				<span class="d-block font-weight-bold">1주차</span>
				<small>~월 ~일 ~시</small>
			</div>
		</td>
      	<td>
			<div class="p-2">
				<span class="font-weight-bold">팅커캐드 소개와 예제 체험</span>
			</div>
		</td>
		<td>
			<div class="p-2 icons">
				<i class="fa fa-share" @click="goSlide(2-1)"></i>
			</div>
		</td>
	</tr>
	<tr class="border-bottom">
		<td>
			<div class="p-2">
				<span class="d-block font-weight-bold">2주차</span>
				<small>~월 ~일 ~시</small>
			</div>
		</td>
      	<td>
			<div class="p-2">
				<span class="font-weight-bold">키링 만들기</span>
			</div>
		</td>
		<td>
			<div class="p-2 icons">
				<i class="fa fa-share" @click="goSlide(4-1)"></i>
			</div>
		</td>
	</tr>
	<tr class="border-bottom">
		<td>
			<div class="p-2">
				<span class="d-block font-weight-bold">3주차</span>
				<small>~월 ~일 ~시</small>
			</div>
		</td>
      	<td>
			<div class="p-2">
				<span class="font-weight-bold">나만의 도장 만들기</span>
			</div>
			<div class="p-2">
				<span class="font-weight-bold">연필꽂이 만들기</span>
        	</div>
		</td>
		<td>
			<div class="p-2 icons">
				<i class="fa fa-share" @click="goSlide(5-1)"></i>
			</div>
			<div class="p-2 icons">
				<i class="fa fa-share" @click="goSlide(6-1)"></i>
			</div>
		</td>
	</tr>
	<tr class="border-bottom">
		<td>
			<div class="p-2">
				<span class="d-block font-weight-bold">4주차</span>
				<small>~월 ~일 ~시</small>
			</div>
		</td>
      	<td>
			<div class="p-2">
				<span class="font-weight-bold">주사위 만들기</span>
			</div>
			<div class="p-2">
				<span class="font-weight-bold">책갈피 머리빗</span>
        	</div>
		</td>
		<td>
			<div class="p-2 icons">
				<i class="fa fa-share" @click="goSlide(7-1)"></i>
			</div>
			<div class="p-2 icons">
				<i class="fa fa-share" @click="goSlide(8-1)"></i>
			</div>
		</td>
	</tr>
	<tr class="border-bottom">
		<td>
			<div class="p-2">
				<span class="d-block font-weight-bold">5주차</span>
				<small>~월 ~일 ~시</small>
			</div>
		</td>
      	<td>
			<div class="p-2">
				<span class="font-weight-bold">안경테 만들기</span>
			</div>
			<div class="p-2">
				<span class="font-weight-bold">화분 만들기</span>
        	</div>
		</td>
		<td>
			<div class="p-2 icons">
				<i class="fa fa-share" @click="goSlide(9-1)"></i>
			</div>
			<div class="p-2 icons">
				<i class="fa fa-share" @click="goSlide(10-1)"></i>
			</div>
		</td>
	</tr>
	<tr class="border-bottom">
		<td>
			<div class="p-2">
				<span class="d-block font-weight-bold">6주차</span>
				<small>~월 ~일 ~시</small>
			</div>
		</td>
      	<td>
			<div class="p-2">
				<span class="font-weight-bold">액자 만들기</span>
			</div>
			<div class="p-2">
				<span class="font-weight-bold">나만의 작품 만들기</span>
        	</div>
		</td>
		<td>
			<div class="p-2 icons">
				<i class="fa fa-share" @click="goSlide(11-1)"></i>
			</div>
			<div class="p-2 icons">
				<i class="fa fa-share" @click="goSlide(12-1)"></i>
			</div>
		</td>
	</tr>

  </tbody>
</table>
</section>
<section>
	<h2 class="pb-5">0. 팅커캐드 소개</h2>
	<p>
		<h3>팅커캐드는 3D 모델링을 할 수 있는 툴이예요.</h3>
		<h3>마우스 오른쪽 버튼을 누른 채 움직여봅시다.</h3>
		<h3>마우스 가운데 버튼을 누른 채 움직여봅시다.</h3>
	</p>
</section>
<section>
	<h3 class="pb-4">1. 팅커캐드 예제 체럼</h3>
	<p>
		<h4>팅커캐드 튜토리얼을 살펴보고 그대로 따라해볼까요?</h4>
	</p>
</section>
<section>
	<h3 class="pb-4">2. 키링 만들기</h3>
	<p>
		<h4>도형들을 가져와 붙이고 회전시켜봅시다.</h4>
		<h4>도형들의 색깔도 바꿀 수 있어요.</h4>
		<iframe width="725" height="453" src="https://www.tinkercad.com/embed/iz5CCaz62pr?editbtn=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
	</p>
</section>
<section>
	<h3 class="pb-4">2. 나만의 도장만들기</h3>
	<p>
		<h4>텍스트도 입력할 수 있어요.</h4>
		<h4>도장을 가운데로 정렬하고 뒤집어봅시다.</h4>
		<iframe width="725" height="453" src="https://www.tinkercad.com/embed/977e5FTJBgs?editbtn=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
	</p>
</section>
<section>
	<h3 class="pb-4">3. 연필꽂이 만들기</h3>
	<p>
		<h4>도형에 구멍을 뚫어볼게요.</h4>
		<h4>전체를 그룹으로 지정하면 편해요.</h4>
		<iframe width="725" height="453" src="https://www.tinkercad.com/embed/lLPfrV1DsuY?editbtn=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
	</p>
</section>
<section>
	<h3 class="pb-4">3. 주사위 만들기</h3>
	<p>
		<h4>구멍뚫기를 활용하여 주사위를 만들어봅시다.</h4>
		<h4>사각형의 반지름을 조절하면 끝이 부드러워져요.</h4>
		<h4>작업평면과 d키를 활용하면 편하게 작업할 수 있어요.</h4>
		<iframe width="725" height="453" src="https://www.tinkercad.com/embed/9XEuCWoVi8J?editbtn=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
	</p>
</section>
<section>
	<h3 class="pb-4">4. 책갈피 머리빗 만들기</h3>
	<p>
		<h4>구멍뚫을 도형을 만든 후에 </h4>
		<h4>이 도형으로 구멍을 뚫을 수 있어요.</h4>
		<iframe width="725" height="453" src="https://www.tinkercad.com/embed/fHwJCMFdEat?editbtn=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
	</p>
</section>
<section>
	<h3 class="pb-4">4. 안경테 만들기</h3>
	<p>
		<h4>그동안 배운 내용으로 구멍을 뚫고 조립해볼게요.</h4>
		<iframe width="725" height="453" src="https://www.tinkercad.com/embed/3mmX4cTTCdn?editbtn=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
	</p>
</section>
<section>
	<h3 class="pb-4">5. 화분만들기</h3>
	<p>
		<h4>도형을 가져와 각형을 바꿀 수 있어요.</h4>
		<h4>어떤 순서로 만들어야 편하게 작업할까요?</h4>
		<iframe width="725" height="453" src="https://www.tinkercad.com/embed/7t1djWnJDTF?editbtn=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
	</p>
</section>
<section>
	<h3 class="pb-4">5. 액자만들기</h3>
	<p>
		<h4>액자는 프레임과 뒷판으로 이루어져 있어요.</h4>
		<h4>액자 프레임을 자유롭게 꾸며봅시다.</h4>
		<iframe width="725" height="453" src="https://www.tinkercad.com/embed/gadTQ1QK62k?editbtn=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
	</p>
</section>
<section>
	<h3 class="pb-4">6. 나만의 작품 만들기</h3>
	<p>
		<h4>나만의 작품을 상상해서 만들어볼까요?</h4>
		<iframe width="725" height="453" src="https://www.tinkercad.com/embed/js5alD6pQRB?editbtn=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
	</p>
</section>

<section>
	<h1 id="toc_30">👏🏽</h1>
	<h2 id="수고하셨어요-o">수고하셨어요 ^o^</h2>
</section>


</div>
</div>


</template>


<script>
import HomeButton from "@/components/HomeButton.vue";

import Reveal from "reveal.js/dist/reveal.js";
import "reveal.js/dist/reveal.css";
import initializeReveal from "@/assets/js/revealSetup.js";

export default {
	components: {
		HomeButton: HomeButton,
	},
	data() {
		return {
			
		};
	},
	methods: {
		goSlide(number) {
			if (this.deck) {
				this.deck.slide(number);
			} else {
				console.error("Reveal 인스턴스가 초기화되지 않았습니다.");
			}
		},
	},
  	mounted() {
		// ✅ 3. ref로 지정한 DOM 엘리먼트를 넘겨주고, 인스턴스를 this.deck에 저장합니다.
        this.deck = initializeReveal(this.$refs.revealRef, false);

		// ✅ 4. 전역 Reveal.addEventListener 대신 인스턴스의 on 메서드 사용
        this.deck.on('slidechanged', (event) => {
			console.log("Slide is now " + event.indexh);
		});
 	},
	unmounted() {
        // ✅ 5. 여기가 핵심! 페이지를 벗어날 때 Reveal 객체를 메모리에서 완전히 파괴합니다.
        if (this.deck) {
            this.deck.destroy();
        }
    }
};
</script>

<style scoped>
/* @import url('@/assets/js/plugins/reveal-js/css/reset.css'); */
@import url('@/assets/js/plugins/reveal-js/css/reveal.css');
@import url('@/assets/js/plugins/reveal-js/css/theme/white.css');
@import url('@/assets/js/plugins/reveal-js/plugin/highlight/monokai.css');
@import url('@/assets/js/plugins/reveal-js/plugin/chalkboard/style.css');
@import url('@/assets/js/plugins/reveal-js/plugin/customcontrols/style.css');
@import url('@/assets/js/plugins/reveal-js/plugin/menu/menu.css');
@import url('@/assets/css/reveal-lecture.css');
</style>