Skip to content

Commit 74cc04d

Browse files
committed
beagn styling tutorial
1 parent 7cdcad5 commit 74cc04d

File tree

3 files changed

+18
-111
lines changed

3 files changed

+18
-111
lines changed

src/app/components/Buttons/Tutorial.tsx

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ export default class Tutorial extends Component<TutorialProps, TutorialState> {
9191
steps = [
9292
{
9393
title: 'Reactime Tutorial',
94-
intro: 'A performance and state management tool for React apps.',
94+
intro:
95+
'A tool for time travel debugging and performance monitoring in React applications.',
9596
position: 'top',
9697
},
9798
{
@@ -226,37 +227,6 @@ export default class Tutorial extends Component<TutorialProps, TutorialState> {
226227
intro: 'Additional info can be found be hovering over desired metrics',
227228
position: 'top',
228229
},
229-
// {
230-
// title: 'LCP',
231-
// element: document.querySelectorAll('.metric')[0],
232-
// intro:
233-
// '<strong>Largest Contentful Paint</strong><br/>The amount of time it takes for the largest image, video or text block within the viewport to be fully rendered and interactive.',
234-
// position: 'top',
235-
// },
236-
237-
// {
238-
// title: 'FID',
239-
// element: document.querySelectorAll('.metric')[1],
240-
// intro:
241-
// '<strong>First Input Delay</strong><br/>A measurement of load responsiveness, the time from the first user interaction (for example, a click) to the browser responding to that interaction.',
242-
// position: 'top',
243-
// },
244-
245-
// {
246-
// title: 'FCP',
247-
// element: document.querySelectorAll('.metric')[2],
248-
// intro:
249-
// '<strong>First Contentful Paint</strong><br/>The amount of time it takes to render the first DOM element of any variety',
250-
// position: 'top',
251-
// },
252-
253-
// {
254-
// title: 'TTFB',
255-
// element: document.querySelectorAll('.metric')[3],
256-
// intro:
257-
// "<strong>Time To First Byte</strong><br/>The amount of time it takes for a user's browser to receive the first byte of page content from the server.",
258-
// position: 'top',
259-
// },
260230
];
261231
break;
262232
case 'history':
@@ -270,7 +240,7 @@ export default class Tutorial extends Component<TutorialProps, TutorialState> {
270240
},
271241
{
272242
title: 'Viewing History Snapshot',
273-
element: '.node active',//document.querySelectorAll('.snapshotNode')[0]
243+
element: '.node active', //document.querySelectorAll('.snapshotNode')[0]
274244
intro:
275245
'Each node will represent a snapshot in the page. <ul><li>A single snapshot will show as a node while multiple snapshots will be represented as a timeline.</li><li>Highlighting over one will show any state changes compared to the previous snapshot. </li><li>Clicking a node will set the snapshot as the current one.</li></ul>',
276246
position: 'top',

src/app/styles/components/_actionComponent.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@
9999
}
100100

101101
.current-location {
102-
color: #059669;
103-
background: #ecfdf5;
102+
color: #14b8a6;
103+
background: #f0fdfa;
104104
}
105105

106106
/* Hide/show button transitions */

src/app/styles/layout/_buttonsContainer.scss

Lines changed: 13 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -20,104 +20,45 @@
2020
}
2121

2222
.introjs-button {
23-
background-color: #f0f0f0;
24-
color: #000;
25-
outline: none;
26-
padding: 8px 20px;
23+
padding: 8px 16px;
2724
font-size: 14px;
28-
transition:
29-
background-color 0.3s ease,
30-
color 0.3s ease;
31-
}
32-
33-
.introjs-button:hover {
34-
background-color: #6cff87;
35-
color: #000 !important;
36-
border: 1px solid #6cff87;
37-
}
38-
39-
.introjs-skipbutton {
40-
height: 16px;
41-
width: auto;
42-
background-color: #f0f0f0;
43-
color: #000;
44-
padding: 8px 8px;
45-
font-size: 12px;
46-
text-align: center;
47-
line-height: normal;
48-
transition:
49-
background-color 0.3s ease,
50-
color 0.3s ease;
51-
}
52-
53-
.introjs-skipbutton:hover {
54-
background-color: #ff4d4d;
55-
color: #fff;
56-
border: 1px solid #ff4d4d;
25+
border-radius: 8px;
5726
}
5827

5928
.introjs-tooltip-title {
6029
font-size: 18px;
6130
font-weight: bold;
62-
color: #000;
63-
}
64-
65-
.introjs-tooltiptext {
66-
font-size: 14px;
31+
color: #1f2937;
6732
}
6833

6934
.introjs-progressbar {
70-
background-color: #6cff87;
71-
}
72-
73-
.introjs-overlay {
74-
background-color: rgba(0, 0, 0, 0.7);
75-
}
76-
77-
.introjs-helperLayer {
78-
box-shadow: 0 0 10px 3px rgba(108, 255, 135, 0.7);
79-
border-radius: 8px;
35+
background-color: #14b8a6;
8036
}
8137

8238
.introjs-tooltip {
83-
color: black;
39+
color: #1f2937;
8440
background-color: white;
8541
min-width: 20rem;
8642
}
87-
.introjs-tooltiptext ul {
88-
padding-left: 2px;
89-
}
9043

91-
#seriesname {
92-
background-color: #333;
93-
color: white;
44+
.introjs-tooltiptext ul {
45+
padding-left: 20px;
9446
}
9547

9648
.introjs-nextbutton {
97-
background-color: none;
98-
color: #3256f1;
99-
border: 1px solid;
100-
outline: none;
49+
background-color: #14b8a6;
50+
color: white;
10151
}
10252

10353
.introjs-prevbutton {
104-
background-color: none;
105-
color: #3256f1;
106-
border: 1px solid;
107-
outline: none;
54+
background-color: #f9fafb;
55+
color: #374151;
10856
}
10957

11058
.introjs-skipbutton {
11159
color: #d72828;
112-
border: 1px solid;
113-
margin-top: 2px;
114-
font-size: 16px;
115-
outline: none;
116-
}
117-
118-
.introjs-button {
119-
background: none;
120-
outline: none;
60+
margin-right: 8px;
61+
font-size: 14px;
12162
}
12263

12364
.buttons-container button {
@@ -133,10 +74,6 @@
13374
gap: 8px;
13475
}
13576

136-
.buttons-container button:hover {
137-
background-color: #f3f4f6;
138-
}
139-
14077
.status-dot {
14178
display: inline-block;
14279
width: 10px;

0 commit comments

Comments
 (0)