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
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
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 @@ -18,6 +19,7 @@ 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 @@ -52,9 +54,11 @@ AI 기술을 활용하여 개인별 학습 패턴을 분석하고, 최적화된
variant="outlined"
sx={{
"& .MuiOutlinedInput-root": {
fontSize: large
? theme.typography.h5.fontSize
: theme.typography.body1.fontSize,
fontSize: isMobile
? theme.typography.body2.fontSize
: large
? theme.typography.h5.fontSize
: theme.typography.body1.fontSize,
fontFamily: "monospace",
lineHeight: 1.6,
padding: 0,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import AddIcon from "@mui/icons-material/Add";
import { Box, Button } from "@mui/material";
import { useMediaQuery } from "@mui/material";
import { useTheme } from "@mui/material/styles";
import type {
ChangeEvent,
Expand Down Expand Up @@ -27,6 +28,7 @@ const ProjectPreferentialCard = ({
style,
}: ProjectPreferentialCardProps): JSX.Element => {
const theme = useTheme();
const isMobile = useMediaQuery(theme.breakpoints.down("md"));
const [newPreferential, setNewPreferential] = useState("");

const addPreferential = (): void => {
Expand Down Expand Up @@ -70,9 +72,11 @@ const ProjectPreferentialCard = ({
height: 40,
borderRadius: theme.shape.borderRadius,
border: `1px solid ${theme.palette.divider}`,
fontSize: large
? theme.typography.h5.fontSize
: theme.typography.body1.fontSize,
fontSize: isMobile
? theme.typography.body2.fontSize
: large
? theme.typography.h5.fontSize
: theme.typography.body1.fontSize,
fontFamily: theme.typography.fontFamily,
background: theme.palette.background.paper,
padding: large ? theme.spacing(2.2) : theme.spacing(1.7),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import AddIcon from "@mui/icons-material/Add";
import DeleteIcon from "@mui/icons-material/Delete";
import { Box, IconButton, TextField, Button } from "@mui/material";
import { useMediaQuery } from "@mui/material";
import { useTheme } from "@mui/material/styles";
import type { ChangeEvent, CSSProperties, JSX } from "react";

Expand All @@ -20,6 +21,7 @@ const ProjectRequirementsCard = ({
style,
}: ProjectRequirementsCardProps): JSX.Element => {
const theme = useTheme();
const isMobile = useMediaQuery(theme.breakpoints.down("md"));

const displayValue = value;

Expand Down Expand Up @@ -72,9 +74,11 @@ const ProjectRequirementsCard = ({
sx={{
"& .MuiOutlinedInput-root": {
height: 40,
fontSize: large
? theme.typography.h5.fontSize
: theme.typography.body1.fontSize,
fontSize: isMobile
? theme.typography.body2.fontSize
: large
? theme.typography.h5.fontSize
: theme.typography.body1.fontSize,
fontFamily: theme.typography.fontFamily,
background: "none",
border: "none",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,15 @@ const ProjectSimpleDescCard = ({
},
},
"& .MuiOutlinedInput-input": {
padding: large ? 5 : 5,
fontSize: 16,
color: "#222",
padding: large ? theme.spacing(2.2) : theme.spacing(1.7),
"&::placeholder": {
fontSize: {
xs: "14px",
sm: "15px",
md: "16px",
},
color: "#999",
},
},
}}
required
Expand Down
12 changes: 8 additions & 4 deletions src/entities/projects/ui/project-insert/ProjectWorkflowCard.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { FormControl, Select, MenuItem } from "@mui/material";
import type { SelectChangeEvent } from "@mui/material";
import { FormControl, Select, MenuItem } from "@mui/material";
import { useMediaQuery } from "@mui/material";
import { useTheme } from "@mui/material/styles";
import type { CSSProperties, JSX } from "react";

Expand Down Expand Up @@ -43,6 +44,7 @@ export default function ProjectWorkflowCard({
style,
}: ProjectWorkflowCardProps): JSX.Element {
const theme = useTheme();
const isMobile = useMediaQuery(theme.breakpoints.down("md"));

const handleChange = (event: SelectChangeEvent<Workflow>): void => {
onChange(event.target.value as Workflow);
Expand All @@ -62,9 +64,11 @@ export default function ProjectWorkflowCard({
size={large ? "medium" : "small"}
displayEmpty
sx={{
fontSize: large
? theme.typography.h5.fontSize
: theme.typography.body1.fontSize,
fontSize: isMobile
? theme.typography.body2.fontSize
: large
? theme.typography.h5.fontSize
: theme.typography.body1.fontSize,
fontFamily: theme.typography.fontFamily,
padding: large ? theme.spacing(2.2) : theme.spacing(1.7),

Expand Down
8 changes: 4 additions & 4 deletions src/pages/project-insert/ui/ProjectInsertPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { CSSObject } from "@emotion/react";
import { Button, Container } from "@mui/material";
import { Container } from "@mui/material";
import type { ContainerProps } from "@mui/material/Container";
import type { Theme } from "@mui/material/styles";
import { styled } from "@mui/material/styles";
Expand All @@ -16,7 +16,7 @@ import Step3 from "@features/projects/ui/project-insert/Step3";
import Step4 from "@features/projects/ui/project-insert/Step4";

const ProjectInsertPage = (): JSX.Element => {
const { currentStep, updateForm, goPrevPageforTest } = useProjectInsert();
const { currentStep, updateForm } = useProjectInsert();

return (
<MainContainer>
Expand All @@ -28,9 +28,9 @@ const ProjectInsertPage = (): JSX.Element => {
{currentStep === 3 && <Step3 updateForm={updateForm} />}
{currentStep === 4 && <Step4 updateForm={updateForm} />}

<Button variant="contained" color="inherit" onClick={goPrevPageforTest}>
{/* <Button variant="contained" color="inherit" onClick={goPrevPageforTest}>
이것은 테스트용 뒤로가기 버튼입니다. 배포시에는 해당 버튼을 삭제해주세요
</Button>
</Button> */}

<HoneyTipBox />
</MainContainer>
Expand Down