<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Diseñador de Relojes - Pascuas</title>
<!-- jsPDF -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
<style>
body {
font-family: Arial, sans-serif;
background: #f4f4f4;
display: flex;
gap: 20px;
padding: 20px;
}
.panel {
width: 300px;
background: white;
padding: 15px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
label {
font-weight: bold;
display: block;
margin-top: 10px;
}
input, button {
width: 100%;
padding: 6px;
margin-top: 5px;
}
canvas {
background: white;
border-radius: 50%;
box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}
button {
margin-top: 15px;
cursor: pointer;
background: #ff9800;
color: white;
border: none;
border-radius: 5px;
font-size: 16px;
}
button:hover {
background: #e68900;
}
</style>
</head>
<body>
<div class="panel">
<h2>Personalizar diseño</h2>
<label>Título</label>
<input type="text" id="titulo" placeholder="Escribe tu título">
<label>Color del reloj</label>
<input type="color" id="colorReloj" value="#ff9800">
<label>Color del texto</label>
<input type="color" id="colorTexto" value="#333333">
<button onclick="descargarPDF()">Descargar en PDF</button>
</div>
<canvas id="canvas" width="400" height="400"></canvas>
<script>
const canvas = document.getElementById("canvas");
const ctx = canvas.getContext("2d");
function dibujar() {
const titulo = document.getElementById("titulo").value;
const colorReloj = document.getElementById("colorReloj").value;
const colorTexto = document.getElementById("colorTexto").value;
ctx.clearRect(0, 0, canvas.width, canvas.height);
// Reloj