JarleyPro commited on
Commit
e93f54d
·
verified ·
1 Parent(s): 590f831

no puedes hacer que la ruleta sea mas grande para que quepa toda la pregunta

Browse files
Files changed (1) hide show
  1. index.html +11 -6
index.html CHANGED
@@ -15,7 +15,13 @@
15
  .wheel {
16
  transition-timing-function: cubic-bezier(0.1, 0.7, 0.1, 1);
17
  }
18
- .question-card {
 
 
 
 
 
 
19
  transform: scale(0.95);
20
  transition: all 0.3s ease;
21
  }
@@ -34,9 +40,9 @@
34
 
35
  <div class="flex flex-col lg:flex-row items-center justify-center gap-12">
36
  <!-- Wheel Container -->
37
- <div class="relative w-64 h-64 md:w-80 md:h-80 lg:w-96 lg:h-96">
38
  <div id="wheel" class="wheel w-full h-full rounded-full border-8 border-yellow-400 bg-white relative overflow-hidden transition-transform duration-5000">
39
- <!-- Wheel segments will be added by JS -->
40
  </div>
41
  <div class="absolute top-0 left-1/2 -translate-x-1/2 -mt-4">
42
  <svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-yellow-400">
@@ -107,11 +113,10 @@ let remainingQuestions = [...questions];
107
  segment.className = `absolute w-1/2 h-1/2 origin-bottom-right ${colors[index]} flex items-start justify-center`;
108
  segment.style.transform = `rotate(${(360 / questions.length) * index}deg)`;
109
  segment.style.clipPath = 'polygon(0 0, 60% 0, 100% 100%, 0 60%)';
110
-
111
  const questionText = document.createElement('span');
112
- questionText.className = 'text-white text-xs font-bold transform rotate-45 origin-left ml-12 mt-4';
113
  questionText.textContent = questions[index];
114
- segment.appendChild(questionText);
115
 
116
  wheel.appendChild(segment);
117
  });
 
15
  .wheel {
16
  transition-timing-function: cubic-bezier(0.1, 0.7, 0.1, 1);
17
  }
18
+ .lg\:w-120 {
19
+ width: 30rem;
20
+ }
21
+ .lg\:h-120 {
22
+ height: 30rem;
23
+ }
24
+ .question-card {
25
  transform: scale(0.95);
26
  transition: all 0.3s ease;
27
  }
 
40
 
41
  <div class="flex flex-col lg:flex-row items-center justify-center gap-12">
42
  <!-- Wheel Container -->
43
+ <div class="relative w-72 h-72 md:w-96 md:h-96 lg:w-120 lg:h-120">
44
  <div id="wheel" class="wheel w-full h-full rounded-full border-8 border-yellow-400 bg-white relative overflow-hidden transition-transform duration-5000">
45
+ <!-- Wheel segments will be added by JS -->
46
  </div>
47
  <div class="absolute top-0 left-1/2 -translate-x-1/2 -mt-4">
48
  <svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-yellow-400">
 
113
  segment.className = `absolute w-1/2 h-1/2 origin-bottom-right ${colors[index]} flex items-start justify-center`;
114
  segment.style.transform = `rotate(${(360 / questions.length) * index}deg)`;
115
  segment.style.clipPath = 'polygon(0 0, 60% 0, 100% 100%, 0 60%)';
 
116
  const questionText = document.createElement('span');
117
+ questionText.className = 'text-white text-sm font-bold transform rotate-45 origin-left ml-16 mt-6';
118
  questionText.textContent = questions[index];
119
+ segment.appendChild(questionText);
120
 
121
  wheel.appendChild(segment);
122
  });