This commit is contained in:
oiov
2024-07-29 15:56:35 +08:00
parent c2dd1320f5
commit 573ef0cddb
32 changed files with 115 additions and 1746 deletions

View File

@@ -1,185 +0,0 @@
import { notFound } from "next/navigation";
import { allPosts } from "contentlayer/generated";
import { Mdx } from "@/components/content/mdx-components";
import "@/styles/mdx.css";
import { Metadata } from "next";
import Image from "next/image";
import Link from "next/link";
import { BLOG_CATEGORIES } from "@/config/blog";
import { getTableOfContents } from "@/lib/toc";
import {
cn,
constructMetadata,
formatDate,
getBlurDataURL,
placeholderBlurhash,
} from "@/lib/utils";
import { buttonVariants } from "@/components/ui/button";
import Author from "@/components/content/author";
import BlurImage from "@/components/shared/blur-image";
import MaxWidthWrapper from "@/components/shared/max-width-wrapper";
import { DashboardTableOfContents } from "@/components/shared/toc";
export async function generateStaticParams() {
return allPosts.map((post) => ({
slug: post.slugAsParams,
}));
}
export async function generateMetadata({
params,
}: {
params: { slug: string };
}): Promise<Metadata | undefined> {
const post = allPosts.find((post) => post.slugAsParams === params.slug);
if (!post) {
return;
}
const { title, description, image } = post;
return constructMetadata({
title: `${title}  Next Template`,
description: description,
image,
});
}
export default async function PostPage({
params,
}: {
params: {
slug: string;
};
}) {
const post = allPosts.find((post) => post.slugAsParams === params.slug);
if (!post) {
notFound();
}
const category = BLOG_CATEGORIES.find(
(category) => category.slug === post.categories[0],
)!;
const relatedArticles =
(post.related &&
post.related.map(
(slug) => allPosts.find((post) => post.slugAsParams === slug)!,
)) ||
[];
const toc = await getTableOfContents(post.body.raw);
const [thumbnailBlurhash, images] = await Promise.all([
getBlurDataURL(post.image),
await Promise.all(
post.images.map(async (src: string) => ({
src,
blurDataURL: await getBlurDataURL(src),
})),
),
]);
return (
<>
<MaxWidthWrapper className="pt-6 md:pt-10">
<div className="flex flex-col space-y-4">
<div className="flex items-center space-x-4">
<Link
href={`/blog/category/${category.slug}`}
className={cn(
buttonVariants({
variant: "outline",
size: "sm",
rounded: "lg",
}),
"h-8",
)}
>
{category.title}
</Link>
<time
dateTime={post.date}
className="text-sm font-medium text-muted-foreground"
>
{formatDate(post.date)}
</time>
</div>
<h1 className="font-heading text-3xl text-foreground sm:text-4xl">
{post.title}
</h1>
<p className="text-base text-muted-foreground md:text-lg">
{post.description}
</p>
<div className="flex flex-nowrap items-center space-x-5 pt-1 md:space-x-8">
{post.authors.map((author) => (
<Author username={author} key={post._id + author} />
))}
</div>
</div>
</MaxWidthWrapper>
<div className="relative">
<div className="absolute top-52 w-full border-t" />
<MaxWidthWrapper className="grid grid-cols-4 gap-10 pt-8 max-md:px-0">
<div className="relative col-span-4 mb-10 flex flex-col space-y-8 border-y bg-background md:rounded-xl md:border lg:col-span-3">
<BlurImage
alt={post.title}
blurDataURL={thumbnailBlurhash ?? placeholderBlurhash}
className="aspect-[1200/630] border-b object-cover md:rounded-t-xl"
width={1200}
height={630}
priority
placeholder="blur"
src={post.image}
sizes="(max-width: 768px) 770px, 1000px"
/>
<div className="px-[.8rem] pb-10 md:px-8">
<Mdx code={post.body.code} images={images} />
</div>
</div>
<div className="sticky top-20 col-span-1 mt-52 hidden flex-col divide-y divide-muted self-start pb-24 lg:flex">
<DashboardTableOfContents toc={toc} />
</div>
</MaxWidthWrapper>
</div>
<MaxWidthWrapper>
{relatedArticles.length > 0 && (
<div className="flex flex-col space-y-4 pb-16">
<p className="font-heading text-2xl text-foreground">
More Articles
</p>
<div className="grid grid-cols-1 gap-3 md:grid-cols-2 lg:gap-6">
{relatedArticles.map((post) => (
<Link
key={post.slug}
href={post.slug}
className="flex flex-col space-y-2 rounded-xl border p-5 transition-colors duration-300 hover:bg-muted/80"
>
<h3 className="font-heading text-xl text-foreground">
{post.title}
</h3>
<p className="line-clamp-2 text-[15px] text-muted-foreground">
{post.description}
</p>
<p className="text-sm text-muted-foreground">
{formatDate(post.date)}
</p>
</Link>
))}
</div>
</div>
)}
</MaxWidthWrapper>
</>
);
}

View File

@@ -1,65 +0,0 @@
import { Metadata } from "next";
import { notFound } from "next/navigation";
import { allPosts } from "contentlayer/generated";
import { BLOG_CATEGORIES } from "@/config/blog";
import { constructMetadata, getBlurDataURL } from "@/lib/utils";
import { BlogCard } from "@/components/content/blog-card";
export async function generateStaticParams() {
return BLOG_CATEGORIES.map((category) => ({
slug: category.slug,
}));
}
export async function generateMetadata({
params,
}: {
params: { slug: string };
}): Promise<Metadata | undefined> {
const category = BLOG_CATEGORIES.find(
(category) => category.slug === params.slug,
);
if (!category) {
return;
}
const { title, description } = category;
return constructMetadata({
title: `${title} Posts Next Auth Roles Template`,
description,
});
}
export default async function BlogCategory({
params,
}: {
params: {
slug: string;
};
}) {
const category = BLOG_CATEGORIES.find((ctg) => ctg.slug === params.slug);
if (!category) {
notFound();
}
const articles = await Promise.all(
allPosts
.filter((post) => post.categories.includes(category.slug))
.sort((a, b) => b.date.localeCompare(a.date))
.map(async (post) => ({
...post,
blurDataURL: await getBlurDataURL(post.image),
})),
);
return (
<div className="grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
{articles.map((article, idx) => (
<BlogCard key={article._id} data={article} priority={idx <= 2} />
))}
</div>
);
}

View File

@@ -1,15 +0,0 @@
import { BlogHeaderLayout } from "@/components/content/blog-header-layout";
import MaxWidthWrapper from "@/components/shared/max-width-wrapper";
export default function BlogLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<>
<BlogHeaderLayout />
<MaxWidthWrapper className="pb-16">{children}</MaxWidthWrapper>
</>
);
}

View File

@@ -1,23 +0,0 @@
import { allPosts } from "contentlayer/generated";
import { constructMetadata, getBlurDataURL } from "@/lib/utils";
import { BlogPosts } from "@/components/content/blog-posts";
export const metadata = constructMetadata({
title: "Blog  Next Template",
description: "Latest news and updates from Next Auth Roles Template.",
});
export default async function BlogPage() {
const posts = await Promise.all(
allPosts
.filter((post) => post.published)
.sort((a, b) => b.date.localeCompare(a.date))
.map(async (post) => ({
...post,
blurDataURL: await getBlurDataURL(post.image),
})),
);
return <BlogPosts posts={posts} />;
}

View File

@@ -12,10 +12,13 @@ export async function DNSInfoCard({ userId }: { userId: string }) {
const count = await getUserRecordCount(userId); const count = await getUserRecordCount(userId);
return ( return (
<Card> <Card className="grids group bg-gray-50/70 backdrop-blur-lg dark:bg-primary-foreground">
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2"> <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
<CardTitle className="text-sm font-medium"> <CardTitle className="text-sm font-medium">
<Link className="hover:underline" href="/dashboard/records"> <Link
className="font-semibold text-slate-500 duration-500 group-hover:text-cyan-500 group-hover:underline"
href="/dashboard/records"
>
DNS Records DNS Records
</Link> </Link>
</CardTitle> </CardTitle>
@@ -41,10 +44,13 @@ export async function DNSInfoCard({ userId }: { userId: string }) {
export async function UrlsInfoCard({ userId }: { userId: string }) { export async function UrlsInfoCard({ userId }: { userId: string }) {
const count = await getUserShortUrlCount(userId); const count = await getUserShortUrlCount(userId);
return ( return (
<Card> <Card className="grids group bg-gray-50/70 backdrop-blur-lg dark:bg-primary-foreground">
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2"> <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
<CardTitle className="text-sm font-medium"> <CardTitle className="text-sm font-medium">
<Link className="hover:underline" href="/dashboard/urls"> <Link
className="font-semibold text-slate-500 duration-500 group-hover:text-cyan-500 group-hover:underline"
href="/dashboard/urls"
>
Short URLs Short URLs
</Link> </Link>
</CardTitle> </CardTitle>

View File

@@ -1,3 +1,4 @@
import Link from "next/link";
import { redirect } from "next/navigation"; import { redirect } from "next/navigation";
import { getCurrentUser } from "@/lib/session"; import { getCurrentUser } from "@/lib/session";
@@ -23,7 +24,22 @@ export default async function DashboardPage() {
<> <>
<DashboardHeader heading="Dashboard" /> <DashboardHeader heading="Dashboard" />
<div className="flex flex-col gap-5"> <div className="flex flex-col gap-5">
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-4"> <div className="grid grid-cols-1 gap-4 sm:grid-cols-3 xl:grid-cols-3">
<div className="group relative mb-4 h-full w-full shrink-0 origin-left overflow-hidden rounded-lg border bg-gray-200/50 p-4 text-left duration-500 before:absolute before:right-1 before:top-1 before:z-[2] before:h-12 before:w-12 before:rounded-full before:bg-violet-500 before:blur-lg before:duration-500 after:absolute after:right-8 after:top-3 after:z-[2] after:h-20 after:w-20 after:rounded-full after:bg-rose-300 after:blur-lg after:duration-500 hover:border-cyan-600 hover:decoration-2 hover:duration-500 hover:before:-bottom-8 hover:before:right-12 hover:before:blur hover:before:[box-shadow:_20px_20px_20px_30px_#a21caf] hover:after:-right-8 group-hover:before:duration-500 group-hover:after:duration-500 dark:bg-primary-foreground md:max-w-[350px]">
<h1 className="mb-7 text-xl font-bold duration-500 group-hover:text-cyan-500">
Try free trail
</h1>
<p className="text-sm">
Learn more from{" "}
<Link
className="text-blue-500 hover:underline"
href="/docs"
target="_blank"
>
document.
</Link>{" "}
</p>
</div>
<DNSInfoCard userId={user.id} /> <DNSInfoCard userId={user.id} />
<UrlsInfoCard userId={user.id} /> <UrlsInfoCard userId={user.id} />
</div> </div>

View File

@@ -157,7 +157,7 @@ export default function UserUrlsList({ user }: UrlListProps) {
<TableRow className="grid animate-fade-in grid-cols-5 items-center animate-in sm:grid-cols-7"> <TableRow className="grid animate-fade-in grid-cols-5 items-center animate-in sm:grid-cols-7">
<TableCell className="col-span-2"> <TableCell className="col-span-2">
<Link <Link
className="font-semibold text-slate-600 hover:text-blue-400 hover:underline" className="text-slate-600 hover:text-blue-400 hover:underline"
href={short.target} href={short.target}
target="_blank" target="_blank"
> >
@@ -166,7 +166,7 @@ export default function UserUrlsList({ user }: UrlListProps) {
</TableCell> </TableCell>
<TableCell className="col-span-2 flex items-center gap-1"> <TableCell className="col-span-2 flex items-center gap-1">
<Link <Link
className="font-semibold text-slate-600 hover:text-blue-400 hover:underline" className="text-slate-600 hover:text-blue-400 hover:underline"
href={`/s/${short.url}`} href={`/s/${short.url}`}
target="_blank" target="_blank"
> >
@@ -180,7 +180,7 @@ export default function UserUrlsList({ user }: UrlListProps) {
)} )}
/> />
</TableCell> </TableCell>
<TableCell className="col-span-1 hidden justify-center font-semibold sm:flex"> <TableCell className="col-span-1 hidden justify-center sm:flex">
{short.visible === 1 ? "Public" : "Private"} {short.visible === 1 ? "Public" : "Private"}
</TableCell> </TableCell>
<TableCell className="col-span-1 hidden justify-center sm:flex"> <TableCell className="col-span-1 hidden justify-center sm:flex">

View File

@@ -3,10 +3,10 @@ import "@/styles/globals.css";
import { fontHeading, fontSans, fontSatoshi } from "@/assets/fonts"; import { fontHeading, fontSans, fontSatoshi } from "@/assets/fonts";
import { SessionProvider } from "next-auth/react"; import { SessionProvider } from "next-auth/react";
import { ThemeProvider } from "next-themes"; import { ThemeProvider } from "next-themes";
import { ViewTransitions } from "next-view-transitions";
import { cn, constructMetadata } from "@/lib/utils"; import { cn, constructMetadata } from "@/lib/utils";
import { Toaster } from "@/components/ui/sonner"; import { Toaster } from "@/components/ui/sonner";
import { Analytics } from "@/components/analytics";
import ModalProvider from "@/components/modals/providers"; import ModalProvider from "@/components/modals/providers";
import { TailwindIndicator } from "@/components/tailwind-indicator"; import { TailwindIndicator } from "@/components/tailwind-indicator";
@@ -18,36 +18,38 @@ export const metadata = constructMetadata();
export default function RootLayout({ children }: RootLayoutProps) { export default function RootLayout({ children }: RootLayoutProps) {
return ( return (
<html lang="en" suppressHydrationWarning> <ViewTransitions>
<head> <html lang="en" suppressHydrationWarning>
<script <head>
defer <script
src="https://umami.oiov.dev/script.js" defer
data-website-id="56549e9d-61df-470d-a1b1-cbf12cfafe9d" src="https://umami.oiov.dev/script.js"
></script> data-website-id="56549e9d-61df-470d-a1b1-cbf12cfafe9d"
</head> ></script>
<body </head>
className={cn( <body
"min-h-screen bg-background font-sans antialiased", className={cn(
fontSans.variable, "min-h-screen bg-background font-sans antialiased",
fontHeading.variable, fontSans.variable,
fontSatoshi.variable, fontHeading.variable,
)} fontSatoshi.variable,
> )}
<SessionProvider> >
<ThemeProvider <SessionProvider>
attribute="class" <ThemeProvider
defaultTheme="system" attribute="class"
enableSystem defaultTheme="system"
disableTransitionOnChange enableSystem
> disableTransitionOnChange
<ModalProvider>{children}</ModalProvider> >
{/* <Analytics /> */} <ModalProvider>{children}</ModalProvider>
<Toaster richColors closeButton /> {/* <Analytics /> */}
<TailwindIndicator /> <Toaster richColors closeButton />
</ThemeProvider> <TailwindIndicator />
</SessionProvider> </ThemeProvider>
</body> </SessionProvider>
</html> </body>
</html>
</ViewTransitions>
); );
} }

View File

@@ -1,45 +0,0 @@
import Image from "next/image";
import Link from "next/link";
import { BLOG_AUTHORS } from "@/config/blog";
export default async function Author({
username,
imageOnly,
}: {
username: string;
imageOnly?: boolean;
}) {
const authors = BLOG_AUTHORS;
return imageOnly ? (
<Image
src={authors[username].image}
alt={authors[username].name}
width={32}
height={32}
className="size-8 rounded-full transition-all group-hover:brightness-90"
/>
) : (
<Link
href={`https://twitter.com/${authors[username].twitter}`}
className="group flex w-max items-center space-x-2.5"
target="_blank"
rel="noopener noreferrer"
>
<Image
src={authors[username].image}
alt={authors[username].name}
width={40}
height={40}
className="size-8 rounded-full transition-all group-hover:brightness-90 md:size-10"
/>
<div className="flex flex-col -space-y-0.5">
<p className="font-semibold text-foreground max-md:text-sm">
{authors[username].name}
</p>
<p className="text-sm text-muted-foreground">@{authors[username].twitter}</p>
</div>
</Link>
);
}

View File

@@ -1,85 +0,0 @@
import Image from "next/image";
import Link from "next/link";
import { Post } from "contentlayer/generated";
import { cn, formatDate, placeholderBlurhash } from "@/lib/utils";
import BlurImage from "../shared/blur-image";
import Author from "./author";
export function BlogCard({
data,
priority,
horizontale = false,
}: {
data: Post & {
blurDataURL: string;
};
priority?: boolean;
horizontale?: boolean;
}) {
return (
<article
className={cn(
"group relative",
horizontale
? "grid grid-cols-1 gap-3 md:grid-cols-2 md:gap-6"
: "flex flex-col space-y-2",
)}
>
{data.image && (
<div className="w-full overflow-hidden rounded-xl border">
<BlurImage
alt={data.title}
blurDataURL={data.blurDataURL ?? placeholderBlurhash}
className={cn(
"size-full object-cover object-center",
horizontale ? "lg:h-72" : null,
)}
width={800}
height={400}
priority={priority}
placeholder="blur"
src={data.image}
sizes="(max-width: 768px) 750px, 600px"
/>
</div>
)}
<div
className={cn(
"flex flex-1 flex-col",
horizontale ? "justify-center" : "justify-between",
)}
>
<div className="w-full">
<h2 className="my-1.5 line-clamp-2 font-heading text-2xl">
{data.title}
</h2>
{data.description && (
<p className="line-clamp-2 text-muted-foreground">
{data.description}
</p>
)}
</div>
<div className="mt-4 flex items-center space-x-3">
{/* <Author username={data.authors[0]} imageOnly /> */}
<div className="flex items-center -space-x-2">
{data.authors.map((author) => (
<Author username={author} key={data._id + author} imageOnly />
))}
</div>
{data.date && (
<p className="text-sm text-muted-foreground">
{formatDate(data.date)}
</p>
)}
</div>
</div>
<Link href={data.slug} className="absolute inset-0">
<span className="sr-only">View Article</span>
</Link>
</article>
);
}

View File

@@ -1,140 +0,0 @@
"use client";
import { useState } from "react";
import Link from "next/link";
import { useParams } from "next/navigation";
import { Check, List } from "lucide-react";
import { Drawer } from "vaul";
import { BLOG_CATEGORIES } from "@/config/blog";
import { cn } from "@/lib/utils";
import MaxWidthWrapper from "@/components/shared/max-width-wrapper";
export function BlogHeaderLayout() {
const [open, setOpen] = useState(false);
const { slug } = useParams() as { slug?: string };
const data = BLOG_CATEGORIES.find((category) => category.slug === slug);
const closeDrawer = () => {
setOpen(false);
};
return (
<>
<MaxWidthWrapper className="py-6 md:pb-8 md:pt-10">
<div className="max-w-screen-sm">
<h1 className="font-heading text-3xl md:text-4xl">
{data?.title || "Blog"}
</h1>
<p className="mt-3.5 text-base text-muted-foreground md:text-lg">
{data?.description ||
"Latest news and updates from Next Auth Roles Template."}
</p>
</div>
<nav className="mt-8 hidden w-full md:flex">
<ul
role="list"
className="flex w-full flex-1 gap-x-2 border-b text-[15px] text-muted-foreground"
>
<CategoryLink title="All" href="/blog" active={!slug} />
{BLOG_CATEGORIES.map((category) => (
<CategoryLink
key={category.slug}
title={category.title}
href={`/blog/category/${category.slug}`}
active={category.slug === slug}
/>
))}
<CategoryLink title="Guides" href="/guides" active={false} />
</ul>
</nav>
</MaxWidthWrapper>
<Drawer.Root open={open} onClose={closeDrawer}>
<Drawer.Trigger
onClick={() => setOpen(true)}
className="mb-8 flex w-full items-center border-y p-3 text-foreground/90 md:hidden"
>
<List className="size-[18px]" />
<p className="ml-2.5 text-sm font-medium">Categories</p>
</Drawer.Trigger>
<Drawer.Overlay
className="fixed inset-0 z-40 bg-background/80 backdrop-blur-sm"
onClick={closeDrawer}
/>
<Drawer.Portal>
<Drawer.Content className="fixed inset-x-0 bottom-0 z-50 mt-24 overflow-hidden rounded-t-[10px] border bg-background">
<div className="sticky top-0 z-20 flex w-full items-center justify-center bg-inherit">
<div className="my-3 h-1.5 w-16 rounded-full bg-muted-foreground/20" />
</div>
<ul role="list" className="mb-14 w-full p-3 text-muted-foreground">
<CategoryLink
title="All"
href="/blog"
active={!slug}
clickAction={closeDrawer}
mobile
/>
{BLOG_CATEGORIES.map((category) => (
<CategoryLink
key={category.slug}
title={category.title}
href={`/blog/category/${category.slug}`}
active={category.slug === slug}
clickAction={closeDrawer}
mobile
/>
))}
<CategoryLink
title="Guides"
href="/guides"
active={false}
mobile
/>
</ul>
</Drawer.Content>
<Drawer.Overlay />
</Drawer.Portal>
</Drawer.Root>
</>
);
}
const CategoryLink = ({
title,
href,
active,
mobile = false,
clickAction,
}: {
title: string;
href: string;
active: boolean;
mobile?: boolean;
clickAction?: () => void;
}) => {
return (
<Link href={href} onClick={clickAction}>
{mobile ? (
<li className="rounded-lg text-foreground hover:bg-muted">
<div className="flex items-center justify-between px-3 py-2 text-sm">
<span>{title}</span>
{active && <Check className="size-4" />}
</div>
</li>
) : (
<li
className={cn(
"-mb-px border-b-2 border-transparent font-medium text-muted-foreground hover:text-foreground",
{
"border-blue-600 text-foreground dark:border-blue-400": active,
},
)}
>
<div className="px-3 pb-3">{title}</div>
</li>
)}
</Link>
);
};

View File

@@ -1,23 +0,0 @@
import { Post } from "@/.contentlayer/generated";
import { BlogCard } from "./blog-card";
export function BlogPosts({
posts,
}: {
posts: (Post & {
blurDataURL: string;
})[];
}) {
return (
<main className="space-y-8">
<BlogCard data={posts[0]} horizontale priority />
<div className="grid gap-8 md:grid-cols-2 md:gap-x-6 md:gap-y-10 xl:grid-cols-3">
{posts.slice(1).map((post, idx) => (
<BlogCard data={post} key={post._id} priority={idx <= 2} />
))}
</div>
</main>
);
}

View File

@@ -1,7 +1,7 @@
"use client"; "use client";
import Link from "next/link";
import { usePathname } from "next/navigation"; import { usePathname } from "next/navigation";
import { Link } from "next-view-transitions";
import { NavItem } from "types"; import { NavItem } from "types";
import { docsConfig } from "@/config/docs"; import { docsConfig } from "@/config/docs";

View File

@@ -1,10 +1,10 @@
"use client"; "use client";
import { Fragment, useEffect, useState } from "react"; import { Fragment, useEffect, useState } from "react";
import Link from "next/link";
import { usePathname } from "next/navigation"; import { usePathname } from "next/navigation";
import { NavItem, SidebarNavItem } from "@/types"; import { NavItem, SidebarNavItem } from "@/types";
import { Menu, PanelLeftClose, PanelRightClose } from "lucide-react"; import { Menu, PanelLeftClose, PanelRightClose } from "lucide-react";
import { Link } from "next-view-transitions";
import { siteConfig } from "@/config/site"; import { siteConfig } from "@/config/site";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";

View File

@@ -50,9 +50,7 @@ export function NavBar({ scroll = false }: NavBarProps) {
<div className="flex gap-6 md:gap-10"> <div className="flex gap-6 md:gap-10">
<Link href="/" className="flex items-center space-x-1.5"> <Link href="/" className="flex items-center space-x-1.5">
<Icons.logo /> <Icons.logo />
<span className="font-satoshi text-xl font-bold"> <span className="text-xl font-bold">{siteConfig.name}</span>
{siteConfig.name}
</span>
</Link> </Link>
{links && links.length > 0 ? ( {links && links.length > 0 ? (

View File

@@ -38,19 +38,26 @@ export function SiteFooter({ className }: React.HTMLAttributes<HTMLElement>) {
<div className="border-t py-4"> <div className="border-t py-4">
<div className="container flex max-w-6xl items-center justify-between"> <div className="container flex max-w-6xl items-center justify-between">
{/* <span className="text-muted-foreground text-sm"> <p className="font-mono text-sm text-muted-foreground/70">
Copyright &copy; 2024. All rights reserved. &copy; 2024{" "}
</span> */}
<p className="text-left text-sm text-muted-foreground">
Built by{" "}
<Link <Link
href={siteConfig.links.twitter} href={siteConfig.links.github}
target="_blank" target="_blank"
rel="noreferrer" rel="noreferrer"
className="font-medium underline underline-offset-4" className="font-medium text-primary underline underline-offset-2"
> >
oiov oiov
</Link> </Link>
. Built with{" "}
<Link
href="https://nextjs.org?ref=wrdo"
target="_blank"
rel="noreferrer"
className="font-medium text-primary underline underline-offset-2"
>
Nextjs
</Link>
.
</p> </p>
<div className="flex items-center gap-3"> <div className="flex items-center gap-3">
@@ -58,7 +65,7 @@ export function SiteFooter({ className }: React.HTMLAttributes<HTMLElement>) {
href={siteConfig.links.github} href={siteConfig.links.github}
target="_blank" target="_blank"
rel="noreferrer" rel="noreferrer"
className="font-medium underline underline-offset-4" className="font-medium underline underline-offset-1"
> >
<Icons.gitHub className="size-5" /> <Icons.gitHub className="size-5" />
</Link> </Link>

View File

@@ -10,42 +10,41 @@ export default async function HeroLanding() {
<section className="space-y-6 py-12 sm:py-20 lg:py-24"> <section className="space-y-6 py-12 sm:py-20 lg:py-24">
<div className="container flex max-w-screen-md flex-col items-center gap-5 text-center"> <div className="container flex max-w-screen-md flex-col items-center gap-5 text-center">
<Link <Link
href="https://next-saas-stripe-starter.vercel.app/" href="https://wr.do"
className={cn( className={cn(
buttonVariants({ variant: "outline", size: "sm", rounded: "xl" }), buttonVariants({ variant: "outline", size: "sm", rounded: "xl" }),
"px-4", "px-4",
)} )}
target="_blank"
> >
<span className="mr-3">🎉</span> Free Next SaaS Starter Here! <span className="mr-3">🎉</span> WR.DO Beta Launching Now!
</Link> </Link>
<h1 className="text-balance font-satoshi text-[40px] font-black leading-[1.15] tracking-tight sm:text-5xl md:text-6xl md:leading-[1.15]"> <h1 className="text-balance font-satoshi text-[40px] font-black leading-[1.15] tracking-tight sm:text-5xl md:text-6xl md:leading-[1.15]">
Next.js Template with{" "} Craft DNS Records,{" "}
<span className="bg-gradient-to-r from-violet-600 via-blue-600 to-cyan-500 bg-clip-text text-transparent"> <span className="bg-gradient-to-r from-violet-600 via-blue-600 to-cyan-500 bg-clip-text text-transparent">
Auth & User Roles! Make Short Links
</span> </span>
</h1> </h1>
<p className="max-w-2xl text-balance text-muted-foreground sm:text-lg"> <p className="max-w-2xl text-balance text-muted-foreground sm:text-lg">
Minimalist. Sturdy. <b>Open Source</b>. <br /> Focus on your own idea Intuitive interface, powerful features. Get started
and... Nothing else! <br /> with DNS and short linking in minutes.
</p> </p>
<div className="flex justify-center space-x-2"> <div className="flex justify-center space-x-2">
<Link <Link
href="/docs" href="/dashboard"
prefetch={true} prefetch={true}
className={cn( className={cn(
buttonVariants({ rounded: "xl", size: "lg" }), buttonVariants({ rounded: "xl", size: "lg" }),
"gap-2 px-5 text-[15px]", "gap-2 px-5 text-[15px]",
)} )}
> >
<span>Installation Guide</span> <span>Dashboard</span>
<Icons.arrowRight className="size-4" /> <Icons.arrowRight className="size-4" />
</Link> </Link>
<Link <Link
href="https://github.com/mickasmt/next-auth-roles-template" href={siteConfig.links.github}
target="_blank" target="_blank"
rel="noreferrer" rel="noreferrer"
className={cn( className={cn(

View File

@@ -1,29 +0,0 @@
export const BLOG_CATEGORIES: {
title: string;
slug: "news" | "education";
description: string;
}[] = [
{
title: "News",
slug: "news",
description: "Updates and announcements from Next Template.",
},
{
title: "Education",
slug: "education",
description: "Educational content about template management.",
},
];
export const BLOG_AUTHORS = {
mickasmt: {
name: "mickasmt",
image: "/_static/avatars/mickasmt.png",
twitter: "miickasmt",
},
shadcn: {
name: "shadcn",
image: "/_static/avatars/shadcn.jpeg",
twitter: "shadcn",
},
};

View File

@@ -2,10 +2,6 @@ import { DocsConfig } from "types";
export const docsConfig: DocsConfig = { export const docsConfig: DocsConfig = {
mainNav: [ mainNav: [
{
title: "Blog",
href: "/blog",
},
], ],
sidebarNav: [ sidebarNav: [
{ {
@@ -28,10 +24,6 @@ export const docsConfig: DocsConfig = {
items: [ items: [
{ {
title: "Authentification", title: "Authentification",
href: "/docs/configuration/authentification",
icon: "page",
},
{
title: "Blog", title: "Blog",
href: "/docs/configuration/blog", href: "/docs/configuration/blog",
icon: "page", icon: "page",

View File

@@ -2,10 +2,6 @@ import { MarketingConfig } from "types";
export const marketingConfig: MarketingConfig = { export const marketingConfig: MarketingConfig = {
mainNav: [ mainNav: [
{
title: "Blog",
href: "/blog",
},
{ {
title: "Documentation", title: "Documentation",
href: "/docs", href: "/docs",

View File

@@ -7,7 +7,7 @@ const free_url_quota = env.NEXT_PUBLIC_FREE_URL_QUOTA;
const open_signup = env.NEXT_PUBLIC_OPEN_SIGNUP; const open_signup = env.NEXT_PUBLIC_OPEN_SIGNUP;
export const siteConfig: SiteConfig = { export const siteConfig: SiteConfig = {
name: "WRDO", name: "WR.DO",
description: "A DNS record distribution system", description: "A DNS record distribution system",
url: site_url, url: site_url,
ogImage: `${site_url}/_static/og.jpg`, ogImage: `${site_url}/_static/og.jpg`,
@@ -36,6 +36,7 @@ export const footerLinks: SidebarNavItem[] = [
title: "Product", title: "Product",
items: [ items: [
{ title: "Vmail", href: "https://vmail.dev" }, { title: "Vmail", href: "https://vmail.dev" },
{ title: "Moise", href: "https://moise.oiov.dev" },
{ title: "Inke", href: "https://inke.app" }, { title: "Inke", href: "https://inke.app" },
{ title: "Iconce", href: "https://iconce.com" }, { title: "Iconce", href: "https://iconce.com" },
], ],
@@ -44,7 +45,7 @@ export const footerLinks: SidebarNavItem[] = [
title: "Docs", title: "Docs",
items: [ items: [
{ title: "Introduction", href: "/docs" }, { title: "Introduction", href: "/docs" },
{ title: "How-To-Use", href: "#" }, { title: "Guide", href: "/docs/quick-start" },
], ],
}, },
]; ];

View File

@@ -1,226 +0,0 @@
---
title: Deploying Next.js Apps
description: How to deploy your Next.js apps on Vercel.
image: /_static/blog/blog-post-3.jpg
date: "2023-01-02"
authors:
- shadcn
- mickasmt
categories:
- education
- news
related:
- server-client-components
- preview-mode-headless-cms
---
<Callout type="info" twClass="mt-0">
The text below is from the [Tailwind
CSS](https://play.tailwindcss.com/uj1vGACRJA?layout=preview) docs. I copied it
here to test the markdown styles. **Tailwind is awesome. You should use it.**
</Callout>
Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.
By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you _really are_ just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.
We get lots of complaints about it actually, with people regularly asking us things like:
> Why is Tailwind removing the default styles on my `h1` elements? How do I disable this? What do you mean I lose all the other base styles too?
> We hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a `p` element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look _awesome_, not awful.
The `@tailwindcss/typography` plugin is our attempt to give you what you _actually_ want, without any of the downsides of doing something stupid like disabling our base styles.
It adds a new `prose` class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:
```html
<article class="prose">
<h1>Garlic bread with cheese: What the science tells us</h1>
<p>
For years parents have espoused the health benefits of eating garlic bread
with cheese to their children, with the food earning such an iconic status
in our culture that kids will often dress up as warm, cheesy loaf for
Halloween.
</p>
<p>
But a recent study shows that the celebrated appetizer may be linked to a
series of rabies cases springing up around the country.
</p>
</article>
```
For more information about how to use the plugin and the features it includes, [read the documentation](https://github.com/tailwindcss/typography/blob/master/README.md).
---
## What to expect from here on out
What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like **bold text**, unordered lists, ordered lists, code blocks, block quotes, _and even italics_.
It's important to cover all of these use cases for a few reasons:
1. We want everything to look good out of the box.
2. Really just the first reason, that's the whole point of the plugin.
3. Here's a third pretend reason though a list with three items looks more realistic than a list with two items.
Now we're going to try out another header style.
### Typography should be easy
So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.
Something a wise person once told me about typography is:
> Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.
It's probably important that images look okay here by default as well:
<Image
src="/_static/blog/blog-post-4.jpg"
width="718"
height="404"
alt="Image"
/>
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.
Now I'm going to show you an example of an unordered list to make sure that looks good, too:
- So here is the first item in this list.
- In this example we're keeping the items short.
- Later, we'll use longer, more complex list items.
And that's the end of this section.
## What if we stack headings?
### We should make sure that looks good, too.
Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.
### When a heading comes after a paragraph …
When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.
- **I often do this thing where list items have headings.**
For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.
I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.
- **Since this is a list, I need at least two items.**
I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.
- **It's not a bad idea to add a third item either.**
I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.
After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.
## Code should look okay by default.
I think most people are going to use [highlight.js](https://highlightjs.org/) or [Prism](https://prismjs.com/) or something if they want to style their code blocks but it wouldn't hurt to make them look _okay_ out of the box, even with no syntax highlighting.
Here's what a default `tailwind.config.js` file looks like at the time of writing:
```js
module.exports = {
purge: [],
theme: {
extend: {},
},
variants: {},
plugins: [],
};
```
Hopefully that looks good enough to you.
### What about nested lists?
Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.
1. **Nested lists are rarely a good idea.**
- You might feel like you are being really "organized" or something but you are just creating a gross shape on the screen that is hard to read.
- Nested navigation in UIs is a bad idea too, keep things as flat as possible.
- Nesting tons of folders in your source code is also not helpful.
2. **Since we need to have more items, here's another one.**
- I'm not sure if we'll bother styling more than two levels deep.
- Two is already too much, three is guaranteed to be a bad idea.
- If you nest four levels deep you belong in prison.
3. **Two items isn't really a list, three is good though.**
- Again please don't nest lists if you want people to actually read your content.
- Nobody wants to look at this.
- I'm upset that we even have to bother styling this.
The most annoying thing about lists in Markdown is that `<li>` elements aren't given a child `<p>` tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.
- **For example, here's another nested list.**
But this time with a second paragraph.
- These list items won't have `<p>` tags
- Because they are only one line each
- **But in this second top-level list item, they will.**
This is especially annoying because of the spacing on this paragraph.
- As you can see here, because I've added a second line, this list item now has a `<p>` tag.
This is the second line I'm talking about by the way.
- Finally here's another list item so it's more like a list.
- A closing list item, but with no nested list, because why not?
And finally a sentence to close off this section.
## There are other elements we need to style
I almost forgot to mention links, like [this link to the Tailwind CSS website](https://tailwindcss.com). We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.
We even included table styles, check it out:
| Wrestler | Origin | Finisher |
| ----------------------- | ------------ | ------------------ |
| Bret "The Hitman" Hart | Calgary, AB | Sharpshooter |
| Stone Cold Steve Austin | Austin, TX | Stone Cold Stunner |
| Randy Savage | Sarasota, FL | Elbow Drop |
| Vader | Boulder, CO | Vader Bomb |
| Razor Ramon | Chuluota, FL | Razor's Edge |
We also need to make sure inline code looks good, like if I wanted to talk about `<span>` elements or tell you the good news about `@tailwindcss/typography`.
### Sometimes I even use `code` in headings
Even though it's probably a bad idea, and historically I've had a hard time making it look good. This _"wrap the code blocks in backticks"_ trick works pretty well though really.
Another thing I've done in the past is put a `code` tag inside of a link, like if I wanted to tell you about the [`tailwindcss/docs`](https://github.com/tailwindcss/docs) repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.
#### We haven't used an `h4` yet
But now we have. Please don't use `h5` or `h6` in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a `before` pseudo-element to scream at you if you use an `h5` or `h6`.
We don't style them at all out of the box because `h4` elements are already so small that they are the same size as the body copy. What are we supposed to do with an `h5`, make it _smaller_ than the body copy? No thanks.
### We still need to think about stacked headings though.
#### Let's make sure we don't screw that up with `h4` elements, either.
Phew, with any luck we have styled the headings above this text and they look pretty good.
Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.
What I've written here is probably long enough, but adding this final sentence can't hurt.
## GitHub Flavored Markdown
I've also added support for GitHub Flavored Mardown using `remark-gfm`.
With `remark-gfm`, we get a few extra features in our markdown. Example: autolink literals.
A link like www.example.com or https://example.com would automatically be converted into an `a` tag.
This works for email links too: contact@example.com.

View File

@@ -1,224 +0,0 @@
---
title: Dynamic Routing and Static Regeneration
description: How to use incremental static regeneration using dynamic routes.
image: /_static/blog/blog-post-2.jpg
date: "2023-03-04"
authors:
- shadcn
categories:
- news
related:
- server-client-components
- preview-mode-headless-cms
---
<Callout type="info" twClass="mt-0">
The text below is from the [Tailwind
CSS](https://play.tailwindcss.com/uj1vGACRJA?layout=preview) docs. I copied it
here to test the markdown styles. **Tailwind is awesome. You should use it.**
</Callout>
Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.
By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you _really are_ just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.
We get lots of complaints about it actually, with people regularly asking us things like:
> Why is Tailwind removing the default styles on my `h1` elements? How do I disable this? What do you mean I lose all the other base styles too?
> We hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a `p` element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look _awesome_, not awful.
The `@tailwindcss/typography` plugin is our attempt to give you what you _actually_ want, without any of the downsides of doing something stupid like disabling our base styles.
It adds a new `prose` class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:
```html
<article class="prose">
<h1>Garlic bread with cheese: What the science tells us</h1>
<p>
For years parents have espoused the health benefits of eating garlic bread
with cheese to their children, with the food earning such an iconic status
in our culture that kids will often dress up as warm, cheesy loaf for
Halloween.
</p>
<p>
But a recent study shows that the celebrated appetizer may be linked to a
series of rabies cases springing up around the country.
</p>
</article>
```
For more information about how to use the plugin and the features it includes, [read the documentation](https://github.com/tailwindcss/typography/blob/master/README.md).
---
## What to expect from here on out
What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like **bold text**, unordered lists, ordered lists, code blocks, block quotes, _and even italics_.
It's important to cover all of these use cases for a few reasons:
1. We want everything to look good out of the box.
2. Really just the first reason, that's the whole point of the plugin.
3. Here's a third pretend reason though a list with three items looks more realistic than a list with two items.
Now we're going to try out another header style.
### Typography should be easy
So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.
Something a wise person once told me about typography is:
> Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.
It's probably important that images look okay here by default as well:
<Image
src="/_static/blog/blog-post-4.jpg"
width="718"
height="404"
alt="Image"
/>
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.
Now I'm going to show you an example of an unordered list to make sure that looks good, too:
- So here is the first item in this list.
- In this example we're keeping the items short.
- Later, we'll use longer, more complex list items.
And that's the end of this section.
## What if we stack headings?
### We should make sure that looks good, too.
Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.
### When a heading comes after a paragraph …
When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.
- **I often do this thing where list items have headings.**
For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.
I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.
- **Since this is a list, I need at least two items.**
I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.
- **It's not a bad idea to add a third item either.**
I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.
After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.
## Code should look okay by default.
I think most people are going to use [highlight.js](https://highlightjs.org/) or [Prism](https://prismjs.com/) or something if they want to style their code blocks but it wouldn't hurt to make them look _okay_ out of the box, even with no syntax highlighting.
Here's what a default `tailwind.config.js` file looks like at the time of writing:
```js
module.exports = {
purge: [],
theme: {
extend: {},
},
variants: {},
plugins: [],
};
```
Hopefully that looks good enough to you.
### What about nested lists?
Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.
1. **Nested lists are rarely a good idea.**
- You might feel like you are being really "organized" or something but you are just creating a gross shape on the screen that is hard to read.
- Nested navigation in UIs is a bad idea too, keep things as flat as possible.
- Nesting tons of folders in your source code is also not helpful.
2. **Since we need to have more items, here's another one.**
- I'm not sure if we'll bother styling more than two levels deep.
- Two is already too much, three is guaranteed to be a bad idea.
- If you nest four levels deep you belong in prison.
3. **Two items isn't really a list, three is good though.**
- Again please don't nest lists if you want people to actually read your content.
- Nobody wants to look at this.
- I'm upset that we even have to bother styling this.
The most annoying thing about lists in Markdown is that `<li>` elements aren't given a child `<p>` tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.
- **For example, here's another nested list.**
But this time with a second paragraph.
- These list items won't have `<p>` tags
- Because they are only one line each
- **But in this second top-level list item, they will.**
This is especially annoying because of the spacing on this paragraph.
- As you can see here, because I've added a second line, this list item now has a `<p>` tag.
This is the second line I'm talking about by the way.
- Finally here's another list item so it's more like a list.
- A closing list item, but with no nested list, because why not?
And finally a sentence to close off this section.
## There are other elements we need to style
I almost forgot to mention links, like [this link to the Tailwind CSS website](https://tailwindcss.com). We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.
We even included table styles, check it out:
| Wrestler | Origin | Finisher |
| ----------------------- | ------------ | ------------------ |
| Bret "The Hitman" Hart | Calgary, AB | Sharpshooter |
| Stone Cold Steve Austin | Austin, TX | Stone Cold Stunner |
| Randy Savage | Sarasota, FL | Elbow Drop |
| Vader | Boulder, CO | Vader Bomb |
| Razor Ramon | Chuluota, FL | Razor's Edge |
We also need to make sure inline code looks good, like if I wanted to talk about `<span>` elements or tell you the good news about `@tailwindcss/typography`.
### Sometimes I even use `code` in headings
Even though it's probably a bad idea, and historically I've had a hard time making it look good. This _"wrap the code blocks in backticks"_ trick works pretty well though really.
Another thing I've done in the past is put a `code` tag inside of a link, like if I wanted to tell you about the [`tailwindcss/docs`](https://github.com/tailwindcss/docs) repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.
#### We haven't used an `h4` yet
But now we have. Please don't use `h5` or `h6` in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a `before` pseudo-element to scream at you if you use an `h5` or `h6`.
We don't style them at all out of the box because `h4` elements are already so small that they are the same size as the body copy. What are we supposed to do with an `h5`, make it _smaller_ than the body copy? No thanks.
### We still need to think about stacked headings though.
#### Let's make sure we don't screw that up with `h4` elements, either.
Phew, with any luck we have styled the headings above this text and they look pretty good.
Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.
What I've written here is probably long enough, but adding this final sentence can't hurt.
## GitHub Flavored Markdown
I've also added support for GitHub Flavored Mardown using `remark-gfm`.
With `remark-gfm`, we get a few extra features in our markdown. Example: autolink literals.
A link like www.example.com or https://example.com would automatically be converted into an `a` tag.
This works for email links too: contact@example.com.

View File

@@ -1,219 +0,0 @@
---
title: Preview Mode for Headless CMS
description: How to implement preview mode in your headless CMS.
date: "2023-04-09"
image: /_static/blog/blog-post-1.jpg
authors:
- shadcn
- mickasmt
categories:
- education
related:
- deploying-next-apps
- dynamic-routing-static-regeneration
---
Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.
By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you _really are_ just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.
We get lots of complaints about it actually, with people regularly asking us things like:
> Why is Tailwind removing the default styles on my `h1` elements? How do I disable this? What do you mean I lose all the other base styles too?
> We hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a `p` element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look _awesome_, not awful.
The `@tailwindcss/typography` plugin is our attempt to give you what you _actually_ want, without any of the downsides of doing something stupid like disabling our base styles.
It adds a new `prose` class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:
```html
<article class="prose">
<h1>Garlic bread with cheese: What the science tells us</h1>
<p>
For years parents have espoused the health benefits of eating garlic bread
with cheese to their children, with the food earning such an iconic status
in our culture that kids will often dress up as warm, cheesy loaf for
Halloween.
</p>
<p>
But a recent study shows that the celebrated appetizer may be linked to a
series of rabies cases springing up around the country.
</p>
</article>
```
For more information about how to use the plugin and the features it includes, [read the documentation](https://github.com/tailwindcss/typography/blob/master/README.md).
---
## What to expect from here on out
What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like **bold text**, unordered lists, ordered lists, code blocks, block quotes, _and even italics_.
It's important to cover all of these use cases for a few reasons:
1. We want everything to look good out of the box.
2. Really just the first reason, that's the whole point of the plugin.
3. Here's a third pretend reason though a list with three items looks more realistic than a list with two items.
Now we're going to try out another header style.
### Typography should be easy
So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.
Something a wise person once told me about typography is:
> Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.
It's probably important that images look okay here by default as well:
<Image
src="/_static/blog/blog-post-4.jpg"
width="718"
height="404"
alt="Image"
/>
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.
Now I'm going to show you an example of an unordered list to make sure that looks good, too:
- So here is the first item in this list.
- In this example we're keeping the items short.
- Later, we'll use longer, more complex list items.
And that's the end of this section.
## What if we stack headings?
### We should make sure that looks good, too.
Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.
### When a heading comes after a paragraph …
When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.
- **I often do this thing where list items have headings.**
For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.
I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.
- **Since this is a list, I need at least two items.**
I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.
- **It's not a bad idea to add a third item either.**
I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.
After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.
## Code should look okay by default.
I think most people are going to use [highlight.js](https://highlightjs.org/) or [Prism](https://prismjs.com/) or something if they want to style their code blocks but it wouldn't hurt to make them look _okay_ out of the box, even with no syntax highlighting.
Here's what a default `tailwind.config.js` file looks like at the time of writing:
```js
module.exports = {
purge: [],
theme: {
extend: {},
},
variants: {},
plugins: [],
};
```
Hopefully that looks good enough to you.
### What about nested lists?
Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.
1. **Nested lists are rarely a good idea.**
- You might feel like you are being really "organized" or something but you are just creating a gross shape on the screen that is hard to read.
- Nested navigation in UIs is a bad idea too, keep things as flat as possible.
- Nesting tons of folders in your source code is also not helpful.
2. **Since we need to have more items, here's another one.**
- I'm not sure if we'll bother styling more than two levels deep.
- Two is already too much, three is guaranteed to be a bad idea.
- If you nest four levels deep you belong in prison.
3. **Two items isn't really a list, three is good though.**
- Again please don't nest lists if you want people to actually read your content.
- Nobody wants to look at this.
- I'm upset that we even have to bother styling this.
The most annoying thing about lists in Markdown is that `<li>` elements aren't given a child `<p>` tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.
- **For example, here's another nested list.**
But this time with a second paragraph.
- These list items won't have `<p>` tags
- Because they are only one line each
- **But in this second top-level list item, they will.**
This is especially annoying because of the spacing on this paragraph.
- As you can see here, because I've added a second line, this list item now has a `<p>` tag.
This is the second line I'm talking about by the way.
- Finally here's another list item so it's more like a list.
- A closing list item, but with no nested list, because why not?
And finally a sentence to close off this section.
## There are other elements we need to style
I almost forgot to mention links, like [this link to the Tailwind CSS website](https://tailwindcss.com). We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.
We even included table styles, check it out:
| Wrestler | Origin | Finisher |
| ----------------------- | ------------ | ------------------ |
| Bret "The Hitman" Hart | Calgary, AB | Sharpshooter |
| Stone Cold Steve Austin | Austin, TX | Stone Cold Stunner |
| Randy Savage | Sarasota, FL | Elbow Drop |
| Vader | Boulder, CO | Vader Bomb |
| Razor Ramon | Chuluota, FL | Razor's Edge |
We also need to make sure inline code looks good, like if I wanted to talk about `<span>` elements or tell you the good news about `@tailwindcss/typography`.
### Sometimes I even use `code` in headings
Even though it's probably a bad idea, and historically I've had a hard time making it look good. This _"wrap the code blocks in backticks"_ trick works pretty well though really.
Another thing I've done in the past is put a `code` tag inside of a link, like if I wanted to tell you about the [`tailwindcss/docs`](https://github.com/tailwindcss/docs) repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.
#### We haven't used an `h4` yet
But now we have. Please don't use `h5` or `h6` in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a `before` pseudo-element to scream at you if you use an `h5` or `h6`.
We don't style them at all out of the box because `h4` elements are already so small that they are the same size as the body copy. What are we supposed to do with an `h5`, make it _smaller_ than the body copy? No thanks.
### We still need to think about stacked headings though.
#### Let's make sure we don't screw that up with `h4` elements, either.
Phew, with any luck we have styled the headings above this text and they look pretty good.
Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.
What I've written here is probably long enough, but adding this final sentence can't hurt.
## GitHub Flavored Markdown
I've also added support for GitHub Flavored Mardown using `remark-gfm`.
With `remark-gfm`, we get a few extra features in our markdown. Example: autolink literals.
A link like www.example.com or https://example.com would automatically be converted into an `a` tag.
This works for email links too: contact@example.com.

View File

@@ -1,218 +0,0 @@
---
title: Server and Client Components
description: React Server Components allow developers to build applications that span the server and client.
image: /_static/blog/blog-post-4.jpg
date: "2023-01-08"
authors:
- mickasmt
categories:
- news
related:
- deploying-next-apps
- dynamic-routing-static-regeneration
---
Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.
By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you _really are_ just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.
We get lots of complaints about it actually, with people regularly asking us things like:
> Why is Tailwind removing the default styles on my `h1` elements? How do I disable this? What do you mean I lose all the other base styles too?
> We hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a `p` element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look _awesome_, not awful.
The `@tailwindcss/typography` plugin is our attempt to give you what you _actually_ want, without any of the downsides of doing something stupid like disabling our base styles.
It adds a new `prose` class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:
```html
<article class="prose">
<h1>Garlic bread with cheese: What the science tells us</h1>
<p>
For years parents have espoused the health benefits of eating garlic bread
with cheese to their children, with the food earning such an iconic status
in our culture that kids will often dress up as warm, cheesy loaf for
Halloween.
</p>
<p>
But a recent study shows that the celebrated appetizer may be linked to a
series of rabies cases springing up around the country.
</p>
</article>
```
For more information about how to use the plugin and the features it includes, [read the documentation](https://github.com/tailwindcss/typography/blob/master/README.md).
---
## What to expect from here on out
What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like **bold text**, unordered lists, ordered lists, code blocks, block quotes, _and even italics_.
It's important to cover all of these use cases for a few reasons:
1. We want everything to look good out of the box.
2. Really just the first reason, that's the whole point of the plugin.
3. Here's a third pretend reason though a list with three items looks more realistic than a list with two items.
Now we're going to try out another header style.
### Typography should be easy
So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.
Something a wise person once told me about typography is:
> Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.
It's probably important that images look okay here by default as well:
<Image
src="/_static/blog/blog-post-4.jpg"
width="718"
height="404"
alt="Image"
/>
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.
Now I'm going to show you an example of an unordered list to make sure that looks good, too:
- So here is the first item in this list.
- In this example we're keeping the items short.
- Later, we'll use longer, more complex list items.
And that's the end of this section.
## What if we stack headings?
### We should make sure that looks good, too.
Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.
### When a heading comes after a paragraph …
When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.
- **I often do this thing where list items have headings.**
For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.
I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.
- **Since this is a list, I need at least two items.**
I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.
- **It's not a bad idea to add a third item either.**
I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.
After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.
## Code should look okay by default.
I think most people are going to use [highlight.js](https://highlightjs.org/) or [Prism](https://prismjs.com/) or something if they want to style their code blocks but it wouldn't hurt to make them look _okay_ out of the box, even with no syntax highlighting.
Here's what a default `tailwind.config.js` file looks like at the time of writing:
```js
module.exports = {
purge: [],
theme: {
extend: {},
},
variants: {},
plugins: [],
};
```
Hopefully that looks good enough to you.
### What about nested lists?
Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.
1. **Nested lists are rarely a good idea.**
- You might feel like you are being really "organized" or something but you are just creating a gross shape on the screen that is hard to read.
- Nested navigation in UIs is a bad idea too, keep things as flat as possible.
- Nesting tons of folders in your source code is also not helpful.
2. **Since we need to have more items, here's another one.**
- I'm not sure if we'll bother styling more than two levels deep.
- Two is already too much, three is guaranteed to be a bad idea.
- If you nest four levels deep you belong in prison.
3. **Two items isn't really a list, three is good though.**
- Again please don't nest lists if you want people to actually read your content.
- Nobody wants to look at this.
- I'm upset that we even have to bother styling this.
The most annoying thing about lists in Markdown is that `<li>` elements aren't given a child `<p>` tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.
- **For example, here's another nested list.**
But this time with a second paragraph.
- These list items won't have `<p>` tags
- Because they are only one line each
- **But in this second top-level list item, they will.**
This is especially annoying because of the spacing on this paragraph.
- As you can see here, because I've added a second line, this list item now has a `<p>` tag.
This is the second line I'm talking about by the way.
- Finally here's another list item so it's more like a list.
- A closing list item, but with no nested list, because why not?
And finally a sentence to close off this section.
## There are other elements we need to style
I almost forgot to mention links, like [this link to the Tailwind CSS website](https://tailwindcss.com). We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.
We even included table styles, check it out:
| Wrestler | Origin | Finisher |
| ----------------------- | ------------ | ------------------ |
| Bret "The Hitman" Hart | Calgary, AB | Sharpshooter |
| Stone Cold Steve Austin | Austin, TX | Stone Cold Stunner |
| Randy Savage | Sarasota, FL | Elbow Drop |
| Vader | Boulder, CO | Vader Bomb |
| Razor Ramon | Chuluota, FL | Razor's Edge |
We also need to make sure inline code looks good, like if I wanted to talk about `<span>` elements or tell you the good news about `@tailwindcss/typography`.
### Sometimes I even use `code` in headings
Even though it's probably a bad idea, and historically I've had a hard time making it look good. This _"wrap the code blocks in backticks"_ trick works pretty well though really.
Another thing I've done in the past is put a `code` tag inside of a link, like if I wanted to tell you about the [`tailwindcss/docs`](https://github.com/tailwindcss/docs) repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.
#### We haven't used an `h4` yet
But now we have. Please don't use `h5` or `h6` in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a `before` pseudo-element to scream at you if you use an `h5` or `h6`.
We don't style them at all out of the box because `h4` elements are already so small that they are the same size as the body copy. What are we supposed to do with an `h5`, make it _smaller_ than the body copy? No thanks.
### We still need to think about stacked headings though.
#### Let's make sure we don't screw that up with `h4` elements, either.
Phew, with any luck we have styled the headings above this text and they look pretty good.
Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.
What I've written here is probably long enough, but adding this final sentence can't hurt.
## GitHub Flavored Markdown
I've also added support for GitHub Flavored Mardown using `remark-gfm`.
With `remark-gfm`, we get a few extra features in our markdown. Example: autolink literals.
A link like www.example.com or https://example.com would automatically be converted into an `a` tag.
This works for email links too: contact@example.com.

View File

@@ -1,120 +0,0 @@
---
title: Blog
description: How works blog with categories and authors.
---
Blog posts can have multiple categories, authors and related posts.
## Authors
### Create one author
Blog posts can have **one or multiple authors**. <br /> Add a new object with **name, image url and twitter handle** to add a new author to your blog.
```ts title="config/blog.ts" {7-11}
export const BLOG_AUTHORS = {
mickasmt: {
name: "mickasmt",
image: "/_static/avatars/mickasmt.png",
twitter: "miickasmt",
},
newauthor: {
name: "shadcn",
image: "/_static/avatars/shadcn.jpeg",
twitter: "shadcn",
},
};
```
### Add in a blog post
Add your new author in your blog post like that :
```mdx {6-8}
---
title: Deploying Next.js Apps
description: How to deploy your Next.js apps on Vercel.
image: /_static/blog/blog-post-3.jpg
date: "2023-01-02"
authors:
- newauthor
- mickasmt
categories:
- news
related:
- server-client-components
- preview-mode-headless-cms
---
```
## Categories
### Create one category
Add a new object and a slug to add a new category to your blog.
```ts title="config/blog.ts" {3,6-10}
export const BLOG_CATEGORIES: {
title: string;
slug: "news" | "education";
description: string;
}[] = [
{
title: "News",
slug: "news",
description: "Updates and announcements from Next Template.",
},
{
title: "Education",
slug: "education",
description: "Educational content about SaaS management.",
},
];
```
### Add in a blog post
Add your new author in your blog post like that :
```mdx {9-10}
---
title: Deploying Next.js Apps
description: How to deploy your Next.js apps on Vercel.
image: /_static/blog/blog-post-3.jpg
date: "2023-01-02"
authors:
- newauthor
- mickasmt
categories:
- news
related:
- server-client-components
- preview-mode-headless-cms
---
```
<Callout type="warning">
The blog post can belong to multiple categories, but currently, only the first
category in the list is being displayed.
</Callout>
## Related posts
Each blog post can have a list of related posts. <br/> Get the filenames of the blog posts that you want and remove the `.mdx` or `.md`. That's all!
```mdx {11-13}
---
title: Deploying Next.js Apps
description: How to deploy your Next.js apps on Vercel.
image: /_static/blog/blog-post-3.jpg
date: "2023-01-02"
authors:
- newauthor
- mickasmt
categories:
- news
related:
- server-client-components
- preview-mode-headless-cms
---
```

View File

@@ -48,54 +48,6 @@ export const Doc = defineDocumentType(() => ({
computedFields: defaultComputedFields, computedFields: defaultComputedFields,
})); }));
export const Post = defineDocumentType(() => ({
name: "Post",
filePathPattern: `blog/**/*.mdx`,
contentType: "mdx",
fields: {
title: {
type: "string",
required: true,
},
description: {
type: "string",
},
date: {
type: "date",
required: true,
},
published: {
type: "boolean",
default: true,
},
image: {
type: "string",
required: true,
},
authors: {
type: "list",
of: { type: "string" },
required: true,
},
categories: {
type: "list",
of: {
type: "enum",
options: ["news", "education"],
default: "news",
},
required: true,
},
related: {
type: "list",
of: {
type: "string",
},
},
},
computedFields: defaultComputedFields,
}));
export const Page = defineDocumentType(() => ({ export const Page = defineDocumentType(() => ({
name: "Page", name: "Page",
filePathPattern: `pages/**/*.mdx`, filePathPattern: `pages/**/*.mdx`,
@@ -114,7 +66,7 @@ export const Page = defineDocumentType(() => ({
export default makeSource({ export default makeSource({
contentDirPath: "./content", contentDirPath: "./content",
documentTypes: [Page, Doc, Post], documentTypes: [Page, Doc],
mdx: { mdx: {
remarkPlugins: [remarkGfm], remarkPlugins: [remarkGfm],
rehypePlugins: [ rehypePlugins: [

View File

@@ -71,6 +71,7 @@
"next-auth": "5.0.0-beta.18", "next-auth": "5.0.0-beta.18",
"next-contentlayer2": "^0.5.0", "next-contentlayer2": "^0.5.0",
"next-themes": "^0.3.0", "next-themes": "^0.3.0",
"next-view-transitions": "^0.3.0",
"nodemailer": "^6.9.14", "nodemailer": "^6.9.14",
"prop-types": "^15.8.1", "prop-types": "^15.8.1",
"react": "18.3.1", "react": "18.3.1",

16
pnpm-lock.yaml generated
View File

@@ -164,6 +164,9 @@ importers:
next-themes: next-themes:
specifier: ^0.3.0 specifier: ^0.3.0
version: 0.3.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) version: 0.3.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
next-view-transitions:
specifier: ^0.3.0
version: 0.3.0(next@14.2.5(@babel/core@7.24.5)(@opentelemetry/api@1.8.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
nodemailer: nodemailer:
specifier: ^6.9.14 specifier: ^6.9.14
version: 6.9.14 version: 6.9.14
@@ -4513,6 +4516,13 @@ packages:
react: ^16.8 || ^17 || ^18 react: ^16.8 || ^17 || ^18
react-dom: ^16.8 || ^17 || ^18 react-dom: ^16.8 || ^17 || ^18
next-view-transitions@0.3.0:
resolution: {integrity: sha512-EfMG4sQR48Q40apCl0rWqTvpDNk4TcdlFjcsGd2ZOBJMNlwfuB8lnwhOL5A0kKWnZwXlMgDPFXY7qwoOY+NhtQ==}
peerDependencies:
next: ^14.0.0
react: ^18.2.0
react-dom: ^18.2.0
next@14.1.4: next@14.1.4:
resolution: {integrity: sha512-1WTaXeSrUwlz/XcnhGTY7+8eiaFvdet5z9u3V2jb+Ek1vFo0VhHKSAIJvDWfQpttWjnyw14kBeq28TPq7bTeEQ==} resolution: {integrity: sha512-1WTaXeSrUwlz/XcnhGTY7+8eiaFvdet5z9u3V2jb+Ek1vFo0VhHKSAIJvDWfQpttWjnyw14kBeq28TPq7bTeEQ==}
engines: {node: '>=18.17.0'} engines: {node: '>=18.17.0'}
@@ -10856,6 +10866,12 @@ snapshots:
react: 18.3.1 react: 18.3.1
react-dom: 18.3.1(react@18.3.1) react-dom: 18.3.1(react@18.3.1)
next-view-transitions@0.3.0(next@14.2.5(@babel/core@7.24.5)(@opentelemetry/api@1.8.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1):
dependencies:
next: 14.2.5(@babel/core@7.24.5)(@opentelemetry/api@1.8.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
react: 18.3.1
react-dom: 18.3.1(react@18.3.1)
next@14.1.4(@babel/core@7.24.5)(@opentelemetry/api@1.8.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): next@14.1.4(@babel/core@7.24.5)(@opentelemetry/api@1.8.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1):
dependencies: dependencies:
'@next/env': 14.1.4 '@next/env': 14.1.4

Binary file not shown.

Before

Width:  |  Height:  |  Size: 318 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -110,10 +110,10 @@
.grids { .grids {
background-image: linear-gradient( background-image: linear-gradient(
0deg, 0deg,
rgba(0, 0, 0, 0.11) 1px, rgba(0, 0, 0, 0.04) 1px,
transparent 0 transparent 0
), ),
linear-gradient(90deg, rgba(0, 0, 0, 0.11) 1px, transparent 0); linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 0);
background-position: 50%; background-position: 50%;
background-size: 22px 22px; background-size: 20px 20px;
} }