This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BlocksConfig, generateBlocks } from "./recursiveBlocks"; | |
// First, we define all your blocks name | |
const enum BlockName { | |
Text = "Text", | |
Section = "Section", | |
} | |
// Then, the configuration. | |
const blocksConfig: BlocksConfig<BlockName> = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { CollectionConfig } from "payload/types"; | |
import { UploadsGridView } from "../../components/UploadsGridView/UploadsGridView"; | |
export const Media: CollectionConfig = { | |
slug: "media", | |
admin: { | |
components: { views: { List: UploadsGridView } } // Set the List view to use the Grid view, | |
}, | |
upload: { | |
staticURL: "/media", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--dot-color-1: black; | |
--dot-color-2: white; | |
--bg-dot-0: var(--dot-color-2); | |
--bg-dot-25: conic-gradient(var(--dot-color-1) 25%, var(--dot-color-2) 25%) repeat center / 2px | |
2px; | |