diff --git a/cityLine.jsx b/cityLine.jsx new file mode 100644 index 0000000..c8954a8 --- /dev/null +++ b/cityLine.jsx @@ -0,0 +1,36 @@ +import React, { Component } from 'react'; +import './component-styling.css' + + +class CityLine extends Component { + state = { + cityline:[{number : '1,3,5,6,7,3,9,10,9,34,56,78,90,123,457,89'} + + ] + } + render() { + return ( +
+ + + + + + + + + {this.state.cityline.map(line => + + + + + )} + + +
LINE
{line.number}
+
+ ); + } +} + +export default CityLine; \ No newline at end of file diff --git a/operator.jsx b/operator.jsx new file mode 100644 index 0000000..97bfc47 --- /dev/null +++ b/operator.jsx @@ -0,0 +1,51 @@ +import React, { Component } from 'react'; +import './component-styling.css' + +class Operator extends Component { + state ={operator: [ + + {name: 'DKK',description:'bus government',link:'www.ddk.com'}, + {name: 'aftu',description:'bus private',link:'www.aftu.com'}, + {name: 'taxi bagage',description:'taxi private',link:'www.taxi.com'}, + {name: 'clando',description:'clando dakar',link:'www.clando.com'}, + {name: 'taxi halo',description:'taxi dorkat',link:'www.dorkat.com'} + + ]}; + +/** + * once we have the database done instead of writiing the + * opera.name ,opera.description and operator.link + * we will be using the format : + * {opera.name},{opera.description},{opera.link} + */ + + render() { + return ( +
+ + + + + + + + + + + {this.state.operator.map(opera => + + + + + + + )} + + +
NameDescriptionLink/Info
{opera.name}{opera.description}{opera.link}
+
+ ); + } +} + +export default Operator; \ No newline at end of file diff --git a/ticket.jsx b/ticket.jsx new file mode 100644 index 0000000..f5fc943 --- /dev/null +++ b/ticket.jsx @@ -0,0 +1,42 @@ +import React, { Component } from 'react'; +import './component-styling.css' + +class Ticket extends Component { + state = {ticket :[ + + {price:'150fr',duration:'20min'}, + {price:'200fr',duration:'30min'}, + {price:'350fr',duration:'40min'}, + {price:'450fr',duration:'50min'}, + {price:'500fr',duration:'60min'}, + {price:'180fr',duration:'35min'}, + {price:'100fr',duration:'10min'} + + ] + }; + render() { + return ( +
+ + + + + + + + + {this.state.ticket.map(tic=> + + + + + )} + + +
PriceDuration
{tic.price}{tic.duration}
+
+ ); + } +} + +export default Ticket; \ No newline at end of file diff --git a/travelplanner.jsx b/travelplanner.jsx new file mode 100644 index 0000000..246c60b --- /dev/null +++ b/travelplanner.jsx @@ -0,0 +1,43 @@ +import React, { Component } from 'react'; +import './component-styling.css' +//import TravelPlanner from './travelplanner'; + +class TravelPlanner extends Component { + state = { travel:[ + + {tata:'http://aftu-senegal.org/',bus:'http://demdikk.com/senegal_dem_dikk/',taxi:'http://taxi.com/senegal'} + + + ] }; + render() { + return ( +
+ + + + + + + + + + + + {this.state.travel.map(travels=> + + + + + + + )} + + +
BusTatataxi
{travels.bus}{travels.tata}{travels.taxi}
+
+ + ); + } +} + +export default TravelPlanner; \ No newline at end of file diff --git a/vehicule.jsx b/vehicule.jsx new file mode 100644 index 0000000..de50145 --- /dev/null +++ b/vehicule.jsx @@ -0,0 +1,42 @@ +import React, { Component } from 'react'; +import './component-styling.css' +//import './images'; + +class Vehicule extends Component { + state = { + + imageStop: 'images/abris-bus.jpg', + vehiculColorDKK:"http://demdikk.com/bonne-fete-de-lindependance/", + vehiculeColorTata:"http://aftu-senegal.org/a-propos", + taxiImage:"images/taxi.jpg" + + } + render() { + return ( +
+
+ +
+ +

Bus Dem Dikk

+
+
+ + Bus Dem Dikk +
+
+ +

Bus Tata

+
+
+ + Stop +
+ +
+
+ ); + } +} + +export default Vehicule; \ No newline at end of file