File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed
server/frontend/src/components/Home Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
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 ;
You can’t perform that action at this time.
0 commit comments