Skip to content

Commit

Permalink
Changes to make it bmtcbusroutes
Browse files Browse the repository at this point in the history
  • Loading branch information
seadeep42 committed Oct 19, 2024
1 parent f3ac237 commit 2001856
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Workflow for build and deploy of the BLR public transport webapp frontend to AWS
name: Workflow for build and deploy of the BMTC bus routes webapp frontend to AWS
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ body {

#landing-header {
display: flex;
flex-direction: row-reverse;
flex-direction: row;
justify-content: space-between;
align-items: center;
margin-bottom: 32px;
Expand Down
2 changes: 1 addition & 1 deletion src/landing/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class LandingPage extends React.PureComponent {
<Sidebar />
<Link id="landing-input" to={ROUTES.search}>
<Icon icon="iconamoon:search-bold" color="#FFFFFF" width="16" height="16" />
Where to?
Search for a bus route or bus stop
</Link>
{
_.size(historyItems) > 0 && (
Expand Down
6 changes: 3 additions & 3 deletions src/landing/sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ const Sidebar = () => {
</div>
) : (
<div id="landing-header">
<button id="landing-hamburger" onClick={() => setSidebarOpen(true)}>
{/* <button id="landing-hamburger" onClick={() => setSidebarOpen(true)}>
<Icon icon="ic:round-menu" color="#2D2D2D" width="36" height="36" />
</button>
<h1>Plan your trip</h1>
</button> */}
<h1>BMTC bus routes</h1>
</div>
);
};
Expand Down
10 changes: 5 additions & 5 deletions src/route/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class RoutePage extends React.PureComponent {
const { routeDetails, isFavourited } = this.state;
const [from, to] = (routeDetails?.route_long_name || "").split("→");

// console.log(routeDetails);
const tripWithTheMostStops = _.maxBy(routeDetails?.route_trips, t => t.timings.length);
return (
<>
<div id="map" ref={this.mapContainer} className="map-container" />
Expand Down Expand Up @@ -254,12 +254,12 @@ class RoutePage extends React.PureComponent {
<h4>
Stops on route
</h4>
<span>Timing at the stop</span>
{/* <span>Timing at the stop</span> */}
</div>
<div id="bus-route-stops-list">
{
_.map(
routeDetails.route_trips[0].timings,
tripWithTheMostStops.timings,
(s, index) => {
const stopDetails = _.find(routeDetails.stopInformation, {
stop_id: s.stop_id,
Expand All @@ -275,9 +275,9 @@ class RoutePage extends React.PureComponent {
<img src={ICON_FOR_STOP_TYPE[stopType]} alt="" className="bus-route-stop-icon" />
<Link state={{ from: ROUTES.route }} to={`/stop/${s.stop_id}`} className="bus-route-stop-text">{stopDetails.stop_name}</Link>
<span className="bus-route-stop-time">
{
{/* {
s.arrival_time.substring(0, 5)
}
} */}
</span>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/search/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const SearchPage = () => {
id="search-input"
value={searchText}
onChange={e => setSearchText(e.target.value)}
placeholder="Search for a bus, metro, or bus stop"
placeholder="Search for a bus, or bus stop"
/>
</div>
<SearchResults
Expand Down

0 comments on commit 2001856

Please sign in to comment.