<template>
  <div class="grid__card">
    <div class="news-card">
      <a class="news-card__link" href="javascript:void(0)">
        <div
          class="news-card__img"
          :style="'background-image: url(' + news.urlToImage + ')'"
        ></div>
        <h2 class="news-card__title" v-html="news.title"></h2>
        <div class="news-card__info">10 мин</div></a
      >
    </div>
  </div>
</template>

<script>
export default {
  props: {
    news: {
      type: Object,
    },
  },
};
</script>

<style>
</style>