-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathClientPage.tsx
54 lines (35 loc) · 1.14 KB
/
ClientPage.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
'use client'
import { useEffect } from 'react';
import Button from '@/components/Buttons';
import Layout from '@/components/Layout';
import SvgIcon from "../public//assets/images/icon.svg";
import CRUDService from "@/utils/data-service/crud";
const MainContent = () => {
return (
<>
<p>
A website-building solution based on Next.js. It serves as a case to sort out the thinking.
</p>
<p className="buttons">
<Button bgColor='' btnName={<><SvgIcon width="15" style={{ verticalAlign: 'text-top', marginRight: '10px' }} fill="#0576a0" />About US</>} href="/about.html" />
</p>
</>
)
};
export default function ClientPage(props) {
useEffect(() => {
// init php data
//-----
CRUDService.initData();
}, []); // Empty array ensures that effect is only run on mount and unmount
return (
<>
<Layout
isHome={true}
ssrNav={props.list}
pageTitle="HomePage"
contentComponent={<><MainContent /></>}
/>
</>
)
}