Add some minor stuff

This commit is contained in:
ronreg-ribdev 2020-05-21 02:49:43 -07:00
parent 8617f15bbf
commit 505451955d
3 changed files with 9 additions and 1 deletions

View File

@ -11,6 +11,10 @@ export class Root extends Component {
this.state = { fromValue: "ashby", toValue: "24th" }; this.state = { fromValue: "ashby", toValue: "24th" };
} }
action() {
console.log("Clickin'");
}
render() { render() {
return ( return (
@ -45,6 +49,7 @@ export class Root extends Component {
<option value="24th">24th st</option> <option value="24th">24th st</option>
</select> </select>
</form> </form>
<button onClick={this.action.bind(this)}>Search</button>
</div> </div>
</div> </div>
</div> </div>

View File

@ -8,7 +8,7 @@ export default class bartinfoTile extends Component {
return ( return (
<div className="w-100 h-100 relative bg-white bg-gray0-d ba b--black b--gray1-d"> <div className="w-100 h-100 relative bg-white bg-gray0-d ba b--black b--gray1-d">
<a className="w-100 h-100 db pa2 no-underline" href="/~bartinfo"> <a className="w-100 h-100 db pa2 no-underline" href="/~bartinfo">
<p className="black white-d absolute f9" style={{ left: 8, top: 8 }}>bartinfo</p> <p className="black white-d absolute f9" style={{ left: 8, top: 8 }}>BART Info</p>
<img className="absolute" src="/~bartinfo/img/Temp-Bart-Icon.png" style={{top: 40, left: 20, width: "50%"}}/> <img className="absolute" src="/~bartinfo/img/Temp-Bart-Icon.png" style={{top: 40, left: 20, width: "50%"}}/>
</a> </a>
</div> </div>

View File

@ -91,6 +91,8 @@
:: ::
|_ bol=bowl:gall |_ bol=bowl:gall
:: ::
:: request to http://api.bart.gov/api/stn.aspx?cmd=stns&key=Q5RQ-PUEB-999T-DWEI&json=y
:: get .root | .stations | .station for list of stations
++ poke-handle-http-request ++ poke-handle-http-request
|= =inbound-request:eyre |= =inbound-request:eyre
^- simple-payload:http ^- simple-payload:http
@ -98,6 +100,7 @@
?+ site.url not-found:gen ?+ site.url not-found:gen
[%'~bartinfo' %css %index ~] (css-response:gen style) [%'~bartinfo' %css %index ~] (css-response:gen style)
[%'~bartinfo' %js %tile ~] (js-response:gen tile-js) [%'~bartinfo' %js %tile ~] (js-response:gen tile-js)
[%'~bartinfo' %js %tileman ~] (js-response:gen tile-js)
[%'~bartinfo' %js %index ~] (js-response:gen script) [%'~bartinfo' %js %index ~] (js-response:gen script)
:: ::
[%'~bartinfo' %img @t *] [%'~bartinfo' %img @t *]