Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/landing/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ export default defineConfig({
editLink: {
baseUrl: `${REPOSITORY_URL}/edit/main/apps/landing/`,
},
favicon: "/onequery-icon.png",
favicon: "/favicon-96x96.png",
logo: {
alt: "OneQuery",
src: "/src/assets/onequery-icon.png",
src: "/src/assets/onequery-icon.svg",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use a bundled path for the Starlight logo

This now points the docs logo at a root-relative /src/... URL, but the SVG was added under src/assets and there is no matching public file under public/src/assets (checked the public tree and repo-wide references). Starlight’s source-asset logo form expects a project-relative path such as ./src/assets/..., so the deployed docs can still render a missing logo request instead of bundling the SVG.

Useful? React with 👍 / 👎.

},
sidebar: [
{
Expand Down
1 change: 1 addition & 0 deletions apps/landing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"type": "module",
"scripts": {
"dev": "astro dev",
"preview": "astro preview",
"workspace:dev": "bun run dev",
"build": "astro build",
"bundle:analyze": "ONEQUERY_BUNDLE_REPORT=1 astro build",
Expand Down
Binary file added apps/landing/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/landing/public/favicon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/landing/public/og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed apps/landing/src/assets/og.png
Binary file not shown.
Binary file removed apps/landing/src/assets/onequery-icon.png
Binary file not shown.
7 changes: 7 additions & 0 deletions apps/landing/src/assets/onequery-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 2 additions & 6 deletions apps/landing/src/components/landing/ControlPlaneDiagram.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
import { Image } from "astro:assets";

import onequeryIcon from "../../assets/onequery-icon.png";
import OneQueryIcon from "../../assets/onequery-icon.svg";
import { BrandIcon } from "../../landing/content/brand-icons";
import type { BrandIconName } from "../../landing/content/brand-icons";

Expand Down Expand Up @@ -179,9 +177,7 @@ const controlPlanePolicies = [
<div class="control-plane-core-shell">
<p class="control-plane-core-kicker">Unified control plane</p>
<div class="control-plane-core-brand">
<Image
src={onequeryIcon}
alt="OneQuery logo"
<OneQueryIcon
aria-hidden="true"
class="control-plane-core-logo"
width={96}
Expand Down
9 changes: 2 additions & 7 deletions apps/landing/src/components/landing/SiteHeader.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
import { Image } from "astro:assets";

import onequeryIcon from "../../assets/onequery-icon.png";
import OneQueryIcon from "../../assets/onequery-icon.svg";
import { NAVIGATION_ITEMS } from "../../data/navigation";
import { REPOSITORY_URL } from "../../landing/config/landing-config";
import { BrandIcon } from "../../landing/content/brand-icons";
Expand Down Expand Up @@ -50,14 +48,11 @@ const navigationItems = NAVIGATION_ITEMS.map((item) => ({
class="brand-mark"
aria-label="OneQuery landing homepage"
>
<Image
src={onequeryIcon}
alt="OneQuery logo"
<OneQueryIcon
aria-hidden="true"
class="brand-mark-icon"
width={60}
height={60}
loading="eager"
/>
<span>OneQuery</span>
</TrackedLink>
Expand Down
28 changes: 5 additions & 23 deletions apps/landing/src/landing/seo/site-images.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { getImage } from "astro:assets";

import oneQueryShareImage from "../../assets/og.png";
import { toAbsoluteSiteUrl } from "./structured-data";
import type { StructuredImageMetadata } from "./structured-data";

Expand All @@ -9,16 +6,14 @@ type TypedStructuredImageMetadata = StructuredImageMetadata & {
type: string;
};

const STRUCTURED_SHARE_IMAGE_QUALITY = 90;

export const ONEQUERY_DEFAULT_SHARE_IMAGE_ALT =
"OneQuery - Governed Data Access for AI Agents";

export const ONEQUERY_PUBLIC_SHARE_IMAGE = {
height: oneQueryShareImage.height,
height: 630,
type: "image/png",
url: "/og.png",
width: oneQueryShareImage.width,
width: 1200,
} as const satisfies TypedStructuredImageMetadata;

export function getOneQueryPublicShareImageMetadata(
Expand All @@ -30,21 +25,8 @@ export function getOneQueryPublicShareImageMetadata(
};
}

export async function getOneQueryStructuredShareImageMetadata(
export function getOneQueryStructuredShareImageMetadata(
site?: SiteInput
): Promise<TypedStructuredImageMetadata> {
const optimizedImage = await getImage({
format: "webp",
height: ONEQUERY_PUBLIC_SHARE_IMAGE.height,
quality: STRUCTURED_SHARE_IMAGE_QUALITY,
src: oneQueryShareImage,
width: ONEQUERY_PUBLIC_SHARE_IMAGE.width,
});

return {
height: ONEQUERY_PUBLIC_SHARE_IMAGE.height,
type: "image/webp",
url: toAbsoluteSiteUrl(optimizedImage.src, site),
width: ONEQUERY_PUBLIC_SHARE_IMAGE.width,
};
): TypedStructuredImageMetadata {
return getOneQueryPublicShareImageMetadata(site);
}
15 changes: 12 additions & 3 deletions apps/landing/src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const siteUrl = normalizeSiteUrl(Astro.site);
const DEFAULT_CANONICAL_URL = createCanonicalUrl("/", siteUrl);
const defaultShareImage = getOneQueryPublicShareImageMetadata(siteUrl);
const defaultStructuredShareImage =
await getOneQueryStructuredShareImageMetadata(siteUrl);
getOneQueryStructuredShareImageMetadata(siteUrl);
const DEFAULT_IMAGE_URL = defaultShareImage.url;
const DEFAULT_STRUCTURED_DATA = createLandingPageStructuredData({
description: DEFAULT_DESCRIPTION,
Expand Down Expand Up @@ -105,8 +105,17 @@ const structuredDataItems =
<meta name="author" content="OneQuery Maintainers" />
<meta name="application-name" content="OneQuery" />
<meta name="apple-mobile-web-app-title" content="OneQuery" />
<link rel="icon" type="image/png" href="/onequery-icon.png" />
<link rel="apple-touch-icon" href="/onequery-icon.png" />
<link
rel="icon"
type="image/png"
sizes="96x96"
href="/favicon-96x96.png"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/apple-touch-icon.png"
/>
<link rel="canonical" href={canonicalUrl} />
<link rel="sitemap" href="/sitemap-index.xml" />
<Font cssVariable="--font-geist" preload />
Expand Down
2 changes: 1 addition & 1 deletion apps/landing/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const siteUrl = normalizeSiteUrl(Astro.site);
const landingCanonicalUrl = createCanonicalUrl("/", siteUrl);
const landingShareImage = getOneQueryPublicShareImageMetadata(siteUrl);
const landingStructuredShareImage =
await getOneQueryStructuredShareImageMetadata(siteUrl);
getOneQueryStructuredShareImageMetadata(siteUrl);
const landingImageUrl = landingShareImage.url;
const openClawDemoPosterImage = await getOpenClawDemoPosterImage();
const landingStructuredData = createLandingPageStructuredData({
Expand Down
Loading