Skip to content

Commit 01c126d

Browse files
committed
ui sett
1 parent 65f7e40 commit 01c126d

File tree

6 files changed

+31
-20
lines changed

6 files changed

+31
-20
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "dstorage",
2+
"name": "csa",
33
"version": "0.1.0",
44
"description": "Decentralized File Storage",
5-
"author": "Dapp University",
5+
"author": "adamsy",
66
"homepage": ".",
77
"dependencies": {
88
"@geist-ui/react": "^2.2.0",

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://wallpaperaccess.com/full/4785394.jpg');
18-
background-size: auto;
19-
background-position: center;
17+
background-image: url('https://wallpaperaccess.com/full/4785394.jpg');
18+
background-size: cover;
19+
20+
background-position: center;
21+
2022
background-repeat: no-repeat;
2123
2224

src/components/Main.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#onee{
22
background:rgba(0,0,0,0);
3+
border: none;
34
}
45

56
input{
@@ -12,7 +13,6 @@ input[type=text]{
1213
margin: 8px 0;
1314
box-sizing: border-box;
1415
border: none;
15-
border-bottom: 2px solid #ccc;
1616
background-color: #f1f1f1;
1717
}
1818
input[type=text]:focus{

src/components/Main.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class Main extends Component {
2323
this.props.uploadFile(description)
2424
}} >
2525
<div className="form-group">
26+
2627
<br></br>
2728
<input
2829
id="fileDescription"
@@ -33,7 +34,6 @@ class Main extends Component {
3334
required />
3435
</div>
3536
<input type="file" onChange={this.props.captureFile} className="text-white text-monospace"/>
36-
3737
<button type="submit" style={{ color: "grey", background: "black"}} className="btn-primary btn-block"><b>Upload!</b></button>
3838

3939

@@ -43,14 +43,14 @@ class Main extends Component {
4343
<table className="table-sm table-bordered text-monospace" style={{ width: '1000px', maxHeight: '450px'}}>
4444
<thead style={{ 'fontSize': '15px' }}>
4545
<tr className="bg-dark text-white">
46-
<th scope="col" style={{ width: '10px'}}>id</th>
47-
<th scope="col" style={{ width: '200px'}}>name</th>
48-
<th scope="col" style={{ width: '230px'}}>description</th>
49-
<th scope="col" style={{ width: '120px'}}>type</th>
50-
<th scope="col" style={{ width: '90px'}}>size</th>
51-
<th scope="col" style={{ width: '90px'}}>date</th>
52-
<th scope="col" style={{ width: '120px'}}>uploader/view</th>
53-
<th scope="col" style={{ width: '120px'}}>hash/view/get</th>
46+
47+
<th scope="col" style={{ width: '200px'}}>Name</th>
48+
<th scope="col" style={{ width: '230px'}}>Description</th>
49+
<th scope="col" style={{ width: '120px'}}>Type</th>
50+
<th scope="col" style={{ width: '90px'}}>Size</th>
51+
<th scope="col" style={{ width: '90px'}}>Date</th>
52+
<th scope="col" style={{ width: '120px'}}>Uploader/view</th>
53+
<th scope="col" style={{ width: '120px'}}>Hash/view/get</th>
5454
<th scope="col" style={{ width: '120px'}}>Qr code</th>
5555
<th scope="col" style={{ width: '120px'}}>Share!</th>
5656
</tr>
@@ -59,7 +59,7 @@ class Main extends Component {
5959
return(
6060
<thead style={{ 'fontSize': '12px' }} key={key}>
6161
<tr>
62-
<td>{file.fileId}</td>
62+
6363
<td>{file.fileName}</td>
6464
<td>{file.fileDescription}</td>
6565
<td>{file.fileType}</td>
@@ -76,15 +76,15 @@ class Main extends Component {
7676

7777
<td>
7878
<a
79-
href={"https://etherscan.io/address/" + file.uploader}
79+
href={"https://ipfs.infura.io/ipfs/" + file.fileHash}
8080
rel="noopener noreferrer"
8181
target="_blank">
82-
{file.uploader.substring(0,10)}...
82+
{file.fileHash.substring(0,10)}...
8383
</a>
8484
</td>
8585
<td>
8686
<img
87-
src={"https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=https://ipfs.infura.io/ipfs/" + file.fileHash}
87+
src={"https://api.qrserver.com/v1/create-qr-code/?size=120x120&data=https://ipfs.infura.io/ipfs/" + file.fileHash}
8888
>
8989

9090
</img>

src/components/Navbar.css

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
nav,a{
2+
3+
color: #eceff4 !important;
4+
5+
}
6+
#dpround{
7+
border-radius: 50%;
8+
}

src/components/Navbar.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { Component } from 'react';
22
import Identicon from 'identicon.js';
33
import box from '../box.png'
4+
import './Navbar.css';
45

56
class Navbar extends Component {
67

@@ -28,7 +29,7 @@ class Navbar extends Component {
2829
</a>
2930
</small>
3031
{ this.props.account
31-
? <img
32+
? <img id="dpround"
3233
alt=""
3334
className='ml-2'
3435
width='30'

0 commit comments

Comments
 (0)