mucho peor, ni se ven las formas
Browse files- index.html +13 -8
index.html
CHANGED
|
@@ -14,12 +14,13 @@
|
|
| 14 |
}
|
| 15 |
.wheel {
|
| 16 |
transition-timing-function: cubic-bezier(0.1, 0.7, 0.1, 1);
|
| 17 |
-
box-shadow: 0 0
|
| 18 |
position: relative;
|
| 19 |
width: 100%;
|
| 20 |
height: 100%;
|
|
|
|
| 21 |
}
|
| 22 |
-
|
| 23 |
position: absolute;
|
| 24 |
width: 50%;
|
| 25 |
height: 50%;
|
|
@@ -30,7 +31,8 @@
|
|
| 30 |
align-items: center;
|
| 31 |
justify-content: center;
|
| 32 |
clip-path: polygon(0 0, 50% 0, 100% 100%, 0 100%);
|
| 33 |
-
border:
|
|
|
|
| 34 |
}
|
| 35 |
.wheel-text {
|
| 36 |
position: absolute;
|
|
@@ -39,7 +41,7 @@
|
|
| 39 |
transform-origin: center;
|
| 40 |
color: white;
|
| 41 |
font-weight: bold;
|
| 42 |
-
font-size: 1.
|
| 43 |
padding: 0;
|
| 44 |
box-sizing: border-box;
|
| 45 |
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
|
|
@@ -49,6 +51,9 @@
|
|
| 49 |
z-index: 10;
|
| 50 |
pointer-events: none;
|
| 51 |
white-space: nowrap;
|
|
|
|
|
|
|
|
|
|
| 52 |
}
|
| 53 |
.lg\:w-120 {
|
| 54 |
width: 32rem;
|
|
@@ -82,12 +87,12 @@
|
|
| 82 |
<path d="M12 2L12 22M12 2L22 12M12 2L2 12"></path>
|
| 83 |
</svg>
|
| 84 |
</div>
|
| 85 |
-
<button id="spin-btn" class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-yellow-
|
| 86 |
-
<i data-feather="rotate-cw" class="w-
|
| 87 |
</button>
|
| 88 |
-
|
| 89 |
<div class="w-full lg:w-1/2 max-w-2xl mx-auto">
|
| 90 |
-
<div id="question-display" class="bg-white bg-opacity-
|
| 91 |
<p id="current-question" class="text-center text-2xl font-medium mb-6 text-purple-100">Presiona el bot贸n para girar la ruleta y obtener una pregunta</p>
|
| 92 |
<button id="answer-btn" class="hidden mt-4 bg-purple-600 hover:bg-purple-500 text-white font-bold py-3 px-6 rounded-lg transition-all self-center">Mostrar Respuesta</button>
|
| 93 |
</div>
|
|
|
|
| 14 |
}
|
| 15 |
.wheel {
|
| 16 |
transition-timing-function: cubic-bezier(0.1, 0.7, 0.1, 1);
|
| 17 |
+
box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
|
| 18 |
position: relative;
|
| 19 |
width: 100%;
|
| 20 |
height: 100%;
|
| 21 |
+
background: white;
|
| 22 |
}
|
| 23 |
+
.wheel-segment {
|
| 24 |
position: absolute;
|
| 25 |
width: 50%;
|
| 26 |
height: 50%;
|
|
|
|
| 31 |
align-items: center;
|
| 32 |
justify-content: center;
|
| 33 |
clip-path: polygon(0 0, 50% 0, 100% 100%, 0 100%);
|
| 34 |
+
border: 2px solid white;
|
| 35 |
+
box-shadow: 0 0 5px rgba(0,0,0,0.3);
|
| 36 |
}
|
| 37 |
.wheel-text {
|
| 38 |
position: absolute;
|
|
|
|
| 41 |
transform-origin: center;
|
| 42 |
color: white;
|
| 43 |
font-weight: bold;
|
| 44 |
+
font-size: 1.8rem;
|
| 45 |
padding: 0;
|
| 46 |
box-sizing: border-box;
|
| 47 |
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
|
|
|
|
| 51 |
z-index: 10;
|
| 52 |
pointer-events: none;
|
| 53 |
white-space: nowrap;
|
| 54 |
+
background: rgba(0,0,0,0.4);
|
| 55 |
+
padding: 0.5rem;
|
| 56 |
+
border-radius: 0.5rem;
|
| 57 |
}
|
| 58 |
.lg\:w-120 {
|
| 59 |
width: 32rem;
|
|
|
|
| 87 |
<path d="M12 2L12 22M12 2L22 12M12 2L2 12"></path>
|
| 88 |
</svg>
|
| 89 |
</div>
|
| 90 |
+
<button id="spin-btn" class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-yellow-500 hover:bg-yellow-400 text-purple-900 font-bold w-24 h-24 rounded-full flex items-center justify-center transition-all shadow-xl hover:shadow-2xl focus:outline-none focus:ring-4 focus:ring-yellow-200 z-20 border-4 border-white">
|
| 91 |
+
<i data-feather="rotate-cw" class="w-10 h-10"></i>
|
| 92 |
</button>
|
| 93 |
+
</div>
|
| 94 |
<div class="w-full lg:w-1/2 max-w-2xl mx-auto">
|
| 95 |
+
<div id="question-display" class="bg-white bg-opacity-20 backdrop-filter backdrop-blur-lg rounded-xl p-6 shadow-xl min-h-64 flex flex-col justify-center mx-4 border-2 border-white border-opacity-30">
|
| 96 |
<p id="current-question" class="text-center text-2xl font-medium mb-6 text-purple-100">Presiona el bot贸n para girar la ruleta y obtener una pregunta</p>
|
| 97 |
<button id="answer-btn" class="hidden mt-4 bg-purple-600 hover:bg-purple-500 text-white font-bold py-3 px-6 rounded-lg transition-all self-center">Mostrar Respuesta</button>
|
| 98 |
</div>
|