File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 import { animateSlideEntrance , addButtonHoverAnimation } from ' ../utils/animations' ;
66
77 let currentSlide = 0 ;
8- let totalSlides = 11 ;
8+ let totalSlides = 10 ;
99 let slides = [];
1010
1111 const slideNames = [
1818 ' context' ,
1919 ' agents' ,
2020 ' mcps' ,
21- ' workshop' ,
22- ' feedback'
21+ ' workshop'
2322 ];
2423
2524 onMount (() => {
Original file line number Diff line number Diff line change 33 import { animateSlideEntrance } from ' @/utils/animations' ;
44
55 let slideElement: HTMLElement ;
6- let copyButtonText = ' Copiar Token' ;
7- let copyButtonIcon = ' 🔑' ;
8-
9- // Token to copy - can be customized
10- const TOKEN = ' sk-bc623f8f0f7e41d59d38343af5a47b47' ;
6+ // Token to copy - removed
117
128 onMount (() => {
139 animateSlideEntrance (slideElement );
1410 });
1511
16- async function copyToken() {
17- try {
18- await navigator .clipboard .writeText (TOKEN );
19-
20- // Visual feedback
21- copyButtonText = ' ¡Copiado!' ;
22- copyButtonIcon = ' ✓' ;
23-
24- // Reset after 2 seconds
25- setTimeout (() => {
26- copyButtonText = ' Copiar Token' ;
27- copyButtonIcon = ' 🔑' ;
28- }, 2000 );
29- } catch (err ) {
30- console .error (' Error copying to clipboard:' , err );
31-
32- // Fallback visual feedback
33- copyButtonText = ' Error al copiar' ;
34- copyButtonIcon = ' ✗' ;
35-
36- setTimeout (() => {
37- copyButtonText = ' Copiar Token' ;
38- copyButtonIcon = ' 🔑' ;
39- }, 2000 );
40- }
41- }
4212 </script >
4313
4414<div class ="swiper-slide" bind:this ={slideElement }>
6737 <span class =" cta-text" >¡Vamos al Taller!</span >
6838 <span class =" cta-arrow" >→</span >
6939 </a >
70- <button class ="cta-button cta-secondary" id ="copyTokenBtn" on:click ={copyToken }>
71- <span class ="cta-icon" >{copyButtonIcon }</span >
72- <span class ="cta-text" >{copyButtonText }</span >
73- </button >
7440 </div >
7541 </div >
7642
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import Slide07Context from '../components/slides/Slide05Context.svelte';
1111import Slide08Agents from ' ../components/slides/Slide06Agents.svelte' ;
1212import Slide09MCPs from ' ../components/slides/Slide07MCPs.svelte' ;
1313import Slide10Workshop from ' ../components/slides/Slide08Workshop.svelte' ;
14- import Slide11Feedback from ' ../components/slides/Slide11Feedback.svelte' ;
1514---
1615
1716<PresentationLayout title =" IA Generativa - Conceptos Fundamentales" >
@@ -26,6 +25,5 @@ import Slide11Feedback from '../components/slides/Slide11Feedback.svelte';
2625 <Slide08Agents client:load />
2726 <Slide09MCPs client:load />
2827 <Slide10Workshop client:load />
29- <Slide11Feedback client:load />
3028 </Navigation >
3129</PresentationLayout >
You can’t perform that action at this time.
0 commit comments