Skip to content

Commit

Permalink
Update icons in stop and route page
Browse files Browse the repository at this point in the history
  • Loading branch information
seadeep42 committed Aug 11, 2024
1 parent 1a8aa18 commit f3ac237
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
8 changes: 6 additions & 2 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ body {
height: 100vh;
}

.flex-gap {
flex-grow: 1;
}

#page-back {
position: fixed;
top: 28px;
Expand Down Expand Up @@ -381,8 +385,8 @@ body {

.bus-item-icon {
margin-right: 8px;
width: 16px;
height: 16px;
width: 32px;
height: 32px;
}

.bus-item-trips {
Expand Down
7 changes: 4 additions & 3 deletions src/route/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { MAPBOX_TOKEN, MAX_HISTORY_LENGTH, ROUTES, SEARCH_RESULT_TYPES } from ".
import {Icon} from "@iconify/react/dist/iconify.js";
import mapboxgl from "mapbox-gl";

import IconBusNumber from "../assets/icon_bus_number.svg";
import IconBusStop from "../assets/icon_bus_stop.svg";
import IconBusNumber from "../assets/icon-bus-route-new.svg";
import IconBusStop from "../assets/icon-bus-stop-new.svg";
import IconGreenCircle from "../assets/icon_green_circle.svg";
import IconLocation from "../assets/icon_location.svg";
import { getRouteDetailsApi } from "../utils/api.js";
Expand Down Expand Up @@ -214,12 +214,13 @@ class RoutePage extends React.PureComponent {
<BottomTray
headerContent={(
<div id="page-heading">
<img src={IconBusNumber} alt="" id="header-icon" />
<p>
<img src={IconBusNumber} alt="" id="header-icon" />
<span className="bus_number">
{routeDetails.route_short_name}
</span>
</p>
<div className="flex-gap" />
<button className="search-result-favourite" onClick={this.toggleFavourite}>
{
isFavourited ? (
Expand Down
2 changes: 1 addition & 1 deletion src/stop/bus-stop-route-item.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import _ from "lodash";
import { Link } from "react-router-dom";
import IconBusNumber from "../assets/icon_bus_number.svg";
import IconBusNumber from "../assets/icon-bus-route-new.svg";
import {ROUTES, SEARCH_RESULT_TYPES} from "../utils/constants.js";

const BusStopRouteItem = ({ info }) => {
Expand Down
5 changes: 3 additions & 2 deletions src/stop/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {Icon} from "@iconify/react/dist/iconify.js";
import mapboxgl from "mapbox-gl";
import { MAPBOX_TOKEN, MAX_HISTORY_LENGTH, SEARCH_RESULT_TYPES } from "../utils/constants.js";

import IconBusStop from "../assets/icon_bus_stop.svg";
import IconBusStop from "../assets/icon-bus-stop-new.svg";
import BusStopRouteItem from "./bus-stop-route-item.jsx";
import { getStopDetailsApi } from "../utils/api.js";
import BottomTray from "../components/bottom_tray.jsx";
Expand Down Expand Up @@ -144,10 +144,11 @@ class StopPage extends React.PureComponent {
<BottomTray
headerContent={(
<div id="page-heading">
<img src={IconBusStop} alt="" id="header-icon" />
<p>
<img src={IconBusStop} alt="" id="header-icon" />
{ stopDetails.stop_name }
</p>
<div className="flex-gap" />
<button className="search-result-favourite" onClick={this.toggleFavourite}>
{
isFavourited ? (
Expand Down

0 comments on commit f3ac237

Please sign in to comment.