Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

7.7 KB
Raw Blame
<template>
  <section>
    <h2 class="section-title">A Seamless Experience from Start to Finish</h2>
    <p class="section-subtitle">Discover how Alexandrie empowers you at every stage β€” from note-taking to publishing.</p>

    <div class="timeline">
      <div v-for="(step, index) in steps" :key="index" ref="items" class="timeline-item" :class="{ 'is-right': index % 2 === 1 }">
        <div class="timeline-content">
          <div class="text">
            <h3>{{ step.title }}</h3>
            <p>{{ step.text }}</p>
          </div>
          <div class="illustration">
            <div class="card">
              <img
                :src="step.image"
                :alt="step.title"
                loading="lazy"
                decoding="async"
                sizes="(max-width: 900px) 92vw, 50vw"
                @click="openLightbox(step.image, step.title)"
              />
              <div v-if="step.image_sub" class="overlay">
                <p>{{ step.image_sub }}</p>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="timeline-line"></div>
    </div>

    <!-- Lightbox -->
    <div v-if="lightboxVisible" class="lightbox" @click="closeLightbox">
      <div class="lightbox-content" @click.stop>
        <img :src="selectedImage" :alt="selectedTitle" />
        <p class="caption">{{ selectedTitle }}</p>
        <button class="close-btn" @click="closeLightbox">Γ—</button>
      </div>
    </div>
  </section>
</template>

<script setup lang="ts">
const steps = [
  {
    title: '1. Organize your thoughts instantly',
    text: 'Create and structure notes with powerful organizational tools: Complete sidebar, nested categories / notes, tags, and workspaces.',
    image: '/screenshots/mock/1.png',
    image_sub: 'Structure your content with documents, categories, workspaces, and tags.',
  },
  {
    title: '2. Capture your ideas effortlessly',
    text: 'Write in Markdown with live preview, syntax highlighting, and rich media support to bring your notes to life.',
    image: '/screenshots/mock/2.png',
    image_sub: 'Keep full control over your workspace layout and navigation.',
  },
  {
    title: '3. Collaborate, publish, and share',
    text: 'Share notes or notebooks with teammates and collaborate seamlessly, publish your work with a single click.',
    image: '/screenshots/mock/3.png',
    image_sub: 'Invite team members, manage permissions.',
  },
  {
    title: '4. Use the CDN to work with images and files',
    text: 'Easily upload and manage images and files using our integrated CDN for fast and reliable access.',
    image: '/screenshots/mock/4.png',
    image_sub: 'Upload and manage images and files with ease.',
  },
];

const items = ref<HTMLDivElement[]>([]);
const lightboxVisible = ref(false);
const selectedImage = ref('');
const selectedTitle = ref('');

function openLightbox(image: string, title: string) {
  selectedImage.value = image;
  selectedTitle.value = title;
  lightboxVisible.value = true;
  document.body.style.overflow = 'hidden';
}

function closeLightbox() {
  lightboxVisible.value = false;
  document.body.style.overflow = '';
}

onMounted(() => {
  const observer = new IntersectionObserver(
    entries => {
      entries.forEach(entry => {
        if (entry.isIntersecting) entry.target.classList.add('visible');
      });
    },
    { threshold: 0.3 },
  );

  items.value.forEach(item => observer.observe(item));
});
</script>

<style scoped lang="scss">
section {
  position: relative;
  padding: 2rem;
}

.section-title {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2.5vw + 1rem, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
}

.section-subtitle {
  max-width: 600px;
  margin: 0 auto 4rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;

  .timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    border-radius: 3px;
    background: var(--primary);
    opacity: 0.3;
    transform: translateX(-50%);
  }

  .timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 5rem;
    opacity: 0;
    transition:
      opacity 0.8s ease,
      transform 0.8s ease;
    transform: translateY(40px);

    &.visible {
      opacity: 1;
      transform: translateY(0);
    }

    &:last-child {
      margin-bottom: 0;
    }

    .timeline-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: clamp(1rem, 4vw, 3rem);
      width: 100%;

      .text {
        flex: 1;
        padding: 0.5rem;

        h3 {
          margin-bottom: 0.8rem;
          font-size: clamp(1.1rem, 1.6vw + 0.75rem, 1.5rem);
          color: #111;
        }

        p {
          line-height: 1.7;
          color: #444;
        }
      }

      .illustration {
        display: flex;
        flex: 1;
        justify-content: center;

        img {
          width: 100%;
          max-width: 680px;
          border: 1px solid #e5e7eb;
          border-radius: 16px;
          background: white;
          box-shadow: var(--shadow-lg);
          cursor: zoom-in;
          transition:
            transform 0.5s ease,
            box-shadow 0.5s ease;

          &:hover {
            box-shadow: var(--shadow-xl);
            transform: translateY(-5px);
          }
        }
      }
    }

    &.is-right {
      flex-direction: row-reverse;

      .timeline-content {
        flex-direction: row-reverse;
      }
    }
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn $transition-base ease;
  inset: 0;

  .lightbox-content {
    position: relative;
    max-width: min(1100px, 92vw);
    max-height: 85vh;
    border-radius: var(--radius-lg);
    animation: zoomIn $transition-base ease;
    overflow: hidden;

    img {
      display: block;
      width: 100%;
      height: auto;
      object-fit: contain;
    }

    .caption {
      margin-top: 1rem;
      font-size: 1rem;
      color: #f0f0f0;
      text-align: center;
    }

    .close-btn {
      position: absolute;
      top: 10px;
      right: 15px;
      border: none;
      font-size: 2rem;
      line-height: 1;
      color: white;
      background: transparent;
      cursor: pointer;
      transition: transform $transition-base ease;

      &:hover {
        transform: scale(1.2);
      }
    }
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0.8;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (width <= 1024px) {
  .timeline {
    .timeline-item {
      margin-bottom: 3.5rem;
    }
  }
}

@media (width <= 900px) {
  .timeline {
    .timeline-line {
      left: 12px;
    }

    .timeline-item,
    .timeline-content {
      flex-direction: column !important;
      align-items: flex-start;

      .timeline-content {
        flex-direction: column;
        gap: 1rem;

        .text {
          order: 2;
        }

        .illustration {
          order: 1;
        }
      }
    }
  }
}

@media (width <= 640px) {
  .timeline {
    padding: 1.25rem 0;

    .timeline-line {
      display: none;
    }

    .timeline-item {
      margin-bottom: 2rem;
      padding-left: 0;

      .timeline-content {
        gap: 0.75rem;

        .text {
          h3 {
            margin-bottom: 0.5rem;
          }
        }
      }
    }
  }
}

@media (width <= 400px) {
  .section-subtitle {
    margin-bottom: 2rem;
    padding: 0 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline .timeline-item {
    opacity: 1;
    transition: none;
    transform: none;
  }
}
</style>