-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathHome.js
More file actions
56 lines (52 loc) · 1.32 KB
/
Home.js
File metadata and controls
56 lines (52 loc) · 1.32 KB
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
55
import React from "react";
import { Link } from "react-router-dom";
/* function Home() {
return (
<div>
<h1>Welcome to the File Management System</h1>
<p>
This is a decentralized application built on Ethereum and IPFS that
allows you to upload and manage files securely.
</p>
<Link to="/add">Add a file</Link>
<br />
<Link to="/remove">Remove a file</Link>
</div>
);
}
export default Home; */
function Home() {
return (
<div style={{ textAlign: "center" }}>
<h1>Welcome to the File Management System</h1>
<p style={{ fontSize: "1.2rem", maxWidth: "80%", margin: "0 auto 1rem" }}>
This is a decentralized application built on Ethereum and IPFS that
allows you to upload and manage files securely.
</p>
<Link
to="/add-file"
style={{
backgroundColor: "#4CAF50",
color: "white",
padding: "1rem 2rem",
textDecoration: "none",
marginRight: "1rem",
}}
>
Add a file
</Link>
<Link
to="/remove-file"
style={{
backgroundColor: "#f44336",
color: "white",
padding: "1rem 2rem",
textDecoration: "none",
}}
>
Remove a file
</Link>
</div>
);
}
export default Home;