Skip to content

Commit

Permalink
Merge pull request #107 from CaravanTransit/implement-homepage
Browse files Browse the repository at this point in the history
Implement New Homepage Design
  • Loading branch information
vkoves committed Oct 10, 2018
2 parents f84d17b + dda8613 commit 2929bf0
Show file tree
Hide file tree
Showing 19 changed files with 467 additions and 54 deletions.
Empty file removed app/assets/images/.keep
Empty file.
58 changes: 58 additions & 0 deletions app/assets/images/bus_white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions app/assets/images/caravan_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions app/assets/images/caravan_logo_bordered.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/cta-overhead-blur-mobile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/cta-overhead-blur.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/cta-overhead.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions app/assets/images/train_white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion app/assets/javascripts/location.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
if (!window.location.href.includes("?") && window.location.pathname == "/") {
// Run geolocation if on the view issues page
if (!window.location.href.includes("?") && window.location.pathname.includes("/view_issues")) {
geol();
}

Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*= require_self
*/

@import "variables";
@import 'variables';

body {
font-family: 'Open Sans', sans-serif;
Expand Down
47 changes: 47 additions & 0 deletions app/assets/stylesheets/dashboard.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
.star { vertical-align: bottom; }

.stops-container {
background-color: rgb(236,236,236);
left:0px;
right:0px;
padding:3px 4px 4px 4px;
margin-bottom:5px;
position:relative;
border-bottom-width:1px;
border-bottom-color:white;
box-shadow: 1px 1px 1px silver;
}

.ul-dash {
margin:0px;
margin-top:1px;
margin-bottom:1px;
}

.issue-container {
background-color: rgb(247,247,247);
width:100%;
float:center;
margin-top:0px;
margin-bottom:2px;
padding:0px;
position: relative;
display: inline-grid;
}

#stops_near, #stops_fav {
width:100%;
left:0px;
right:0px;
padding:0;
position:relative;
}

.issue-title {
font-size:18px;
}

.issue-time {
color:#999;
font-size:14px;
}
16 changes: 8 additions & 8 deletions app/assets/stylesheets/headers.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
@import "variables";
@import 'variables';

.headbar {
height: 50px;
height: $header-height;
width: 100%;
background-color: $theme-color;
text-align: center;
}

.hamburger {
float: left;
height: 50px;
width: 50px;
height: $header-height;
width: $header-height;
background-image: url(asset-path('menu.svg'));
background-size: 100%;
}
Expand All @@ -28,8 +28,8 @@
.search {
float: right;
background-image: url(asset-path('search-white.svg'));
height: 50px;
width: 50px;
height: $header-height;
width: $header-height;
background-size: 80%;
background-position: center;
background-repeat: no-repeat;
Expand All @@ -47,7 +47,7 @@
/* HEADERS WITH TRANSPORTATION NAMES ("ROOSEVELT", "CERMAK-McCORMICK") */
.locationList {


}

.side-menu-overlay {
Expand Down Expand Up @@ -109,7 +109,7 @@
margin: auto;
font-size: 20px;
}

input[type="submit"] {
box-shadow: none;
background: url(asset-path("search.svg"));
Expand Down
Loading

0 comments on commit 2929bf0

Please sign in to comment.