Skip to content

Commit

Permalink
built full mobile scaffolding in mobile view on home screen from 1-10…
Browse files Browse the repository at this point in the history
… apps
  • Loading branch information
guylepage3 committed Feb 27, 2017
1 parent fb761c8 commit e8fe3b2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 20 deletions.
14 changes: 8 additions & 6 deletions app/js/pages/DashboardPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ class DashboardPage extends Component {

render() {
   return (
<div className="container-fluid app-center dashboard">
<div className="dashboard">
<div className="container-fluid app-center">
<div className="container app-wrap">
<div className="col-sm-12 app-container no-padding">
<div className="app-box-wrap">
<div className="app-container no-padding">
<div className="col-sm-3 app-box-wrap">
<Link to="/profiles" className="app-box-container">
<div className="app-box">
<img src="/images/[email protected]" />
Expand All @@ -32,7 +33,7 @@ class DashboardPage extends Component {
<h3>Profiles</h3>
</div>
</div>
<div className="app-box-wrap">
<div className="col-sm-3 app-box-wrap">
<Link to="/wallet/deposit" className="app-box-container">
<div className="app-box">
<img src="/images/[email protected]" />
Expand All @@ -42,7 +43,7 @@ class DashboardPage extends Component {
<h3>Wallet</h3>
</div>
</div>
<div className="app-box-wrap">
<div className="col-sm-3 app-box-wrap">
<Link to="/account/settings" className="app-box-container">
<div className="app-box">
<img src="/images/app-settings.png" />
Expand All @@ -52,7 +53,7 @@ class DashboardPage extends Component {
<h3>Account</h3>
</div>
</div>
<div className="app-box-wrap">
<div className="col-sm-3 app-box-wrap">
<a href="https://helloblockstack.com"
className="app-box-container">
<div className="app-box">
Expand All @@ -66,6 +67,7 @@ class DashboardPage extends Component {
</div>
</div>
</div>
</div>
   )
 }
}
Expand Down
40 changes: 26 additions & 14 deletions app/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ button.btn.btn-sm.nav-page{margin-top:-1px;padding:10px 8px;}
.out-form-group{width:490px;margin-left:-80px;}
.app-box-container{display:block;min-height:1px;padding-right:4px;text-align:center;}
.app-box-wrap {
width:105px;
width:135px;
margin: auto;
padding: 0;
}
.app-box {
height: auto;
Expand All @@ -149,16 +151,15 @@ button.btn.btn-sm.nav-page{margin-top:-1px;padding:10px 8px;}
margin-right: 0px !important;
}
.app-box img {
width: 76px;
width: 96px;
background-color: rgba(44, 150, 255, 0.5);
-webkit-box-shadow: 0px 0px 20px 0px rgba(44, 150, 255, 1);
-moz-box-shadow: 0px 0px 20px 0px rgba(44, 150, 255, 1);
box-shadow: 0px 0px 20px 0px rgba(44, 150, 255, 1);
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
border-radius: 15px;
-webkit-box-shadow: 0px 0px 40px 0px rgba(44, 150, 255, 1);
-moz-box-shadow: 0px 0px 40px 0px rgba(44, 150, 255, 1);
box-shadow: 0px 0px 40px 0px rgba(44, 150, 255, 1);
-moz-border-radius: 19px;
-webkit-border-radius: 19px;
border-radius: 19px;
}

.text-feat-dash{padding:12px;margin-bottom:0;}
a.view-out-link{color:#494f56;}

Expand All @@ -182,6 +183,14 @@ div.out-form-group > div > div.alert.alert-dismissible{margin-right:15px;margin-
/* No media query since this is the default in Bootstrap */

/* Small devices (tablets, 768px and up) */
@media (min-width:330px){
.app-box-wrap {
width:135px;
margin: initial;
padding: 0;
}
}

@media (min-width:768px){
.view-with-sidebar{padding-left:90px;}
}
Expand Down Expand Up @@ -340,32 +349,35 @@ a.list-group-item-dash:hover,
.page-header > h1{margin-bottom:0;}
.vertical-split-content{margin-top:40px;}
.app-center {
width: 100%;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
flex-direction: row;
justify-content: center;
justify-content: space-between;
}
.app-wrap {
max-width:unset;
width: 100%;
max-width:initial;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
flex-direction: row;
justify-content: center;
justify-content: space-between;
}
.app-container {
width: 100%;
display: flex;
flex-wrap:wrap;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
flex-direction: row;
justify-content: center;
justify-content: space-between;
}
div.app-text-container > h3 {
color: #fff;
font-weight: 300;
font-size: 0.875rem;
font-size: 1rem;
}
.btn-home-profiles{position:absolute;font-size:12px;font-weight:500;top:75px;left:0px;padding:2px 10px;background-color:#fafafa;border-radius:6px;-webkit-box-shadow:0px 0px 20px 0px rgba(0,0,0,0.15);-moz-box-shadow:0px 0px 20px 0px rgba(0,0,0,0.15);box-shadow:0px 0px 20px 0px rgba(0,0,0,0.15);}
.btn-home-pageheader{position:absolute;font-size:11px;font-weight:400;color:rgba(255,255,255,0.85);top:15px;left:15px;padding:3px 20px;background-color:rgba(255,255,255,0.15);border-radius:6px;-webkit-box-shadow:0px 0px 20px 0px rgba(0,0,0,0.15);-moz-box-shadow:0px 0px 20px 0px rgba(0,0,0,0.15);box-shadow:0px 0px 20px 0px rgba(0,0,0,0.15);}
Expand Down

0 comments on commit e8fe3b2

Please sign in to comment.