Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
49dbf6b
update/featureGetSingleFeature completada
alexBasurto Oct 12, 2023
042838c
primerpushOlatz
olatzgoti Oct 13, 2023
40fb106
changesOlatz
olatzgoti Oct 13, 2023
8427574
featurealex
alexBasurto Oct 13, 2023
4761497
primer push rama David
albinramos Oct 13, 2023
ff2734c
Merge branch 'dev' into peliculasDavid
albinramos Oct 13, 2023
ab2a89d
primer push david
albinramos Oct 13, 2023
f46af08
corrección errores index.js
alexBasurto Oct 13, 2023
c94ee4b
segundo push David
albinramos Oct 13, 2023
bd95a9b
daivd push 2
albinramos Oct 13, 2023
83f202b
cambios CSS
albinramos Oct 13, 2023
37a4ca3
centrado imagen
albinramos Oct 13, 2023
4f7d4c6
funcionalidad añadir quitar favoritos (localStorage y interfaz de usu…
alexBasurto Oct 14, 2023
49e9704
event listener imdb a medias
albinramos Oct 15, 2023
817a81f
ultimos cambios
albinramos Oct 15, 2023
8b3a346
cambioscssviaDom/basico
olatzgoti Oct 16, 2023
24ef406
class img generado
albinramos Oct 16, 2023
be80d1d
clases CSS a container y alerta
albinramos Oct 16, 2023
a93f7fe
return quitado fn api y fns favs
alexBasurto Oct 16, 2023
e1055d1
rama featurealex mergeada con dev versión David
alexBasurto Oct 16, 2023
044a77e
stylesDom/basic
olatzgoti Oct 16, 2023
052a26d
cambios CSS ultimos
albinramos Oct 16, 2023
1f0e35f
Merge branch 'dev' into peliculasDavid
albinramos Oct 16, 2023
2dfa900
ultimo index.js
albinramos Oct 16, 2023
2de96c5
corrección errores index.js
alexBasurto Oct 16, 2023
3a40e7c
cambios guardar previo pull dev
albinramos Oct 16, 2023
069c262
ultima bajada del dev
albinramos Oct 16, 2023
31c3c52
ultimo css
albinramos Oct 16, 2023
2d7c004
que aparezca imagen n/a cuando muestra toda la info
albinramos Oct 16, 2023
d893ee2
filmfinder css
albinramos Oct 17, 2023
a5f0cc6
Estilos en el DOM del certification
alexBasurto Oct 17, 2023
8e6a07c
Merge branch 'dev' into featurealex
alexBasurto Oct 17, 2023
f9a7b07
cambios index
albinramos Oct 17, 2023
a0405df
index.js traduccion
albinramos Oct 17, 2023
427642f
cambioMovieSection por clase clFicha
olatzgoti Oct 17, 2023
407d205
cambios de movieSection a clase clFicha
olatzgoti Oct 17, 2023
c1897a7
Merge branch 'dev' into featureolatz
olatzgoti Oct 17, 2023
482d18a
mix olatz
albinramos Oct 17, 2023
0d6285b
mix olatz
albinramos Oct 17, 2023
d08dd3f
margin left en CSS y quitar punto en DOM
alexBasurto Oct 17, 2023
248a675
ultimo cambio
albinramos Oct 17, 2023
ccc4c4c
tamaño imagen
albinramos Oct 17, 2023
8ab6b16
alineacion main-container
olatzgoti Oct 17, 2023
6a45a25
solucionado problema width section en ficha película
alexBasurto Oct 17, 2023
3e50d18
main-container centrado en navegador
alexBasurto Oct 17, 2023
f109825
botón favs en fichaPeli subido arriba
alexBasurto Oct 17, 2023
b893275
posición botón fav mejorada
alexBasurto Oct 17, 2023
8a4c2d2
css
olatzgoti Oct 17, 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
53 changes: 47 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,47 @@
# web_peliculas
Web de consulta de películas con la API de OMDB
# Objetivos proyecto:
al menos una llamada a API
al menos un elemento de DOM creado dinámicamente
guardar algo en local/sessionStorage
# Películas API Web

Este proyecto web permite buscar películas utilizando la API OMDB. Puedes ingresar el título de una película, año y tipo (si lo deseas) y obtener resultados de películas relacionadas.

## Funcionalidades

- Búsqueda de películas por título, año y tipo.
- Visualización de detalles de películas, como título, año, tipo y más.
- Posibilidad de marcar películas como favoritas.
- Eliminación de resultados de búsqueda.
- Visualización de calificaciones y otros datos de la película.

## Cómo funciona

Este proyecto está construido utilizando HTML, CSS y JavaScript. Hace uso de la API OMDB para obtener información sobre películas. Aquí hay una breve descripción de cómo funciona el código:

- Cuando se envía el formulario de búsqueda, se recopilan los datos de título, año y tipo de película.
- Se realiza una solicitud a la API OMDB con los parámetros de búsqueda.
- Los resultados se muestran en forma de tarjetas en la página web.
- Puedes hacer clic en una tarjeta para ver más detalles de la película, incluyendo calificaciones y otra información relevante.
- También puedes marcar películas como favoritas haciendo clic en una estrella.

## Cómo usar

1. Clona o descarga este repositorio en tu máquina local.
2. Abre el archivo `index.html` en tu navegador web.
3. Ingresa el título de una película en el formulario de búsqueda y opcionalmente el año y tipo.
4. Haz clic en "Buscar" para ver los resultados.
5. Haz clic en una tarjeta de película para obtener detalles adicionales.
6. Marca películas como favoritas haciendo clic en la estrella.

## Contribución

Si deseas contribuir a este proyecto, siéntete libre de abrir un problema o enviar una solicitud de extracción. Estamos abiertos a mejoras y nuevas características.

## Autores

- David Ramos
- Olatz Goti
- Alex Basurto

## Licencia

Sin licencia.

¡Esperamos que disfrutes utilizando este proyecto!

Binary file added assets/fav.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 assets/nofav.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 assets/placeholder-vertical.jpg
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 assets/star.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 assets/star_fav.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions css/reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
247 changes: 247 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,500;0,700;1,100;1,200&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,500;0,700;1,100;1,200&family=Young+Serif&display=swap');

body{
font-family: 'Montserrat', sans-serif;
background: #2a2a2a;
background: linear-gradient(90deg, rgba(42,42,42,1) 0%, rgba(144,151,153,1) 50%, rgba(42,42,42,1) 100%);
}

#titulo-header{
font-size: 65px;
text-align: center;
margin: 20px;
color: #FFC007;
font-family: 'Young Serif', sans-serif;
}

.movie-title-h2{
padding-top: 15px;
font-weight: 900;
font-size: 22px;
text-align: center;
color: rgb(37, 37, 37);
}

input[type=text]{
text-align: center;
padding: 15px 0;
width: 15%;
margin: 10px 0;
border-radius: 10px;
color: rgb(37, 37, 37);
font-size: 18px;
border: none;
background-color: #B8B8B8;
color: #2a2a2a;
}

#submit{
padding: 5px 15px;
margin: 10px 0;
border-radius: 10px;
background-color: #FFC007;
color: rgb(37, 37, 37);
font-size: 20px;
border: none;
width: 150px;
}

#submit:hover{
background: #B8B8B8;
color: rgb(37, 37, 37);
font-weight: 500;
}

#clear-elements{
padding: 5px 15px;
margin: 10px 0;
border-radius: 10px;
background-color: #FFC007;
color: rgb(37, 37, 37);
font-size: 20px;
border: none;
width: 150px;
}

#clear-elements:hover{
background: #B8B8B8;
color: rgb(37, 37, 37);
font-weight: 500;
}

#movie-search-form{
text-align: center;
padding: 20px;

}

#movie-year-p, #movie-type-p{
font-weight: 500;
padding-top: 10px;
font-size: 18px;
text-align: center;
color: rgb(37, 37, 37);

}

#main-container{
width: 80%;
display: flex;
margin: 0 auto;
justify-content: center;
}

.clBusqueda{
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
margin-left: 50px;
}

.movie-details{
width: 16%;
padding-bottom: 25px;
background-color: #b8b8b8;
margin-bottom: 60px;
border-radius: 10px;
padding-left: 10px;
padding-right: 10px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

#movie-details-container {
margin-left: 0;
}

.movie-image:hover{
cursor: pointer;
}

.movie-image{
height: 400px;
width: 90%;
overflow: hidden;
border-radius: 10px;
display: block;
margin-top: 60px;

}

.clFicha
{

border: 1px solid rgb(107, 90, 90);
padding: 20px;
background-color: #A8A8A8;
border-radius: 10px;
align-items: center;
width: 100%;
position: relative;
}

.title-style
{
color: "red";
font-size: 80px;
text-align: center;
color:rgb(37, 37, 37);

}

.article-principal{

display: flex;
flex-direction: row;
justify-content: space-evenly;
align-items: center;
padding: 20px;
}

.article-text
{
width: 65%;
display: block;
text-align: left;
}

.article-image
{
width: 35%;
border-radius: 10px;
overflow: hidden;
}

img{
object-fit: cover;
width:400px;
border-radius: 10px;
}

img.favorite {
width: 48px;
height: 48px;
}

.clFicha > img.favorite {
position: absolute;
top: 40px;
right: 40px;
width: 60px;
height: 60px;
}

h1
{
line-height: 1.6;
}

p
{
padding:10px;
margin-top: 5px;
padding-top: 5px;
padding-bottom: 5px;
line-height: 1.5;
font-size: 23px;
color:rgb(37, 37, 37);
}


.article-more-info{

justify-content: space-evenly;
align-items: center;
padding-bottom: 20px;
margin: auto 5%;
padding-top: 0;
margin-top: 0;

}

.article-ratings{


display: flex;
flex-direction: row;
justify-content: space-evenly;
align-items: center;
padding: 20px;
}

.article-rating1{

display: flex;

}

.favorite{
width: 35px;
height: 35px;
margin-top: 10px;
}
11 changes: 11 additions & 0 deletions ficha_pelicula.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
<!--¿¿queremos la ficha de película en una página aparte o en el mismo index??-->

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>

</body>
</html>
Loading