Skip to content

Commit 94bf91b

Browse files
committed
Commit 18 prueba2
1 parent 51bc24f commit 94bf91b

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

assets/js/app.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,36 +32,37 @@ loadDict(STATE.lang);
3232

3333
function renderProjects(){
3434
const grid = document.getElementById("projects-grid");
35-
if (!grid) return;
35+
if (!grid || !STATE.dict || !STATE.dict.projects) return;
36+
37+
const proj = STATE.dict.projects;
3638

3739
const items = [
3840
{
39-
title: STATE.dict.projects.p1_title,
40-
desc: STATE.dict.projects.p1_desc,
41-
why: STATE.dict.projects.p1_why,
41+
title: proj.p1_title,
42+
desc: proj.p1_desc,
43+
why: proj.p1_why,
4244
link: "https://github.com/SebiGitHub/WEB-DE-PROTOCOLOS-HSJD.git",
4345
tech: ["PowerApps", "SharePoint", "VBScript", "Access", "Excel"],
4446
emoji: "🧩"
4547
},
4648
{
47-
title: STATE.dict.projects.p2_title,
48-
desc: STATE.dict.projects.p2_desc,
49-
why: STATE.dict.projects.p2_why,
49+
title: proj.p2_title,
50+
desc: proj.p2_desc,
51+
why: proj.p2_why,
5052
link: "https://github.com/SebiGitHub/AvaloniaCatalogoWinForms.git",
5153
tech: ["Avalonia", "WinForms", "Visual Studio"],
5254
emoji: "🪄"
5355
},
5456
{
55-
title: STATE.dict.projects.p3_title,
56-
desc: STATE.dict.projects.p3_desc,
57-
why: STATE.dict.projects.p3_why,
57+
title: proj.p3_title,
58+
desc: proj.p3_desc,
59+
why: proj.p3_why,
5860
link: "https://github.com/SebiGitHub/PokedexBuscador.git",
5961
tech: ["Android Studio", "Kotlin", "PokeAPI"],
6062
emoji: "🔍"
6163
}
6264
];
6365

64-
6566
grid.innerHTML = items.map(p => `
6667
<div class="card project-card">
6768
<div class="project-thumb">
@@ -77,9 +78,9 @@ function renderProjects(){
7778
<a href="${p.link}" class="btn" target="_blank">GitHub</a>
7879
</div>
7980
`).join("");
80-
8181
}
8282

83+
8384
function renderSkills(){
8485
const grid = document.getElementById("skills-grid");
8586
if (!grid || !STATE.dict.skills) return;

0 commit comments

Comments
 (0)