Skip to content

Commit

Permalink
Account
Browse files Browse the repository at this point in the history
  • Loading branch information
karsrhyder committed May 29, 2019
1 parent 2b07720 commit 87fd0fa
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 42 deletions.
3 changes: 3 additions & 0 deletions .netlify/state.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"siteId": "5ce664ae-3760-4b39-aee5-4af8fdea2e85"
}
1 change: 0 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# example netlify.toml
[build]
command = "yarn build"
functions = "functions"
publish = "build"

## Uncomment to use this redirect for Single Page Applications like create-react-app.
Expand Down
18 changes: 11 additions & 7 deletions src/pages/AccountRoot.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,29 @@ class Account extends React.Component {
return (
<div className={styles.container}>
<div className={styles.topbar}>
<div className={styles.breadcrumb}>FairDrive / </div>
<div className={styles.breadcrumb}>SwarmDrive / </div>
{/* <div className={styles.breadcrumbpath}>
by Fair Data Society
</div> */}

</div>
<div className={styles.innercontainer}>
<div className={styles.register}>
<div className={styles.breadcrumbpath}>Unlock</div>
<input type="text" placeholder="Email"></input>
<div className={styles.breadcrumbpath}>Login</div>
<input type="text" placeholder="Handle"></input>
<input type="password" placeholder="Password"></input>
<div className={styles.button}>Unlock</div>
<NavLink to="/f">
<div className={styles.button}>Unlock</div>
</NavLink>
</div>
<div className={styles.register}>
<div className={styles.breadcrumbpath}>Register</div>
<input type="text" placeholder="Email"></input>
<NavLink to="/register" className={styles.createnew}>
<div>Register New SwarmDrive</div>
{/* <input type="text" placeholder="Email"></input>
<input type="password" placeholder="Password"></input>
<input type="password" placeholder="Password again"></input>
<div className={styles.button}>Register</div>
<div className={styles.button}>Register</div> */}
</NavLink>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Directory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ class Directory extends React.Component {
<div className={styles.topbar}>
<div className={styles.breadcrumb}> {this.props.directory}</div>

<NavLink to="/">
<NavLink to="/f">
<div className={styles.breadcrumbpath}>
Back to
FairDrive /
SwarmDrive /
</div>
</NavLink>

Expand Down
40 changes: 22 additions & 18 deletions src/pages/Files.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,29 @@ import {
class Files extends React.Component {
render() {
return (
<div className={styles.container}>
<div className={styles.topbar}>
<div className={styles.breadcrumb}>FairDrive / </div>
</div>
<div className={styles.innercontainer}>

{this.props.directories.map(item => (
<NavLink to={"d/" + item}>
<div className={styles.directoryrow}>
<div className={styles.icons8folder}></div>
<RowFile name={item} />
</div>
</NavLink>

))}
</div>
</div>
<div className={styles.container}>
<div className={styles.topbar}>
<div className={styles.breadcrumb}>SwarmDrive / </div>
<div className={styles.breadcrumbpath}>
~122GB - 11.23 SWT
</div>
</div>
<div className={styles.innercontainer}>

{this.props.directories.map(item => (
<NavLink to={"d/" + item}>
<div className={styles.directoryrow}>
<div className={styles.icons8folder}></div>
<RowFile name={item} />
</div>
</NavLink>

))}
</div>
</div>
);
}}
}
}


const mapStateToProps = createStructuredSelector({
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Directory from "./Directory";
import Account from "./AccountRoot";

export default [
{ path: "/", exact: true, component: Files },
{ path: "/account", exact: true, component: Account },
{ path: "/", exact: true, component: Account },
{ path: "/f", exact: true, component: Files },
{ path: "/d/:directory", component: Directory }
];
11 changes: 7 additions & 4 deletions src/services/filebrowser/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ import { assertAction } from "../utilities";
// Service > user
const initialState = {
directories: [
"DappData",

"Documents",
"Images",
"KeyData",
"Magnet",

"Movies",

"Music",
"Movies",
"DappData",
"KeyData",
"Magnet",
"Photos"
]
};
Expand Down
41 changes: 33 additions & 8 deletions src/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
}

.baseShadow {
box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.5);
-o-box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.5);
box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.8);
-webkit-box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.8);
-moz-box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.8);
-o-box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.8);
}

a {
Expand Down Expand Up @@ -111,6 +111,7 @@ a {
.breadcrumbpath {
composes: bodyBold;
color: #cecece !important;
line-height: 36px;
}

.innercontainer {
Expand All @@ -119,6 +120,12 @@ a {
background-color: var(--bg-dark);
}

.logincontainer {
margin-top: 140px;
overflow: scroll;
background-color: var(--bg-dark);
}

.register {
display: flex;
flex-direction: column;
Expand All @@ -127,6 +134,15 @@ a {
width: 100vw;
}

.createnew {
composes: bodyBold;
color: var(--fds-dark) !important;
}

.createnew :hover {
color: var(--fds-blue) !important;
}

.innercontainer input {
font-family: Montserrat;
font-size: 14px;
Expand All @@ -141,6 +157,12 @@ a {
border-top: transparent !important;
border-left: transparent !important;
border-right: transparent !important;
line-height: 26px;
}

.innercontainer input:focus {
outline: none;
border-bottom: 1px solid var(--fds-blue);
}

.button {
Expand All @@ -158,10 +180,13 @@ a {
max-height: 62px;
margin-top: 20px;
border: 1px solid var(--fds-blue);
margin-top: 50px;
}

.innercontainer input:focus {
outline: none;
.button :hover {
border: 1px solid var(--fds-yellow);
color: var(--fds-yellow);

}

.rowfile {
Expand All @@ -186,8 +211,8 @@ a {
align-items: center;
justify-items: flex-start;
padding: 20px 40px 20px 40px;
background-color: var(--bg-shade);
border-bottom: 1px solid var(--border-line);
background-color: var(--bg-dark);
border-bottom: 1px solid var(--bg-shade);
}

.flaticon::before {
Expand Down

0 comments on commit 87fd0fa

Please sign in to comment.