1
1
import {
2
2
Box ,
3
3
Typography ,
4
- IconButton ,
5
- InputBase ,
6
4
useTheme ,
7
5
} from "@mui/material" ;
8
- import { Search } from "@mui/icons-material" ;
9
6
import TopBox from "../../components/TopBox" ;
10
- import FlexBetween from "../../components/FlexBetween" ;
11
7
import ChooserWidget from "../widgets/ChooserWidget" ;
12
8
import { useTranslation } from "react-i18next" ;
13
9
10
+
11
+ const notifications = [
12
+ { title : '2024 Land Price Valuation Standards Update for Lao PDR' , date : '2024-01-02' } ,
13
+ { title : 'Land Price Information System Maintenance Notice' , date : '2024-01-02' } ,
14
+ { title : 'New Land Registration Feature Now Available' , date : '2024-01-02' } ,
15
+ ] ;
16
+
17
+ const NotificationBox = ( ) => {
18
+ return (
19
+ < Box
20
+ sx = { {
21
+ mt : '20px' ,
22
+ display : 'flex' ,
23
+ alignItems : 'center' ,
24
+ backgroundColor : '#f5f5f5' ,
25
+ borderRadius : '10px' ,
26
+ padding : '16px' ,
27
+ gap : '50px' ,
28
+ } }
29
+ >
30
+ { /* Icon on the left side */ }
31
+ < img
32
+ src = "/notify_bell.png"
33
+ alt = "Notification Icon"
34
+ style = { { width : '40px' , height : '40px' } }
35
+ />
36
+
37
+ { /* Notifications list */ }
38
+ < Box sx = { { flex : 1 } } >
39
+ { notifications . map ( ( item , index ) => (
40
+ < Box
41
+ key = { index }
42
+ sx = { {
43
+ display : 'flex' ,
44
+ justifyContent : 'space-between' ,
45
+ alignItems : 'center' ,
46
+ padding : '5px 0' ,
47
+ //borderBottom: index !== notifications.length - 1 ? '1px solid #e0e0e0' : 'none',
48
+ gap : '100px' ,
49
+ } }
50
+ >
51
+ { /* Notification title */ }
52
+ < Typography variant = "body1" > { item . title } </ Typography >
53
+
54
+ { /* Notification date */ }
55
+ < Typography variant = "body2" sx = { { color : '#757575' } } >
56
+ { item . date }
57
+ </ Typography >
58
+ </ Box >
59
+ ) ) }
60
+ </ Box >
61
+ </ Box >
62
+ ) ;
63
+ } ;
64
+
14
65
const Middle = ( ) => {
15
66
const theme = useTheme ( ) ;
16
67
const { t } = useTranslation ( ) ;
@@ -25,43 +76,42 @@ const Middle = () => {
25
76
< Box
26
77
display = "flex"
27
78
flexDirection = "column"
28
- alignItems = "flex-start"
79
+ justifyContent = "center"
80
+ alignItems = "center"
81
+ gap = "30px"
29
82
sx = { {
30
83
"& .MuiTypography-root " : {
31
84
lineHeight : '1.25' ,
32
85
} ,
33
86
} }
34
87
>
35
- < Typography fontSize = "18px " fontWeight = "bold" color = { theme . palette . neutral . medium } >
36
- LVIS(Land Valuation Information System)
88
+ < Typography fontSize = "28px " fontWeight = "bold" color = { theme . palette . neutral . medium } >
89
+ ລະບົບຂໍ້ມູນລາຄາທີ່ດິນໃນ ສປປ ລາວ
37
90
</ Typography >
38
91
< Typography
39
92
sx = { {
40
93
color : theme . palette . neutral . medium ,
41
- fontSize : "72px " ,
94
+ fontSize : "45px " ,
42
95
fontWeight : "bold" ,
96
+ position : 'relative' ,
97
+ paddingBottom : '15px' , // Adjust padding to create space for the ::after text
98
+ '::after' : {
99
+ content : '"in Lao PDR"' ,
100
+ position : 'absolute' ,
101
+ right : - 25 ,
102
+ bottom : 0 ,
103
+ backgroundColor : 'yellow' ,
104
+ color : 'red' ,
105
+ fontSize : '12px' ,
106
+ padding : '2px 4px' ,
107
+ borderRadius : '4px' ,
108
+ } ,
43
109
} }
44
110
>
45
- { t ( "Land Value Information System" ) }
111
+ { t ( "Land Price Information System" ) }
46
112
</ Typography >
47
113
</ Box >
48
- < FlexBetween
49
- backgroundColor = { theme . palette . background . alt }
50
- borderRadius = "30px"
51
- gap = "3rem"
52
- p = "0.1rem 1.5rem"
53
- width = "38%"
54
- height = "50px"
55
- border = "1px solid #999999"
56
- mt = "3rem"
57
- >
58
- < InputBase
59
- fullWidth
60
- placeholder = { t ( "Please enter a search term (region name, town name, code, etc.)." ) } />
61
- < IconButton >
62
- < Search />
63
- </ IconButton >
64
- </ FlexBetween >
114
+ < NotificationBox />
65
115
< Box
66
116
sx = { {
67
117
width : "100%" ,
@@ -77,6 +127,8 @@ const Middle = () => {
77
127
) ;
78
128
} ;
79
129
130
+
131
+
80
132
const HomePage = ( ) => {
81
133
const { t } = useTranslation ( ) ;
82
134
return (
0 commit comments