<template>
  <div class="dashboard">
    <h1>Vue Input Components</h1>
    <p class="dashboard__subtitle">A collection of reusable Vue input components</p>
    <div class="dashboard__grid">
      <router-link to="/textinput" class="dashboard__item">
        <div class="dashboard__icon-wrapper">
          <font-awesome-icon icon="keyboard" class="dashboard__icon" />
        </div>
        <span class="dashboard__label">Text Input</span>
        <span class="dashboard__description">Single and multi-line text inputs with validation</span>
      </router-link>
      <router-link to="/fileupload" class="dashboard__item">
        <div class="dashboard__icon-wrapper">
          <font-awesome-icon icon="file-arrow-up" class="dashboard__icon" />
        </div>
        <span class="dashboard__label">File Upload</span>
        <span class="dashboard__description">Drag and drop file uploads with preview</span>
      </router-link>
      <router-link to="/navigation" class="dashboard__item">
        <div class="dashboard__icon-wrapper">
          <font-awesome-icon icon="bars" class="dashboard__icon" />
        </div>
        <span class="dashboard__label">Navigation</span>
        <span class="dashboard__description">Responsive navigation menus and tabs</span>
      </router-link>
      <router-link to="/dropdown" class="dashboard__item">
        <div class="dashboard__icon-wrapper">
          <font-awesome-icon icon="list" class="dashboard__icon" />
        </div>
        <span class="dashboard__label">Dropdown</span>
        <span class="dashboard__description">Single and multiple selection dropdowns</span>
      </router-link>
      <router-link to="/checkbox" class="dashboard__item">
        <div class="dashboard__icon-wrapper">
          <font-awesome-icon icon="square-check" class="dashboard__icon" />
        </div>
        <span class="dashboard__label">Checkbox</span>
        <span class="dashboard__description">Single and multiple selection checkboxes</span>
      </router-link>
      <router-link to="/list" class="dashboard__item">
        <div class="dashboard__icon-wrapper">
          <font-awesome-icon icon="list" class="dashboard__icon" />
        </div>
        <span class="dashboard__label">List</span>
        <span class="dashboard__description">Configurable data lists with sorting and filtering</span>
      </router-link>
      <router-link to="/action" class="dashboard__item">
        <div class="dashboard__icon-wrapper">
          <font-awesome-icon icon="bolt" class="dashboard__icon" />
        </div>
        <span class="dashboard__label">Action</span>
        <span class="dashboard__description">Interactive buttons and links with various styles</span>
      </router-link>
      <router-link to="/modal" class="dashboard__item">
        <div class="dashboard__icon-wrapper">
          <font-awesome-icon icon="rectangle-xmark" class="dashboard__icon" />
        </div>
        <span class="dashboard__label">Modal</span>
        <span class="dashboard__description">Popup dialog windows for displaying content and forms</span>
      </router-link>
    </div>
  </div>
</template>

<script setup lang="ts">
// No script needed for this view
</script>

<style scoped>
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.dashboard h1 {
  text-align: center;
  margin-bottom: 0.75rem;
  color: #2d3748;
  font-size: 2rem;
  font-weight: 700;
}

.dashboard__subtitle {
  text-align: center;
  color: #718096;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.dashboard__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.dashboard__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #2d3748;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.dashboard__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #4a90e2;
}

.dashboard__icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ebf8ff;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.dashboard__icon {
  font-size: 1.5rem;
  color: #4a90e2;
}

.dashboard__label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dashboard__description {
  font-size: 0.85rem;
  color: #718096;
  text-align: center;
  line-height: 1.4;
}
</style>
