-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from dbstjs95/dev
Dev buildspec.yml 추가
- Loading branch information
Showing
72 changed files
with
3,482 additions
and
1,115 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: 0.2 | ||
|
||
phases: | ||
pre_build: | ||
commands: | ||
- cd client | ||
- npm ci | ||
build: | ||
commands: | ||
- npm run build | ||
|
||
artifacts: | ||
files: | ||
- "**/*" | ||
base-directory: client/build |
Binary file not shown.
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 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,62 @@ | ||
import styled from 'styled-components'; | ||
import { useEffect, useState } from 'react'; | ||
import { useDispatch, useSelector } from 'react-redux'; | ||
import { selectUserInfo } from '../store/slices/userInfo'; | ||
import { inputPayment } from '../store/slices/point'; | ||
import Payment from './Payment'; | ||
|
||
const ChargeBoxContainer = styled.div` | ||
/* border: 3px solid black; */ | ||
background-color: #f3f702; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 10px; | ||
border-radius: 10px; | ||
> p.header { | ||
width: 80%; | ||
font-weight: bold; | ||
padding-bottom: 5px; | ||
border-bottom: 1px solid black; | ||
} | ||
> input { | ||
font-size: 1rem; | ||
padding: 5px; | ||
} | ||
> button { | ||
font-size: 0.9rem; | ||
padding: 7px; | ||
background-color: #30302d; | ||
color: white; | ||
border-radius: 5px; | ||
} | ||
`; | ||
|
||
export default function ChargeBox() { | ||
const dispatch = useDispatch(); | ||
const { phone, email } = useSelector(selectUserInfo); | ||
|
||
return ( | ||
<ChargeBoxContainer className="charge-box"> | ||
<p className="header">결제방식 {'>'} 카카오페이</p> | ||
<input | ||
placeholder="금액 입력" | ||
type="number" | ||
min="3000" | ||
step="1000" | ||
onChange={(e) => | ||
dispatch( | ||
inputPayment({ | ||
amount: e.target.value, | ||
buyer_tel: phone, | ||
buyer_email: email, | ||
}), | ||
) | ||
} | ||
/> | ||
<p style={{ color: 'red' }}>3000원 이상부터 가능합니다.</p> | ||
<Payment /> | ||
</ChargeBoxContainer> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,29 +1,27 @@ | ||
import React from 'react' | ||
import logo from '../images/logo.png' | ||
import '../css/Footer.css' | ||
import React from 'react'; | ||
import logo from '../images/logo.png'; | ||
import '../css/Footer.css'; | ||
|
||
const footer = () => { | ||
|
||
const thisYear = () => { | ||
const year = new Date().getFullYear(); | ||
return year | ||
} | ||
|
||
return year; | ||
}; | ||
|
||
return ( | ||
<div className='footer'> | ||
<div className="footer" style={{ height: '85px' }}> | ||
<p> | ||
Copyright © <span>{thisYear()}</span> | ||
</p> | ||
<ul className='footer-info'> | ||
<ul className="footer-info"> | ||
{/* <li>TeamLeader : 오상민</li> | ||
<li>Back-End : 오상민</li> | ||
<li>Back-End : 유지훈</li> | ||
<li>Front-End : 최윤선</li> | ||
<li>Front-End : 박제곤</li> */} | ||
</ul> | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default footer; | ||
export default footer; |
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
Oops, something went wrong.