<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>
			<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>
			<div class="p-2 icons">
				<i class="fa fa-share" @click="goSlide(5-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(6-1)"></i>
			</div>
			<div class="p-2 icons">
				<i class="fa fa-share" @click="goSlide(7-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(8-1)"></i>
			</div>
			<div class="p-2 icons">
				<i class="fa fa-share" @click="goSlide(9-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">나 만의 방 만들기 1</span>
        	</div>
		</td>
		<td>
			<div class="p-2 icons">
				<i class="fa fa-share" @click="goSlide(10-1)"></i>
			</div>
			<div class="p-2 icons">
				<i class="fa fa-share" @click="goSlide(11-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">나 만의 방 만들기 2</span>
			</div>
		</td>
		<td>
			<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>팅커캐드의 작업공간과 단축키를 알아봅시다.</h3>
	</p>
</section>
<section>
	<h3 class="pb-4">1. 팅커캐드 예제 체험</h3>
	<p>
		<h4>팅커캐드 튜토리얼을 같이 해볼까요?</h4>
	</p>
</section>
<section>
	<h3 class="pb-4">2. 의자 만들기</h3>
	<p>
		<h4>복사와 shift 버튼을 잘 활용해보세요.</h4>
		<iframe width="725" height="453" src="https://www.tinkercad.com/embed/4pPDfnWkzY4?editbtn=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
	</p>
</section>
<section>
	<h3 class="pb-4">2. 책상만들기</h3>
	<p>
		<h4>상판을 먼저 만들면 정확한 치수로 만들기 편해요.</h4>
		<iframe width="725" height="453" src="https://www.tinkercad.com/embed/5YCJf1EzJts?editbtn=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
	</p>
</section>
<section>
	<h3 class="pb-4">3. 인디언텐트 만들기</h3>
	<p>
		<h4>작업평면과 구멍뚫기를 잘 활용해봅시다.</h4>
		<iframe width="725" height="453" src="https://www.tinkercad.com/embed/klI1Ewy3wRr?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/9JcvU86Jlk7?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/lnZE6xr6hcQ?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/ecB3N3V4zCm?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/jbw0NCNJDCW?editbtn=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
	</p>
</section>
<section>
	<h3 class="pb-4">5. 나만의 방 만들기 1</h3>
	<p>
		<h4>내 방을 어떻게 꾸미고 싶은가요?</h4>
		<h4>로망인 방을 이야기해보고 설계해봅시다.</h4>
	</p>
</section>
<section>
	<h3 class="pb-4">6. 나만의 방 만들기 2</h3>
	<p>
		<h4>잘 안되는 부분은 어떻게 해결하면 좋을까요?</h4>
	</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>