Skip to content

Commit dcbc0e8

Browse files
committed
m
1 parent 1c28ab6 commit dcbc0e8

File tree

1 file changed

+60
-0
lines changed
  • server/frontend/src/components/Home

1 file changed

+60
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// /home/project/xrwvm-fullstack_developer_capstone/server/frontend/src/components/Home/Home.jsx
2+
3+
import React from 'react';
4+
import { Link } from 'react-router-dom'; // Assuming you have react-router-dom installed for navigation
5+
6+
function Home() {
7+
const containerStyle = {
8+
textAlign: 'center',
9+
padding: '50px',
10+
fontFamily: 'Arial, sans-serif',
11+
};
12+
13+
const buttonContainerStyle = {
14+
marginTop: '30px',
15+
};
16+
17+
const buttonStyle = {
18+
display: 'inline-block',
19+
margin: '10px',
20+
padding: '12px 25px',
21+
fontSize: '18px',
22+
fontWeight: 'bold',
23+
color: '#fff',
24+
backgroundColor: '#007bff',
25+
border: 'none',
26+
borderRadius: '5px',
27+
cursor: 'pointer',
28+
textDecoration: 'none', // For Link components
29+
};
30+
31+
const buttonHoverStyle = {
32+
backgroundColor: '#0056b3', // Darker blue on hover
33+
};
34+
35+
return (
36+
<div style={containerStyle}>
37+
<h1>Welcome to Best Cars Dealership!</h1>
38+
<p>Your one-stop solution for finding the best car deals and managing your dealership network.</p>
39+
40+
<div style={buttonContainerStyle}>
41+
{/* Login Button */}
42+
<Link to="/login" style={buttonStyle} onMouseOver={(e) => e.currentTarget.style.backgroundColor = buttonHoverStyle.backgroundColor} onMouseOut={(e) => e.currentTarget.style.backgroundColor = buttonStyle.backgroundColor}>
43+
Login
44+
</Link>
45+
46+
{/* Register Button */}
47+
<Link to="/register" style={buttonStyle} onMouseOver={(e) => e.currentTarget.style.backgroundColor = buttonHoverStyle.backgroundColor} onMouseOut={(e) => e.currentTarget.style.backgroundColor = buttonStyle.backgroundColor}>
48+
Register
49+
</Link>
50+
51+
{/* Dealers Button */}
52+
<Link to="/dealerships" style={buttonStyle} onMouseOver={(e) => e.currentTarget.style.backgroundColor = buttonHoverStyle.backgroundColor} onMouseOut={(e) => e.currentTarget.style.backgroundColor = buttonStyle.backgroundColor}>
53+
View Dealerships
54+
</Link>
55+
</div>
56+
</div>
57+
);
58+
}
59+
60+
export default Home;

0 commit comments

Comments
 (0)