-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic version for landing, search, favourites pages
- Loading branch information
Showing
24 changed files
with
1,018 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ node_modules | |
dist | ||
dist-ssr | ||
*.local | ||
.env | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from "react"; | ||
|
||
|
||
const AboutPage = () => { | ||
return ( | ||
<div>About page</div> | ||
); | ||
}; | ||
|
||
export default AboutPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from "react"; | ||
|
||
|
||
const AllBusesPage = () => { | ||
return ( | ||
<div>All buses page</div> | ||
); | ||
}; | ||
|
||
export default AllBusesPage; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import React from "react"; | ||
import {Icon} from "@iconify/react/dist/iconify.js"; | ||
import SearchResultItem from "../search/search_result_item"; | ||
import {ROUTES, SEARCH_RESULT_TYPES} from "../utils/constants.js"; | ||
import {Link} from "react-router-dom"; | ||
|
||
const FAVOURITES = [ | ||
{ | ||
type: SEARCH_RESULT_TYPES.location, | ||
text: "Mayur Paradise", | ||
favourite: true, | ||
}, | ||
{ | ||
type: SEARCH_RESULT_TYPES.bus_stop, | ||
text: "Tippasandra Market Bus Stop", | ||
favourite: true, | ||
}, | ||
{ | ||
type: SEARCH_RESULT_TYPES.metro_station_purple, | ||
text: "Nadaprabhu Kempegowda Metro Station, Majestic", | ||
favourite: true, | ||
}, | ||
{ | ||
type: SEARCH_RESULT_TYPES.bus_number, | ||
text: "314", | ||
favourite: true, | ||
}, | ||
{ | ||
type: SEARCH_RESULT_TYPES.bus_number, | ||
text: "333G", | ||
favourite: true, | ||
}, | ||
]; | ||
|
||
const FavouritesPage = () => { | ||
return ( | ||
<> | ||
<div id="page-header"> | ||
<Link id="header-back" to={ROUTES.home}> | ||
<Icon icon="mdi:arrow-back" color="#FFFFFF" width="24" height="24" /> | ||
</Link> | ||
<p id="header-text" className="center"> | ||
<span> | ||
Favourites | ||
</span> | ||
</p> | ||
</div> | ||
<div id="search-results"> | ||
{ | ||
FAVOURITES.map(i => <SearchResultItem key={i.text} info={i} />) | ||
} | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default FavouritesPage; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.