Skip to content

Commit 9d79cdc

Browse files
committed
Added Price filter with IonRangeSlider, sass style enhance, cleanup package.json
1 parent ff79c1a commit 9d79cdc

File tree

5 files changed

+329
-163
lines changed

5 files changed

+329
-163
lines changed

Diff for: ism/react-app/package-lock.json

+144
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: ism/react-app/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"react": "^16.12.0",
1717
"react-bootstrap": "^1.0.0-beta.16",
1818
"react-dom": "^16.12.0",
19+
"react-ion-slider": "^1.0.5",
1920
"react-owl-carousel": "^2.3.1",
2021
"react-popper": "^1.3.7",
2122
"react-router-dom": "^5.1.2",

Diff for: ism/react-app/public/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link rel="stylesheet" type="text/css" href="vendor/font-awesome/css/all.min.css" />
99
<link rel="stylesheet" type="text/css" href="vendor/owl.carousel/assets/owl.theme.default.min.css" />
1010
<link rel="stylesheet" type="text/css" href="vendor/daterangepicker/daterangepicker.css" />
11+
<link rel="stylesheet" type="text/css" href="vendor/ion-rangeslider/css/ion.rangeSlider.min.css" />
1112
<link rel="stylesheet" type="text/css" href="css/animate.min.css">
1213
<link rel="stylesheet" type="text/css" href="css/stylesheet.css" />
1314
<title>Index Train</title>
@@ -25,6 +26,7 @@
2526
<script src="vendor/bootstrap-spinner/bootstrap-spinner.js"></script>
2627
<script src="vendor/daterangepicker/moment.min.js"></script>
2728
<script src="vendor/daterangepicker/daterangepicker.js"></script>
29+
<script src="vendor/ion-rangeslider/js/ion.rangeSlider.min.js"></script>
2830
<script>
2931
$(function() {
3032
'use strict';

Diff for: ism/react-app/src/components/scss/main.scss

+42-26
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
// Content Blocks
1212
@import "header";
13-
//@import "rechargebill";
1413
@import "booking"; // Search Form
1514
@import "elements";
1615
@import "footer";
@@ -33,7 +32,7 @@ body {
3332
width: 10px;
3433
}
3534
&::-webkit-scrollbar-track {
36-
-webkit-box-shadow: inset 0 0 6px #e5e5e5;
35+
box-shadow: inset 0 0 6px #e5e5e5;
3736
border-radius: 10px;
3837
}
3938
&::-webkit-scrollbar-thumb {
@@ -514,49 +513,66 @@ section.page-header.bg-page-header {
514513
#harga-tiket {
515514
div {
516515
>span {
517-
>.irs-bar {
518-
height: 7px;
519-
top: 24px;
520-
background: linear-gradient(45deg, rgba(250, 250, 250, 0.8) 0%, rgba(255, 193, 7, 0.7) 35%, rgb(220, 53, 69) 100%);
521-
}
516+
>.irs-bar {
517+
height: 5px;
518+
// top: 24px;
519+
background-color: #0071cc;;
520+
// background: linear-gradient(45deg, rgba(250, 250, 250, 0.8) 0%, rgba(255, 193, 7, 0.7) 35%, rgb(220, 53, 69) 100%);
521+
}
522522
>span {
523-
>.irs-line {
524-
height: 5px;
525-
background: linear-gradient(90deg, rgba(250, 250, 250, 0) 0%, #dee2e6 35%, #e4e9ec 100%);
526-
}
523+
>.irs-line {
524+
// height: 5px;
525+
background: linear-gradient(90deg, rgba(250, 250, 250, 0) 0%, #dee2e6 35%, #e4e9ec 100%);
526+
}
527527
>.irs-min {
528-
color: #999;
529-
background: #fff;
528+
color: transparent;
529+
background: transparent;
530530
}
531531
>.irs-max {
532-
color: #999;
533-
background: #fff;
532+
color: transparent;
533+
background: transparent;
534534
}
535535
>.irs-grid-text {
536536
color: #ccc;
537-
background: #fff;
537+
font-size: 9px;
538+
// background: #fff;
538539
}
539540
>.irs-from {
540541
background: #fff;
541-
color: #000;
542+
color: #0071cc;
543+
font-size: 12px;
542544
}
543545
>.irs-to {
544546
background: #fff;
545-
color: #000;
547+
color: #0071cc;
548+
font-size: 12px;
549+
}
550+
>.irs-single {
551+
background: #fff;
552+
color: #0071cc;
553+
font-size: 12px;
554+
}
555+
>.irs-with-grid {
556+
height: 65px;
557+
left: 15px;
546558
}
547559
>.irs-grid-pol {
548-
background: #ccc;
560+
// background: #ccc;
549561
}
550562
>.irs-grid {
551-
bottom: 4px;
552-
left: 0;
553-
width: 100%;
554-
height: 20px;
563+
// bottom: 4px;
564+
// left: 0;
565+
// width: 50%;
566+
// height: 10px;
555567
}
556568
}
557-
>span.irs-handle {
558-
height: 11px;
559-
}
569+
>span.irs-handle {
570+
height: 20px;
571+
width: 20px;
572+
top: 28px;
573+
bottom: 7px;
574+
border: 4px solid #0071cc;
575+
}
560576
>span.irs-handle.from {
561577
i {
562578
background: #e4e4e4;

0 commit comments

Comments
 (0)