Skip to content

Commit

Permalink
Merge pull request #13 from cocktail-Ohzu/dev
Browse files Browse the repository at this point in the history
πŸ”¨  fix(ui): ν”Όλ“œλ°± 반영
  • Loading branch information
gengminy authored Aug 22, 2022
2 parents b0239bb + 68f89e0 commit 35cac6e
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 109 deletions.
12 changes: 10 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,25 @@
<html lang="ko">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="%PUBLIC_URL%/ohzu.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="μΉ΅ν…ŒμΌ μΆ”μ²œ μ–΄ν”Œλ¦¬μΌ€μ΄μ…˜ 였μ₯¬ λžœλ”©νŽ˜μ΄μ§€"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/ohzu192.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<title>Ohzu</title>
</head>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-961TELXK7N"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-961TELXK7N');
</script>
<body>
<div id="root"></div>
</body>
Expand Down
6 changes: 3 additions & 3 deletions public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"name": "μΉ΅ν…ŒμΌ μΆ”μ²œ μ–΄ν”Œλ¦¬μΌ€μ΄μ…˜ 였μ₯¬ λžœλ”©νŽ˜μ΄μ§€",
"icons": [
{
"src": "favicon.ico",
"src": "ohzu.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"src": "ohzu192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"src": "ohzu512.png",
"type": "image/png",
"sizes": "512x512"
}
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes.
5 changes: 0 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import Result from './pages/question/Result';
import Question from './pages/question/Question';
import NotFound from './pages/common/NotFound';
import { AnimatePresence } from 'framer-motion';
import {
ToastsContainer,
ToastsContainerPosition,
ToastsStore,
} from 'react-toasts';
import CustomToastContainer from './components/common/CustomToastContainer';

function App() {
Expand Down
File renamed without changes
1 change: 1 addition & 0 deletions src/components/button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const Wrapper = styled.div`
display: flex;
justify-content: center;
align-items: center;
user-select: none;
button {
transition: ${({ theme }) => theme.transition.onHover};
Expand Down
1 change: 1 addition & 0 deletions src/components/button/SelectButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const Wrapper = styled.div<{
display: flex;
justify-content: center;
align-items: center;
user-select: none;
button {
transition: ${({ theme }) => theme.transition.onSelect};
Expand Down
1 change: 1 addition & 0 deletions src/components/common/CustomToastContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const CustomToastContainer = () => {
line-height: 53px !important;
font-family: 'Pretendard' !important;
font-size: 16px !important;
user-select: none; !important;
}
`}</style>
<ToastsContainer
Expand Down
4 changes: 2 additions & 2 deletions src/components/question/QuestionBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ function QuestionBox({
</Title>
<ButtonWrapper>
<SelectButton
label={'예'}
label={'κ·Έλ ‡λ‹€'}
onClick={() => handleState(true)}
isSelected={answer}
></SelectButton>
<SizedBox />
<SelectButton
label={'μ•„λ‹ˆμ˜€'}
label={'μ•„λ‹ˆλ‹€'}
onClick={() => handleState(false)}
isSelected={answer == null ? null : !answer}
></SelectButton>
Expand Down
91 changes: 0 additions & 91 deletions src/components/toast/toast.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import App from './App';
import ReactDOM from 'react-dom/client';
import reportWebVitals from './reportWebVitals';
import { ThemeProvider } from 'styled-components';
import { theme } from './common/theme';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { GlobalStyle } from './common/global-theme';
import { BrowserRouter } from 'react-router-dom';

Expand Down
2 changes: 1 addition & 1 deletion src/pages/question/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from 'styled-components';
import Button from '../../components/button/Button';
import AnimatedPage from '../../components/common/AnimatedPage';
import Template from '../../components/common/Template';
import logo from '../../images/logo.png';
import logo from '../../assets/images/logo.png';

function Home() {
const navigate = useNavigate();
Expand Down
4 changes: 2 additions & 2 deletions src/pages/question/Question.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function Question() {
.map((elem, index) => {
/* 선택 μ•ˆν•¨ */
if (elem == -1) {
console.log('아직 선택 ν•˜μ§€ μ•Šμ€ ν•­λͺ©μ΄ 있음');
// console.log('아직 선택 ν•˜μ§€ μ•Šμ€ ν•­λͺ©μ΄ 있음');
} else if (elem == 1) {
/* 예 선택 */
return questions[index].attribute[0] ?? 'X';
Expand All @@ -61,7 +61,7 @@ function Question() {

// console.log(data);
if (data.indexOf('X') > -1) {
console.log('잘λͺ»λœ μš”μ²­');
// console.log('잘λͺ»λœ μš”μ²­');
useToast();
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/question/Result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function Result() {
<Template variant="ν™ˆ">
<Wrapper>
<Title>
<p>λ‹Ήμ‹ κ³Ό κ°€μž₯ μΌμΉ˜ν•˜λŠ” μΉ΅ν…ŒμΌμ€</p>
<p>λ‹Ήμ‹ κ³Ό κ°€μž₯ 잘 μ–΄μšΈλ¦¬λŠ” μΉ΅ν…ŒμΌμ€</p>
<p>{result?.cocktail} μž…λ‹ˆλ‹€~!</p>
</Title>
<ResultImage>
Expand Down

0 comments on commit 35cac6e

Please sign in to comment.