반응형
게시글 업로드 페이지를 리뉴얼 했습니당.
아직 에디터는 안 넣었어요.
shadcn을 써보고 싶어서 새로 설치하고 적용해봤어요.
🚀 요약
작업 시간: 2시간
✅ 게시글 업로드 페이지 UI 구현
🚀 게시글 업로드 페이지 UI 구현
import { Button } from "@/components/ui/button";
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/components/ui/select";
import { ParticipantMultiSelect } from "@/components/MultiSelect";
import { DateRangePicker } from "@/components/DatePicker";
import { Textarea } from "@/components/ui/textarea";
const EventUpload = () => {
return (
<div className="flex flex-col justify-center items-center px-4 w-[900px]">
{/* 상단 제목 */}
<div className="w-full py-8 text-center">
<h2 className="text-3xl font-bold">New Event</h2>
</div>
<div className="flex w-full justify-start gap-4">
<Select>
<SelectTrigger className="w-[14rem] h-[2.8rem]">
<SelectValue placeholder="Category" />
</SelectTrigger>
<SelectContent>
<SelectItem value="light">Light</SelectItem>
<SelectItem value="dark">Dark</SelectItem>
<SelectItem value="system">System</SelectItem>
</SelectContent>
</Select>
<DateRangePicker />
</div>
<div className="flex w-full gap-4 justify-between my-3">
<ParticipantMultiSelect />
<Button className="w-[8rem] h-[2.8rem] bg-blue-500 text-md">
Publish
</Button>
</div>
<Textarea
placeholder="Type anything."
className="w-full min-h-[32rem] text-md text-gray-900 resize-none p-4"
/>
</div>
);
};
export default EventUpload;
요렇게 작성했습니다 총총
기술스택은 Vite + React + Tailwindcss + Shadcn 사용했어요
반응형
'study > 100 days (100일 챌린지)' 카테고리의 다른 글
[웹개발 100일] Day 52~55 - 프로필 마우스오버 조회 팝오버 기능 (1) | 2025.04.10 |
---|---|
[웹개발 100일] Day 47~49 - 게시글 업로드 페이지 UI 구현 (진행중) (0) | 2025.04.03 |
[웹개발 100일] Day 45~46 - 클라이언트의 이미지 업로드 요청 처리해서 Cloudinary 라이브러리에 저장하기 (1) | 2025.03.31 |
[웹개발 100일] Day 44 - 클라우드 이미지 업로드 서비스 Cloudinary 사용하기 (0) | 2025.03.29 |
여러분 그간 (0) | 2025.03.27 |