Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MUX-45 As User I want to see the mailvelope main dashboard
- Loading branch information
1 parent
ee8bb1f
commit bdc6505
Showing
11 changed files
with
205 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,26 @@ | ||
*~ | ||
.directory | ||
*.sublime* | ||
.svn | ||
# dependencies | ||
/node_modules | ||
bower_components | ||
/node_modules/ | ||
tmp/ | ||
build/ | ||
|
||
# testing | ||
/coverage | ||
/tmp | ||
.travis/crx_signing.pem | ||
|
||
# build | ||
/build | ||
apidoc/ | ||
.idea/ | ||
atlassian-ide-plugin.xml | ||
mailvelope.iml | ||
cert/ | ||
.DS_Store | ||
.travis/crx_signing.pem | ||
.eslintcache | ||
|
||
# editors | ||
*.sublime* | ||
atlassian-ide-plugin.xml | ||
.idea/ | ||
|
||
# misc | ||
.DS_Store | ||
.svn | ||
*~ | ||
.directory | ||
mailvelope.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/** | ||
* Copyright (C) 2017 Mailvelope GmbH | ||
* Licensed under the GNU Affero General Public License version 3 | ||
*/ | ||
|
||
import React from 'react'; | ||
import * as l10n from '../../lib/l10n'; | ||
import {Link} from 'react-router-dom'; | ||
import './Dashboard.less'; | ||
|
||
l10n.register([ | ||
'dashboard_link_manage_keys', | ||
'dashboard_link_encrypt_decrypt_files', | ||
'dashboard_link_view_security_log', | ||
'dashboard_link_manage_email_providers', | ||
'dashboard_link_help' | ||
]); | ||
|
||
export default class Dashboard extends React.Component { | ||
render() { | ||
const mailvelopeHelpUrl = "https://www.mailvelope.com/en/help"; | ||
return ( | ||
<div className="container"> | ||
<div className="dashboard"> | ||
<div className="col-md-12"> | ||
<h3>Dashboard</h3> | ||
</div> | ||
<div className="col-md-3"> | ||
<Link to="/keyring/display" className="dashboard-item"> | ||
<i className="fa fa-key"></i> | ||
<span>{l10n.map.dashboard_link_manage_keys}</span> | ||
</Link> | ||
</div> | ||
<div className="col-md-3"> | ||
<Link to="/encryption/file-encrypt" className="dashboard-item"> | ||
<i className="fa fa-files-o"></i> | ||
<span>{l10n.map.dashboard_link_encrypt_decrypt_files}</span> | ||
</Link> | ||
</div> | ||
<div className="col-md-3"> | ||
<Link to="/settings/security-log" className="dashboard-item"> | ||
<i className="fa fa-eye"></i> | ||
<span>{l10n.map.dashboard_link_view_security_log}</span> | ||
</Link> | ||
</div> | ||
<div className="col-md-3"> | ||
<Link to="/settings/watchlist" className="dashboard-item"> | ||
<i className="fa fa-server"></i> | ||
<span>{l10n.map.dashboard_link_manage_email_providers}</span> | ||
</Link> | ||
</div> | ||
<div className="col-md-3"> | ||
<a href={mailvelopeHelpUrl} className="dashboard-item" target="_blank"> | ||
<i className="fa fa-question-circle"></i> | ||
<span>{l10n.map.dashboard_link_help}</span> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
@import "../../res/less/colors"; | ||
|
||
@dashboard-item-title-bg-color: @grey-light; | ||
@dashboard-item-title-bg-color-hover: darken(rgb(red(@grey-light), green(@grey-light), blue(@grey-light)), 2%); | ||
@dashboard-item-bg-color: rgb(255, 255, 255); | ||
@dashboard-item-bg-color-hover: darken(rgb(255, 255, 255), 2%); | ||
|
||
.dashboard { | ||
a.dashboard-item { | ||
display: block; | ||
text-align: center; | ||
margin-bottom: 2em; | ||
background-color: @dashboard-item-bg-color; | ||
border: 1px solid #ddd; | ||
border-radius: 4px; | ||
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05); | ||
box-shadow: 0 1px 1px rgba(0, 0, 0, .05); | ||
padding:1em 0 0 0; | ||
transition: background-color 0.3s ease; | ||
|
||
&:hover { | ||
background-color: @dashboard-item-bg-color-hover; | ||
text-decoration: none; | ||
span { | ||
background-color: @dashboard-item-title-bg-color-hover; | ||
} | ||
i.fa { | ||
color: @grey-dark; | ||
} | ||
} | ||
|
||
i.fa { | ||
font-size: 5em; | ||
margin:.25em; | ||
color: @grey; | ||
} | ||
span { | ||
display: block; | ||
margin-top:1em; | ||
color: @grey-dark; | ||
padding: 0.5em; | ||
background-color: @dashboard-item-title-bg-color; | ||
transition: background-color 0.3s ease; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@grey-light: #f8f8f8; | ||
@grey-selected: #e7e7e7; | ||
@grey:#888; | ||
@grey-dark: #555555; | ||
@grey-darker: #333333; |