mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
refactor: remove unnecessary comments (#25)
Remove unnecessary comments in `src/utils/generateOgImage.tsx`.
This commit is contained in:
@@ -39,7 +39,6 @@ const ogImage = (text: string) => {
|
|||||||
border: "4px solid #000",
|
border: "4px solid #000",
|
||||||
background: "#ecebeb",
|
background: "#ecebeb",
|
||||||
opacity: "0.9",
|
opacity: "0.9",
|
||||||
// filter: "blur(10px)",
|
|
||||||
borderRadius: "4px",
|
borderRadius: "4px",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
@@ -53,7 +52,6 @@ const ogImage = (text: string) => {
|
|||||||
style={{
|
style={{
|
||||||
border: "4px solid #000",
|
border: "4px solid #000",
|
||||||
background: "#fefbfb",
|
background: "#fefbfb",
|
||||||
// boxShadow: "24px 26px 8px 0px #ccc ",
|
|
||||||
borderRadius: "4px",
|
borderRadius: "4px",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
@@ -118,7 +116,6 @@ const ogImage = (text: string) => {
|
|||||||
const options: SatoriOptions = {
|
const options: SatoriOptions = {
|
||||||
width: 1200,
|
width: 1200,
|
||||||
height: 630,
|
height: 630,
|
||||||
// debug: true,
|
|
||||||
embedFont: true,
|
embedFont: true,
|
||||||
fonts: [
|
fonts: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user