Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into releases
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlipski committed Aug 29, 2024
2 parents 339016e + e8621df commit 40df5b2
Show file tree
Hide file tree
Showing 28 changed files with 301 additions and 98 deletions.
8 changes: 6 additions & 2 deletions docs/components/pages/landing/community/SponsorCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ export type SponsorCardProps = {
light: Parameters<typeof Image>[0]["src"];
dark: Parameters<typeof Image>[0]["src"];
};
link: string;
tagline?: string;
};

export function SponsorCard(props: SponsorCardProps) {
return (
<div className="relative flex aspect-video max-w-[238px] items-center justify-center bg-gray-100 dark:bg-gray-900 md:w-[238px]">
<a
href={props.link}
className="relative flex aspect-video max-w-[235px] items-center justify-center rounded-lg bg-gray-100 dark:bg-gray-900 md:w-[235px]">
<Image
className={"block h-1/3 w-3/5 object-contain dark:hidden"}
src={props.logo.light}
Expand All @@ -22,11 +25,12 @@ export function SponsorCard(props: SponsorCardProps) {
src={props.logo.dark}
alt={props.name}
/>

{props.tagline && (
<div className={"absolute bottom-[10%] text-xs italic md:text-sm"}>
{props.tagline}
</div>
)}
</div>
</a>
);
}
35 changes: 25 additions & 10 deletions docs/components/pages/landing/community/Sponsors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import {
import { FadeIn } from "@/components/pages/landing/shared/FadeIn";
import { SectionSubHeader } from "@/components/pages/landing/shared/Headings";

import fermatDark from "../../../../public/img/sponsors/fermat-dark.png";
import fermatLight from "../../../../public/img/sponsors/fermat.png";
import deeporigin from "../../../../public/img/sponsors/deeporigin.svg";
import fermatDark from "../../../../public/img/sponsors/fermat-dark.svg";
import fermatLight from "../../../../public/img/sponsors/fermat.svg";
import nlnetDark from "../../../../public/img/sponsors/nlnet-dark.svg";
import nlnetLight from "../../../../public/img/sponsors/nlnet.svg";
import noteplanDark from "../../../../public/img/sponsors/noteplan-dark.png";
Expand All @@ -19,49 +20,63 @@ import typecellDark from "../../../../public/img/sponsors/typecell-dark.svg";
import typecellLight from "../../../../public/img/sponsors/typecell.svg";

export const sponsorsCardData: SponsorCardProps[] = [
{
logo: {
light: deeporigin,
dark: deeporigin,
},
name: "Deep Origin",
link: "https://www.deeporigin.com/",
},
{
logo: {
light: fermatLight,
dark: fermatDark,
},
name: "Fermat",
link: "https://fermat.app/",
},
{
logo: {
light: nlnetLight,
dark: nlnetDark,
},
name: "NLNet",
link: "https://nlnet.nl/",
},
{
logo: {
light: typecellLight,
dark: typecellDark,
light: noteplanLight,
dark: noteplanDark,
},
name: "TypeCell",
name: "Noteplan",
link: "https://noteplan.co/",
tagline: "Apple Top Notes Apps",
},
{
logo: {
light: poggioLight,
dark: poggioDark,
},
name: "Poggio",
link: "https://poggio.io/",
},
{
logo: {
light: twentyLight,
dark: twentyDark,
},
name: "Twenty",
link: "https://twenty.com/",
tagline: "YC S23",
},
{
logo: {
light: noteplanLight,
dark: noteplanDark,
light: typecellLight,
dark: typecellDark,
},
name: "Noteplan",
tagline: "Apple Top Notes Apps",
name: "TypeCell",
link: "https://www.typecell.org/",
},
];

Expand All @@ -71,7 +86,7 @@ export function Sponsors() {
<FadeIn>
<SectionSubHeader>Sponsors &amp; users</SectionSubHeader>
</FadeIn>
<FadeIn className="grid grid-cols-2 gap-0.5 overflow-hidden rounded-2xl md:grid-cols-3">
<FadeIn className="grid grid-cols-2 gap-2 overflow-hidden md:grid-cols-3">
{sponsorsCardData.map((sponsor) => (
<SponsorCard key={sponsor.name} {...sponsor} />
))}
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/docs/editor-basics/default-schema.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ type ImageBlock = {
props: {
url: string = "";
caption: string = "";
width: number = 512;
previewWidth: number = 512;
} & DefaultProps;
content: undefined;
children: Block[];
Expand All @@ -106,7 +106,7 @@ type ImageBlock = {

`caption:` The image caption.

`width:` The image width in pixels.
`previewWidth:` The image previewWidth in pixels.

#### Table

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/docs/editor-basics/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export type BlockNoteViewProps = {

`slashMenu`: Whether the [Slash Menu](/docs/ui-components/suggestion-menus#slash-menu) should be enabled.

`emojiPicker`: Whether the [Emoji Picker](/docs/ui-components/suggestion-menus#emoji-picker) should be enabled.
`emojiPicker`: Whether the [Emoji Picker](/docs/advanced/grid-suggestion-menus#emoji-picker) should be enabled.

`filePanel`: Whether the File Toolbar should be enabled.

Expand Down
29 changes: 29 additions & 0 deletions docs/public/img/sponsors/deeporigin.svg
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 docs/public/img/sponsors/fermat-dark.png
Binary file not shown.
13 changes: 13 additions & 0 deletions docs/public/img/sponsors/fermat-dark.svg
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 docs/public/img/sponsors/fermat.png
Binary file not shown.
Loading

0 comments on commit 40df5b2

Please sign in to comment.