diff --git a/public/cats/spring/sit.gif b/public/cats/spring/sit.gif new file mode 100644 index 00000000..da9ec417 Binary files /dev/null and b/public/cats/spring/sit.gif differ diff --git a/public/cats/spring/sit.webm b/public/cats/spring/sit.webm new file mode 100644 index 00000000..e69de29b diff --git a/public/create/springFlower.svg b/public/create/springFlower.svg new file mode 100644 index 00000000..eb3ca84b --- /dev/null +++ b/public/create/springFlower.svg @@ -0,0 +1,20 @@ + diff --git a/public/preview/Spring.png b/public/preview/Spring.png new file mode 100644 index 00000000..9e50be4c Binary files /dev/null and b/public/preview/Spring.png differ diff --git a/src/app/create/page.tsx b/src/app/create/page.tsx index a59d4cac..39ded523 100644 --- a/src/app/create/page.tsx +++ b/src/app/create/page.tsx @@ -22,7 +22,7 @@ export default function Create() { const [isNext, setIsNext] = useState(false); const [preview, setPreview] = useState(1); - const themelist = ['sul', 'night', 'peach', 'lilac', 'chris', 'mas']; + const themelist = ['spring', 'night', 'peach', 'lilac', 'sul']; const handleTitleSwitch = (value: string) => { setIsOff((prevIsOff) => (prevIsOff === value ? '' : value)); @@ -40,6 +40,8 @@ export default function Create() { const data = { theme: themelist[preview - 1], title: `${title}`, + public: false, + // 백엔드와 규격을 맞추기위해 임시로 넣어둔 값 }; axiosPostBoard(data) .then((res) => { diff --git a/src/app/personal/[id]/page.tsx b/src/app/personal/[id]/page.tsx index 0270a1e2..bdb19f8a 100644 --- a/src/app/personal/[id]/page.tsx +++ b/src/app/personal/[id]/page.tsx @@ -16,6 +16,7 @@ import { WriterButtonLayer, } from '@/component/Personal'; import FirstContent from '@/component/Personal/FirstContent'; +import SakuraAnimation from '@/component/Personal/SakuraAnimation'; import { useLogin } from '@/hooks/useLogin'; import useModal from '@/hooks/useModal'; import { useScroll } from '@/hooks/useScroll'; @@ -25,7 +26,7 @@ import { board } from '@/types/boards'; import { History } from '@/types/history'; import { personalPage } from '@/types/mixpanel'; import { noneTheme, themeState } from '@/types/theme'; -import { chris, lilac, mas, night, peach, sul } from '@/types/theme'; +import { chris, lilac, mas, night, peach, spring, sul } from '@/types/theme'; import { axiosGetBoard, axoisDeleteContents } from '@/utils/apiInterface'; import { confirm } from '@/utils/confirm'; import { defaultState } from '@/utils/theme/default'; @@ -43,8 +44,8 @@ export default function Personal({ params }: { params: { id: string } }) { const { isHidden, setIsHidden } = useScroll(); const [checkedSet, setCheckedSet] = useState(new Set()); const [openModal, closeModal] = useModal(); - - const addHistory = ()=>{ + + const addHistory = () => { const timestamp = () => { var now = new Date(); now.setHours(now.getHours() + 9); @@ -70,7 +71,7 @@ export default function Personal({ params }: { params: { id: string } }) { title: title, }); localStorage.setItem('history', JSON.stringify(historyArray)); - } + }; useEffect(() => { const token = localStorage.getItem('strcat_token'); @@ -202,8 +203,9 @@ export default function Personal({ params }: { params: { id: string } }) { return ( <>