Skip to content

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

2.2 KB
Raw Blame
/*
 * Shared by every landing section: the page column, element resets VitePress's content
 * styles would otherwise apply, and the section rhythm. Section-specific rules live in the
 * section components.
 */

/*
 * A stage's UI uses the app's font, as `body` does in `src/app.css`. VitePress already loads
 * Inter, so panels look the same on every platform, and so do the stills captured of them.
 */
.op-app {
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.landing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

.landing :where(h1, h2, h3, p, ul, ol, dl, dd) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-section {
  padding-top: 160px;
}

/* A section's heading, also when a header puts actions beside it or a column holds it. */
.landing-section > h2,
.landing-section > header > h2,
.landing-heading {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* A grid of short titled facts, used for ownership and inside the roadmap. */
.landing-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 36px 48px;
  margin-top: 40px;
}

/* The icon that heads each fact. */
.landing-facts .icon {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 14px;
  color: var(--vp-c-brand-1);
}

.landing-facts dt {
  font-size: 16px;
  font-weight: 600;
}

.landing-facts dd {
  margin-top: 6px;
  color: var(--vp-c-text-2);
  font-size: 15px;
  line-height: 1.6;
}

/* A pill above a heading, such as Early access or Beta. */
.landing-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 2px 10px;
  border: 1px solid var(--vp-c-brand-soft);
  border-radius: 999px;
  background: var(--vp-c-brand-soft);
  color: var(--vp-c-brand-1);
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
}

/* The download page has no stages between its sections, so they sit closer together. */
.download-page .landing-section {
  padding-top: 112px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

@media (max-width: 860px) {
  .landing {
    padding: 0 16px 80px;
  }

  .landing-section {
    padding-top: 96px;
  }

  .download-page .landing-section {
    padding-top: 72px;
  }
}