From 237b71493dfa84d6ee5a1d04da6a3584bcd20b8d Mon Sep 17 00:00:00 2001 From: 5ewon06 Date: Wed, 5 Apr 2023 23:55:09 +0900 Subject: [PATCH 01/20] FIX : edit create docs layout --- .yarnrc.yml | 3 - layout/create/style.ts | 114 +++++++++++++++++++++- pages/create/index.tsx | 208 +++++++++++++++++++++-------------------- 3 files changed, 217 insertions(+), 108 deletions(-) delete mode 100644 .yarnrc.yml diff --git a/.yarnrc.yml b/.yarnrc.yml deleted file mode 100644 index fc8ec93..0000000 --- a/.yarnrc.yml +++ /dev/null @@ -1,3 +0,0 @@ -nodeLinker: node-modules - -yarnPath: .yarn/releases/yarn-3.4.1.cjs diff --git a/layout/create/style.ts b/layout/create/style.ts index 0412a42..99aeac2 100644 --- a/layout/create/style.ts +++ b/layout/create/style.ts @@ -1,4 +1,4 @@ -import styled from 'styled-components' +import styled, { css } from 'styled-components' export const CreateWrap = styled.div` display: flex; @@ -11,6 +11,73 @@ export const CreateTitleWrap = styled.div` align-items: center; ` +//======================================================= + +export const CreateTB = styled.table` + width: 68vw; + + @media (max-width: 500px) { + width: 90vw; + } + background-color:#ccc; +` + +export const CreateTR = styled.tr` + height:40px; + background-color:white; +` + +export const CreateTD = styled.td` + width: 100%; + height: 90%; + padding-left: 20px; + border: none; + font-family: 'Open Sans', sans-serif; + white-space: pre-wrap; + font-size: 14px; + overflow: scroll; + + @media (max-width: 500px) { + font-size: 10px; + } + /* height: 100%; */ +` + +export const CreateTDTitle = styled.td` + width:8%; + background-color: #274168; + color: white; + text-align:center; + font-weight: 800; + + @media (max-width: 500px) { + font-size: 12px; + width: 70px; + } +` + +export const CreateTDDisplay = styled.td` + display:flex; +` + +export const CreateTDDiv = styled.td` + width: 100%; + /* height: 90%; */ + /* padding-left: 20px; */ + border: none; + font-family: 'Open Sans', sans-serif; + white-space: pre-wrap; + font-size: 14px; + overflow: scroll; + + @media (max-width: 500px) { + font-size: 10px; + } + height:400px; +` + +//======================================================== + export const CreateTitleText = styled.span` color: #274168; font-family: 'Open Sans', sans-serif; @@ -48,9 +115,9 @@ export const CreateTableTRInput = styled.input` export const CreateTableTRTextarea = styled.textarea` width: 100%; - height: 90%; + height: 400px; outline: none; - padding-left: 20px; + /* padding-left: 20px; */ resize: none; border: none; font-family: 'Open Sans', sans-serif; @@ -302,8 +369,7 @@ export const CreateSubmit = styled.div` export const CreateWarn = styled.span` color: red; font-weight: 800; - margin-top: 10px; - margin-right: auto; + margin: 10px auto 0 0; @media (max-width: 500px) { font-size: 8px; @@ -324,3 +390,41 @@ export const CreateButton = styled.button` width: 200px; } ` + +/// + +// export const Test = styled.div` +// display: flex; +// justify-content: center; +// align-items: center; +// ` + +/* + +*/ + +// export const ParentTest = styled(Test)` +// background-color: ${props => props.isLogin ? 'blue' : 'black'}; +// ` + +// export const ParentTest1 = styled(Test)` +// background-color: ${({ isLogin }) => isLogin ? 'blue' : 'black'}; +// ` + +// interface ParentTest2Type { +// isLogin: string +// } + +// export const ParentTest2 = styled(Test) <{ isLogin: string }>` +// ${({ isLogin }) => isLogin && css` +// background-color: blue; +// display: flrx; +// ava;dlbb +// d +// bda +// bda +// ba +// bad +// `} + +// ` \ No newline at end of file diff --git a/pages/create/index.tsx b/pages/create/index.tsx index 03a6201..7f410b2 100644 --- a/pages/create/index.tsx +++ b/pages/create/index.tsx @@ -101,109 +101,117 @@ const Create = () => { 문서 생성 - - - 분류 - - {userInfo.authority === 'ADMIN' && ( -
- - setDocs({ ...docs, docsType: e.target.id })} id="STUDENT" name="radio" /> - - setDocs({ ...docs, docsType: e.target.id })} id="READONLY" name="radio" /> -
- )} - {createFormInitState.map((info, index) => ( - - - changeDocsType(e)} id={info.id} name="radio" /> - - ))} - + + + + 분류 + + {userInfo.authority === 'ADMIN' && ( + <> + + setDocs({ ...docs, docsType: e.target.id })} id="STUDENT" name="radio" /> + + setDocs({ ...docs, docsType: e.target.id })} id="READONLY" name="radio" /> + + )} {createFormInitState.map((info, index) => ( - changeDocsType(e as React.ChangeEvent)} id={info.id}> - {info.title} - + + + changeDocsType(e)} id={info.id} name="radio" /> + ))} - -
-
- - 문서 이름 - setDocs({ ...docs, title: e.target.value })} value={docs.title} /> - - - 연도 - - {years.map((year, index) => ( -
- {year}년 - setDocs({ ...docs, enroll: parseInt(e.target.id) })} - id={`${year}`} - name="radios" - /> -
- ))} -
-
- - 예시 - - - - - - 이미지 - - - {docs.docsType === 'FRAME' && ( - - 틀 규격 - - - - - setSize({ ...size, column: parseInt(e.target.value) })} + + {createFormInitState.map((info, index) => ( + changeDocsType(e as React.ChangeEvent)} id={info.id}> + {info.title} + + ))} + + + + + 문서 이름 + + setDocs({ ...docs, title: e.target.value })} value={docs.title} /> + + + + 연도 + + {years.map((year, index) => ( +
+ {year}년 + setDocs({ ...docs, enroll: parseInt(e.target.id) })} + id={`${year}`} + name="radios" /> - - setSize({ ...size, row: parseInt(e.target.value) })} - /> - - - makeFrame()}>틀생성/초기화 - - - )} - - 문서 내용 - { - util.onKeyDownUseTab(e) - }} - onChange={(e) => setDocs({ ...docs, contents: util.autoClosingTag(e) })} - value={docs.contents} - /> - - - 미리보기 - - - +
+ ))} +
+
+ + 예시 + + + + + + 이미지 + + + + + {docs.docsType === 'FRAME' && ( + + 틀 규격 + + + + + setSize({ ...size, column: parseInt(e.target.value) })} + /> + + setSize({ ...size, row: parseInt(e.target.value) })} + /> + + + makeFrame()}>틀생성/초기화 + + + )} + + 문서 내용 + + { + util.onKeyDownUseTab(e) + }} + onChange={(e) => setDocs({ ...docs, contents: util.autoClosingTag(e) })} + value={docs.contents} + /> + + + + 미리보기 + + + + ※ 필독! 문서 내 부적절한 내용을 서술하는 사용자는 부마위키 이용에 제한을 받을 수 있습니다 ※ 문서 생성 From c596a0d559ec69d955f24b1cbf68b7312d237cd2 Mon Sep 17 00:00:00 2001 From: Ubinquitous Date: Fri, 7 Apr 2023 08:47:04 +0900 Subject: [PATCH 02/20] =?UTF-8?q?FIX=20:=20layout=20=ED=8F=B4=EB=8D=94?= =?UTF-8?q?=EA=B5=AC=EC=A1=B0=20=EB=B3=80=EA=B2=BD,=20=EB=A0=88=EC=9D=B4?= =?UTF-8?q?=EC=95=84=EC=9B=83=20=EB=B6=84=EB=A6=AC=EC=9E=91=EC=97=85=20?= =?UTF-8?q?=ED=95=84=EC=9A=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/accident/style.ts | 62 ---------- layout/{create/style.ts => create.style.ts} | 114 +----------------- layout/{docs/style.ts => docs.style.ts} | 0 layout/frame/style.ts | 62 ---------- layout/{mypage/style.ts => mypage.style.ts} | 0 layout/popular/style.ts | 62 ---------- layout/{search/style.ts => search.style.ts} | 0 layout/{club/style.ts => static.style.ts} | 18 +-- layout/student/style.ts | 62 ---------- layout/teacher/style.ts | 70 ----------- layout/{update/style.ts => update.style.ts} | 0 layout/{user/style.ts => user.style.ts} | 0 .../detail/style.ts => version.style.ts} | 34 ++++-- layout/version/style.ts | 19 --- 14 files changed, 40 insertions(+), 463 deletions(-) delete mode 100644 layout/accident/style.ts rename layout/{create/style.ts => create.style.ts} (73%) rename layout/{docs/style.ts => docs.style.ts} (100%) delete mode 100644 layout/frame/style.ts rename layout/{mypage/style.ts => mypage.style.ts} (100%) delete mode 100644 layout/popular/style.ts rename layout/{search/style.ts => search.style.ts} (100%) rename layout/{club/style.ts => static.style.ts} (66%) delete mode 100644 layout/student/style.ts delete mode 100644 layout/teacher/style.ts rename layout/{update/style.ts => update.style.ts} (100%) rename layout/{user/style.ts => user.style.ts} (100%) rename layout/{version/detail/style.ts => version.style.ts} (59%) delete mode 100644 layout/version/style.ts diff --git a/layout/accident/style.ts b/layout/accident/style.ts deleted file mode 100644 index 9ac0fb1..0000000 --- a/layout/accident/style.ts +++ /dev/null @@ -1,62 +0,0 @@ -import Link from 'next/link' -import styled from 'styled-components' - -export const AccidentWrap = styled.div` - display: flex; -` - -export const AccidentTitleWrap = styled.div` - width: 100%; - height: 80px; - display: flex; - align-items: center; -` - -export const AccidentTitleText = styled.span` - color: #274168; - font-family: 'Open Sans', sans-serif; - font-weight: 800; - font-size: 34px; - margin-left: 30px; -` - -export const AccidentClassify = styled.div` - display: flex; - justify-content: center; - margin-top: 25px; - margin-bottom: 30px; -` - -export const AccidentLine = styled.div` - width: 68vw; - height: 1.5px; - background-color: #ccc; - - @media (max-width: 500px) { - width: 90vw; - } -` - -export const AccidentListWrap = styled.div` - width: 90%; - height: fit-content; - display: flex; - flex-direction: column; - margin-top: 20px; -` - -export const AccidentList = styled.ul` - margin: 30px 0 0 50px; - font-weight: 600; -` - -export const AccidentLink = styled(Link)` - color: #0038ff; - text-decoration: none; - cursor: pointer; -` - -export const AccidentListItem = styled.li` - margin-bottom: 18px; - color: #0038ff; -` diff --git a/layout/create/style.ts b/layout/create.style.ts similarity index 73% rename from layout/create/style.ts rename to layout/create.style.ts index 99aeac2..0412a42 100644 --- a/layout/create/style.ts +++ b/layout/create.style.ts @@ -1,4 +1,4 @@ -import styled, { css } from 'styled-components' +import styled from 'styled-components' export const CreateWrap = styled.div` display: flex; @@ -11,73 +11,6 @@ export const CreateTitleWrap = styled.div` align-items: center; ` -//======================================================= - -export const CreateTB = styled.table` - width: 68vw; - - @media (max-width: 500px) { - width: 90vw; - } - background-color:#ccc; -` - -export const CreateTR = styled.tr` - height:40px; - background-color:white; -` - -export const CreateTD = styled.td` - width: 100%; - height: 90%; - padding-left: 20px; - border: none; - font-family: 'Open Sans', sans-serif; - white-space: pre-wrap; - font-size: 14px; - overflow: scroll; - - @media (max-width: 500px) { - font-size: 10px; - } - /* height: 100%; */ -` - -export const CreateTDTitle = styled.td` - width:8%; - background-color: #274168; - color: white; - text-align:center; - font-weight: 800; - - @media (max-width: 500px) { - font-size: 12px; - width: 70px; - } -` - -export const CreateTDDisplay = styled.td` - display:flex; -` - -export const CreateTDDiv = styled.td` - width: 100%; - /* height: 90%; */ - /* padding-left: 20px; */ - border: none; - font-family: 'Open Sans', sans-serif; - white-space: pre-wrap; - font-size: 14px; - overflow: scroll; - - @media (max-width: 500px) { - font-size: 10px; - } - height:400px; -` - -//======================================================== - export const CreateTitleText = styled.span` color: #274168; font-family: 'Open Sans', sans-serif; @@ -115,9 +48,9 @@ export const CreateTableTRInput = styled.input` export const CreateTableTRTextarea = styled.textarea` width: 100%; - height: 400px; + height: 90%; outline: none; - /* padding-left: 20px; */ + padding-left: 20px; resize: none; border: none; font-family: 'Open Sans', sans-serif; @@ -369,7 +302,8 @@ export const CreateSubmit = styled.div` export const CreateWarn = styled.span` color: red; font-weight: 800; - margin: 10px auto 0 0; + margin-top: 10px; + margin-right: auto; @media (max-width: 500px) { font-size: 8px; @@ -390,41 +324,3 @@ export const CreateButton = styled.button` width: 200px; } ` - -/// - -// export const Test = styled.div` -// display: flex; -// justify-content: center; -// align-items: center; -// ` - -/* - -*/ - -// export const ParentTest = styled(Test)` -// background-color: ${props => props.isLogin ? 'blue' : 'black'}; -// ` - -// export const ParentTest1 = styled(Test)` -// background-color: ${({ isLogin }) => isLogin ? 'blue' : 'black'}; -// ` - -// interface ParentTest2Type { -// isLogin: string -// } - -// export const ParentTest2 = styled(Test) <{ isLogin: string }>` -// ${({ isLogin }) => isLogin && css` -// background-color: blue; -// display: flrx; -// ava;dlbb -// d -// bda -// bda -// ba -// bad -// `} - -// ` \ No newline at end of file diff --git a/layout/docs/style.ts b/layout/docs.style.ts similarity index 100% rename from layout/docs/style.ts rename to layout/docs.style.ts diff --git a/layout/frame/style.ts b/layout/frame/style.ts deleted file mode 100644 index bd4dd07..0000000 --- a/layout/frame/style.ts +++ /dev/null @@ -1,62 +0,0 @@ -import Link from 'next/link' -import styled from 'styled-components' - -export const FrameWrap = styled.div` - display: flex; -` - -export const FrameTitleWrap = styled.div` - width: 100%; - height: 80px; - display: flex; - align-items: center; -` - -export const FrameTitleText = styled.span` - color: #274168; - font-family: 'Open Sans', sans-serif; - font-weight: 800; - font-size: 34px; - margin-left: 30px; -` - -export const FrameClassify = styled.div` - display: flex; - justify-content: center; - margin-top: 25px; - margin-bottom: 30px; -` - -export const FrameLine = styled.div` - width: 68vw; - height: 1.5px; - background-color: #ccc; - - @media (max-width: 500px) { - width: 90vw; - } -` - -export const FrameListWrap = styled.div` - width: 90%; - height: fit-content; - display: flex; - flex-direction: column; - margin-top: 20px; -` - -export const FrameList = styled.ul` - margin: 30px 0 0 50px; - font-weight: 600; -` - -export const FrameLink = styled(Link)` - color: #0038ff; - text-decoration: none; - cursor: pointer; -` - -export const FrameListItem = styled.li` - margin-bottom: 18px; - color: #0038ff; -` diff --git a/layout/mypage/style.ts b/layout/mypage.style.ts similarity index 100% rename from layout/mypage/style.ts rename to layout/mypage.style.ts diff --git a/layout/popular/style.ts b/layout/popular/style.ts deleted file mode 100644 index d2f2715..0000000 --- a/layout/popular/style.ts +++ /dev/null @@ -1,62 +0,0 @@ -import Link from 'next/link' -import styled from 'styled-components' - -export const PopularWrap = styled.div` - display: flex; -` - -export const PopularTitleWrap = styled.div` - width: 100%; - height: 80px; - display: flex; - align-items: center; -` - -export const PopularTitleText = styled.span` - color: #274168; - font-family: 'Open Sans', sans-serif; - font-weight: 800; - font-size: 34px; - margin-left: 30px; -` - -export const PopularClassify = styled.div` - display: flex; - justify-content: center; - margin-top: 25px; - margin-bottom: 30px; -` - -export const PopularLine = styled.div` - width: 68vw; - height: 1.5px; - background-color: #ccc; - - @media (max-width: 500px) { - width: 90vw; - } -` - -export const PopularListWrap = styled.div` - width: 90%; - height: fit-content; - display: flex; - flex-direction: column; - margin-top: 20px; -` - -export const PopularList = styled.ul` - margin: 30px 0 0 50px; - font-weight: 600; -` - -export const PopularLink = styled(Link)` - color: #0038ff; - text-decoration: none; - cursor: pointer; -` - -export const PopularListItem = styled.li` - margin-bottom: 18px; - color: #0038ff; -` diff --git a/layout/search/style.ts b/layout/search.style.ts similarity index 100% rename from layout/search/style.ts rename to layout/search.style.ts diff --git a/layout/club/style.ts b/layout/static.style.ts similarity index 66% rename from layout/club/style.ts rename to layout/static.style.ts index be9bbd1..3d93a68 100644 --- a/layout/club/style.ts +++ b/layout/static.style.ts @@ -1,18 +1,18 @@ import Link from 'next/link' import styled from 'styled-components' -export const ClubWrap = styled.div` +export const StaticWrap = styled.div` display: flex; ` -export const ClubTitleWrap = styled.div` +export const StaticTitleWrap = styled.div` width: 100%; height: 80px; display: flex; align-items: center; ` -export const ClubTitleText = styled.span` +export const StaticTitleText = styled.span` color: #274168; font-family: 'Open Sans', sans-serif; font-weight: 800; @@ -20,14 +20,14 @@ export const ClubTitleText = styled.span` margin-left: 30px; ` -export const ClubClassify = styled.div` +export const StaticClassify = styled.div` display: flex; justify-content: center; margin-top: 25px; margin-bottom: 30px; ` -export const ClubLine = styled.div` +export const StaticLine = styled.div` width: 68vw; height: 1.5px; background-color: #ccc; @@ -37,7 +37,7 @@ export const ClubLine = styled.div` } ` -export const ClubListWrap = styled.div` +export const StaticListWrap = styled.div` width: 90%; height: fit-content; display: flex; @@ -45,18 +45,18 @@ export const ClubListWrap = styled.div` margin-top: 20px; ` -export const ClubList = styled.ul` +export const StaticList = styled.ul` margin: 30px 0 0 50px; font-weight: 600; ` -export const ClubLink = styled(Link)` +export const StaticLink = styled(Link)` color: #0038ff; text-decoration: none; cursor: pointer; ` -export const ClubListItem = styled.li` +export const StaticListItem = styled.li` margin-bottom: 18px; color: #0038ff; ` diff --git a/layout/student/style.ts b/layout/student/style.ts deleted file mode 100644 index 14f4033..0000000 --- a/layout/student/style.ts +++ /dev/null @@ -1,62 +0,0 @@ -import Link from 'next/link' -import styled from 'styled-components' - -export const StudentWrap = styled.div` - display: flex; -` - -export const StudentTitleWrap = styled.div` - width: 100%; - height: 80px; - display: flex; - align-items: center; -` - -export const StudentTitleText = styled.span` - color: #274168; - font-family: 'Open Sans', sans-serif; - font-weight: 800; - font-size: 34px; - margin-left: 30px; -` - -export const StudentClassify = styled.div` - display: flex; - justify-content: center; - margin-top: 25px; - margin-bottom: 30px; -` - -export const StudentLine = styled.div` - width: 68vw; - height: 1.5px; - background-color: #ccc; - - @media (max-width: 500px) { - width: 90vw; - } -` - -export const StudentListWrap = styled.div` - width: 90%; - height: fit-content; - display: flex; - flex-direction: column; - margin-top: 20px; -` - -export const StudentList = styled.ul` - margin: 30px 0 0 50px; - font-weight: 600; -` - -export const StudentLink = styled(Link)` - color: #0038ff; - text-decoration: none; - cursor: pointer; -` - -export const StudentListItem = styled.li` - margin-bottom: 18px; - color: #0038ff; -` diff --git a/layout/teacher/style.ts b/layout/teacher/style.ts deleted file mode 100644 index 0e6a814..0000000 --- a/layout/teacher/style.ts +++ /dev/null @@ -1,70 +0,0 @@ -import Link from 'next/link' -import styled from 'styled-components' - -export const TeacherWrap = styled.div` - display: flex; -` - -export const TeacherLine = styled.div` - width: 68vw; - height: 1.5px; - background-color: #ccc; - - @media (max-width: 500px) { - width: 90vw; - } -` - -export const TeacherTitleWrap = styled.div` - width: 100%; - height: 80px; - display: flex; - align-items: center; -` - -export const TeacherTitleText = styled.span` - color: #274168; - font-family: 'Open Sans', sans-serif; - font-weight: 800; - font-size: 34px; - margin-left: 30px; -` - -export const Classify = styled.div` - display: flex; - justify-content: center; - margin-top: 25px; - margin-bottom: 30px; -` - -export const TeacherWarnText = styled.span` - font-weight: 700; - margin: 20px 0 10px 30px; - margin-right: auto; - font-size: 13px; - color: red; -` - -export const TeacherList = styled.div` - width: 90%; - height: fit-content; - display: flex; - flex-direction: column; - margin-top: 20px; -` - -export const TeacherDetailList = styled.ul` - margin: 30px 0 0 50px; - font-weight: 600; -` - -export const TeacherListItem = styled.li` - margin-bottom: 18px; - color: #0038ff; -` - -export const TeacherLink = styled(Link)` - color: #0038ff; - text-decoration: none; - cursor: pointer; -` diff --git a/layout/update/style.ts b/layout/update.style.ts similarity index 100% rename from layout/update/style.ts rename to layout/update.style.ts diff --git a/layout/user/style.ts b/layout/user.style.ts similarity index 100% rename from layout/user/style.ts rename to layout/user.style.ts diff --git a/layout/version/detail/style.ts b/layout/version.style.ts similarity index 59% rename from layout/version/detail/style.ts rename to layout/version.style.ts index 8555db4..5c98e83 100644 --- a/layout/version/detail/style.ts +++ b/layout/version.style.ts @@ -1,10 +1,28 @@ +import Link from 'next/link' import styled from 'styled-components' -export const DocsWrap = styled.div` +export const VersionList = styled.li` + display: flex; + margin-bottom: 30px; + + span { + display: block; + width: 300px; + font-weight: 600; + } +` + +export const VersionLink = styled(Link)` + font-weight: 600; + text-decoration: none; + color: blue; +` + +export const VersionWrap = styled.div` display: flex; ` -export const DocsLine = styled.div` +export const VersionLine = styled.div` width: 68vw; height: 1.5px; background-color: #ccc; @@ -13,14 +31,14 @@ export const DocsLine = styled.div` width: 90vw; } ` -export const DocsTitleWrap = styled.div` +export const VersionTitleWrap = styled.div` width: 100%; height: 80px; display: flex; align-items: center; ` -export const DocsTitleText = styled.span` +export const VersionTitleText = styled.span` color: #274168; font-family: 'Open Sans', sans-serif; font-weight: 800; @@ -32,7 +50,7 @@ export const DocsTitleText = styled.span` } ` -export const DocsMenu = styled.div` +export const VersionMenu = styled.div` margin-left: auto; margin-right: 2vw; ` @@ -44,7 +62,7 @@ export const Classify = styled.div` margin-bottom: 30px; ` -export const DocsContentsWrap = styled.div` +export const VersionContentsWrap = styled.div` width: 90%; height: fit-content; display: flex; @@ -52,7 +70,7 @@ export const DocsContentsWrap = styled.div` margin-top: 20px; ` -export const DocsContentsLoadWrap = styled.div` +export const VersionContentsLoadWrap = styled.div` display: flex; flex-direction: column; ` @@ -63,7 +81,7 @@ export const LastUpdateDate = styled.span` margin-left: auto; ` -export const DocsContents = styled.div` +export const VersionContents = styled.div` margin: 20px 0 20px 0; white-space: pre-wrap; diff --git a/layout/version/style.ts b/layout/version/style.ts deleted file mode 100644 index 69b748c..0000000 --- a/layout/version/style.ts +++ /dev/null @@ -1,19 +0,0 @@ -import Link from 'next/link' -import styled from 'styled-components' - -export const VersionList = styled.li` - display: flex; - margin-bottom: 30px; - - span { - display: block; - width: 300px; - font-weight: 600; - } -` - -export const VersionLink = styled(Link)` - font-weight: 600; - text-decoration: none; - color: blue; -` From 33dd987a34ea44c7a31e51ecb00c7b64f12bee37 Mon Sep 17 00:00:00 2001 From: Ubinquitous Date: Sat, 8 Apr 2023 20:08:29 +0900 Subject: [PATCH 03/20] ADD : Layout page --- layout/AccidentLayout.tsx | 45 +++++ layout/ClubLayout.tsx | 52 ++++++ ...{create.style.ts => CreateLayout.style.ts} | 74 +++++++- layout/CreateLayout.tsx | 169 ++++++++++++++++++ layout/{docs.style.ts => DocsLayout.style.ts} | 0 layout/DocsLayout.tsx | 45 +++++ layout/FrameLayout.tsx | 40 +++++ ...{mypage.style.ts => MyPageLayout.style.ts} | 0 layout/MyPageLayout.tsx | 63 +++++++ ...{static.style.ts => StaticLayout.style.ts} | 0 10 files changed, 483 insertions(+), 5 deletions(-) create mode 100644 layout/AccidentLayout.tsx create mode 100644 layout/ClubLayout.tsx rename layout/{create.style.ts => CreateLayout.style.ts} (81%) create mode 100644 layout/CreateLayout.tsx rename layout/{docs.style.ts => DocsLayout.style.ts} (100%) create mode 100644 layout/DocsLayout.tsx create mode 100644 layout/FrameLayout.tsx rename layout/{mypage.style.ts => MyPageLayout.style.ts} (100%) create mode 100644 layout/MyPageLayout.tsx rename layout/{static.style.ts => StaticLayout.style.ts} (100%) diff --git a/layout/AccidentLayout.tsx b/layout/AccidentLayout.tsx new file mode 100644 index 0000000..e7aec83 --- /dev/null +++ b/layout/AccidentLayout.tsx @@ -0,0 +1,45 @@ +import { AccodianMenu, Aside, Board, Classify, ScrollBtn, SubFooter } from '@/components' +import Docs from '@/types/docs.type' +import React from 'react' +import * as S from './StaticLayout.style' + +interface AccidentLayoutPropsType { + years: number[] + docs: Docs[] +} + +const AccidentLayout = ({ years, docs }: AccidentLayoutPropsType) => { + return ( + + + + 부마위키:사건/사고 + + + 사건/사고 + + + + {years.map((year) => ( + + {docs.map((accident: Docs, index) => ( + + {accident.enroll === year && ( + + {accident.title} + + )} + + ))} + + ))} + + + + +