Skip to content

The Open Standard for Generative UI

Website: logo strip heading and mobile polish (#1436)

shubham-thesys899e80ae04d9
diff --git a/docs/app/(home)/components/LangShowcase/LangShowcase.module.css b/docs/app/(home)/components/LangShowcase/LangShowcase.module.css
index ae6cb0367..f2554f287 100644
--- a/docs/app/(home)/components/LangShowcase/LangShowcase.module.css
+++ b/docs/app/(home)/components/LangShowcase/LangShowcase.module.css
@@ -328,15 +328,18 @@
transform: none;
}
+ /* Open, the head lines up with the card's inset below it. */
.panelOpen .head {
- padding: 0.5rem 0.75rem 0.375rem;
+ padding: 0.625rem 1rem 0.5rem;
}
+ /* The card sits 16px in from the panel's edges, and its answer 16px in
+ from the card's, so neither runs flush. */
.card {
- width: calc(100% - 1rem);
+ width: calc(100% - 2rem);
margin-top: 0;
- padding: 0.5rem;
- border-radius: 12px;
+ padding: 1rem;
+ border-radius: 14px;
}
.demo {
diff --git a/docs/app/(home)/components/LangShowcase/LangShowcase.tsx b/docs/app/(home)/components/LangShowcase/LangShowcase.tsx
index 93b0468c9..f227c8d76 100644
--- a/docs/app/(home)/components/LangShowcase/LangShowcase.tsx
+++ b/docs/app/(home)/components/LangShowcase/LangShowcase.tsx
@@ -61,7 +61,7 @@ const AGENTS: Agent[] = [
label: "Ikea",
mascot: "/homepage/shiro/shiro-woodworker.svg",
mascotAlt: "Shiro the woodworker",
- demo: SITE_NAV_LINKS.openIntelligentUi.href,
+ demo: SITE_NAV_LINKS.openIntelligentUiDemo.href,
answer: {
src: "/homepage/agents/ikea-kallax.gif",
playMs: 14250,
diff --git a/docs/app/(home)/page.tsx b/docs/app/(home)/page.tsx
index 5e90c4855..3748c8614 100644
--- a/docs/app/(home)/page.tsx
+++ b/docs/app/(home)/page.tsx
@@ -138,7 +138,7 @@ export default function HomePage() {
move <LogoStrip /> back down by the tweet wall, restore
<WhatItDoesSection /> below and the contentSectionTight class. */
/>
- <LogoStrip />
+ <LogoStrip title="Loved by 50,000+ developers from" />
</div>
<div className={styles.contentSection}>
<div className={styles.contentShell}>
diff --git a/docs/app/(home)/sections/CompatibilitySection/CompatibilitySection.module.css b/docs/app/(home)/sections/CompatibilitySection/CompatibilitySection.module.css
index 751597043..d6ee375b1 100644
--- a/docs/app/(home)/sections/CompatibilitySection/CompatibilitySection.module.css
+++ b/docs/app/(home)/sections/CompatibilitySection/CompatibilitySection.module.css
@@ -115,18 +115,48 @@
}
}
+/* Phones: a swipeable row of separate cards, one per view with the next
+ peeking in at the edge. The row bleeds to the screen edges so cards scroll
+ under them, and snaps to the same 16px gutter it starts at. */
@media (max-width: 767px) {
.cards {
- grid-template-columns: 1fr;
+ display: flex;
+ gap: 0.75rem;
+ margin-inline: calc(-1 * var(--fold-gutter));
+ padding: 0.25rem 1rem 0.5rem;
+ overflow-x: auto;
+ overscroll-behavior-x: contain;
+ scroll-snap-type: x mandatory;
+ scroll-padding-inline: 1rem;
+ scrollbar-width: none;
+ border: 0;
+ border-radius: 0;
+ background: none;
}
- .card + .card {
- border-left: 0;
- border-top: 1px solid var(--openui-border-default);
+ .cards::-webkit-scrollbar {
+ display: none;
}
.card {
- padding: 1.375rem 1.25rem;
+ flex: 0 0 82%;
+ padding: 1.75rem 1.25rem;
+ scroll-snap-align: start;
+ border: 1px solid var(--openui-border-default);
+ border-radius: 20px;
+ background: var(--openui-foreground);
+ }
+
+ .card + .card {
+ border-left: 1px solid var(--openui-border-default);
+ }
+
+ .card:nth-child(3) {
+ border-left: 1px solid var(--openui-border-default);
+ }
+
+ .card:nth-child(n + 3) {
+ border-top: 1px solid var(--openui-border-default);
}
.cardLogos {
diff --git a/docs/app/(home)/sections/LogoStrip/LogoStrip.module.css b/docs/app/(home)/sections/LogoStrip/LogoStrip.module.css
index 9281117ba..b7f98c299 100644
--- a/docs/app/(home)/sections/LogoStrip/LogoStrip.module.css
+++ b/docs/app/(home)/sections/LogoStrip/LogoStrip.module.css
@@ -3,10 +3,11 @@
}
.title {
- margin: 0 auto 1.5rem;
- color: var(--openui-text-neutral-secondary);
+ 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;
diff --git a/docs/components/showcase/demos.tsx b/docs/components/showcase/demos.tsx
index 509531633..9fe691c97 100644
--- a/docs/components/showcase/demos.tsx
+++ b/docs/components/showcase/demos.tsx
@@ -38,7 +38,7 @@ const FEATURED_PROJECTS: ShowcaseItem[] = [
dark: "/nav/open-intelligent-ui-dark.png",
},
links: [
- { label: "Open demo", href: SITE_NAV_LINKS.openIntelligentUi.href },
+ { label: "Open demo", href: SITE_NAV_LINKS.openIntelligentUiDemo.href, external: true },
{ label: "GitHub", href: "https://github.com/thesysdev/open-intelligent-ui", external: true },
],
},
diff --git a/docs/lib/site-nav-links.ts b/docs/lib/site-nav-links.ts
index f315d8096..d66abec46 100644
--- a/docs/lib/site-nav-links.ts
+++ b/docs/lib/site-nav-links.ts
@@ -10,6 +10,7 @@ export const SITE_NAV_LINKS = {
demos: { href: "/demos", newTab: false },
documentation: { href: "/docs", newTab: false },
openIntelligentUi: { href: "https://www.openui.com/demo/intelligent-ui" },
+ openIntelligentUiDemo: { href: "https://open-intelligent-ui.vercel.app/demo/intelligent-ui" },
/* Absolute, not /demo/...: these demos are proxied from openui.com only, so a
relative link on a preview deployment would land on the preview's own
vercel.app host instead of the demo. */