Skip to content

Commit bab83b3

Browse files
Merge pull request #20 from python-chile/fix-schedule
fix cronograma estilos - Se confirma que esta todo en perfecto orden.
2 parents b92dfff + 85296a9 commit bab83b3

4 files changed

Lines changed: 115 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: 81 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,120 @@
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: #485460;
27+
color: #fff;
28+
font-weight: bold;
29+
text-align: center;
30+
1431
}
1532

16-
#schedule td.content {
17-
display: flex;
33+
#schedule tbody tr:nth-child(even) {
34+
background-color: #f2f2f2;
1835
}
1936

37+
.photo-speaker-container {
38+
display: flex;
39+
align-items: center;
40+
41+
}
42+
43+
44+
45+
2046
.photo-speaker {
21-
vertical-align: top;
22-
align-items: left;
23-
height: 60px;
24-
border-radius: 50px;
47+
width: 70px;
48+
height: 70px;
49+
border-radius: 50%;
50+
margin-right: 0.5rem;
51+
object-fit: cover;
52+
margin-left: auto;
53+
margin-right: auto;
54+
}
55+
56+
@media (max-width: 1024px) { /* Tablet y dispositivos más pequeños */
57+
.photo-speaker-container {
58+
flex-direction: column;
59+
}
60+
.photo-speaker {
61+
margin-bottom: 10px;
62+
margin-right: 0;
63+
margin-left: auto;
64+
margin-right: auto;
65+
}
66+
2567
}
2668

2769
.event {
28-
display: inline-block;
29-
margin-left: 8px;
30-
max-width: 80%;
70+
margin-left: 1rem;
71+
}
72+
73+
.event .title {
74+
font-size: 1.25rem;
75+
font-weight: bold;
76+
color: #343a40;
3177
}
3278

33-
.title {
34-
font-weight: bold;
79+
.event .author {
80+
margin-top: 0.5rem;
81+
color: #6c757d;
3582
}
3683

37-
.author {
38-
color: #888;
39-
font-weight: bold;
40-
font-style: italic;
84+
.event .category {
85+
margin-top: 0.5rem;
86+
87+
font-style: italic;
4188
}
4289

4390
.level, .category {
44-
color: black;
45-
padding: 2px 6px;
46-
border-radius: 15px;
47-
display: inline-block;
91+
color: black;
92+
padding: 2px 6px;
93+
border-radius: 15px;
94+
display: inline-block;
4895
}
4996

5097
.level.Básico {
51-
background: green;
98+
background: green;
5299
}
53100

54101
.level.Intermedio {
55-
background: yellow;
102+
background: yellow;
56103
}
57104

58105
.level.Avanzado {
59-
background: red;
106+
background: red;
60107
}
61108

62109
.category.Data {
63-
background: orange;
110+
background: orange;
64111
}
65112

66113
.category.Web {
67-
background: cyan;
114+
background: cyan;
68115
}
69116

70117
.category.Auto {
71-
background: #808;
72-
color: white;
118+
background: #808;
119+
color: white;
73120
}

assets/js/copiapo/schedule.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,23 @@ export default () => {
112112
].forEach(obj=>{
113113
const row = tbody.insertRow();
114114
const blockCell = row.insertCell();
115+
blockCell.className = "text-center py-5 fw-bolder"
115116
blockCell.innerHTML = obj.block;
116117
const eventCell = row.insertCell();
118+
117119
eventCell.className = "content"
120+
118121
const profileDiv = document.createElement("div");
122+
profileDiv.className = "d-flex align-items-center";
123+
119124
const photosDiv = document.createElement("div");
125+
photosDiv.className = "photo-speaker-container col-md-2";
126+
120127
const mediaDiv = document.createElement("div");
128+
121129
const eventDiv = document.createElement("div");
122-
eventDiv.className='event';
130+
eventDiv.className = 'event ml-3';
131+
123132
obj.photos.forEach(photo => {
124133
const img = document.createElement('img')
125134
img.className='photo-speaker';
@@ -170,7 +179,8 @@ export default () => {
170179
})
171180
profileDiv.appendChild(photosDiv)
172181
profileDiv.appendChild(mediaDiv)
182+
profileDiv.appendChild(eventDiv)
173183
eventCell.appendChild(profileDiv)
174-
eventCell.appendChild(eventDiv)
184+
175185
})
176186
}
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)