Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ai-box
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
青山
ai-box
Commits
2a056e14
Commit
2a056e14
authored
Feb 25, 2025
by
fisherdaddy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: Enhance markdown preview styling and template design
parent
59532563
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
MarkdownToImage.jsx
src/components/MarkdownToImage.jsx
+16
-16
No files found.
src/components/MarkdownToImage.jsx
View file @
2a056e14
...
...
@@ -11,45 +11,45 @@ import LoadingOverlay from './LoadingOverlay';
const
templates
=
[
{
name
:
'simple'
,
bgColor
:
'
#ffffff
'
,
textColor
:
'#
333333
'
,
bgColor
:
'
linear-gradient(135deg, #ffffff 0%, #f5f7ff 100%)
'
,
textColor
:
'#
2d3748
'
,
font
:
'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'
,
padding
:
'40px'
padding
:
'40px
45px
'
},
{
name
:
'ai-style'
,
bgColor
:
'linear-gradient(1
35deg, #6366F1 0%, #4F46E5
100%)'
,
bgColor
:
'linear-gradient(1
20deg, #0A2463 0%, #3E92CC
100%)'
,
textColor
:
'#ffffff'
,
font
:
'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'
,
padding
:
'40px'
padding
:
'40px
45px
'
},
{
name
:
'dark'
,
bgColor
:
'
#2d3748
'
,
textColor
:
'#f
fffff
'
,
bgColor
:
'
linear-gradient(135deg, #1a202c 0%, #2d3748 100%)
'
,
textColor
:
'#f
7fafc
'
,
font
:
'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'
,
padding
:
'40px'
padding
:
'40px
45px
'
},
{
name
:
'paper'
,
bgColor
:
'
#fdf6e3
'
,
textColor
:
'#
333333
'
,
bgColor
:
'
linear-gradient(135deg, #fdf6e3 0%, #f9f3db 100%)
'
,
textColor
:
'#
433422
'
,
font
:
'Georgia, "Nimbus Roman No9 L", "Songti SC", serif'
,
padding
:
'40px'
padding
:
'40px
45px
'
},
{
name
:
'minimal'
,
bgColor
:
'
#f8f9fa
'
,
textColor
:
'#1a
1a1a
'
,
bgColor
:
'
linear-gradient(135deg, #f8f9fa 0%, #edf2f7 100%)
'
,
textColor
:
'#1a
202c
'
,
font
:
'-apple-system, "SF Pro Text", sans-serif'
,
padding
:
'40px'
padding
:
'40px
45px
'
},
{
name
:
'tech'
,
bgColor
:
'linear-gradient(135deg, #0f1
72a
0%, #1e293b 100%)'
,
bgColor
:
'linear-gradient(135deg, #0f1
b3d
0%, #1e293b 100%)'
,
textColor
:
'#e2e8f0'
,
font
:
'"SF Mono", SFMono-Regular, Consolas, monospace'
,
padding
:
'40px'
padding
:
'40px
45px
'
}
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment