Skip to content
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
42 changes: 31 additions & 11 deletions src/entities/projects/ui/project-insert/ProjectCategoryCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,42 @@ const ProjectCategoryCard = ({
<Select
value={value || ""}
onChange={onChange}
size={large ? "medium" : "small"}
size="small"
displayEmpty
sx={{
fontSize: large
? theme.typography.h5.fontSize
: theme.typography.body1.fontSize,
fontFamily: theme.typography.fontFamily,
height: 40,
border: `1px solid ${theme.palette.divider}`,
boxSizing: "border-box",
padding: large ? theme.spacing(2.2) : theme.spacing(1.7),
height: { xs: 40, sm: 48 },
"& .MuiOutlinedInput-root": {
height: { xs: "40px !important", sm: "48px !important" },
fontSize: {
xs: "16px",
sm: "17px",
md: "18px",
},
fontFamily: theme.typography.fontFamily,
background: "none",
border: "none",
"&:hover .MuiOutlinedInput-notchedOutline": {
borderColor: theme.palette.text.primary,
},
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
borderColor: theme.palette.primary.main,
borderWidth: "2px",
},
},
"& .MuiSelect-select": {
height: "40px",
padding: large ? theme.spacing(2.2) : theme.spacing(1.7),
height: "auto !important",
minHeight: "unset !important",
display: "flex",
alignItems: "center",
padding: 0,
fontSize: {
xs: "16px",
sm: "16px",
md: "17px",
},
"&[aria-expanded='false']": {
color: value ? "inherit" : "#999",
},
},
}}
>
Expand Down
47 changes: 35 additions & 12 deletions src/entities/projects/ui/project-insert/ProjectDeadlineCard.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { TextField } from "@mui/material";
import { useTheme } from "@mui/material/styles";
import type { ChangeEvent, CSSProperties, JSX } from "react";

import SimpleFormCard from "@shared/ui/project-insert/SimpleFormCard";
Expand All @@ -15,6 +17,8 @@ const ProjectDeadlineCard = ({
large,
style,
}: ProjectDeadlineCardProps): JSX.Element => {
const theme = useTheme();

return (
<SimpleFormCard
title="모집 마감일"
Expand All @@ -23,22 +27,41 @@ const ProjectDeadlineCard = ({
large={large}
style={style}
>
<input
<TextField
type="date"
name="deadline"
value={value}
onChange={onChange}
style={{
width: "100%",
padding: large ? 18 : 14,
borderRadius: 8,
border: "1px solid #e0e0e0",
fontSize: 16,
marginBottom: 8,
fontFamily: "inherit",
height: 40,
boxSizing: "border-box",
background: "inherit",
fullWidth
variant="outlined"
size="small"
slotProps={{
inputLabel: {
shrink: true,
},
}}
sx={{
"& .MuiOutlinedInput-root": {
height: { xs: 40, sm: 48 },
fontSize: {
xs: "16px",
sm: "17px",
md: "18px",
},
fontFamily: theme.typography.fontFamily,
background: "none",
border: "none",
"&:hover .MuiOutlinedInput-notchedOutline": {
borderColor: theme.palette.text.primary,
},
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
borderColor: theme.palette.primary.main,
borderWidth: "2px",
},
},
"& .MuiOutlinedInput-input": {
padding: large ? theme.spacing(2.2) : theme.spacing(1.7),
},
}}
required
/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { TextField } from "@mui/material";
import { useMediaQuery } from "@mui/material";
import { useTheme } from "@mui/material/styles";
import type { ChangeEvent, CSSProperties, JSX } from "react";

Expand All @@ -19,7 +18,6 @@ const ProjectDetailDescriptionCard = ({
style,
}: ProjectDetailDescriptionCardProps): JSX.Element => {
const theme = useTheme();
const isMobile = useMediaQuery(theme.breakpoints.down("md"));

const handleChange = (e: ChangeEvent<HTMLTextAreaElement>): void => {
onChange(e.target.value);
Expand Down Expand Up @@ -47,18 +45,18 @@ AI 기술을 활용하여 개인별 학습 패턴을 분석하고, 최적화된
## 🚀 기대 효과
- 개인화된 학습으로 학습 효율성 30% 향상
- 학습 동기 부여 및 지속성 증대`}
multiline // 여러 줄 입력 가능
multiline
minRows={large ? 12 : 8}
maxRows={large ? 20 : 15}
fullWidth
variant="outlined"
sx={{
"& .MuiOutlinedInput-root": {
fontSize: isMobile
? theme.typography.body2.fontSize
: large
? theme.typography.h5.fontSize
: theme.typography.body1.fontSize,
fontSize: {
xs: "15px",
sm: "16px",
md: "17px",
},
fontFamily: "monospace",
lineHeight: 1.6,
padding: 0,
Expand All @@ -73,6 +71,19 @@ AI 기술을 활용하여 개인별 학습 패턴을 분석하고, 최적화된
"& .MuiOutlinedInput-input": {
padding: large ? theme.spacing(2.5) : theme.spacing(2),
resize: "vertical",
fontSize: {
xs: "15px",
sm: "16px",
md: "17px",
},
"&::placeholder": {
fontSize: {
xs: "15px",
sm: "16px",
md: "17px",
},
color: "#999",
},
},
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,42 @@ export default function ProjectScheduleCard({
<Select<ExpectedPeriod>
value={value || ("" as ExpectedPeriod)}
onChange={onChange}
size={large ? "medium" : "small"}
size="small"
displayEmpty
sx={{
fontSize: {
xs: large ? "14px" : "14px",
sm: large ? "15px" : "15px",
md: large ? "16px" : "16px",
height: { xs: 40, sm: 48 },
"& .MuiOutlinedInput-root": {
height: { xs: "40px !important", sm: "48px !important" },
fontSize: {
xs: "16px",
sm: "17px",
md: "18px",
},
fontFamily: theme.typography.fontFamily,
background: "none",
border: "none",
"&:hover .MuiOutlinedInput-notchedOutline": {
borderColor: theme.palette.text.primary,
},
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
borderColor: theme.palette.primary.main,
borderWidth: "2px",
},
},
fontFamily: theme.typography.fontFamily,
padding: large ? theme.spacing(2.2) : theme.spacing(1.7),
height: 40,
"& .MuiSelect-select": {
height: "40px",
padding: large ? theme.spacing(2.2) : theme.spacing(1.7),
height: "auto !important",
minHeight: "unset !important",
display: "flex",
alignItems: "center",
padding: 0,
fontSize: {
xs: "16px",
sm: "17px",
md: "18px",
},
"&[aria-expanded='false']": {
color: value ? "inherit" : "#999",
},
},
}}
>
Expand Down
16 changes: 8 additions & 8 deletions src/entities/projects/ui/project-insert/ProjectOneLineCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ const ProjectOneLineCard = ({
sx={{
"& .MuiOutlinedInput-root": {
height: 40,
fontSize: large
? theme.typography.h5.fontSize
: theme.typography.body1.fontSize,
fontSize: {
xs: "16px",
sm: "17px",
md: "18px",
},
fontFamily: theme.typography.fontFamily,
background: "none",
border: "none",

// 호버 시 테두리 검정색
"&:hover .MuiOutlinedInput-notchedOutline": {
borderColor: theme.palette.text.primary,
},
// 포커스 시 테두리 primary 색상
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
borderColor: theme.palette.primary.main,
borderWidth: "2px",
Expand All @@ -60,9 +60,9 @@ const ProjectOneLineCard = ({
padding: large ? theme.spacing(2.2) : theme.spacing(1.7),
"&::placeholder": {
fontSize: {
xs: "14px",
sm: "15px",
md: "16px",
xs: "16px",
sm: "17px",
md: "18px",
},
color: "#999",
},
Expand Down
Loading