<template>
  <div class="wireframe" v-on:click="handleClick">
    <Header />
    <Banner />
    <div class="container">
      <div class="aside">
        <Aside />
      </div>
      <div class="content">
        <div class="content-header">
          <div class="content-title"></div>
          <div class="content-link"></div>
        </div>
        <div class="content-main">
          <div v-for="item in [1, 2, 3]" :key="item" class="content-item">
            <Product />
          </div>
        </div>
      </div>
    </div>
    <Footer />
  </div>
</template>

<style scoped>
.container {
  width: 100%;
  padding: 32px 10%;
  display: flex;
  flex-flow: row nowrap;
  background-color: var(--body-background-color);
}
.container:hover {
  cursor: pointer;
}
.aside {
  width: 25%;
  padding-right: 8px;
}
.content {
  width: 75%;
  padding-left: 8px;
}
.content-header {
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  padding-left: 8px;
  margin-bottom: 16px;
}
.content-title {
  width: 100px;
  height: 16px;
  background-color: var(--title-color);
}
.content-link {
  width: 50px;
  height: 8px;
  background-color: var(--link-color);
}
.content-link:hover {
  background-color: var(--link-hover-color);
}
.content-main {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: flex-start;
}
.content-item {
  width: 100%;
  flex: 1;
  padding-left: 8px;
}
</style>

<script>
import wireframeMixin from './wireframeMixin';

export default {
  name: 'WireframeHome',
  mixins: [wireframeMixin],
  methods: {
    handleClick(event) {
      this.$emit('update:color', event);
    },
  },
};
</script>
