-
Notifications
You must be signed in to change notification settings - Fork 0
/
Conceptos.html
129 lines (115 loc) · 3.67 KB
/
Conceptos.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Formulario de Conceptos</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 5px;
}
h1 {
text-align: center;
}
label {
font-weight: bold;
}
.input-container {
display: flex;
flex-direction: column;
margin-bottom: 15px;
}
.input-container label,
.input-container textarea {
margin-bottom: 5px;
}
textarea {
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 5px;
resize: vertical;
}
.btn-container {
text-align: center;
}
button {
padding: 10px 20px;
font-size: 18px;
background-color: #007BFF;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
#output-container {
margin-top: 20px;
border: 1px solid #ccc;
padding: 10px;
border-radius: 5px;
}
/* CSS para controlar el overflow horizontal */
#formatted-json {
width: 100%;
overflow-x: auto;
white-space: pre-wrap;
}
</style>
</head>
<body>
<div class="container">
<h1>Formulario de Conceptos</h1>
<form id="concept-form">
<div class="input-container">
<label for="concept-title">Título:</label>
<input type="text" id="concept-title" name="title" required>
</div>
<div class="input-container">
<label for="concept-source">Fuente:</label>
<input type="text" id="concept-source" name="source" required>
</div>
<div class="input-container">
<label for="concept-definition">Definición:</label>
<textarea id="concept-definition" name="definition" rows="5" required></textarea>
</div>
<div class="input-container">
<label for="concept-description">Descripción:</label>
<textarea id="concept-description" name="description" rows="10" required></textarea>
</div>
<!-- Campo para el enlace -->
<div class="input-container">
<label for="concept-link">Enlace (opcional):</label>
<input type="text" id="concept-link" name="link">
</div>
<!-- Campo para el vídeo -->
<div class="input-container">
<label for="concept-video">Enlace del vídeo de YouTube (opcional):</label>
<input type="text" id="concept-video" name="video">
</div>
<div class="btn-container">
<button type="button" id="generate-output-btn">Generar Formato JSON</button>
</div>
</form>
<div id="output-container">
<pre id="formatted-json">
<!-- El resultado JSON formateado se mostrará aquí -->
</pre>
</div>
</div>
<script src="main.js"></script>
</body>
</html>