Skip to content

Commit b8735bf

Browse files
authored
Merge branch 'develop' into fix/379-button-design-in-the-home-page
2 parents dcf1eba + b577453 commit b8735bf

File tree

9 files changed

+54
-13
lines changed

9 files changed

+54
-13
lines changed

frontend/dist/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<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">
1010
</head>
1111

1212
<body>

frontend/src/components/Button/ButtonStyles.css

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
border-radius: 4px;
44
text-transform: none;
55
box-shadow: none;
6+
font-weight: 400;
67
}
78

89
/* .primary */

frontend/src/components/RichTextEditor/RichTextEditor.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
color: var(--main-text-color);
44
font-size: var(--font-regular);
55
border-radius: 8px;
6-
padding-top: 1rem;
6+
padding-top: 0.5rem;
77
margin-top: 1rem;
88
width: 400px;
9+
padding-left: 0.5rem;
10+
box-sizing: border-box;
911
}
1012

1113
.ProseMirror {

frontend/src/components/RichTextEditor/Toolbar/EditorToolbar.jsx

+18
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,18 @@ const Toolbar = ({ editor }) => {
5656
<Button
5757
onClick={() => editor.chain().focus().toggleBold().run()}
5858
disabled={!editor.can().chain().focus().toggleBold().run()}
59+
style = {{
60+
backgroundColor : editor.isActive("bold") ? "#e0e0e0": "transparent",
61+
}}
5962
>
6063
<FormatBold />
6164
</Button>
6265
<Button
6366
onClick={() => editor.chain().focus().toggleItalic().run()}
6467
disabled={!editor.can().chain().focus().toggleItalic().run()}
68+
style = {{
69+
backgroundColor : editor.isActive("italic")? "#e0e0e0" : "transparent",
70+
}}
6571
>
6672
<FormatItalic />
6773
</Button>
@@ -70,6 +76,10 @@ const Toolbar = ({ editor }) => {
7076
disabled={
7177
!editor.can().chain().focus().toggleHeading({ level: 2 }).run()
7278
}
79+
style = {{
80+
backgroundColor: editor.isActive("heading", {level:3})
81+
? "#e0e0e0" : "transparent",
82+
}}
7383
>
7484
<Title />
7585
</Button>
@@ -79,12 +89,20 @@ const Toolbar = ({ editor }) => {
7989
<Button
8090
onClick={() => editor.chain().focus().toggleBulletList().run()}
8191
disabled={!editor.can().chain().focus().toggleBulletList().run()}
92+
style = {{
93+
backgroundColor : editor.isActive("bulletList") ? "#e0e0e0" : "transparent",
94+
95+
}}
8296
>
8397
<FormatListBulleted />
8498
</Button>
8599
<Button
86100
onClick={() => editor.chain().focus().toggleOrderedList().run()}
87101
disabled={!editor.can().chain().focus().toggleOrderedList().run()}
102+
103+
style = {{
104+
backgroundColor : editor.isActive("orderedList") ? "#e0e0e0" : "transparent",
105+
}}
88106
>
89107
<FormatListNumbered />
90108
</Button>

frontend/src/products/Hint/HintComponent.css

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.preview-container {
22
width: 100%;
3-
height: 250px;
3+
min-height: 250px;
44
border: 1px solid var(--light-border-color);
55
margin-top: 1rem;
66
overflow: auto;
@@ -18,21 +18,24 @@
1818
line-height: 30px;
1919
text-align: left;
2020
padding: 0 2rem;
21+
color: var(--preview-header-color);
22+
margin-bottom: 8px;
23+
margin-top: 24px;
2124
}
2225

2326
.preview-content-container {
24-
color: var(--second-text-color);
27+
color: var(--main-text-color);
2528
justify-content: space-between;
2629
display: flex;
2730
flex-direction: column;
2831
box-sizing: border-box;
29-
height: calc(100% - 20px);
32+
min-height: 170px;
3033
padding: 0 2rem;
3134
font-size: 13px;
3235
}
3336

3437
.preview-content p {
35-
margin: 0.1rem 0;
38+
margin: 0;
3639
line-height: 24px;
3740
}
3841

frontend/src/products/Hint/HintComponent.jsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const HintComponent = ({
2929
</div>
3030
)}
3131
<div className="preview-content-container" style={{ color: textColor }}>
32-
<div>
32+
<div className="preview-content">
3333
<ReactMarkdown>{content}</ReactMarkdown>
3434
</div>
3535
<div className="preview-button-container">
@@ -38,7 +38,8 @@ const HintComponent = ({
3838
style={{
3939
backgroundColor: buttonBackgroundColor,
4040
color: buttonTextColor,
41-
margin: "1rem",
41+
marginBottom: "1rem",
42+
borderRadius: '8px'
4243
}}
4344
text={previewBtnText}
4445
></Button>

frontend/src/products/Popup/PopupComponent.jsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ const PopupComponent = ({
2323
const sizeClass = validSizes.includes(popupSize.toLowerCase())
2424
? styles[popupSize.toLowerCase()]
2525
: "";
26+
const sizeClassContent = validSizes.includes(popupSize.toLowerCase())
27+
? styles[popupSize.toLowerCase() + 'Content']
28+
: "";
2629
const centeredClass = isReal ? styles.centered : "";
2730

2831
const handleClose = () => {
@@ -63,7 +66,7 @@ const PopupComponent = ({
6366
/>
6467
</div>
6568
)}
66-
<div className={`${styles.popupContentContainer}`}>
69+
<div className={`${styles.popupContentContainer} ${sizeClassContent}`}>
6770
<div className={styles.popupContent} style={{ color: textColor }}>
6871
<ReactMarkdown>{content}</ReactMarkdown>
6972
</div>
@@ -73,7 +76,7 @@ const PopupComponent = ({
7376
style={{
7477
backgroundColor: buttonBackgroundColor,
7578
color: buttonTextColor,
76-
marginRight: "1rem",
79+
borderRadius: '8px'
7780
}}
7881
text={previewBtnText}
7982
onClick={handleButtonClick} // Add onClick handler

frontend/src/products/Popup/PopupComponent.module.css

+14-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
}
99

1010
.popupContent {
11-
padding: 20px 25px;
1211
color: var(--second-text-color);
1312
font-size: var(--font-regular);
1413
}
@@ -38,7 +37,8 @@
3837
display: flex;
3938
flex-direction: column;
4039
box-sizing: border-box;
41-
height: calc(100% - 30px);
40+
min-height: 177px;
41+
padding: 18px 25px 25px 25px;
4242
}
4343

4444
.popupButtonContainer {
@@ -72,3 +72,15 @@
7272
min-width: 700px;
7373
min-height: 350px;
7474
}
75+
76+
.smallContent {
77+
min-height: 177px;
78+
}
79+
80+
.mediumContent {
81+
min-height: 227px;
82+
}
83+
84+
.largeContent {
85+
min-height: 277px;
86+
}

frontend/src/styles/variables.css

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
--main-text-color: #344054;
88
--second-text-color: #667085;
99
--third-text-color: #475467;
10+
--preview-header-color: #484848;
1011
--main-purple: #7f56d9;
1112
--light-purple: #f3e5f5;
1213
--light-gray: #EAECF0;

0 commit comments

Comments
 (0)