Skip to content

The Open Standard for Generative UI

2.0 KB
Raw Blame
.section {
  margin-top: 2.5rem;
}

.title {
  margin: 0 auto 1rem;
  color: var(--home-color-text-muted);
  font-family: var(--home-font-text);
  font-size: var(--home-body-size);
  font-weight: 400;
  line-height: var(--home-body-leading);
  text-align: center;
  text-wrap: balance;
}

.inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  max-width: 75rem;
  margin-inline: auto;
}

.marquee {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  padding-block: 0.25rem;
}

.track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll 35s linear infinite;
}

.marquee:hover .track,
.marquee:focus-within .track {
  animation-play-state: paused;
}

/* Second row runs the other way and starts half a logo along, so its marks
   fall between the ones above. */
.offsetRow .track {
  animation-direction: reverse;
  margin-left: -5.5rem;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .track {
    animation: none;
  }
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.875rem;
  margin-inline: 0.25rem;
}

/* Flattened to the page's ink so the strip reads as one row of marks rather
   than a spread of brand colours. Both pages share the treatment. */
.logo {
  height: 2.5rem;
  width: auto;
  flex: 0 0 auto;
  opacity: 0.5;
  filter: brightness(0);
  transition: opacity 0.15s ease;
}

[data-theme="dark"] .logo {
  filter: brightness(0) invert(1);
}

.card:hover .logo,
.card:focus-visible .logo {
  opacity: 1;
}

/* YC badge keeps its own orange: it sits outside the flattened .logo. */
.yc {
  display: flex;
  margin-left: -0.75rem;
  margin-bottom: 1.25rem;
  transform: translate(4px, -4px);
}

.yc svg {
  width: 0.875rem;
  height: 0.875rem;
}

@media (min-width: 768px) {
  .section {
    margin-top: 3rem;
  }

  .logo {
    height: 3rem;
  }
}