<commit_before><template>

  <a v-link="link">
    <img src="../folder.svg" alt="">
    <h3 class="title">
      {{ title }}
    </h3>
  </a>

</template>


<script>

  const constants = require('../../state/constants');

  module.exports = {
    props: {
      id: {
        type: String,
        required: true,
      },
      title: {
        type: String,
        required: true,
      },
    },
    computed: {
      link() {
        return {
          name: constants.PageNames.EXPLORE_TOPIC,
          params: { id: this.id },
        };
      },
    },
  };

</script>


<style lang="stylus" scoped>

  img
    width: 50%

  a
    box-sizing: border-box
    padding: 0.5rem
    text-align: center

  h3
    font-size: 0.8rem

</style><commit_msg>migrate topic card to use card template<commit_after><template>

  <div>
    <card v-link="link" :title="title">
      <div class='thumbnail'></div>
    </card>
  </div>

</template>


<script>

  const constants = require('../../state/constants');

  module.exports = {
    components: {
      card: require('../card'),
    },
    props: {
      id: {
        type: String,
        required: true,
      },
      title: {
        type: String,
        required: true,
      },
    },
    computed: {
      link() {
        return {
          name: constants.PageNames.EXPLORE_TOPIC,
          params: { id: this.id },
        };
      },
    },
  };

</script>


<style lang="stylus" scoped>

  .thumbnail
    width: 100%
    height: 100%
    background-position: center
    background-image: url(../folder.svg)
    background-repeat: no-repeat
    // chosen to approximage ~0.5em - the card's internal padding
    background-size: 78%

</style>
{'fraction_non_alphanumeric': 0.16058823529411764, 'fraction_numerical': 0.011176470588235295, 'mean_word_length': 1.7794117647058822, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7147664', 'n_tokens_mistral': 590, 'n_tokens_neox': 566, 'n_words': 122}