Skip to content

Commit cd4a158

Browse files
authored
Merge pull request #27 from BUMETCS673/sean-dev
Create Style Files and Add Button Components(Save, Delete, Login...)
2 parents 75affe5 + dc790a6 commit cd4a158

29 files changed

+549
-66
lines changed

code/frontend/src/App.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import { BrowserRouter, Routes, Route } from 'react-router-dom';
2-
import Main from './pages/Main';
3-
import MyJobs from './pages/MyJobs';
42

53
function App() {
64
return (
75
<BrowserRouter>
86
<Routes>
9-
<Route path="/" element={<Main />} />
10-
<Route path="/my-jobs" element={<MyJobs />} />
7+
<Route path="/myJobs" element={<div>My Jobs Page</div>} />
8+
<Route path="/" element={<div>Main Page</div>} />
119
</Routes>
1210
</BrowserRouter>
1311
);

code/frontend/src/assets/logo.png

333 KB
Loading

code/frontend/src/components/buttons/.temGitPlaceholder

Whitespace-only changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.apply-button {
2+
padding: 0.75rem 1.5rem;
3+
font-size: 1.1rem;
4+
font-weight: bold;
5+
cursor: pointer;
6+
text-align: center;
7+
8+
background-color: #ff4136;
9+
color: white;
10+
border: none;
11+
border-radius: 8px;
12+
13+
transition: background-color 0.2s ease;
14+
}
15+
16+
.apply-button:hover {
17+
background-color: #e02f23;
18+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from 'react';
2+
import './Apply.css';
3+
4+
interface ApplyProps {
5+
onClick: () => void;
6+
}
7+
8+
const Apply: React.FC<ApplyProps> = ({ onClick }) => {
9+
return (
10+
<button className="apply-button" onClick={onClick}>
11+
Apply
12+
</button>
13+
);
14+
};
15+
16+
export default Apply;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.delete-button {
2+
display: flex;
3+
align-items: center;
4+
justify-content: center;
5+
width: 36px;
6+
height: 36px;
7+
line-height: 1;
8+
font-size: 1.5rem;
9+
font-weight: normal;
10+
cursor: pointer;
11+
12+
background-color: white;
13+
color: #ff4136;
14+
border: 2px solid #ff4136;
15+
border-radius: 8px;
16+
17+
transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
18+
}
19+
20+
.delete-button:hover {
21+
background-color: #ffeded;
22+
color: #e02f23;
23+
border-color: #e02f23;
24+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from 'react';
2+
import './DeleteButton.css';
3+
4+
interface DeleteButtonProps {
5+
onClick: () => void;
6+
}
7+
8+
const DeleteButton: React.FC<DeleteButtonProps> = ({ onClick }) => {
9+
return (
10+
<button className="delete-button" onClick={onClick} aria-label="Delete item">
11+
&times;
12+
</button>
13+
);
14+
};
15+
16+
export default DeleteButton;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.delete-all-button {
2+
padding: 0.75rem 1.5rem;
3+
border: none;
4+
border-radius: 4px;
5+
background-color: #dc3545;
6+
color: black;
7+
font-size: 1rem;
8+
font-weight: bold;
9+
cursor: pointer;
10+
transition: background-color 0.2s;
11+
}
12+
13+
.delete-all-button:hover {
14+
background-color: #c82333;
15+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from 'react';
2+
import './DeleteAll.css';
3+
4+
const DeleteAll: React.FC = () => {
5+
const handleClick = () => {
6+
if (window.confirm('Are you sure you want to delete all jobs? This action cannot be undone.')) {
7+
alert('All jobs deleted.');
8+
}
9+
};
10+
11+
return (
12+
<button className="delete-all-button" onClick={handleClick}>
13+
Delete All
14+
</button>
15+
);
16+
};
17+
18+
export default DeleteAll;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.filter-select {
2+
padding: 0.5rem 1.2rem;
3+
font-size: 1.1rem;
4+
font-family: serif;
5+
text-align: center;
6+
7+
color: black;
8+
background-color: white;
9+
border: 2px solid #D9534F;
10+
border-radius: 15px;
11+
cursor: pointer;
12+
13+
-webkit-appearance: none;
14+
-moz-appearance: none;
15+
appearance: none;
16+
}

0 commit comments

Comments
 (0)