diff --git a/app/(main)/Footer.tsx b/app/(main)/Footer.tsx index 1ae92671..a47ae6be 100644 --- a/app/(main)/Footer.tsx +++ b/app/(main)/Footer.tsx @@ -2,6 +2,7 @@ import Link from 'next/link' import React from 'react' import { CursorClickIcon, UsersIcon } from '~/assets' +import { PeekabooLink } from '~/components/links/PeekabooLink' import { Container } from '~/components/ui/Container' import { kvKeys } from '~/config/kv' import { navigationItems } from '~/config/nav' @@ -100,7 +101,10 @@ export function Footer() {

- © 1995 - {new Date().getFullYear()} Cali Castle. + © {new Date().getFullYear()} Cali Castle. 网站已开源: + + GitHub +

diff --git a/app/prism.css b/app/prism.css index c89ae059..f85dd921 100644 --- a/app/prism.css +++ b/app/prism.css @@ -2,6 +2,20 @@ --tw-prose-pre-bg: rgba(245, 245, 245, .05); --tw-prose-pre-code: theme('colors.zinc.600'); background: linear-gradient(to top, rgba(235, 235, 235, .3) 0%, rgba(255, 255, 255, 0.1) 100%); + font-size: 12px; + padding: 1rem; + @apply antialiased; +} + +[data-blockid]:not([data-filename]) > .prismjs { + @apply rounded-t-3xl; +} + +@screen md { + .prismjs { + font-size: 0.875rem; + padding: 1.5rem; + } } .dark { diff --git a/components/portable-text/PortableTextCodeBlock.tsx b/components/portable-text/PortableTextCodeBlock.tsx index 5fd0ccb3..0e1f8e30 100644 --- a/components/portable-text/PortableTextCodeBlock.tsx +++ b/components/portable-text/PortableTextCodeBlock.tsx @@ -35,7 +35,8 @@ export function PortableTextCodeBlock({ return (
@@ -43,7 +44,7 @@ export function PortableTextCodeBlock({ <>
- {value.filename && ( + {Boolean(value.filename) && ( <>
{value.filename}