Skip to content
This repository was archived by the owner on Nov 5, 2025. It is now read-only.

Commit eafea0c

Browse files
fix(front): use button class
1 parent 4caf4a2 commit eafea0c

10 files changed

Lines changed: 33 additions & 40 deletions

File tree

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
.btn {
2-
width: 100%;
2+
display: flex;
3+
color: black;
4+
background: #96bfff;
35
border: 2px solid transparent;
46
padding: .5rem;
57
color: black;
68

79
&:hover, &:focus-visible {
10+
color: black;
811
background: #E4BEF8;
912
outline: none;
1013
}
1114

1215
&-validate {
13-
background: #c174f2;
16+
width: 100%;
1417
}
1518
}

front/src/index.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
:root {
22
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
3-
line-height: 1.5;
43
font-weight: 400;
54

65
color-scheme: light dark;

front/src/mobile/api-guard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ export function CheckAPIConnection() {
5252
</div>
5353
<br />
5454
<div style={{ display: "flex", gap: "1em" }}>
55-
<button type="button" onClick={checkAPI}>
55+
<button className="btn" type="button" onClick={checkAPI}>
5656
Retry
5757
</button>
58-
<button type="button" onClick={skip}>
58+
<button className="btn" type="button" onClick={skip}>
5959
Skip anyway
6060
</button>
6161
</div>

front/src/routes/connect-services/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export default function ConnectServicesPage() {
9999
<div>
100100
<button
101101
type="button"
102-
className="service-page-refresh"
102+
className="btn service-page-refresh"
103103
onClick={handleRefresh}
104104
disabled={refreshing}
105105
>
@@ -121,7 +121,11 @@ export default function ConnectServicesPage() {
121121
<p className="service-card-name">{name}</p>
122122
</div>
123123
{!isConnected && (
124-
<button type="button" onClick={() => handleConnect(name)}>
124+
<button
125+
className="btn"
126+
type="button"
127+
onClick={() => handleConnect(name)}
128+
>
125129
Connect
126130
</button>
127131
)}

front/src/routes/home/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ export default function HomePage() {
1212
<StrictMode>
1313
<div className="home-page">
1414
<div className="buttons">
15-
<Link to="/workflow">Workflows</Link>
16-
<Link to="/services">Services</Link>
15+
<Link className="btn" to="/workflow">
16+
Workflows
17+
</Link>
18+
<Link className="btn" to="/services">
19+
Services
20+
</Link>
1721
</div>
1822
</div>
1923
</StrictMode>

front/src/routes/profile/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,11 @@ export default function ProfilePage() {
125125
onChange={(e) => setPassword(e.target.value)}
126126
/>
127127

128-
<button type="submit">Update Profile</button>
128+
<button className="btn" type="submit">
129+
Update Profile
130+
</button>
129131
</form>
130-
<button type="button" onClick={logout}>
132+
<button className="btn" type="button" onClick={logout}>
131133
Logout
132134
</button>
133135
</div>

front/src/routes/profile/style.scss

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,5 @@
3737
outline: none;
3838
}
3939
}
40-
41-
button {
42-
background: #96bfff;
43-
color: black;
44-
border: none;
45-
border-radius: 6px;
46-
padding: 0.6rem 1.2rem;
47-
cursor: pointer;
48-
font-size: 1rem;
49-
transition: background 0.2s;
50-
51-
&:hover {
52-
background: #6488c0;
53-
}
54-
}
5540
}
5641
}

front/src/routes/workflow-create/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ export default function WorkflowList() {
9898
setNewWorkflow((f) => ({ ...f, description: e.target.value }))
9999
}
100100
/>
101-
<button type="submit">+ Create Workflow</button>
101+
<button className="btn" type="submit">
102+
+ Create Workflow
103+
</button>
102104
</form>
103105

104106
<ul className="workflow-items">
@@ -109,12 +111,12 @@ export default function WorkflowList() {
109111
<p>{workflow.description || "No description"}</p>
110112
</div>
111113
<div className="workflow-card__actions">
112-
<Link to={`/workflow/${workflow.id}`} className="view-btn">
114+
<Link to={`/workflow/${workflow.id}`} className="btn view-btn">
113115
View
114116
</Link>
115117
<button
116118
type="button"
117-
className="delete-btn"
119+
className="btn delete-btn"
118120
onClick={() => deleteWorkflow(workflow.id)}
119121
>
120122
Delete

front/src/routes/workflow-create/style.scss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,6 @@
8383
gap: 0.5rem;
8484
align-items: center;
8585

86-
.view-btn,
87-
.delete-btn {
88-
padding: 0.4rem 0.8rem;
89-
font-size: 0.9rem;
90-
border-radius: 4px;
91-
text-decoration: none;
92-
border: none;
93-
cursor: pointer;
94-
}
95-
9686
.view-btn {
9787
background: #96bfff;
9888
color: black;

front/src/routes/workflow/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,11 @@ export default function GraphPage() {
210210
<Controls />
211211
</ReactFlow>
212212
</ReactFlowProvider>
213-
<button type="button" className="add-node-btn" onClick={handleAddNode}>
213+
<button
214+
type="button"
215+
className="btn add-node-btn"
216+
onClick={handleAddNode}
217+
>
214218
Add Node
215219
</button>
216220
</main>

0 commit comments

Comments
 (0)