File tree 9 files changed +54
-13
lines changed
9 files changed +54
-13
lines changed Original file line number Diff line number Diff line change 5
5
< meta charset ="UTF-8 " />
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
7
< title > Bluewave Onboarding</ title >
8
- < script type ="module " crossorigin src ="/assets/index-Dm-A1Y3b .js "> </ script >
9
- < link rel ="stylesheet " crossorigin href ="/assets/index-BMxzGzfc .css ">
8
+ < script type ="module " crossorigin src ="/assets/index-CSUaIvQz .js "> </ script >
9
+ < link rel ="stylesheet " crossorigin href ="/assets/index-EhLntcaF .css ">
10
10
</ head >
11
11
12
12
< body >
Original file line number Diff line number Diff line change 3
3
border-radius : 4px ;
4
4
text-transform : none;
5
5
box-shadow : none;
6
+ font-weight : 400 ;
6
7
}
7
8
8
9
/* .primary */
Original file line number Diff line number Diff line change 3
3
color : var (--main-text-color );
4
4
font-size : var (--font-regular );
5
5
border-radius : 8px ;
6
- padding-top : 1 rem ;
6
+ padding-top : 0.5 rem ;
7
7
margin-top : 1rem ;
8
8
width : 400px ;
9
+ padding-left : 0.5rem ;
10
+ box-sizing : border-box;
9
11
}
10
12
11
13
.ProseMirror {
Original file line number Diff line number Diff line change @@ -56,12 +56,18 @@ const Toolbar = ({ editor }) => {
56
56
< Button
57
57
onClick = { ( ) => editor . chain ( ) . focus ( ) . toggleBold ( ) . run ( ) }
58
58
disabled = { ! editor . can ( ) . chain ( ) . focus ( ) . toggleBold ( ) . run ( ) }
59
+ style = { {
60
+ backgroundColor : editor . isActive ( "bold" ) ? "#e0e0e0" : "transparent" ,
61
+ } }
59
62
>
60
63
< FormatBold />
61
64
</ Button >
62
65
< Button
63
66
onClick = { ( ) => editor . chain ( ) . focus ( ) . toggleItalic ( ) . run ( ) }
64
67
disabled = { ! editor . can ( ) . chain ( ) . focus ( ) . toggleItalic ( ) . run ( ) }
68
+ style = { {
69
+ backgroundColor : editor . isActive ( "italic" ) ? "#e0e0e0" : "transparent" ,
70
+ } }
65
71
>
66
72
< FormatItalic />
67
73
</ Button >
@@ -70,6 +76,10 @@ const Toolbar = ({ editor }) => {
70
76
disabled = {
71
77
! editor . can ( ) . chain ( ) . focus ( ) . toggleHeading ( { level : 2 } ) . run ( )
72
78
}
79
+ style = { {
80
+ backgroundColor : editor . isActive ( "heading" , { level :3 } )
81
+ ? "#e0e0e0" : "transparent" ,
82
+ } }
73
83
>
74
84
< Title />
75
85
</ Button >
@@ -79,12 +89,20 @@ const Toolbar = ({ editor }) => {
79
89
< Button
80
90
onClick = { ( ) => editor . chain ( ) . focus ( ) . toggleBulletList ( ) . run ( ) }
81
91
disabled = { ! editor . can ( ) . chain ( ) . focus ( ) . toggleBulletList ( ) . run ( ) }
92
+ style = { {
93
+ backgroundColor : editor . isActive ( "bulletList" ) ? "#e0e0e0" : "transparent" ,
94
+
95
+ } }
82
96
>
83
97
< FormatListBulleted />
84
98
</ Button >
85
99
< Button
86
100
onClick = { ( ) => editor . chain ( ) . focus ( ) . toggleOrderedList ( ) . run ( ) }
87
101
disabled = { ! editor . can ( ) . chain ( ) . focus ( ) . toggleOrderedList ( ) . run ( ) }
102
+
103
+ style = { {
104
+ backgroundColor : editor . isActive ( "orderedList" ) ? "#e0e0e0" : "transparent" ,
105
+ } }
88
106
>
89
107
< FormatListNumbered />
90
108
</ Button >
Original file line number Diff line number Diff line change 1
1
.preview-container {
2
2
width : 100% ;
3
- height : 250px ;
3
+ min- height: 250px ;
4
4
border : 1px solid var (--light-border-color );
5
5
margin-top : 1rem ;
6
6
overflow : auto;
18
18
line-height : 30px ;
19
19
text-align : left;
20
20
padding : 0 2rem ;
21
+ color : var (--preview-header-color );
22
+ margin-bottom : 8px ;
23
+ margin-top : 24px ;
21
24
}
22
25
23
26
.preview-content-container {
24
- color : var (--second -text-color );
27
+ color : var (--main -text-color );
25
28
justify-content : space-between;
26
29
display : flex;
27
30
flex-direction : column;
28
31
box-sizing : border-box;
29
- height : calc ( 100 % - 20 px ) ;
32
+ min- height: 170 px ;
30
33
padding : 0 2rem ;
31
34
font-size : 13px ;
32
35
}
33
36
34
37
.preview-content p {
35
- margin : 0.1 rem 0 ;
38
+ margin : 0 ;
36
39
line-height : 24px ;
37
40
}
38
41
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const HintComponent = ({
29
29
</ div >
30
30
) }
31
31
< div className = "preview-content-container" style = { { color : textColor } } >
32
- < div >
32
+ < div className = "preview-content" >
33
33
< ReactMarkdown > { content } </ ReactMarkdown >
34
34
</ div >
35
35
< div className = "preview-button-container" >
@@ -38,7 +38,8 @@ const HintComponent = ({
38
38
style = { {
39
39
backgroundColor : buttonBackgroundColor ,
40
40
color : buttonTextColor ,
41
- margin : "1rem" ,
41
+ marginBottom : "1rem" ,
42
+ borderRadius : '8px'
42
43
} }
43
44
text = { previewBtnText }
44
45
> </ Button >
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ const PopupComponent = ({
23
23
const sizeClass = validSizes . includes ( popupSize . toLowerCase ( ) )
24
24
? styles [ popupSize . toLowerCase ( ) ]
25
25
: "" ;
26
+ const sizeClassContent = validSizes . includes ( popupSize . toLowerCase ( ) )
27
+ ? styles [ popupSize . toLowerCase ( ) + 'Content' ]
28
+ : "" ;
26
29
const centeredClass = isReal ? styles . centered : "" ;
27
30
28
31
const handleClose = ( ) => {
@@ -63,7 +66,7 @@ const PopupComponent = ({
63
66
/>
64
67
</ div >
65
68
) }
66
- < div className = { `${ styles . popupContentContainer } ` } >
69
+ < div className = { `${ styles . popupContentContainer } ${ sizeClassContent } ` } >
67
70
< div className = { styles . popupContent } style = { { color : textColor } } >
68
71
< ReactMarkdown > { content } </ ReactMarkdown >
69
72
</ div >
@@ -73,7 +76,7 @@ const PopupComponent = ({
73
76
style = { {
74
77
backgroundColor : buttonBackgroundColor ,
75
78
color : buttonTextColor ,
76
- marginRight : "1rem" ,
79
+ borderRadius : '8px'
77
80
} }
78
81
text = { previewBtnText }
79
82
onClick = { handleButtonClick } // Add onClick handler
Original file line number Diff line number Diff line change 8
8
}
9
9
10
10
.popupContent {
11
- padding : 20px 25px ;
12
11
color : var (--second-text-color );
13
12
font-size : var (--font-regular );
14
13
}
38
37
display : flex;
39
38
flex-direction : column;
40
39
box-sizing : border-box;
41
- height : calc (100% - 30px );
40
+ min-height : 177px ;
41
+ padding : 18px 25px 25px 25px ;
42
42
}
43
43
44
44
.popupButtonContainer {
72
72
min-width : 700px ;
73
73
min-height : 350px ;
74
74
}
75
+
76
+ .smallContent {
77
+ min-height : 177px ;
78
+ }
79
+
80
+ .mediumContent {
81
+ min-height : 227px ;
82
+ }
83
+
84
+ .largeContent {
85
+ min-height : 277px ;
86
+ }
Original file line number Diff line number Diff line change 7
7
--main-text-color : # 344054 ;
8
8
--second-text-color : # 667085 ;
9
9
--third-text-color : # 475467 ;
10
+ --preview-header-color : # 484848 ;
10
11
--main-purple : # 7f56d9 ;
11
12
--light-purple : # f3e5f5 ;
12
13
--light-gray : # EAECF0 ;
You can’t perform that action at this time.
0 commit comments