<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="header-title">
            <div class="content-title"></div>
            <div class="content-subtitle"></div>
          </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{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 8px;
  margin-bottom: 8px;
}
.header-title {
  display: flex;
  flex-direction: column;
}
.content-title {
  width: 100px;
  height: 16px;
  background-color: var(--title-color);
  margin-bottom: 4px;
}

.content-subtitle{
  width: 60px;
  height: 10px;
  background-color: var(--subtitle-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>
