Skip to content

Commit 65f7e40

Browse files
committed
no bg
1 parent e1d09c8 commit 65f7e40

File tree

8 files changed

+313
-46
lines changed

8 files changed

+313
-46
lines changed

package-lock.json

+240-30
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"author": "Dapp University",
66
"homepage": ".",
77
"dependencies": {
8+
"@geist-ui/react": "^2.2.0",
89
"@truffle/hdwallet-provider": "^1.1.0",
910
"babel-polyfill": "6.26.0",
1011
"babel-preset-env": "1.7.0",
@@ -20,6 +21,7 @@
2021
"identicon.js": "^2.3.3",
2122
"ipfs-http-client": "^33.1.1",
2223
"moment": "^2.29.1",
24+
"qrcode.react": "^1.0.1",
2325
"react": "^16.14.0",
2426
"react-bootstrap": "^1.3.0",
2527
"react-dom": "^16.13.1",

public/index.html

+5-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
<title>Hox</title>
1515
</head>
1616
<body style="
17-
background-image: url('https://bafybeici3fcomovm5z6htnjvvknsy65dbn6w56vzyelfblheuvhcz6hmau.ipfs.infura-ipfs.io/');
18-
background-size: cover;
19-
background-repeat: no-repeat;
17+
background-image: url('https://wallpaperaccess.com/full/4785394.jpg');
18+
background-size: auto;
19+
background-position: center;
20+
background-repeat: no-repeat;
21+
2022
2123
" >
2224
<noscript>You need to enable JavaScript to run this app.</noscript>

src/abis/DStorage.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -4563,8 +4563,8 @@
45634563
"1337": {
45644564
"events": {},
45654565
"links": {},
4566-
"address": "0x2130807ad77F5e8A7a1A042719bfcd46FcC6AFEB",
4567-
"transactionHash": "0x6d78a1f4e1f0bd87f19ae738b0197213224a05f4f9f5c7ea3a67651f67f044cd"
4566+
"address": "0xF14CB91e88f9b61DdB7d0C5451eEA9531Bb1C193",
4567+
"transactionHash": "0xca69090f8bafc945e8d14aa35931de43edf35c3cf6d5c1efaf7713fcdfd923ce"
45684568
},
45694569
"1603890166397": {
45704570
"events": {
@@ -5052,7 +5052,7 @@
50525052
}
50535053
},
50545054
"schemaVersion": "3.4.3",
5055-
"updatedAt": "2021-11-27T12:40:15.289Z",
5055+
"updatedAt": "2021-11-27T13:56:28.775Z",
50565056
"networkType": "ethereum",
50575057
"devdoc": {
50585058
"methods": {}

src/abis/Migrations.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1475,8 +1475,8 @@
14751475
"1337": {
14761476
"events": {},
14771477
"links": {},
1478-
"address": "0xF3c17CBB6aFF08d3564816005C354bdC3D3cb8E6",
1479-
"transactionHash": "0x803f45ea87c092f639b96323f193be95a69cbef4f9a6d028bb46d829d96ce5de"
1478+
"address": "0xCFDc89B04b4c6e94AE6A82C121167b007A59e0f1",
1479+
"transactionHash": "0x5e55826eafccdb536bbc08baf4fd6b6ce9ad2ffb7db8463b5089718e23a949c1"
14801480
},
14811481
"1603890166397": {
14821482
"events": {},
@@ -1528,7 +1528,7 @@
15281528
}
15291529
},
15301530
"schemaVersion": "3.4.3",
1531-
"updatedAt": "2021-11-27T12:40:15.292Z",
1531+
"updatedAt": "2021-11-27T13:56:28.779Z",
15321532
"networkType": "ethereum",
15331533
"devdoc": {
15341534
"methods": {}

src/components/App.js

+5
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ class App extends Component {
127127
uploadFile={this.uploadFile}
128128
/>
129129
}
130+
<div class="adam1">
131+
132+
133+
134+
</div>
130135
</div>
131136
);
132137
}

src/components/Main.css

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#onee{
2+
background:rgba(0,0,0,0);
3+
}
4+
5+
input{
6+
margin-bottom: 20px;
7+
8+
}
9+
input[type=text]{
10+
width: 100%;
11+
padding: 12px 20px;
12+
margin: 8px 0;
13+
box-sizing: border-box;
14+
border: none;
15+
border-bottom: 2px solid #ccc;
16+
background-color: #f1f1f1;
17+
}
18+
input[type=text]:focus{
19+
background-color: rgb(24, 24, 23);
20+
outline: none;
21+
22+
23+
}
24+
td{
25+
color: white;
26+
}

src/components/Main.js

+29-7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import React, { Component } from 'react';
22
import { convertBytes } from './helpers';
33
import moment from 'moment'
44

5+
import './Main.css';
6+
7+
58
class Main extends Component {
69

710
render() {
@@ -11,8 +14,9 @@ class Main extends Component {
1114
<main role="main" className="col-lg-12 ml-auto mr-auto" style={{ maxWidth: '1024px' }}>
1215
<div className="content">
1316
<p>&nbsp;</p>
14-
<div className="card mb-3 mx-auto bg-dark" style={{ maxWidth: '512px' }}>
15-
<h2 className="text-white text-monospace bg-dark"><b>Hox it today!</b></h2>
17+
<div className="card mb-3 mx-auto " id="onee" style={{ maxWidth: '512px'}} >
18+
<h2 className="text-black text-monospace" ><b><span style={{color:'red'}}>Hox</span> <span style={{color:'rd'}}>it</span> <span style={{color:' '}}>today!</span></b></h2>
19+
<br></br>
1620
<form onSubmit={(event) => {
1721
event.preventDefault()
1822
const description = this.fileDescription.value
@@ -28,8 +32,11 @@ class Main extends Component {
2832
placeholder="description..."
2933
required />
3034
</div>
31-
<input type="file" onChange={this.props.captureFile} className="text-white text-monospace"/>
32-
<button type="submit" className="btn-primary btn-block"><b>Upload!</b></button>
35+
<input type="file" onChange={this.props.captureFile} className="text-white text-monospace"/>
36+
37+
<button type="submit" style={{ color: "grey", background: "black"}} className="btn-primary btn-block"><b>Upload!</b></button>
38+
39+
3340
</form>
3441
</div>
3542
<p>&nbsp;</p>
@@ -44,6 +51,8 @@ class Main extends Component {
4451
<th scope="col" style={{ width: '90px'}}>date</th>
4552
<th scope="col" style={{ width: '120px'}}>uploader/view</th>
4653
<th scope="col" style={{ width: '120px'}}>hash/view/get</th>
54+
<th scope="col" style={{ width: '120px'}}>Qr code</th>
55+
<th scope="col" style={{ width: '120px'}}>Share!</th>
4756
</tr>
4857
</thead>
4958
{ this.props.files.map((file, key) => {
@@ -64,13 +73,26 @@ class Main extends Component {
6473
{file.uploader.substring(0,10)}...
6574
</a>
6675
</td>
67-
<td>
76+
77+
<td>
6878
<a
69-
href={"https://ipfs.infura.io/ipfs/" + file.fileHash}
79+
href={"https://etherscan.io/address/" + file.uploader}
7080
rel="noopener noreferrer"
7181
target="_blank">
72-
{file.fileHash.substring(0,10)}...
82+
{file.uploader.substring(0,10)}...
7383
</a>
84+
</td>
85+
<td>
86+
<img
87+
src={"https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=https://ipfs.infura.io/ipfs/" + file.fileHash}
88+
>
89+
90+
</img>
91+
</td>
92+
<td>
93+
<a href={"whatsapp://send?text=https://ipfs.infura.io/ipfs/" + file.fileHash} data-action="share/whatsapp/share"> <img src="https://cdn-icons.flaticon.com/png/512/3670/premium/3670051.png?token=exp=1638032014~hmac=1458dfcedc3ab96e295096e579e6956a" height="20" width="20"></img> </a>
94+
95+
<a href={"http://www.twitter.com/share?url=https://ipfs.infura.io/ipfs/" + file.fileHash} data-action="share/whatsapp/share"> <img src="http://assets.stickpng.com/images/580b57fcd9996e24bc43c53e.png" height="20" width="20"></img> </a>
7496
</td>
7597
</tr>
7698
</thead>

0 commit comments

Comments
 (0)