Skip to content

AI-native design editor. Open-source Figma alternative.

1.3 KB
Raw Blame
<script setup lang="ts">
import IconDownload from '~icons/lucide/download'
import IconGithub from '~icons/lucide/github'
import IconPenTool from '~icons/lucide/pen-tool'

import { LINKS } from '../content/links'
import { useLandingMessages, useLocalePath } from '../content/messages'
import ActionButton from '../ui/ActionButton.vue'

const messages = useLandingMessages()
const localePath = useLocalePath()
</script>

<template>
  <section class="hero">
    <h1>{{ messages.hero.title }}</h1>
    <p class="lede">{{ messages.hero.lede }}</p>
    <div class="landing-actions">
      <ActionButton :href="LINKS.app" :icon="IconPenTool" primary>
        {{ messages.hero.open }}
      </ActionButton>
      <ActionButton :href="localePath(LINKS.downloadPage)" :icon="IconDownload">
        {{ messages.hero.download }}
      </ActionButton>
      <ActionButton :href="LINKS.github" :icon="IconGithub">{{
        messages.hero.github
      }}</ActionButton>
    </div>
  </section>
</template>

<style scoped>
.hero {
  padding-top: 72px;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lede {
  max-width: 640px;
  margin-top: 20px;
  color: var(--vp-c-text-2);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .hero {
    padding-top: 40px;
  }
}
</style>