Skip to content

Commit 3128d7c

Browse files
committed
fix cronograma, responsivo
1 parent b92dfff commit 3128d7c

4 files changed

Lines changed: 92 additions & 47 deletions

File tree

assets/css/main.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181

8282

8383

84-
/* Estilos para la sección de Cronograma */
84+
/* Estilos para la sección de Cronograma
8585
#cronograma {
8686
background-color: #f8f9fa;
8787
padding: 3rem 0;
@@ -113,6 +113,7 @@
113113
#cronograma .social-icons .bi:hover {
114114
color: #007bff;
115115
}
116+
*/
116117

117118

118119
/* Estilos para la sección de Ubicación */
@@ -278,3 +279,4 @@
278279

279280
}
280281
}
282+

assets/css/schedule.css

Lines changed: 60 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,99 @@
1-
table#schedule {
2-
text-align: left;
3-
font-size: 20px;
4-
margin: 0px 4%;
1+
/* Estilos para la sección de Cronograma */
2+
#cronograma {
3+
background-color: #f8f9fa;
4+
padding: 3rem 0;
55
}
66

7-
table#schedule th, table#schedule td {
8-
border: solid 12px rgb(248, 249, 250);
9-
padding: 20px;
7+
#cronograma h2 {
8+
font-size: 2.5rem;
9+
color: #343a40;
10+
margin-bottom: 2rem;
11+
}
12+
13+
#schedule {
14+
width: 100%;
15+
margin: 0 auto;
16+
border-collapse: collapse;
17+
}
18+
19+
#schedule th, #schedule td {
20+
padding: 1rem;
21+
border: 1px solid #ddd;
22+
text-align: left;
1023
}
1124

1225
#schedule th {
13-
font-size: 24px;
26+
background-color: #343a40;
27+
color: #fff;
28+
font-weight: bold;
1429
}
1530

16-
#schedule td.content {
17-
display: flex;
31+
#schedule tbody tr:nth-child(even) {
32+
background-color: #f2f2f2;
33+
}
34+
35+
.photo-speaker-container {
36+
display: flex;
37+
align-items: center;
1838
}
1939

2040
.photo-speaker {
21-
vertical-align: top;
22-
align-items: left;
23-
height: 60px;
24-
border-radius: 50px;
41+
width: 50px;
42+
height: 50px;
43+
border-radius: 50%;
44+
margin-right: 0.5rem;
45+
object-fit: cover;
2546
}
2647

2748
.event {
28-
display: inline-block;
29-
margin-left: 8px;
30-
max-width: 80%;
49+
margin-left: 1rem;
50+
}
51+
52+
.event .title {
53+
font-size: 1.25rem;
54+
font-weight: bold;
55+
color: #343a40;
3156
}
3257

33-
.title {
34-
font-weight: bold;
58+
.event .author {
59+
margin-top: 0.5rem;
60+
color: #6c757d;
3561
}
3662

37-
.author {
38-
color: #888;
39-
font-weight: bold;
40-
font-style: italic;
63+
.event .category {
64+
margin-top: 0.5rem;
65+
66+
font-style: italic;
4167
}
4268

4369
.level, .category {
44-
color: black;
45-
padding: 2px 6px;
46-
border-radius: 15px;
47-
display: inline-block;
70+
color: black;
71+
padding: 2px 6px;
72+
border-radius: 15px;
73+
display: inline-block;
4874
}
4975

5076
.level.Básico {
51-
background: green;
77+
background: green;
5278
}
5379

5480
.level.Intermedio {
55-
background: yellow;
81+
background: yellow;
5682
}
5783

5884
.level.Avanzado {
59-
background: red;
85+
background: red;
6086
}
6187

6288
.category.Data {
63-
background: orange;
89+
background: orange;
6490
}
6591

6692
.category.Web {
67-
background: cyan;
93+
background: cyan;
6894
}
6995

7096
.category.Auto {
71-
background: #808;
72-
color: white;
97+
background: #808;
98+
color: white;
7399
}

assets/js/copiapo/schedule.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,18 @@ export default () => {
115115
blockCell.innerHTML = obj.block;
116116
const eventCell = row.insertCell();
117117
eventCell.className = "content"
118+
118119
const profileDiv = document.createElement("div");
120+
profileDiv.className = "d-flex align-items-center";
121+
119122
const photosDiv = document.createElement("div");
123+
photosDiv.className = "photo-speaker-container";
124+
120125
const mediaDiv = document.createElement("div");
126+
121127
const eventDiv = document.createElement("div");
122-
eventDiv.className='event';
128+
eventDiv.className = 'event ml-3';
129+
123130
obj.photos.forEach(photo => {
124131
const img = document.createElement('img')
125132
img.className='photo-speaker';
@@ -170,7 +177,8 @@ export default () => {
170177
})
171178
profileDiv.appendChild(photosDiv)
172179
profileDiv.appendChild(mediaDiv)
180+
profileDiv.appendChild(eventDiv)
173181
eventCell.appendChild(profileDiv)
174-
eventCell.appendChild(eventDiv)
182+
175183
})
176184
}
Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
<table class="container" id="schedule"/>
2-
<thead >
3-
<tr>
4-
<th>Módulo</th>
5-
<th>Evento</th>
6-
</tr>
7-
</thead>
8-
<tbody>
9-
</tbody>
10-
</table>
1+
2+
<!-- Sección de Cronograma -->
3+
<section class="py-5" id="cronograma">
4+
<div class="container">
5+
<h2 class="text-center mb-4">Cronograma</h2>
6+
<table id="schedule" class="table table-striped">
7+
<thead>
8+
<tr>
9+
<th>Módulo</th>
10+
<th>Evento</th>
11+
</tr>
12+
</thead>
13+
<tbody>
14+
15+
</tbody>
16+
</table>
17+
</div>
18+
</section>
19+

0 commit comments

Comments
 (0)