Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import SetPay from './components/SetPay';
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import RequestList from './components/RequestList';
import Information from './components/Information';
import Reward from './components/Reward';


class App extends Component {
Expand Down Expand Up @@ -48,6 +49,7 @@ class App extends Component {
<Route path='/pay' component={SetPay} />
<Route path='/detail' component={Request} />
<Route path='/information' component={Information}/>
<Route path='/Reward' component={Reward}/>
</Switch>
</Router>
);
Expand Down
98 changes: 98 additions & 0 deletions client/src/components/Reward.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
import React, { Component } from 'react';
import { GoogleApiWrapper, Map, Marker } from 'google-maps-react';

class Reward extends Component {
constructor(props) {
super(props)


this.containerStyle = {
position: "absolute",
width: "100%",
height: "100%"
};
this.RewardStyle = {
position: "absolute",
zIndex: "2",
top: "5%",
left: "50%",
transform: "translateY(-50%) translateX(-50%)",
textAlign: "center",
padding: "0.1px 19px",
color: "#2c2c2f",
background: "#cde4ff",
borderTop: "solid 5px #5989cf",
borderBottom: "solid 5px #5989cf",
}
this.MoneyStyle = {
position: "absolute",
zIndex: "2",
bottom: "10%",
left: "50%",
transform: "translateY(-50%) translateX(-50%)",
textAlign: "center",
padding:" 0.5px 20px",
fontWeight: "bold",
// fontSize: "small",
width: "70%",
color: "#6091d3",/*文字色*/
background: "#FFF",
border: "solid 3px #6091d3",/*線*/
borderRadius: "10px",/*角の丸み*/
};
this.PayStile = {
position: "absolute",
zIndex: "2",
bottom: "0%",
left: "50%",
transform: "translateY(-50%) translateX(-50%)",
textAlign: "center",
padding: "0.1px 19px",
color: "#2c2c2f",
background: "#cde4ff",
borderTop: "solid 5px #5989cf",
borderBottom: "solid 5px #5989cf",
}
}

transit = () => {
this.props.history.push('/request')
}

render() {
return (
<div style={this.containerStyle}>
<div style={this.RewardStyle}>
<p>謝礼確認</p>
</div>

<div style={this.MoneyStyle}>
<p>合計:999Funey</p>
</div>

<div style={this.PayStile}>
<p>支払い</p>
</div>

<Map
google={this.props.google}
zoom={14}
center={{ lat: 35.681236, lng: 139.767125 }}
initialCenter={{ lat: 35.681236, lng: 139.767125 }}
mapTypeControl={false}
zoomControl={true}
streetViewControl={false}
>
<Marker
title={"現在地"}
position={{ lat: 35.681236, lng: 139.767125 }}
/>
</Map>
</div>
);
}
}

export default GoogleApiWrapper({
apiKey: ("AIzaSyB0ftXJ-48aqJgBjfRney-Co4vmnd4yd6g")
})(Reward);
10 changes: 10 additions & 0 deletions node_modules/.yarn-integrity

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1