index.less 2.33 KB
.upload-media-page {
  min-height: 100vh;
  background-color: #f9fafb;
}

.upload-area {
  padding: 1rem;
}

.upload-button {
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background-color: #ffffff;
  transition: all 0.3s ease;

  &:active {
    background-color: #f3f4f6;
    border-color: #9ca3af;
  }
}

.preview-container {
  margin-bottom: 1rem;

  .preview-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  }

  .remove-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }

  .video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    .play-button {
      width: 4rem;
      height: 4rem;
      background-color: rgba(0, 0, 0, 0.6);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}

.file-info {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
}

.action-buttons {
  display: flex;
  gap: 0.75rem;

  .button {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;

    &.secondary {
      background-color: #f3f4f6;
      color: #374151;

      &:active {
        background-color: #e5e7eb;
      }
    }

    &.primary {
      background-color: var(--primary-color);
      color: #ffffff;

      &:active {
        background-color: #2563eb;
      }
    }
  }
}

.video-modal {
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 9999;

  .close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }

  video {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
  }
}