Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: [59] 설문 생성하기 api 연동 #62

Merged
merged 4 commits into from
Aug 11, 2024
Merged
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
71 changes: 1 addition & 70 deletions web/package-lock.json

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

1 change: 1 addition & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@tanstack/react-query": "^5.50.1",
"@tanstack/react-query-devtools": "^5.50.1",
"axios": "^1.7.2",
"date-fns": "^3.6.0",
"eventemitter3": "^5.0.1",
"framer-motion": "^11.3.8",
"react": "^18.3.1",
Expand Down
1 change: 0 additions & 1 deletion web/src/components/Survey/SurveyForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { useState } from 'react';
import styled from 'styled-components';

const SurveyForm = ({ selectedOption, setSelectedOption, onRemove }) => {
// TODO: 타입 정의
const [isOpen, setIsOpen] = useState(false);

const toggleDropdown = () => {
Expand Down
93 changes: 93 additions & 0 deletions web/src/components/Survey/create-survey-page.styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
import { COLORS } from '@/theme';
import styled from 'styled-components';

export const CreateSurveyPageWrapper = styled.main`
height: 100%;
overflow-y: hidden;
`;

export const CreateSurveyPageHeader = styled.header`
display: flex;
flex-direction: column;
gap: 0.875rem;
padding: 0 1.25rem;
margin-top: 0.625rem;

.progress {
display: flex;
align-items: center;
justify-content: space-between;
height: 1.5rem;
}

.header {
font-size: 1.5rem;
line-height: 2rem;
font-weight: 400;
margin-bottom: 0.75rem;
}
`;

export const CreateSurveyPageContent = styled.section`
height: 100%;
background-color: ${COLORS.Sub2};
padding: 1.25rem;

form {
display: flex;
flex-direction: column;
gap: 0.875rem;
}

.box {
background-color: ${COLORS.white};
box-shadow: 0px 0px 4px 0px #00000040;
padding: 1.25rem;

.input {
border: none;
border-bottom: 1px solid ${COLORS.Gray5};
padding-bottom: 0.75rem;
font-size: 1.25rem;

&::placeholder {
font-size: 1.25rem;
font-weight: 500;
color: ${COLORS.Gray3};
}
}

.textarea {
border: none;
font-size: 1rem;

&::placeholder {
font-weight: 400;
color: ${COLORS.Gray3};
}
}

label {
color: ${COLORS.Gray2};
font-size: 0.875rem;
font-size: 400;
margin-bottom: 0.625rem;
}

.date-container {
height: 2.875rem;
display: flex;
align-items: center;
justify-content: space-between;
background-color: ${COLORS.Gray5};
border: 1px solid ${COLORS.Gray5};
border-radius: 10px;
padding: 0.5rem 0.75rem;
}
}

.button {
width: 100%;
margin-top: 1rem;
}
`;
Loading
Loading