<script setup>
import { ref, reactive } from "vue";
import Navbar from "@/components/Navbar.vue";
import { useMainStore } from "@/stores/store";

const store = useMainStore();

const breadcrumbs = reactive([
  {
    title: "首頁",
    disabled: false,
    href: "/",
  },
  {
    title: "工藝學群",
    disabled: false,
    href: "/ntcri/college-group/craft",
  },
  {
    title: "世代工藝",
    disabled: true,
  },
]);
</script>

<template>
  <div class="bg-img">
    <Navbar />
    <v-container fluid class="content pb-16">
      <div class="banner">
        <img src="@/assets/img/college-group/generation/世代工藝 橫幅.png" alt="" />
        <h1>世代工藝</h1>
      </div>
      <div class="main-block">
        <v-breadcrumbs :items="breadcrumbs" divider="/" class="mt-10 p-0"></v-breadcrumbs>

        <div class="title">
          <h2>人間國寶</h2>
        </div>

        <v-row>
          <v-col cols="6">
            <img src="@/assets/img/college-group/generation/世代工藝 素材-07.jpg" alt="">
            <!-- <h3>2014 年工藝成就獎得主－施至輝</h3> -->
          </v-col>
          <v-col cols="6">
            <img src="@/assets/img/college-group/generation/世代工藝 素材-08.jpg" alt="">
            <!-- <h3>在日昇之處的人間國寶－陳利友妹</h3> -->
          </v-col>
          <v-col cols="5">
            <img src="@/assets/img/college-group/generation/世代工藝 素材-09.jpg" alt="">
            <h3></h3>
          </v-col>
          <v-col cols="7">
            <img src="@/assets/img/college-group/generation/世代工藝 素材-10.jpg" alt="">
            <h3></h3>
          </v-col>
          <v-col cols="7">
            <img src="@/assets/img/college-group/generation/世代工藝 素材-11.jpg" alt="">
            <h3></h3>
          </v-col>
          <v-col cols="5">
            <img src="@/assets/img/college-group/generation/世代工藝 素材-12.jpg" alt="">
            <h3></h3>
          </v-col>
        </v-row>
      </div>
    </v-container>
  </div>
</template>

<style lang="scss" scoped>
.bg-img {
  width: 100vw;
  background-image: url("@/assets/img/college-group/background.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.banner {
  display: flex;
  justify-content: center;
  position: relative;
  top: -10vw;
  right: 0;
  left: 0;
  z-index: 1;

  img {
    width: 100%;
  }

  h1 {
    position: absolute;
    top: 52%;
    left: 11%;
    font-size: 40px;
    font-weight: 500;
    word-wrap: break-word;

    @media (max-width: 1200px) {
      font-size: 36px;
    }

    @media (max-width: 960px) {
      font-size: 24px;
    }

    @media (max-width: 600px) {
      font-size: 20px;
      top: 50%;
      left: 5%;
    }
  }
}

.content {
  padding: 0;
  width: 90%;

  @media (max-width: 600px) {
    width: 85%;
  }

  .main-block {
    padding: 100px 80px;
    margin-top: -30%;
    background-color: #fff;

    @media (max-width: 960px) {
      padding: 100px 50px;
    }

    @media (max-width: 600px) {
      padding: 100px 20px;
    }

    h2 {
      font-size: 30px;
      font-weight: 500;
      line-height: 32px;
      margin-left: 10px;

      @media (max-width: 960px) {
        font-size: 24px;
      }

      @media (max-width: 600px) {
        margin-left: 0;
        margin-bottom: 50px;
      }
    }

    .title {
      margin: 80px 0;

      @media (max-width: 600px) {
        margin: 50px 0;
      }
    }

    .v-breadcrumbs {
      position: relative;
      z-index: 100;
      justify-content: flex-start;

      @media (max-width: 600px) {
        justify-content: center;
      }
    }

    img {
      height: 100%;
    }
  }
}</style>
