File tree Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 4
4
font-size : 15px ;
5
5
word-wrap : break-word;
6
6
white-space : pre-wrap;
7
- background : # 161b22 ;
7
+ background : # 0f172a ;
8
8
overflow : auto;
9
9
line-height : 1.6 ;
10
- border : 1px solid # 333 ;
11
- border-left : 3 px solid # e81029 ;
10
+ border : 1px solid # 10b981 ;
11
+ border-left : 2 px solid # b91c1c ;
12
12
color : # 564 ;
13
13
min-width : 200px ;
14
14
width : 800px ;
Original file line number Diff line number Diff line change @@ -17,22 +17,22 @@ export default function CodeBlock({ block }: { block: any }) {
17
17
return (
18
18
< div className = "max-w-full relative" >
19
19
< div className = { `${ styles . copy_block } absolute top-2 right-2 z-10` } >
20
- < button
21
- className = "text-gray-500 p-1 relative"
22
- onClick = { ( ) => {
23
- navigator . clipboard . writeText ( code ) . then ( ( ) => {
24
- setShowCopiedMessage ( true ) ;
25
- setTimeout ( ( ) => {
26
- setShowCopiedMessage ( false ) ;
27
- } , 2000 ) ;
28
- } ) ;
29
- } }
30
- >
31
- { showCopiedMessage ? < CopyTick /> : < CopyIcon /> }
32
- </ button >
20
+ < button
21
+ className = "text-gray-500 p-1 relative"
22
+ onClick = { ( ) => {
23
+ navigator . clipboard . writeText ( code ) . then ( ( ) => {
24
+ setShowCopiedMessage ( true ) ;
25
+ setTimeout ( ( ) => {
26
+ setShowCopiedMessage ( false ) ;
27
+ } , 2000 ) ;
28
+ } ) ;
29
+ } }
30
+ >
31
+ { showCopiedMessage ? < CopyTick /> : < CopyIcon /> }
32
+ </ button >
33
33
</ div >
34
34
< div className = "max-w-full overflow-auto relative" >
35
- < pre className = { `${ styles . code_block } px-4 sm:px-6 md:px-8` } >
35
+ < pre className = { `${ styles . code_block } rounded-3xl px-4 sm:px-6 md:px-8` } >
36
36
< code className = "language-javascript" > { code } </ code >
37
37
</ pre >
38
38
</ div >
You can’t perform that action at this time.
0 commit comments