Skip to content

The Open Standard for Generative UI

4.4 KB
Raw Blame
.section {
  display: flex;
  flex-direction: column;
  gap: 160px;
  width: 100%;
  max-width: 1200px;
  margin: 160px auto 0;
}

.card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 80px;
  width: 100%;
}

/* Shrinks below the 1200px design width instead of overflowing; the gap above
   is the floor, space-between distributes anything left over. */
.featureImage {
  flex: 0 1 720px;
  align-self: center;
  min-width: 0;
  width: auto;
  height: auto;
  aspect-ratio: 720 / 400;
  border-radius: 24px;
}

.featureImage {
  display: block;
  object-fit: cover;
}

.featureImagePlaceholder {
  border: 1px solid var(--openui-border-default);
  background: var(--home-color-surface-soft);
}

.featureStage {
  --cloud-feature-stage-stroke: #f8f8f8;

  position: relative;
  flex: 0 1 720px;
  align-self: center;
  min-width: 0;
  aspect-ratio: 720 / 400;
  overflow: hidden;
  border: 1px solid var(--cloud-feature-stage-stroke);
  border-radius: 24px;
}

[data-theme="dark"] .featureStage {
  --cloud-feature-stage-stroke: #0e0e0e;
}

.featureShader {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.featureShader > * {
  width: 100%;
  height: 100%;
}

.featureStageArtwork {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.featureStageArtwork .featureImage {
  width: 100%;
  height: 100%;
}

.featureImagePair,
.featureImageWide {
  display: contents;
}

.featureImageCompact {
  display: none;
}

.featureImageDark {
  display: none;
}

[data-theme="dark"] .featureImageLight {
  display: none;
}

[data-theme="dark"] .featureImageDark {
  display: block;
}

.content {
  display: flex;
  flex: 0 0 400px;
  flex-direction: column;
  align-self: stretch;
  justify-content: space-between;
  min-width: 0;
  width: auto;
  text-align: left;
}

.headingGroup {
  display: flex;
  flex-direction: column;
}

.primaryHeading,
.secondaryHeading {
  margin: 0;
  font-family: "Inter Display", sans-serif;
  font-size: var(--home-title-medium-size);
  font-weight: var(--home-title-weight);
  line-height: var(--home-title-leading);
  letter-spacing: var(--home-title-tracking);
}

.primaryHeading {
  color: var(--openui-text-neutral-primary);
}

.secondaryHeading {
  color: var(--openui-text-neutral-secondary);
}

.body {
  margin: 0;
  color: var(--openui-text-neutral-secondary);
  font-family: "Inter Display", sans-serif;
  font-size: var(--home-lead-size);
  font-weight: var(--home-lead-weight);
  line-height: var(--home-lead-leading);
}

.bodyGroup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.supportingFeatures {
  --home-hairline: var(--openui-border-interactive);

  margin-top: 160px;
  padding-bottom: 160px;
}

/* Below the 1200px design width the section would otherwise run edge to edge.
   Same inset the sibling sections on this page use. */
@media (max-width: 1279px) {
  .section {
    width: calc(100% - 64px);
  }
}

@media (max-width: 1023px) {
  .section {
    gap: 96px;
    margin-top: 96px;
  }

  .card {
    flex-direction: column;
    gap: 32px;
  }

  .featureImage {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 720 / 400;
  }

  .featureStage {
    flex: 0 0 auto;
    width: 100%;
  }

  .content {
    flex: 0 0 auto;
    width: 100%;
  }

  /* Observability's feature cards use the stronger stacked reading order:
     name the feature, show it, then explain it. Opt-in so existing Cloud cards
     keep their current composition while Gateway can use the refined one from
     the moment the desktop columns collapse. */
  .cardEditorialStack .content {
    display: contents;
  }

  .cardEditorialStack .headingGroup {
    order: 1;
  }

  .cardEditorialStack .featureImage,
  .cardEditorialStack .featureStage {
    order: 2;
  }

  .cardEditorialStack .bodyGroup {
    order: 3;
  }

  .supportingFeatures {
    margin-top: 96px;
    padding-bottom: 96px;
  }
}

@media (max-width: 767px) {
  .section {
    width: calc(100% - 32px);
  }

  .cardEditorialStack {
    gap: 20px;
  }

  .featureImage {
    order: -1;
    border-radius: 12px;
  }
  .featureStage {
    order: -1;
    border-radius: 12px;
  }

  .cardEditorialStack .featureImage,
  .cardEditorialStack .featureStage {
    order: 2;
  }

  .featureStageResponsive {
    aspect-ratio: 720 / 600;
    border-radius: 16px;
  }

  .featureImageWide {
    display: none;
  }

  .featureImageCompact {
    display: contents;
  }

  .content {
    gap: 20px;
  }
}