Skip to content

Commit

Permalink
logo
Browse files Browse the repository at this point in the history
  • Loading branch information
richardgill committed Apr 1, 2024
1 parent 575a768 commit ba9ee43
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 9 deletions.
11 changes: 8 additions & 3 deletions apps/docs/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 13 additions & 2 deletions apps/docs/src/components/layout/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ const {
description = siteConfig.description,
image = "/og.jpg",
} = Astro.props;
const calcFullTitle = (title: string | undefined) => {
if (!title) {
return "llm-ui";
}
if (title.startsWith("llm-ui")) {
return title;
}
return `${title} | llm-ui`;
};
const fullTitle = calcFullTitle(title);
---

<!-- inspiration https://github.com/withastro/astro/issues/8711#issue-1919938037 -->
Expand Down Expand Up @@ -91,8 +102,8 @@ const {
<link rel="canonical" href={canonicalURL} />

<!-- Primary Meta Tags -->
<title>{title ? `${title} | llm-ui` : "llm-ui"}</title>
<meta name="title" content={title ? `${title} | llm-ui` : "llm-ui"} />
<title>{fullTitle}</title>
<meta name="title" content={fullTitle} />
<meta name="description" content={description} />

<!-- Open Graph / Facebook -->
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/components/layout/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const { className } = Astro.props;
<div class="container relative flex w-full items-center justify-between">
<div class="flex items-center gap-6 md:gap-8 lg:gap-10">
<a href="/" class="hidden items-center space-x-2 md:flex">
<Icon name="stars-outline" class="size-8" />
<Icon name="mark" class="size-6" color="#6366f1" />
<span class="hidden font-bold sm:inline-block">
{siteConfig.name}
</span>
Expand Down
8 changes: 8 additions & 0 deletions apps/docs/src/icons/mark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion apps/docs/src/icons/stars-outline.svg

This file was deleted.

2 changes: 1 addition & 1 deletion apps/docs/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { cn } from "@/lib/utils";
import { Icon } from "astro-icon/components";
---

<MainLayout title="llm-ui | react ui components for LLMs">
<MainLayout title="llm-ui | React components for LLMs">
<section class="space-y-6 pb-12 pt-16 lg:py-28">
<div
class="container flex max-w-[64rem] flex-col items-center gap-6 text-center"
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/pages/waitlist.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Icon } from "astro-icon/components";
>
<div class="flex w-full max-w-sm flex-col gap-y-4">
<div class="space-y-3">
<Icon name="stars-outline" class="size-10" />
<Icon name="mark" class="size-10" />
<h1 class="font-heading text-2xl tracking-wide">Get early access!</h1>
<p class="text-muted-foreground text-sm">
Excited to join the waitlist?
Expand Down

0 comments on commit ba9ee43

Please sign in to comment.