<template>
  <div class="big-bang-onboarding">
    <PageHeader
      title="Big Bang Onboarding"
      subtext
      description="Learn more about our onboarding process!"
    />
    <v-container class="px-md-8 px-auto" fluid>
      <img
        class="img-fluid mx-auto mt-4 bb-logo"
        src="@/assets/images/logos/Big_Bang_Color_Logo_Black_text.png"
        alt="Big Bang - ABMS All Domain Common Environment Logo"
      />
      <div class="my-4">
        <h2 class="my-6 pt-sm-12 mt-sm-12">What is Big Bang?</h2>
        <p class="mx-lg-16">
          Big Bang is the Infrastructure as Code (IaC) and Configuration as Code
          (CaC) package that deploys a software factory in a customer owned
          environment.
        </p>
      </div>

      <div class="my-16 px-md-8 px-auto card-summary">
        <h2 class="my-4 mt-sm-16 pt-md-16 px-auto">
          Customer Onboarding Guide
        </h2>
        <div class="row justify-center">
          <div class="col-md-6 col-lg-4 card-container">
            <GoogleClassroomIcon class="logo" />
            <h4>READ ABOUT OUR WORKSHOP & RESIDENCY</h4>
            <div class="text">
              <p>
                <a
                  href="https://repo1.dsop.io/platform-one/onboarding/big-bang/big-bang-workshop"
                  target="_blank"
                >
                  2-Day Workshop:
                </a>
                Learn about the Big Bang product
              </p>
              <p>
                <a
                  href="https://repo1.dsop.io/platform-one/onboarding/big-bang-residency-info/"
                  target="_blank"
                >
                  11-Day Residency:
                </a>
                Gain hands-on experience
              </p>
            </div>
          </div>
        </div>
      </div>
      <div class="my-16 px-8">
        <h2 class="my-6 pt-sm-12 mt-sm-12">Our Workshop</h2>
        <p class="mx-lg-16">
          Ideal for engineers interested in deploying the Big Bang tech stack in
          their environments.
        </p>
        <div class="row justify-content-center text-left">
          <div class="col-0 col-md-1"></div>
          <div class="col-12 col-md-3">
            <h4 class="ml-n8">Topics Covered:</h4>
            <ul class="text">
              <li class="pt-2">IaC/CaC - Ansible, Terraform, Packer</li>
              <li class="pt-2">CI/CD</li>
              <li class="pt-2">GitOps - ArgoCD</li>
            </ul>
          </div>
          <div class="col-12 col-md-3">
            <ul class="mt-md-12">
              <li class="pt-2">Monitoring and Logging Capabilities</li>
              <li class="pt-2">Istio & Kubernetes Networking</li>
              <li class="pt-2">Big Bang Services & Apps</li>
            </ul>
          </div>
          <div class="col-12 text-center">
            <p class="mt-8">
              Please read
              <a
                href="https://repo1.dsop.io/platform-one/onboarding/big-bang/big-bang-workshop#workshop-roles-prerequisites"
                target="_blank"
              >
                Workshop Prerequisites
              </a>
            </p>
          </div>
        </div>
      </div>

      <div class="my-4 px-8">
        <h2 class="my-6 pt-sm-12 mt-sm-12">Our Residency</h2>
        <p class="mx-lg-16">
          Our 11-day residency is designed for SRE/Operations Engineers
          interested in deploying a Big Bang Cluster into their own environment.
        </p>
        <div class="row justify-content-center mt-10">
          <div class="milestones-wrapper mx-2">
            <div
              v-for="milestone in milestones"
              :key="milestone.text"
              class="milestone pl-4 mb-4 position-relative"
            >
              <div class="bullet" :class="{ done: milestone.done }"></div>
              <div class="text d-flex align-items-center">
                <b>{{ milestone.text }}</b>
              </div>
              <div v-if="milestone.details" class="text-left">
                <ul>
                  <li
                    v-for="detail in milestone.details"
                    :key="detail"
                    class="milestone-detail"
                  >
                    {{ detail }}
                  </li>
                </ul>
              </div>
            </div>
          </div>
        </div>
      </div>
    </v-container>
    <div class="my-4 px-10 justify-content-center">
      <h2 class="my-6 pt-sm-12 mt-sm-12">More Information</h2>
      <div class="row justify-content-center">
        <div class="col-12 col-md-5">
          <h4 class="ml-n8">Quick Links</h4>
          <p>
            Our 11-day residency is designed for SRE/Operations Engineers
            interested in deploying a Big Bang Cluster into their own
            environment.
          </p>
          <div class="row justify-content-center text-left">
          <div class="col-12 col-md-5">
          <ul>
            <li>
              <a
                class="quick-link"
                href="https://repo1.dsop.io/platform-one/onboarding/big-bang/big-bang-workshop"
                target="_blank"
              >
                More information on Workshop
              </a>
            </li>
            <li>
              <a
                class="quick-link"
                href="https://repo1.dsop.io/platform-one/onboarding/big-bang-residency-info/"
                target="_blank"
              >
                More information on Residency
              </a>
            </li>
            <li>
              <a
                class="quick-link"
                href="https://repo1.dsop.io/platform-one/onboarding/big-bang/big-bang-workshop#
workshop-roles-prerequisites"
                target="_blank"
              >
                Workshop Prerequisites
              </a>
            </li>
          </ul>
          </div>
          <div class="col-12 col-md-5">
          <ul>
            <li>
              <a
                class="quick-link"
                href="https://repo1.dsop.io/platform-one/onboarding/big-bang-residency-info/#residency-
prerequisite-knowledge"
                target="_blank"
              >
                Residency Prerequisites
              </a>
            </li>
            <li>
              <a class="quick-link" href="http://p1.dsop.io/" target="_blank">
                More Information on Platform One
              </a>
            </li>
          </ul>
          </div>
          </div>
        </div>
      </div><div class="row justify-content-center">
        <div class="col-12 col-md-3">
          <h4>Questions</h4>
          <p class="title-text mt-4 mb-1">For Customer Success:</p>
          <a
            class="quick-link"
            href="mailto:platformone@afwerx.af.mil"
            target="_blank"
          >
            platformone@afwerx.af.mil
          </a>
        </div>
      </div>
    </div>
    <Wave>
      <div class="container">
        <div class="row justify-content-center">
          <div class="col-md-6">
            <h2 class="mx-auto">
              READY TO TAKE THE NEXT STEP TO GET IN BIG BANG?
            </h2>
          </div>
          <div class="col-12 mt-4">
            <v-btn class="mx-auto" color="primary" to="/contact-us"
              >CONTACT US</v-btn
            >
          </div>
        </div>
      </div>
    </Wave>

    <div class="container my-4">
      <div class="row">
        <div class="col-md-6 px-4 my-auto text-center text-md-right">
          <img
            class="mm-logo"
            src="@/assets/images/logos/tool-logos/Logo_MM.png"
            alt="Mattermost"
          />
        </div>
        <div class="col-md-5 text-center text-md-left my-4 px-8">
          <p>
            A chat solution for team collaboration with integrated file sharing.
            Start chatting today! Currently hosting instances up to Impact Level
            4 (FOUO) with no-hassle video teleconferencing and Jira/Confluence
            on the way!
          </p>

          <v-btn
            color="primary"
            class="mt-4"
            href="https://chat.il2.dsop.io"
            target="_blank"
          >
            Chat now
            <!-- <b-icon icon="box-arrow-up-right" aria-hidden="true"></b-icon> -->
          </v-btn>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import PageHeader from "@/components/PageHeader";
import Wave from "@/components/Wave";
// import BBWorkshopIcon from "@/assets/images/icons/Icon_BBWorkshop.svg";
import GoogleClassroomIcon from "@/assets/images/icons/Icon_GoogleClassroom.svg";

export default {
  name: "BigBangOnboarding",
  components: {
    PageHeader,
    Wave,
    GoogleClassroomIcon,
  },
  methods: {},
  data: function () {
    return {
      milestones: [
        {
          done: false,
          text:
            "WEEK 1: PLATFORM ONE OVERVIEW, BIG BANG, SECURITY, AND DEPLOYMENT",
          details: [
            "Day 1: Overview of Platform One and Big Bang",
            "Day 2: Security Overview of P1",
            "Days 3 & 4: Big Bang Deployment (cluster, air-gapped Docker registry, air-gapped Git repo)",
          ],
        },
        {
          done: false,
          text: "WEEK 2: BIG BANG CONFIG MANAGEMENT AND SECURITY TOOLING",
          details: [
            "Days 5 & 6: GitOps, Argo CD, & Secrets",
            "Days 7 & 8: GitLab CI and Security Tooling",
          ],
        },
        {
          done: false,
          text:
            'WEEK 3: BIG "DAY 2" OPERATIONS AND MANAGING A BIG BANG CLUSTER',
          details: [
            "Day 9: Operator pattern and consolidated monitoring with Prometheus and Grafana",
            "Day 10: Consolidated logging with ECK",
            'Day 11: "Day 2" Operations',
          ],
        },
      ],
    };
  },
};
</script>
<style lang="scss">
.big-bang-onboarding {
  .mm-logo {
    width: 250px;
  }

  .image-wrapper {
    cursor: pointer;
  }

  .bb-logo {
    max-width: 200px;
  }

  .text-info-box {
    height: 100%;
    background-color: rgba(2, 29, 46, 0.9);
    .header {
      color: #ffffff;
      font-size: 2rem;
    }
    .title-text {
      color: #ffffff;
      font-weight: bold;
      font-size: 1rem;
    }
    .text {
      color: #ffffff !important;
    }
  }
  .milestones-wrapper {
    background-image: linear-gradient(black 33%, rgba(255, 255, 255, 0) 0%);
    background-position: left;
    background-size: 3px 10px;
    background-repeat: repeat-y;
    padding-top: 8px;
    position: relative;

    .bullet {
      border: 1px solid black;
      background-color: #ffffff;
      border-radius: 50%;
      display: inline-block;
      position: absolute;
      left: -7px;
      top: 3px;
      height: 17px;
      width: 17px;

      &.done {
        background-color: $p1-light-green;
      }
    }

    .img-container {
      width: 24px;
      min-height: 24px;

      .tool-logo {
        max-width: 24px;
        max-height: 24px;
      }
    }

    .text {
      font-weight: 600;
    }

    .milestone:last-child {
      background-color: #ffffff;
      margin-bottom: 0 !important;
    }
    .milestone:first-child {
      margin-top: -12px;
    }
  }

  .card-summary {
    .row {
      margin-left: 0;
      margin-right: 0;
    }
    .card-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-left: 2rem;
      padding-right: 2rem;
      margin-bottom: 1rem;

      a {
        .btn-link {
          word-wrap: none;
        }
      }

      h4 {
        margin-top: 1rem;
        margin-bottom: 1rem;
      }

      @include xs {
        align-items: flex-start;
        text-align: left;
        h4 {
          margin-left: 0;
          padding-left: 0;
        }
      }
    }
    .card-container-bottom {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 1rem;

      @include xs {
        align-items: flex-start;
        text-align: left;
        h4 {
          margin-left: 0;
          padding-left: 0;
        }
      }
    }
  }
}
</style>