-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdesafiosSet.js
More file actions
103 lines (84 loc) · 2.78 KB
/
Copy pathdesafiosSet.js
File metadata and controls
103 lines (84 loc) · 2.78 KB
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
function adicionarDesafios(temas) {
const areaDesafios = document.querySelector('.area-desafios');
temas.forEach(tema => {
const articleDesafio = document.createElement('article');
articleDesafio.setAttribute('id', tema.id);
articleDesafio.classList.add('galeria');
const h3Desafio = document.createElement('h3');
h3Desafio.textContent = tema.titulo;
const divDesafio = document.createElement('div');
divDesafio.classList.add('desafio-desenhos-group');
tema.imagens.forEach(src => {
const imgDesafio = document.createElement('img');
imgDesafio.setAttribute('src', src);
imgDesafio.setAttribute('alt', 'Desenho do ' + tema.titulo);
divDesafio.appendChild(imgDesafio);
});
articleDesafio.appendChild(h3Desafio);
articleDesafio.appendChild(divDesafio);
areaDesafios.appendChild(articleDesafio);
});
}
function getDesenhosConcep(){
let dados = []
for (let i = 0; i < 13; i++){
dados.push(`https://raw.githubusercontent.com/CkillDy/desafiosAll/main/desafios/desafio%20-%20Concepts%20de%20Personagens/desafio%20${i}.png`)
}
return dados
}
function getDesenhoApocaliptico(){
let dados = []
for (let i = 0; i < 13; i++){
dados.push(`https://raw.githubusercontent.com/CkillDy/desafiosAll/main/desafios/desafio%20-%20ambiente%20apocal%C3%ADptico/desafio${i}.png`)
}
return dados
}
function getDesenhosComidas(){
let dados = []
for (let i = 0; i < 17; i++){
dados.push(`https://raw.githubusercontent.com/CkillDy/desafiosAll/main/desafios/desafio%20-%20comidas%20ocs/desafio${i}.png`)
}
return dados
}
function getDesenhoRemakeKid(){
let dados = []
for (let i = 0; i < 18; i++){
dados.push( `https://raw.githubusercontent.com/CkillDy/desafiosAll/main/desafios/desafio%20-%20refazer%20personagens%20de%20crian%C3%A7as/desafio${i}.jpg`)
}
return dados
}
function getDesenhoSeresElementais(){
let dados = []
for (let i = 0; i < 20; i++){
dados.push( `https://raw.githubusercontent.com/CkillDy/desafiosAll/main/desafios/desafio%20-%20seres%20elementais/desafio${i}.jpg`)
}
return dados
}
const temasDesafios = [
{
id: 'desafio1',
titulo: 'Desafio - Criação de Concepts de Personagens',
imagens: getDesenhosConcep(),
},
{
id: 'desafio2',
titulo: 'Desafio - Criando Ambiente Apocalíptico em Arte',
imagens: getDesenhoApocaliptico(),
},
{
id: 'desafio3',
titulo: 'Desafio - Comidas Transformadas em Personagens',
imagens: getDesenhosComidas(),
},
{
id: 'desafio4',
titulo: 'Desafio - Remake de Desenhos de Crianças em Arte',
imagens: getDesenhoRemakeKid(),
},
{
id: 'desafio5',
titulo: 'Desafio - Criação de Seres Elementais da Natureza',
imagens: getDesenhoSeresElementais(),
},
];
adicionarDesafios(temasDesafios);