Skip to content
Open

Chuz #15

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
51aca83
primer commit prueba
ChuzAlvaca Feb 2, 2023
51d5b9f
primer commit prueba
ChuzAlvaca Feb 2, 2023
aacf109
archivos img del .js se despliegan en la IU
ChuzAlvaca Feb 3, 2023
064dd58
creamos funcion en js para llamar objeto, y configuramos css
katalimbu Feb 7, 2023
7c50e4b
agregamos imagenes y actualizamos interfaz de usuario
katalimbu Feb 7, 2023
d135f50
Merge pull request #1 from ChuzAlvaca/chuzDataLovers
katalimbu Feb 7, 2023
a733a15
se agrego carpeta con img, diseño de la IU en css con paleta de colores
ChuzAlvaca Feb 8, 2023
3b622e2
IU practicamente igual al prototipo de alta fidelidad
ChuzAlvaca Feb 8, 2023
6f534cb
ajuste imagen
ChuzAlvaca Feb 8, 2023
96e5a5c
se agregó id a poster y titulo
ChuzAlvaca Feb 8, 2023
6c3614a
cambió el tamaño del img de totoro
ChuzAlvaca Feb 8, 2023
1e8e724
primera aplicación de flexbox y grid en css
ChuzAlvaca Feb 9, 2023
785c065
cambios comentados
katalimbu Feb 9, 2023
617e53c
flexbox y grid en css experimental
ChuzAlvaca Feb 9, 2023
8e7e60d
cambios desastrozo
katalimbu Feb 9, 2023
906ba2f
agregue @media y ajuste el tamano de el totoro titulo, y borre al hac…
katalimbu Feb 10, 2023
a7fdf6c
diseño responsive que no funciona en consola
katalimbu Feb 10, 2023
77dfd75
Merge pull request #3 from ChuzAlvaca/kata
katalimbu Feb 10, 2023
2586428
maqueteo en flexbox parece ser responsive sin usar media queries
ChuzAlvaca Feb 11, 2023
de10307
flexbox responsive funciona
ChuzAlvaca Feb 11, 2023
7162e6e
nuevo banner responsive
ChuzAlvaca Feb 11, 2023
98600fa
paleta basica y responsive funcionando
ChuzAlvaca Feb 11, 2023
623ce01
diseño responsive listo para desplegar
ChuzAlvaca Feb 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13,159 changes: 13,159 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions src/data/ghibli/ghibli.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export default {

const ghibli = {
"studio": "Studio Ghibli Inc.",
"films": [
{
Expand Down Expand Up @@ -1865,7 +1866,7 @@ export default {
"description": "14-year-old Arrietty and the rest of the Clock family live in peaceful anonymity as they make their own home from items 'borrowed' from the house's human inhabitants. However, life changes for the Clocks when a human boy discovers Arrietty.",
"director": "Hiromasa Yonebayashi",
"producer": "Toshio Suzuki",
"poster": "https://static.wikia.nocookie.net/studio-ghibli/images/4/46/The_Borrower_Arrietty.jpg",
"poster": "https://i.ebayimg.com/images/g/SGkAAOSwEChhOVvq/s-l500.jpg",
"release_date": "2010",
"rt_score": "95",
"people": [
Expand Down Expand Up @@ -2432,4 +2433,6 @@ export default {
"vehicles": []
}
]
}
}

export default ghibli;
Binary file added src/dataLoversExt/Castle_in_the_Sky .png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/dataLoversExt/EstadoCuenta.pdf
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/dataLoversExt/My_Neighbor_Totoro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/dataLoversExt/dos-flecha (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/dataLoversExt/filtrar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/dataLoversExt/kiki.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/dataLoversExt/pngegg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/dataLoversExt/pngwing.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/dataLoversExt/prototipo de alta.pdf
Binary file not shown.
Binary file added src/imagen totoro/ordenar-alt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/imagen totoro/totoro banner .png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 64 additions & 3 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,73 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta charset="UTF-8">
<meta name=“viewport” content="width=device-width, initial-scale=1.0">
<title>Data Lovers</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="style.css"/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Libre+Bodoni:wght@500;700&family=Playfair+Display&display=swap" rel="stylesheet">
</head>

<body>
<div id="root"></div>
<header>
<div id="boxBanner">
<img id= "totoro"src="dataLoversExt/pngegg.png" alt="">
<p class="subtitulo">Explora el unverso del Estudio Ghibli</p>
</div>

<div class="boxNavegador">
<div>
<a href="#">
<div class="alinear">
<img class="icon"src="/dataLoversExt/dos-flecha (1).png" />
<div class="iconlabel"> Top movies</div>
</div>
</a>
</div>

<div>
<a href="#">
<img class="icon"src="/dataLoversExt/filtrar.png">
<span class="iconlabel">Characters</span>
</a>
</div>
</div>
</header>

<div class="container-images" id="container"></div>
<script src="main.js" type="module"></script>

<footer>
<p class="footer">Universo Ghibli©</p>
</footer>

</body>

<!-- <header>
<p class="title">Explora el mundo de fantasía</p>
<nav><img id="barnerImg" src="dataLoversExt/pngwing.com.png">
</nav>
</header>
<main>
<br>
<br>
<div class="btn">
<a href="#"><span> <img id="orderIcon"src="/dataLoversExt/dos-flecha (1).png"> Top movies </span></a>
</div>
<br>
<div class="btn2">
<a href="#"><span> <img id="orderIcon"src="/dataLoversExt/filtrar.png"> Characters</span></a>
</div>
<br>
<br>
<br>
<br>

</main>
-->



</html>
42 changes: 37 additions & 5 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
import { example } from './data.js';
// import data from './data/lol/lol.js';
import data from './data/pokemon/pokemon.js';
// import data from './data/rickandmorty/rickandmorty.js';

console.log(example, data);
import ghibli from './data/ghibli/ghibli.js';

function showTitleImage() {
const principal = document.getElementById('container');

if (principal) {
//este for es para recorrer el array films
//parte en 0 , hasta que se recorra todo el arreglo, el i++ es que recorra uno tras otro
for (let i = 0; i < ghibli.films.length; i++) {

const divColumna = document.createElement('div');
const creaDiv = document.createElement('div');
const creaimg = document.createElement('img');

divColumna.setAttribute('class', 'columna');

creaDiv.innerHTML = ghibli.films[i].title;
creaDiv.classList.add("posterTitle");

// console.log(ghib
// console.log(ghibli.films)
// console.log(ghibli.films[i])
// console.log(ghibli.films[i].title)
creaimg.setAttribute('src', ghibli.films[i].poster)
creaimg.classList.add("posterStyle");
divColumna.appendChild(creaDiv);
divColumna.appendChild(creaimg);
principal.appendChild(divColumna);
}


}
}
showTitleImage()


// console.log(ghibli);
Loading