Почему постеры разных размеров?
Всем доброго времени суток, вывожу постеры через JSON, но при выводе постеры становятся разных размеров... не могу найти причину. Буду благодарен в решении проблемы.
"use strict";
let url = "https://www.omdbapi.com/?apikey=c286dd4c&s=";
const
body = document.querySelector("body"),
moviePoster = document.querySelectorAll(".item"),
block1 = document.querySelector("div.block-D-none"),
blockClose = document.querySelector("div.window"),
windowClose = document.querySelector(".closeWindow"),
divMovieContainer = document.querySelector("div.container-postr"),
templatePostr = document.querySelector(".movie-content").content,
search = document.getElementById("search"),
btnSearch = document.querySelector(".btn-search"),
spinner = document.querySelector('#spinner');
//header - nav
const btnFilm = document.querySelector('a.film').href = url,
btnSerial = document.querySelector('a.serial'),
btnMultFilm = document.querySelector('a.multfilm');
spinner.addEventListener('click', getInfoMovies);
getInfoMovies();
async function getInfoMovies() {
try {
const textSearch = search.value;
const response = await fetch(`https://www.omdbapi.com/?apikey=c286dd4c&s=${textSearch}`);
const { Search } = await response.json();
createNameMovie(Search);
} catch (error) {
showErr(error);
}
}
function showErr(err) {
body.innerHTML = `<span class="error">ERROR:${err}</span>`;
}
function createNameMovie(Search) {
for (let movie of Search) {
const fragment = templatePostr.cloneNode(true);
fragment.querySelector(".name-movie").textContent = movie.Title;
fragment.querySelector(".date-movie").textContent = "Date: " + movie.Year;
fragment.querySelector(".poster-img").src = `${movie.Poster}`;
divMovieContainer.append(fragment);
}
};
function clearInfo() {
divMovieContainer.textContent = "";
}
//buttons
search.addEventListener("keydown", (event) => {
if (event.code == "Enter") {
clearInfo();
getInfoMovies();
}
});
btnSearch.addEventListener("click", () => {
clearInfo();
getInfoMovies();
});
//ModalWindow
// divMovieContainer.addEventListener("mouseover", (event) => {
// if (event.target !== divMovieContainer) {
// const item = event.target.closest(".item");
// const modal = item.querySelector(".window");
// modal.classList.add("block");
// modal.classList.remove("block-D-none");
// }
// }),
// divMovieContainer.addEventListener("mouseout", (event) => {
// if (event.target !== divMovieContainer) {
// const item = event.target.closest(".item");
// const modal = item.querySelector(".window");
// modal.classList.remove("block");
// modal.classList.add("block-D-none");
// }
// });
* {
font-family: Arial, Helvetica, sans-serif;
}
body {
margin: 0;
}
.wrap {
background-image : url(movie-background-collage.jpg);
/* background-repeat: no-repeat; */
min-width : 320px;
position : relative;
padding-top : 200px;
background-size : cover;
}
.wrap-center {
max-width: 1100px;
margin : 0 auto;
}
header {
display : flex;
flex-direction: row;
align-items : center;
background-color: white;
}
header>ul {
display : none;
list-style-type: none;
font-size : larger;
font-weight : 800;
padding : 0 .2em .3em .6em;
}
#spinner {
height: 60px;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
/* background-color: #ededed; */
background-image: url(data:image/gif;base64,R0lGODlhQABAAKUAAAQCBJyenERCRNTS1CQiJGRmZLS2tPTy9DQyNHR2dAwODKyqrFRSVNze3GxubMzKzPz6/Dw6PAwKDKSmpExKTNza3CwqLLy+vHx+fBQWFLSytAQGBKSipERGRNTW1CQmJGxqbLy6vPT29DQ2NHx6fBQSFKyurFRWVOTi5HRydPz+/Dw+PP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQICQAAACwAAAAAQABAAAAG/kCWcEgsGo/IpHLJbDqf0CjxwEmkJgepdrvIAL6A0mJLdi7AaMC4zD4eSmlwKduuCwNxdMDOfEw4D0oOeWAOfEkmBGgEJkgphF8ph0cYhCRHeJB7SCgJAgIJKFpnkGtTCoQKdEYGEmgSBlEqipAEEEakcROcqGkSok8PkGCBRhNwcrtICYQJUJnDm0YHASkpAatHK4Qrz8Nf0mTbed3B3wDFZY95kk8QtIS2bQ29r8BPE8PKbRquYBuxpJCwdKhBghUrQpFZAA8AgX2T7DwIACiixYsYM2rc+OSAhwrZOEa5QGHDlw0dLoiEAqEAoQK3VjJxCQmEzCUhzgXciOKE/gIFJ+4NEXBOAEcPyL6UqEBExLkvIjYyiMOAyICnAAZs9IdGgVWsWjWa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7uz///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/sCTcEgsGo/IpHLJbA5NjozJSa02RxiAFiAYWb/g08Ky3VoW4TRzxCiXLV613Jh1lwVzJ4RCgCQjdnZTeUkZImQAFiIZRxmBbgOERyUkjyQlRQOPZZFIFCAVHmGVmyRFgJtag0UUAncUVpqpAJ1Drpt4RhQHdgewVHWpGEUOiHZwR7d2uU0fbbMWfkRjx2hGHqkJTtizWqLEylwOSAup1kzc3d9GERlSShWpIE4fxpvRaumB2k7BuHPh7lSRlapWml29flEhZYkQARF31lGBwNANCWmEPIAAwS9MhgaILDQwKEnSHgoYS6pcqRJCSpZzMhTgBeBAAZIwrXzo8AjB/oecXxQYSGVgFdAmCLohODoEhAELFjacE+KoGy2mD+w8IJLU6lKgIB6d42C15tENjwwMKatFQc4SqTCdYAvALcwS9t7IpdntwNGhgdQK4en1aNhA5wjOwrkyq5utXJUyFbLgqQUDU4UIJWp3MhMFXe0gMOqZyYAJZAFwmMC4dBMIP13Lnk27tu3buHPnSYABKoaOYRwUKMBIZYJnWhgAtzIiZBxJ/rQw+6KhTIGSEPImkvulgPWSeI+9pNJcC7KS0bmoGTFhwnNJx8sod10BAYIKTRLcErD86IUyAeiGhAn2WECagCeMYMd7CJ5A4BsHIhgAgA0eUd99FWao4YYcAy4RBAA7R3NoTm5KUWh4TVdtcE1Ka2xEa0c3K1Z3My85MndDcFErLzhuRnByOFZ4VzdxUEVPcGFZOHVTV0RTTURVcVFWWg==);
}
header>ul>li>a {
text-decoration: none;
color : gray;
}
header>ul>li>a:hover {
padding-bottom: .6em;
box-shadow : inset 0 -2px blue;
transition : .3s ease;
}
header>ul>li {
padding: 0 .5em 0 .4em;
}
.logo {
display : flex;
align-items : center;
font-size : x-large;
text-decoration: none;
letter-spacing : .2em;
color : black;
}
.icon-logo {
padding-right: .5em;
}
.group-logo {
margin : .3em 0;
margin-left: .6em;
}
.btn-search {
position: absolute;
margin : .5em;
}
.group-search {
flex-grow : 1;
display : none;
margin : .3em 0;
margin-right: .6em;
}
.group-poisk {
display : flex;
align-items : center;
justify-content: flex-end;
flex-grow : 1;
}
.story {
height : 31px;
width : 100%;
box-shadow : 1px 0px 6px blue;
border-radius: 11px;
padding-left : .7em;
font-size : large;
}
.login {
margin-left : 1em;
border-radius : 7px;
border : none;
background-color: darkblue;
font-size : large;
color : white;
}
.login:hover {
background-color: blue;
}
.form {
display : flex;
justify-content: center;
}
.search-btn {
top : 28px;
right : 310px;
position : absolute;
/* background-color: white; */
}
.desc-text {
background-color: rgb(208, 206, 206);
padding : .2em 0 1em .6em;
}
.name-site {
letter-spacing: 0.2em;
}
.text-color {
color : white;
margin-bottom: .8em;
}
img {
max-width : 100%;
/* border-radius: 10%; */
}
main {
background-color: #ededed;
}
.container-postr {
padding : 1em;
display : flex;
flex-direction : row;
justify-content: center;
flex-wrap : wrap;
}
.item {
width : 42%;
margin: .5em .7em;
}
.url-movie {
display : block;
position : relative;
}
.desc {
position : absolute;
left : 0;
right : 0;
bottom : 0;
z-index : 10;
padding : .4em;
color : #fff;
text-align: center;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) -33%, rgb(11, 7, 55) 73%);
}
.name-movie {
width : 100%;
font-size : calc(14px + 2 * ((100vw - 420px) / 860));
font-weight: 600;
margin : 0;
}
.rating {
display : flex;
flex-direction : row;
justify-content: space-between;
margin-top : 0.3em;
}
.date-movie {
margin : .5em;
position : absolute;
z-index : 99;
padding : 3px 5px;
border-radius : 3px;
background-color: rgba(39, 39, 137, 0.868);
color : #fff;
font-weight : 600;
font-size : 13px;
}
.error {
color: black;
}
footer {
display : flex;
flex-direction : column;
justify-content: space-between;
align-items : center;
background-color: rgb(9, 9, 54);
color : white;
padding : 1em 0em;
}
.group-logo-foot {
margin-left : .6em;
display : flex;
flex-direction: column;
align-items : center;
}
.foot-menu {
display : flex;
flex-direction: column;
align-items : center;
margin : 0 1em;
font-size : larger;
}
.foot-menu>ul {
padding : 0;
margin-top : 0;
list-style-type: '›';
}
.foot-menu>ul>li>a {
text-decoration: none;
padding : 0 .6em;
color : white;
}
ul>li {
padding-bottom: .5em;
}
ul>li>a:hover {
color: blue;
}
/* window modal*/
span {
user-select: none;
}
button {
user-select: none;
}
.block-D-none {
display: none;
}
.block {
position : absolute;
inset : auto;
transform : translate(-35%, -75%);
width : 40vw;
height : 60vh;
background-color: black;
opacity : 1;
border-radius : 5%;
z-index : 999;
}
.block2 {
width : 100%;
height : 100%;
display : flex;
flex-direction : column;
justify-content: center;
align-items : center;
}
.closeWindow {
width : 5vw;
height : 5vh;
font-weight: 900;
color : black;
}
@media(min-width:500px) {
.item {
width: 33.33%;
}
footer {
flex-direction: row;
}
.group-logo-foot {
align-items: flex-start;
}
}
@media(min-width:700px) {
.item {
width: 27%;
}
footer {
flex-direction: row;
}
.group-logo-foot {
align-items: flex-start;
}
}
@media(min-width:900px) {
.group-search,
header>ul {
display: flex;
}
.item {
width: 16.66%;
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="wink.css">
<title>Document</title>
</head>
<body>
<div class="wrap">
<div class="wrap-center">
<header>
<div class="group-logo"><a class="logo" href="#"><img class="icon-logo" src="ico-logo.png" alt="">NAZFILM</a></div>
<ul>
<li><a class="film" target="_blank">Фильмы</a></li>
<li><a class="serial" target="_blank" >Сериалы</a></li>
<li><a class="multfilm" target="_blank">Мультфильмы</a></li>
</ul>
<div class="group-search">
<div class="group-poisk">
<input id="search" class="story form__email" type="text" value="Harry-Potter">
<span class="btn-search form__btn"><img src="ico-poisk.png" alt=""></span>
</div>
<button class="login openModalWindow">Войти</button>
</div>
</header>
<main>
<div class="container-postr">
</div>
<div id="spinner"></div>
<img id="spinner" src="" alt="">
</main>
<div class="desc-text">
<h3><span class="name-site">NAZFILM</span> – фильмы в HD онлайн бесплатно и без регистрации!</h3>
<span>Современный портал nazfilm вас точно порадует: на сайте собраны тысячи фильмов,
которые можно просматривать онлайн в высоком качестве. Удобный,
простой и комфортный «кинотеатр на дому» предлагает смотреть новинки совершенно бесплатно,
то есть значительно экономит ваше время и деньги на поиск кинозала и покупку билетов.
Фильмы, представленные на сайте, рассортированы по категориям и жанрам: Лордфильм регулярно добавляет не только популярные киноленты,
но и сериалы, и мультфильмы в приятной озвучке и хорошем качестве.
Смотреть кино можно круглосуточно и в любой точке мира – мы публикуем новинки,
которые помогут отдохнуть после тяжелых будней и еще раз встретиться с любимыми героями.
Официальный сайт Лорд Фильм дает возможность смотреть любимые фильмы и сериалы с любого устройства.
Это может быть компьютер, планшет, а также смартфон на IOS или Android.
Умный проигрыватель определит оптимальный режим просмотра для вашего девайса,
а вам останется только подобрать увлекательные фильмы онлайн из огромного архива и наслаждаться просмотром!</span>
</div>
<footer>
<div class="group-logo-foot"><a class="logo text-color" href="#"><img class="icon-logo" src="ico-logo.png" alt="">NAZFILM</a>
<span>
<span class="name-site">NAZFILM</span> - сайт Назфильм онлайн в хорошем качестве бесплатно.
<br>
<a class="text-color" href="https://mail.ru/po" target="_blank">[email protected]</a> - почта для обратной связи.
</span>
</div>
<div class="foot-menu">
<p>Главное меню</p>
<ul>
<li><a href="">Фильмы</a></li>
<li><a href="">Сериалы</a></li>
</ul>
</div>
</footer>
</div>
</div>
<template class="movie-content">
<div class="item">
<div class="date-movie"></div>
<a class="url-movie" href="https://mo.lordfilm15.com/filmy/51352-chuzhoj-romul-2024.html" target="_blank">
<div class="movie-poster-img">
<img class="poster-img">
</div>
<div class="desc">
<h3 class="name-movie"></h3>
<div class="rating">
<div class="rat-kp">КП</div>
<div class="rat-imdb">IMDB</div>
</div>
</div>
<!--open window-->
<div class="block-D-none window">
<div class="block2">
</div>
</div>
</a>
</div>
</template>
<script src="wink.js"></script>
</body>
</html>