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
Binary file added public/icon-512.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 src/app/apple-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/app/data-grid-doom/opengraph-image.alt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tablecn DOOM: DOOM rendered as colored cells in a data grid
Binary file added src/app/data-grid-doom/opengraph-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/app/data-grid-multiplayer/opengraph-image.alt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tablecn Multiplayer: real-time collaboration for the data grid, with three people on different cells
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/app/data-grid-rapid/opengraph-image.alt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tablecn Rapid: live data at 60 ticks a second, with flashing prices and sparklines
Binary file added src/app/data-grid-rapid/opengraph-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/app/data-grid/opengraph-image.alt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tablecn Data Grid: spreadsheet-like data grid for shadcn/ui, with a range of cells selected
Binary file added src/app/data-grid/opengraph-image.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 src/app/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/app/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 0 additions & 5 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export const metadata: Metadata = {
openGraph: {
type: "website",
locale: "en_US",
url: SITE_URL,
title: SITE_NAME,
description: SITE_DESCRIPTION,
siteName: SITE_NAME,
Expand All @@ -59,12 +58,8 @@ export const metadata: Metadata = {
card: "summary_large_image",
title: SITE_NAME,
description: SITE_DESCRIPTION,
images: [`${SITE_URL}/og.jpg`],
creator: "@sadmann17",
},
icons: {
icon: "/icon.png",
},
};

export const viewport: Viewport = {
Expand Down
10 changes: 10 additions & 0 deletions src/app/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ export default function manifest(): MetadataRoute.Manifest {
sizes: "32x32",
type: "image/png",
},
{
src: "/apple-icon.png",
sizes: "180x180",
type: "image/png",
},
{
src: "/icon-512.png",
sizes: "512x512",
type: "image/png",
},
],
};
}
1 change: 1 addition & 0 deletions src/app/opengraph-image.alt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tablecn Data Table: server-side data table for shadcn/ui, with search, status and priority filters, and a list of tasks
Binary file modified src/app/opengraph-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions src/components/icons.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
export type IconProps = React.HTMLAttributes<SVGElement>;

export const Icons = {
logo: (props: IconProps) => (
<svg viewBox="0 0 128 128" {...props}>
<rect width="128" height="128" rx="28" fill="currentColor" />
<g className="fill-background">
<rect x="24" y="24" width="80" height="20" rx="5" />
<rect x="53" y="51" width="51" height="23" rx="5" />
<g fillOpacity="0.3">
<rect x="24" y="51" width="22" height="23" rx="5" />
<rect x="24" y="81" width="22" height="23" rx="5" />
<rect x="53" y="81" width="51" height="23" rx="5" />
</g>
</g>
</svg>
),
gitHub: (props: IconProps) => (
<svg viewBox="0 0 438.549 438.549" {...props}>
<path
Expand Down
18 changes: 11 additions & 7 deletions src/components/layouts/site-header.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { LayoutGrid, Menu } from "lucide-react";
import { Menu } from "lucide-react";
import Link from "next/link";

import { ActiveLink } from "@/components/active-link";
import { Icons } from "@/components/icons";
import { DocsLink } from "@/components/layouts/docs-link";
import { MobileNav } from "@/components/layouts/mobile-nav";
import { ModeToggle } from "@/components/layouts/mode-toggle";
import { GITHUB_URL, NAV_LINKS } from "@/lib/site";
import { GITHUB_URL, NAV_LINKS, SITE_NAME } from "@/lib/site";
import { Button } from "@/registry/bases/radix/ui/button";
import {
Sheet,
Expand Down Expand Up @@ -41,11 +41,15 @@ export function SiteHeader() {
<MobileNav />
</SheetContent>
</Sheet>
<Button variant="ghost" size="icon" className="size-8" asChild>
<Link aria-label="Home" href="/">
<LayoutGrid />
</Link>
</Button>
<Link
href="/"
className="flex shrink-0 items-center gap-2 rounded-md px-1.5 py-1 outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 lg:me-2"
>
<Icons.logo className="size-5" />
<span className="sr-only font-semibold lg:not-sr-only">
{SITE_NAME}
</span>
</Link>
<nav className="hidden w-full items-center text-sm md:flex">
{NAV_LINKS.map((navLink) => (
<ActiveLink key={navLink.href} href={navLink.href}>
Expand Down
Loading