diff --git a/find/find.css b/find/find.css new file mode 100644 index 0000000..65cf3b5 --- /dev/null +++ b/find/find.css @@ -0,0 +1,287 @@ +@media only screen and (min-device-width: 393px) and (max-device-width: 430px) and (min-device-height: 852px) and (max-device-height: 932px) and (-webkit-min-device-pixel-ratio: 3) and (orientation: portrait) { + /* 세로 방향 스타일 정의 */ +} +body { + width: 393px; + height: 852px; + background: #fff; + margin: 0%; + position: relative; +} + +* { + /* 전체 폰트 적용*/ + font-family: "inter"; +} + +article { + display: flex; + flex-direction: column; + align-items: center; +} + +form { + width: 339px; + display: flex; + flex-direction: column; + align-items: center; +} + +header { + position: fixed; +} + +.title_box { + width: 393px; + height: 109px; + flex-shrink: 0; + background: #fff; + display: flex; + flex-direction: row; +} + +.page_title { + margin: 68px 0px 18px 147px; + color: #000; + text-align: center; + font-family: Inter; + font-size: 20px; + font-style: normal; + font-weight: 400; + line-height: 22px; /* 110% */ + letter-spacing: -0.408px; +} + +.title_box img { + width: 27.929px; + height: 28px; + flex-shrink: 0; + position: absolute; + right: 26.58px; + top: 63px; +} + +.shadow_line { + width: 393px; + height: 1px; + background: rgba(138, 136, 136, 0.38); + box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25); +} +/* 여기까지 고정 헤더 */ + +.first_info { + margin-top: 133px; +} + +.title { + color: #000; + font-family: Inter; + font-size: 20px; + font-style: normal; + font-weight: 700; + line-height: normal; +} +.guide { + color: rgba(138, 136, 136, 0.8); + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: normal; + padding-top: 14px; + white-space: nowrap; +} + +.info { + margin-top: 22px; +} + +.border_box { + width: 300px; + flex-shrink: 0; + border-radius: 5px; + border: 2px solid #dadada; + background: #fff; + margin-top: 25px; +} + +.input_box { + width: 220px; + height: 40px; + border: none; + background-color: transparent; + padding: 0; +} + +.input_box::placeholder { + color: rgba(138, 136, 136, 0.8); + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: normal; +} + +.middle_line { + width: 300px; + height: 1px; + background: #dadada; +} + +input[type="text"] { + color: rgba(138, 136, 136, 0.8); + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: normal; + margin-left: 9px; +} + +input:focus { + outline: none; /* 클릭 시 테두리 없앰 */ +} + +.certification { + width: 54px; + height: 22px; + color: #000; + font-size: 12px; + font-style: normal; + font-weight: 400; + line-height: normal; + padding: 0; + margin: 0; + border-radius: 2px; + border: 1px solid #dadada; + background: #fff; + cursor: pointer; + a { + text-decoration: none; + } + a:active, + a:visited { + color: #000; + } +} + +.first_info .choose_box { + display: flex; + flex-direction: row; + align-items: center; +} + +/* fine_email2 */ +.result_box { + border-radius: 5px; + border: 2px solid #000; + background: #fff; + box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.25) inset; + width: 334px; + height: 44px; + flex-shrink: 0; + margin-top: 25px; + p { + color: #000; + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: normal; + padding-left: 12px; + } +} + +/* find_email3 */ +.popup { + display: none; /* Initially hidden */ + position: fixed; + top: 70%; + left: 50%; + width: 335px; + height: 53px; + transform: translate(-50%, -50%); + color: white; + border-radius: 5px; + background: rgba(138, 136, 136, 0.12); + opacity: 1; + transition: opacity 1s ease-in-out; /* Smooth fade-out transition */ + padding: 7px 0 0 7px; + div { + color: #000; + font-family: Inter; + font-size: 16px; + font-style: normal; + font-weight: 600; + line-height: normal; + padding-bottom: 3px; + } + p { + color: #000; + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: normal; + margin: 0; + } +} + +.popup.show { + display: block; +} + +.popup.hide { + opacity: 0; /* Fade out by changing opacity */ +} + +/* find_pw1 */ +.page_title_pw { + margin: 68px 0px 18px 139px; + color: #000; + text-align: center; + font-family: Inter; + font-size: 20px; + font-style: normal; + font-weight: 400; + line-height: 22px; /* 110% */ + letter-spacing: -0.408px; +} +.border_box_pw { + width: 100%; + flex-shrink: 0; + border-radius: 5px; + border: 2px solid #dadada; + background: #fff; + margin-top: 25px; + .middle_line { + width: 100%; + height: 1px; + background: #dadada; + } + .choose_box { + input[type="text"] { + margin-right: 9px; + width: 262.747px; + } + } +} + +/* find_pw2 */ +.nav-login { + border-radius: 5px; + border: 2px solid #5422e1; + background: #5422e1; + box-shadow: 1px 2px 2px 0px rgba(0, 0, 0, 0.25); + width: 339px; + height: 42px; + color: #fff; + text-align: center; + font-family: "Noto Sans KR"; + font-size: 16px; + font-style: normal; + font-weight: 700; + line-height: normal; + position: fixed; + top: 70%; +} diff --git a/find/find.js b/find/find.js new file mode 100644 index 0000000..bc68e2e --- /dev/null +++ b/find/find.js @@ -0,0 +1,16 @@ +document.addEventListener("DOMContentLoaded", () => { + const popup = document.getElementById("popup"); + + // Show the popup + popup.classList.add("show"); + + // Hide the popup after 3 seconds + setTimeout(() => { + popup.classList.add("hide"); + + // Optionally, remove the popup from the DOM after the fade-out transition + setTimeout(() => { + popup.style.display = "none"; + }, 1000); // Match the duration of the CSS transition + }, 2000); +}); diff --git a/find/find_email1.html b/find/find_email1.html new file mode 100644 index 0000000..eb11ef5 --- /dev/null +++ b/find/find_email1.html @@ -0,0 +1,41 @@ + + + + + + + + + + 이메일찾기1 + + +
+
+
+
이메일 찾기
+ X아이콘 +
+
+
+
+
+
이름과 이메일을 입력해주세요.
+
회원가입 시 등록한 이름과 이메일이
있다면 이메일 주소를 알려드려요.
+
+
+ +
+
+
+ + +
+
+
+
+ + \ No newline at end of file diff --git a/find/find_email2.html b/find/find_email2.html new file mode 100644 index 0000000..dc2157b --- /dev/null +++ b/find/find_email2.html @@ -0,0 +1,34 @@ + + + + + + + + + + 이메일찾기2 + + +
+
+
+
이메일 찾기
+ X아이콘 +
+
+
+ +
+
이메일을 찾았어요!
+
아래 계정으로 로그인해주세요.
+
+

like***@example.com

+
+
+
+ + \ No newline at end of file diff --git a/find/find_email3.html b/find/find_email3.html new file mode 100644 index 0000000..7c5fe35 --- /dev/null +++ b/find/find_email3.html @@ -0,0 +1,49 @@ + + + + + + + + + + 이메일찾기3 + + +
+
+
+
이메일 찾기
+ X아이콘 +
+
+
+ +
+
이름과 이메일을 입력해주세요.
+
+ 회원가입 시 등록한 이름과 이메일이
있다면 이메일 주소를 + 알려드려요. +
+
+
+ +
+
+
+ +
+
+
+ +
+ + + + diff --git a/find/find_pw1.html b/find/find_pw1.html new file mode 100644 index 0000000..cb71474 --- /dev/null +++ b/find/find_pw1.html @@ -0,0 +1,46 @@ + + + + + + + + + + 비밀번호찾기1 + + +
+
+
+
비밀번호 찾기
+ X아이콘 +
+
+
+
+
+
비밀번호를 찾기 위해
이메일을 인증해주세요.
+
회원가입 시 등록한 이메일 주소와 입력한 이메일 주소가
일치하다면 이메일 주소로 비밀번호 재설정 링크를
보내드려요.
+
+
+ +
+
+
+ + +
+
+
+ + +
+
+
+
+ + \ No newline at end of file diff --git a/find/find_pw2.html b/find/find_pw2.html new file mode 100644 index 0000000..01d9f59 --- /dev/null +++ b/find/find_pw2.html @@ -0,0 +1,33 @@ + + + + + + + + + + 비밀번호찾기2 + + +
+
+
+
비밀번호 찾기
+ X아이콘 +
+
+
+ +
+
비밀번호 재설정 링크를 전송했어요!
+
이메일을 확인해주세요.
+
+ + +
+ + diff --git a/find/find_pw3.html b/find/find_pw3.html new file mode 100644 index 0000000..c0e424d --- /dev/null +++ b/find/find_pw3.html @@ -0,0 +1,51 @@ + + + + + + + + + + 비밀번호찾기1 + + +
+
+
+
비밀번호 찾기
+ X아이콘 +
+
+
+
+
+
비밀번호를 찾기 위해
이메일을 인증해주세요.
+
회원가입 시 등록한 이메일 주소와 입력한 이메일 주소가
일치하다면 이메일 주소로 비밀번호 재설정 링크를
보내드려요.
+
+
+ +
+
+
+ + +
+
+
+ + +
+
+
+
+ + + + \ No newline at end of file diff --git a/image/Group 13.png b/image/Group 13.png new file mode 100644 index 0000000..d998693 Binary files /dev/null and b/image/Group 13.png differ diff --git a/image/Group.png b/image/Group.png new file mode 100644 index 0000000..d0c07ca Binary files /dev/null and b/image/Group.png differ diff --git a/image/Line 9.png b/image/Line 9.png new file mode 100644 index 0000000..4f45494 Binary files /dev/null and b/image/Line 9.png differ diff --git a/image/Rectangle 507.png b/image/Rectangle 507.png new file mode 100644 index 0000000..6c401c3 Binary files /dev/null and b/image/Rectangle 507.png differ diff --git a/image/Vector.png b/image/Vector.png new file mode 100644 index 0000000..7d141f5 Binary files /dev/null and b/image/Vector.png differ diff --git a/image/Vector_selected.png b/image/Vector_selected.png new file mode 100644 index 0000000..e653859 Binary files /dev/null and b/image/Vector_selected.png differ diff --git a/image/banner_logo.png b/image/banner_logo.png new file mode 100644 index 0000000..a57144b Binary files /dev/null and b/image/banner_logo.png differ diff --git a/image/bi_person.png b/image/bi_person.png new file mode 100644 index 0000000..7d41876 Binary files /dev/null and b/image/bi_person.png differ diff --git a/image/carbon_search.png b/image/carbon_search.png new file mode 100644 index 0000000..11ec92d Binary files /dev/null and b/image/carbon_search.png differ diff --git a/image/clarity_circle-arrow-solid.png b/image/clarity_circle-arrow-solid.png new file mode 100644 index 0000000..80e40d4 Binary files /dev/null and b/image/clarity_circle-arrow-solid.png differ diff --git a/image/f7_exclamationmark-circle.png b/image/f7_exclamationmark-circle.png new file mode 100644 index 0000000..c937c8b Binary files /dev/null and b/image/f7_exclamationmark-circle.png differ diff --git a/image/mage_logout.png b/image/mage_logout.png new file mode 100644 index 0000000..bb4ff58 Binary files /dev/null and b/image/mage_logout.png differ diff --git "a/image/mentor\352\271\200\354\202\254\354\236\220.png" "b/image/mentor\352\271\200\354\202\254\354\236\220.png" new file mode 100644 index 0000000..e155fff Binary files /dev/null and "b/image/mentor\352\271\200\354\202\254\354\236\220.png" differ diff --git "a/image/mentor\354\235\264\354\210\230\353\271\210.png" "b/image/mentor\354\235\264\354\210\230\353\271\210.png" new file mode 100644 index 0000000..ab0688c Binary files /dev/null and "b/image/mentor\354\235\264\354\210\230\353\271\210.png" differ diff --git a/image/mynaui_letter-a-square.png b/image/mynaui_letter-a-square.png new file mode 100644 index 0000000..d019223 Binary files /dev/null and b/image/mynaui_letter-a-square.png differ diff --git a/image/mynaui_letter-q-square.png b/image/mynaui_letter-q-square.png new file mode 100644 index 0000000..4ca7be1 Binary files /dev/null and b/image/mynaui_letter-q-square.png differ diff --git a/image/ph_pencil-line.png b/image/ph_pencil-line.png new file mode 100644 index 0000000..97cad1f Binary files /dev/null and b/image/ph_pencil-line.png differ diff --git a/image/ph_x.png b/image/ph_x.png new file mode 100644 index 0000000..772e56a Binary files /dev/null and b/image/ph_x.png differ diff --git a/image/sidebar_down.png b/image/sidebar_down.png new file mode 100644 index 0000000..29b6d59 Binary files /dev/null and b/image/sidebar_down.png differ diff --git a/image/sidebar_up.png b/image/sidebar_up.png new file mode 100644 index 0000000..86e93ea Binary files /dev/null and b/image/sidebar_up.png differ diff --git "a/image/\353\263\204\354\240\2200.5.png" "b/image/\353\263\204\354\240\2200.5.png" new file mode 100644 index 0000000..ca6d7cf Binary files /dev/null and "b/image/\353\263\204\354\240\2200.5.png" differ diff --git "a/image/\353\263\204\354\240\2201.png" "b/image/\353\263\204\354\240\2201.png" new file mode 100644 index 0000000..2ec8861 Binary files /dev/null and "b/image/\353\263\204\354\240\2201.png" differ diff --git "a/image/\354\233\214\355\201\254\353\240\210\353\224\224 \353\241\234\352\263\240 \354\210\230\354\240\225 (\354\235\264\353\246\204+\353\241\234\352\263\240) 2.png" "b/image/\354\233\214\355\201\254\353\240\210\353\224\224 \353\241\234\352\263\240 \354\210\230\354\240\225 (\354\235\264\353\246\204+\353\241\234\352\263\240) 2.png" new file mode 100644 index 0000000..29b2443 Binary files /dev/null and "b/image/\354\233\214\355\201\254\353\240\210\353\224\224 \353\241\234\352\263\240 \354\210\230\354\240\225 (\354\235\264\353\246\204+\353\241\234\352\263\240) 2.png" differ diff --git "a/image/\355\231\224\354\202\264\355\221\234.png" "b/image/\355\231\224\354\202\264\355\221\234.png" new file mode 100644 index 0000000..4c22383 Binary files /dev/null and "b/image/\355\231\224\354\202\264\355\221\234.png" differ diff --git a/main/main.css b/main/main.css new file mode 100644 index 0000000..cb91e7c --- /dev/null +++ b/main/main.css @@ -0,0 +1,359 @@ +/* iPhone 15 Pro portrait orientation */ +@media only screen and (min-device-width: 393px) and (max-device-width: 430px) and (min-device-height: 852px) and (max-device-height: 932px) and (-webkit-min-device-pixel-ratio: 3) and (orientation: portrait) { + /* 세로 방향 스타일 정의 */ +} +body { + width: 393px; + height: 852px; + background: #fff; + margin: 0%; + position: relative; + .height { + height: 852px; + } +} + +header { + display: flex; + padding: 19px 27px 17.6px 27px; + align-items: flex-end; + justify-content: space-between; + position: fixed; + top: 0; + left: 0; + width: 339px; + height: 37px; + z-index: 101; /* Header의 z-index를 101로 설정하여 사이드바보다 높게 설정 */ + background: #fff; + .blank { + width: 28px; + height: 24px; + } +} +#menu-trigger { + cursor: pointer; + display: flex; + flex-direction: column; + justify-content: space-between; + width: 24px; + height: 20px; + top: 27px; + left: 29px; + position: fixed; /* 고정 위치로 변경 */ + z-index: 1003; /* 사이드바보다 높은 z-index */ +} + +#menu-trigger span { + display: block; + width: 100%; + height: 2.5px; /* 바의 두께를 버튼 크기에 맞게 조정 */ + background-color: #333; + border-radius: 1.5px; /* 테두리를 둥글게 */ + transition: transform 0.3s ease, opacity 0.3s ease; + margin-bottom: 3px; /* 요소들 간의 간격을 좁힘 */ +} + +#menu-trigger span:last-of-type { + margin-bottom: 0; /* 마지막 span에 대한 여백 제거 */ +} + +.menu-trigger.active-1 span:nth-of-type(1) { + transform: translateY(8px) rotate(-45deg); /* translateY 값 조정 */ +} + +.menu-trigger.active-1 span:nth-of-type(2) { + opacity: 0; +} + +.menu-trigger.active-1 span:nth-of-type(3) { + transform: translateY(-9px) rotate(45deg); /* translateY 값 조정 */ +} +.sidebar { + position: fixed; + top: 0; + left: -320px; + width: 320px; + height: 100%; + border-radius: 5px; + background: #fff; + box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); + transition: left 0.3s ease; + z-index: 1002; /* 사이드바의 z-index를 100으로 설정 */ + .ham-menu.mt-5 { + padding: 15px 28px; + .welcome { + width: 189px; + height: 23px; + color: #000; + font-family: "Noto Sans KR"; + font-size: 20px; + font-style: normal; + font-weight: 700; + line-height: 22px; /* 110% */ + letter-spacing: -0.408px; + padding: 10px 24px 16px 51px; + } + .menu-list { + position: relative; + top: 0px; + padding-top: 34px; + } + .logout { + padding-top: 30px; + display: flex; + align-items: center; + justify-content: space-between; + color: #848080; + font-family: Inter; + font-size: 20px; + font-style: normal; + font-weight: 400; + line-height: 22px; /* 110% */ + letter-spacing: -0.408px; + text-decoration: none; + } + } +} + +.sidebar.active { + left: 0; +} + +.overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: #0000007d; + opacity: 0; + visibility: hidden; + transition: opacity 0.3s ease, visibility 0.3s ease; + z-index: 999; +} + +.overlay.active { + opacity: 1; + visibility: visible; +} +.ham-menu { + padding: 20px; +} + +.ham-top-menu { + list-style: none; + padding: 0; + margin: 0; + color: #000; + font-family: Inter; + font-size: 16px; + font-style: normal; + font-weight: 600; + line-height: 22px; /* 137.5% */ + letter-spacing: -0.408px; +} + +.ham-top-menu > li { + margin-bottom: 20px; +} + +.ham-top-menu > li > a { + text-decoration: none; + color: #333; + font-size: 18px; + display: flex; + justify-content: space-between; + align-items: center; + width: 264px; + img { + width: 26px; + height: 26px; + padding-left: 28px; + } +} + +.ham-sub-menu { + list-style: none; + padding: 0; + margin: 10px 0 0 20px; + display: none; +} +.ham-sub-menu.active { + display: block; +} + +.ham-sub-menu > li { + padding-bottom: 12px; + a { + text-decoration: none; + color: #000; + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: 22px; /* 157.143% */ + letter-spacing: -0.408px; + } +} + +.ham-top-menu > li:hover .ham-sub-menu { + display: block; +} +.navbar { + z-index: 100; + position: fixed; + top: 70px; + background: #fff; + width: 100%; + ul { + display: flex; + list-style: none; + padding-left: 0%; + margin: 0%; + li { + padding: 15px 22px 15px 22px; + color: #8a8888; + text-align: center; + font-family: "Noto Sans KR"; + font-size: 18px; + font-style: normal; + font-weight: 500; + line-height: normal; + a { + color: inherit; + text-decoration: none; + } + } + } +} +.blank { + height: 123px; +} +.banner { + margin-top: 3px; + width: 393px; + height: 253px; + .banner_img { + z-index: 1; + position: absolute; + } + div { + z-index: 3; + position: absolute; + .banner_logo { + margin-left: 29px; + margin-top: 50px; + width: 102.588px; + height: 33px; + } + .banner_headline { + margin-left: 30px; + margin-top: 8px; + width: 282px; + height: 74px; + color: #fff; + font-family: "Noto Sans KR"; + font-size: 22px; + font-style: normal; + font-weight: 700; + line-height: 37px; /* 168.182% */ + letter-spacing: -0.408px; + } + } +} + +.mentorOfMonth { + div:first-child { + display: flex; + white-space: nowrap; + .mentor_title { + padding: 20px 216px 16px 21px; + color: #5422e1; + font-family: Inter; + font-size: 20px; + font-style: normal; + font-weight: 600; + line-height: 22px; /* 110% */ + letter-spacing: -0.408px; + } + a { + padding-top: 21px; + width: 44.945px; + height: 17px; + display: flex; + align-items: center; + color: #8a8888; + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: normal; + text-decoration: none; + img { + padding-left: 1px; + width: 5.91px; + height: 13.44px; + } + } + } +} + +.mentor-card-container { + display: flex; + overflow: auto; + white-space: nowrap; + .mentor-card { + border-radius: 5px; + border: 1px solid rgba(84, 34, 225, 0.5); + background: #fff; + box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25); + } +} + +.latestQnA > div:first-child { + display: flex; + white-space: nowrap; + .latestQnA_title { + padding: 20px 142px 16px 21px; + color: #5422e1; + font-family: Inter; + font-size: 20px; + font-style: normal; + font-weight: 600; + line-height: 22px; /* 110% */ + letter-spacing: -0.408px; + } + a { + padding-top: 21px; + width: 44.945px; + height: 17px; + display: flex; + align-items: center; + color: #8a8888; + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: normal; + text-decoration: none; + img { + padding-left: 1px; + width: 5.91px; + height: 13.44px; + } + } +} + +.questions-container { + display: flex; + overflow: auto; + .question-card { + width: 209px; + height: 66px; + flex-shrink: 0; + border-radius: 5px; + border: 1px solid rgba(84, 34, 225, 0.5); + background: #fff; + box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25); + } +} diff --git a/main/main.html b/main/main.html new file mode 100644 index 0000000..263245d --- /dev/null +++ b/main/main.html @@ -0,0 +1,227 @@ + + + + + + + + + 메인페이지 + + +
+
+
+ + +
+
+ +
+ + + +
+ +
+ + +
+
+
이달의 멘토
+ +
더보기
+ +
+
+
+
+
+ +
+
김사자
+
UX
+
# UI # UX # UX기획
+
+ 평균 별점 + + +
+
+
+
+
+
+
+ +
+
이수빈
+
서비스기획
+
# 콘텐츠 기획 # 서비스
+
+ 평균 별점 + + +
+
+
+
+
+
+
+ +
+
+
멘토 Q&A 최신 질문
+ +
더보기
+ +
+
+
+
+
+
# 유통 # 무역 # 구매
+
+ 물류 직무, 여성은 잘 뽑지 않나요? +
+
답변 2
+
+
+
+
+
# 서비스기획 # UX # UI
+
UX 취업, 도메인이 중요할까요?
+
답변 1
+
+
+
+
+ +
+ + diff --git a/main/main.js b/main/main.js new file mode 100644 index 0000000..13ccfb6 --- /dev/null +++ b/main/main.js @@ -0,0 +1,36 @@ +document.addEventListener("DOMContentLoaded", function () { + var menuTrigger = document.getElementById("menu-trigger"); + var sidebar = document.getElementById("sidebar"); + var overlay = document.getElementById("overlay"); + var hamTopMenuLinks = document.querySelectorAll(".ham-top-menu > li > a"); + + menuTrigger.addEventListener("click", function () { + this.classList.toggle("active-1"); + sidebar.classList.toggle("active"); + overlay.classList.toggle("active"); + }); + + overlay.addEventListener("click", function () { + this.classList.remove("active"); + sidebar.classList.remove("active"); + menuTrigger.classList.remove("active-1"); + }); + + hamTopMenuLinks.forEach(function (link) { + link.addEventListener("click", function () { + var subMenu = this.nextElementSibling; + var img = this.querySelector("img"); + + if (subMenu && subMenu.classList.contains("ham-sub-menu")) { + subMenu.classList.toggle("active"); + if (subMenu.classList.contains("active")) { + subMenu.style.display = "block"; + img.src = "../image/sidebar_up.png"; // 이미지 변경 + } else { + subMenu.style.display = "none"; + img.src = "../image/sidebar_down.png"; // 원래 이미지로 복구 + } + } + }); + }); +}); diff --git a/my_qna/myanswer.html b/my_qna/myanswer.html new file mode 100644 index 0000000..d3422d8 --- /dev/null +++ b/my_qna/myanswer.html @@ -0,0 +1,129 @@ + + + + + + + + + 답변관리1 + + +
+ + + +
+
+ + +
+ +
+
답변관리
+
+ 질문에 대한 답변은 5일 이내에 보내주세요.
+ 답변하기 곤란한 질문은 거절할 수 있으며, 거절 시 불이익은 없습니다. +
+
+ +
+
+
+

김유미

+

답변 완료

+
+

+ 컴퓨터공학과를 전공 중인 대학교 4학년 학생입니다. + 졸업을 앞둔 상태에서 늦게 게임 개발자가 되고자 하는 막연한 꿈을 가지게 + 되었습니다. 어디서부터 어떻게 무엇을 준비해야 하는지 잘 알지도 못해서 + 이에 대한 해답을 얻고자 멘토님께 질문을 여쭤보려고 합니다. 진로는 우선 + 게임 클라이언트 개발자로 정해둔 상태입니다! 1. 게임 클라이언트 + 개발자가 되려면 무엇을 하는 게 좋은지 궁금합니다. +

+
+
+
+

이보경

+

답변 완료

+
+

+ 안녕하세요 1년 차 언리얼 개발자로 일하고 게임 + 개발자로 다시 도전을 하고 싶어서 현재는 퇴사한 상태에서 구직 활동을 + 하고 있습니다. 한 달 동안 포트폴리오도 좀 가다듬고 코딩 테스트 준비도 + 하면서 보내고 있었고 최근부터 이력서를 돌리기 시작했습니다. 그런데 + 열람 알림은 떴지만 제가 작업한 영상물의 조회수는 변함이 없다는 것을 + 알게 되었고 과연 제 포트폴리오가 경쟁력이 있을지 궁금합니다. +

+
+
+
+

박소현

+

거절한 질문

+
+

+ 멀티미디어 전공으로 졸업을 하고 취업을 준비하고 + 있습니다. 졸업만 했지, 취업에는 여전히 감을 못 잡고 있습니다.  게임 + 회사를 생각하고 있고, 게임 기획 분야를 일단 알아보고 있는데요. 게임 + 기획 분야로 취업하기 위해서는 어떤 방식으로 접근하는 게 가장 + 현명할까요? +

+
+
+ + + + diff --git a/my_qna/myqna.css b/my_qna/myqna.css new file mode 100644 index 0000000..b682561 --- /dev/null +++ b/my_qna/myqna.css @@ -0,0 +1,108 @@ +@media only screen and (min-device-width: 393px) and (max-device-width: 430px) and (min-device-height: 852px) and (max-device-height: 932px) and (-webkit-min-device-pixel-ratio: 3) and (orientation: portrait) { + /* 세로 방향 스타일 정의 */ +} +body { + width: 393px; + height: 852px; + background: #fff; + margin: 0%; + position: relative; +} + +header { + display: flex; + padding: 19px 27px 17.6px 27px; + align-items: center; + position: fixed; + gap: 87px; + z-index: 100; + background: #fff; + height: 37px; +} + +.navbar { + z-index: 100; + position: fixed; + top: 70px; + background: #fff; + width: 100%; + ul { + display: flex; + list-style: none; + padding-left: 0%; + margin: 0%; + li { + padding: 15px 22px 15px 22px; + color: #8a8888; + text-align: center; + font-family: "Noto Sans KR"; + font-size: 18px; + font-style: normal; + font-weight: 500; + line-height: normal; + a { + color: inherit; + text-decoration: none; + } + } + } +} +.blank { + height: 123px; +} +.myquestion-title { + color: #000; + font-family: Inter; + font-size: 18px; + font-style: normal; + font-weight: 600; + line-height: 22px; /* 122.222% */ + letter-spacing: -0.408px; + padding: 24px 0 20px 30px; +} +.middle { + position: relative; + white-space: nowrap; + .filter { + display: flex; + align-items: center; + padding-left: 30px; + button { + border: none; + padding-right: 10px; + padding-left: 0; + background: #fff; + color: #8a8888; + font-family: "Noto Sans KR"; + font-size: 13px; + font-style: normal; + font-weight: 500; + line-height: 22px; /* 169.231% */ + letter-spacing: -0.408px; + img { + padding-right: 3px; + } + } + } +} +/* 활성화된 버튼 스타일 */ +.filter button.active { + color: #5422e1; + font-family: "Noto Sans KR"; + font-size: 13px; + font-style: normal; + font-weight: 700; + line-height: 22px; /* 169.231% */ + letter-spacing: -0.408px; +} + +/* myanswer */ +.myanswer-guide { + padding: 0px 0 20px 30px; + color: #000; + font-family: Inter; + font-size: 11px; + font-style: normal; + font-weight: 400; + line-height: normal; +} diff --git a/my_qna/myqna.js b/my_qna/myqna.js new file mode 100644 index 0000000..27071c0 --- /dev/null +++ b/my_qna/myqna.js @@ -0,0 +1,34 @@ +document.addEventListener("DOMContentLoaded", function () { + const buttons = document.querySelectorAll(".filter button"); + const questions = document.querySelectorAll(".myquestion"); + + buttons.forEach((button) => { + button.addEventListener("click", function () { + // 모든 버튼에서 active 클래스 제거 + buttons.forEach((btn) => { + btn.classList.remove("active"); + btn.querySelector("img").src = "../image/Vector.png"; // 기본 이미지 경로 + }); + + // 클릭된 버튼에 active 클래스 추가 + this.classList.add("active"); + this.querySelector("img").src = "../image/Vector_selected.png"; // 활성화된 이미지 경로 + + // 클릭된 버튼의 data-filter 값 가져오기 + const filterValue = this.getAttribute("data-filter"); + + // 질문 목록 필터링 + questions.forEach((question) => { + const typeValue = question + .querySelector("h3") + .getAttribute("data-type"); + + if (filterValue === "*" || filterValue === typeValue) { + question.style.display = "block"; // 일치하는 질문 보이기 + } else { + question.style.display = "none"; // 일치하지 않는 질문 숨기기 + } + }); + }); + }); +}); diff --git a/my_qna/myquestion.html b/my_qna/myquestion.html new file mode 100644 index 0000000..1677ea8 --- /dev/null +++ b/my_qna/myquestion.html @@ -0,0 +1,146 @@ + + + + + + + + + MY 질문1 + + +
+ + + +
+
+ + +
+ +
+
MY 질문 기록
+
+
+ + + +
+
+ +
+
+ + +
+
+

# 유통 # 무역 # 구매

+

답변 완료

+
+

물류 직무, 여성은 잘 뽑지 않나요?

+
댓글 1
+

+ 첫 번째로는, 물류 직무는 알려진 것처럼 실제로도 + 여성을 많이 뽑지 않는 직무인지 여쭈어봅니다. 또한, 물류 안의 세부 + 파트 중 이 파트는 비교적 여성을 많이 뽑는다 하시는 추천 파트가 + 있으실지 고견 여쭈어봅니다! 두 번째로는, 자격증 취득 외에도 다양한 + 물류 관련 강의를 수강해 보고자 한다면, 혹시 어떤 분야, 어떤 주제로의 + 학습을 추천하시나요? 세 번째로, 포워딩 직무에도 지원을 하고 + 싶습니다. +

+
+
+
+

# 유통 # 무역

+

대기 중

+
+

+ 이 정도 경험으로 구매직무에 도전해도 될까요? +

+
댓글 0
+

+ AMD 업무를 하면서 구매 직무에 관심이 생겼습니다. + 하반기 공채 시작 전까지 자격증, 교육 수강 등 필요한 부분을 채울 + 계획인데요. 관련하여 몇 가지 질문을 드리고 싶습니다. 1. 현재 + 재고관리, 입출고 관리, 주문 건 관리의 업무를 하고는 있지만, 모두 + 전사 시스템 상으로만 관리를 해본 것인데, 이 정도 경험으로 구매 + 직무의 문을 두드릴 수 있을까요? 구매 직무로 최종 합격을 하시는 + 분들은 저처럼 업무의 한 부분으로써 가 아닌, 직접적으로 구매 인턴을 + 하신 건지 궁금합니다. +

+
+
+
+

# 유통 # 무역 # 구매

+

답변 완료

+
+

면접에서 어떤 경험을 강조해야 할까요?

+
댓글 1
+

+ 물류업계를 준비하고 있는 취준생입니다. 제 경험을 + 어떻게 면접에서 활용할 수 있을지 너무 고민이 되고 답답해서 + 질문드려요. 인턴은 무역상사에서 했고, 아무래도 그 속에서 물류와 + 관련된 경험은 화주로서의 운송사를 이용한 경험, 회사에서 보유한 작은 + 규모의 창고를 본 경험이 있는데요. 1차 면접 질문에서 "물류 회사에서 + 인턴을 하거나 물류와 관련된 다른 경험은 없나요?"라는 질문... +

+
+
+
+ + + + diff --git a/qna/chatqna1.html b/qna/chatqna1.html new file mode 100644 index 0000000..df96f13 --- /dev/null +++ b/qna/chatqna1.html @@ -0,0 +1,129 @@ + + + + + + + + + 1:1 질문1 + + +
+ + + +
+
+ + +
+ +
+ 일반 Q&A + + 1 : 1 Q&A +
+
+ +
+
나의 멘토 목록
+
+
+ +
+ +
+

김사자

+

+ 안녕하세요.
+ 답변드리도록 하겠습니다. 우선 SI에서 테크 회사로 넘어가기 위한 + 스토리를 짤 필요가 있습니다. +

+
+
+
+ +
+

이정은

+

+ 안녕하세요.
+ 지금부터 드릴 답변은 제조업 특히 자동차 산업 구매에 대한 내용을 + 기반으로 하고 있습니다. +

+
+
+
+ +
+

박다은

+

+ 만나 뵙게 되어 반갑습니다. 패키지 디자이너로 진로를 잡으셨으나, + 산디과 학사편입과 학원 포폴 준비로 둘 중에 고민 중에 계신 것으로 + 보입니다. +

+
+
+
+
+
+ + + + diff --git a/qna/chatqna2.html b/qna/chatqna2.html new file mode 100644 index 0000000..867d7a3 --- /dev/null +++ b/qna/chatqna2.html @@ -0,0 +1,95 @@ + + + + + + + + + 일반질문2 + + +
+ + + +
+
+ + +
+ +
+ 일반 Q&A + + 1 : 1 Q&A +
+
+ + +
+ + +
+ + + diff --git a/qna/genqna1.html b/qna/genqna1.html new file mode 100644 index 0000000..5deb303 --- /dev/null +++ b/qna/genqna1.html @@ -0,0 +1,118 @@ + + + + + + + + + 일반질문1 + + +
+ + + +
+
+ + +
+ +
+ 일반 Q&A + + 1 : 1 Q&A +
+
+ + + + + + +
+
+ + +
+ +
+ +
+
+ +
+
+ + + diff --git a/qna/genqna2.html b/qna/genqna2.html new file mode 100644 index 0000000..36b5df3 --- /dev/null +++ b/qna/genqna2.html @@ -0,0 +1,106 @@ + + + + + + + + + 일반질문2 + + +
+ + + +
+
+ + +
+ +
+ 일반 Q&A + + 1 : 1 Q&A +
+
+ +
+
+

+

+
'{nickname}'님의 질문

+

+
+
+
+
+ +
‘김수민’님의 답변
+ + +
+
+ +
+
+ + + diff --git a/qna/genqna3.html b/qna/genqna3.html new file mode 100644 index 0000000..23da56a --- /dev/null +++ b/qna/genqna3.html @@ -0,0 +1,99 @@ + + + + + + + + + 일반질문3 + + +
+ + + +
+
+ + +
+ +
+ 일반 Q&A + + 1 : 1 Q&A +
+
+ +
+
+

+

+
'{nickname}'님의 질문

+

+
+
+
+
아직 답변이 없어요.
+ +
+ + + diff --git a/qna/genqna4.html b/qna/genqna4.html new file mode 100644 index 0000000..cc3822d --- /dev/null +++ b/qna/genqna4.html @@ -0,0 +1,106 @@ + + + + + + + + + 일반질문4 + + +
+ + + +
+
+ + +
+ +
+ 일반 Q&A + + 1 : 1 Q&A +
+
+ +
+
+

+

+
'{nickname}'님의 질문

+

+
+
+
+

답변을 작성해 주세요

+
+ +
+ + +
+ + + diff --git a/qna/genqna5.html b/qna/genqna5.html new file mode 100644 index 0000000..96e0897 --- /dev/null +++ b/qna/genqna5.html @@ -0,0 +1,105 @@ + + + + + + + + + 일반질문5 + + +
+ + + +
+
+ + +
+ +
+ 일반 Q&A + + 1 : 1 Q&A +
+
+
+
질문을 작성해 주세요.
+
+ 질문 분야 + 제목 + 내용 + +
+
+ + + diff --git a/qna/genqna6.html b/qna/genqna6.html new file mode 100644 index 0000000..0172904 --- /dev/null +++ b/qna/genqna6.html @@ -0,0 +1,98 @@ + + + + + + + + + 일반질문6 + + +
+ + + +
+
+ + +
+ +
+ 일반 Q&A + + 1 : 1 Q&A +
+
+ +
+
+

+

+
'{nickname}'님의 질문

+

+
+
+
+
아직 답변이 없어요.
+
+ + + diff --git a/qna/qna.chat.css b/qna/qna.chat.css new file mode 100644 index 0000000..a013d61 --- /dev/null +++ b/qna/qna.chat.css @@ -0,0 +1,185 @@ +@media only screen and (min-device-width: 393px) and (max-device-width: 430px) and (min-device-height: 852px) and (max-device-height: 932px) and (-webkit-min-device-pixel-ratio: 3) and (orientation: portrait) { + /* 세로 방향 스타일 정의 */ +} +body { + width: 393px; + height: 852px; + background: #fff; + margin: 0%; + position: relative; +} + +header { + display: flex; + padding: 19px 27px 17.6px 27px; + align-items: center; + position: fixed; + gap: 87px; + z-index: 100; + background: #fff; + height: 37px; +} + +.navbar { + z-index: 100; + position: fixed; + top: 70px; + background: #fff; + width: 100%; + ul { + display: flex; + list-style: none; + padding-left: 0%; + margin: 0%; + li { + padding: 15px 22px 15px 22px; + color: #8a8888; + text-align: center; + font-family: "Noto Sans KR"; + font-size: 18px; + font-style: normal; + font-weight: 500; + line-height: normal; + a { + color: inherit; + text-decoration: none; + } + .nav-QnA { + color: #5422e1; + } + } + } +} + +.qna-navbar { + width: 100%; + height: 55px; + background: #fff; + z-index: 100; + position: fixed; + top: 125.6px; + display: inline-flex; + justify-content: flex-start; + align-items: center; + .nav-genQ, + .nav-oneQ { + padding: 17px 60px; + white-space: nowrap; + width: 83px; + height: 28px; + font-size: 17px; + font-family: "Noto Sans KR", sans-serif; + font-weight: 500; + line-height: 22px; + color: rgba(0, 0, 0, 0.3); + text-decoration: none; + } +} + +/* chatroom */ +.mychat { + border-radius: 10px; + background: rgba(132, 128, 128, 0.1); + display: flex; + width: 92%; + height: 36px; + justify-content: space-around; + align-items: center; + position: fixed; + bottom: 8px; + left: 14px; + input { + background-repeat: no-repeat; + background: none; + border: none; + width: 300px; + } + input::-webkit-input-placeholder { + background-image: url(../image/f7_exclamationmark-circle.png); + background-size: contain; + background-position: 1px center; + background-repeat: no-repeat; + text-align: center; + text-indent: 0; + } + button { + background: none; + padding: 0; + border: none; + cursor: pointer; + } +} + +/* chat.index */ +.chatroom-container { + position: relative; + top: 180px; + .title { + padding: 20px 254px 34px 21px; + white-space: nowrap; + color: #5422e1; + font-family: Inter; + font-size: 20px; + font-style: normal; + font-weight: 600; + line-height: 22px; /* 110% */ + letter-spacing: -0.408px; + } + .content { + display: flex; + flex-direction: column; + align-items: center; + #chatroom-list { + display: flex; + flex-direction: column; + gap: 27px; + width: 89%; + .chatroom { + display: flex; + flex-direction: row; + align-items: center; + img { + width: 91px; + height: 96px; + border-radius: 30px; + background: url() lightgray 50% / cover no-repeat; + box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25); + } + div { + height: 96px; + padding-left: 14px; + display: flex; + flex-direction: column; + justify-content: center; + gap: 2px; + h2 { + color: #000; + font-family: Inter; + font-size: 17px; + font-style: normal; + font-weight: 600; + line-height: 22px; /* 129.412% */ + letter-spacing: -0.408px; + margin: 0; + position: relative; + } + p { + color: #848080; + font-family: Inter; + font-size: 11px; + font-style: normal; + font-weight: 400; + line-height: 15px; /* 136.364% */ + margin: 0; + display: -webkit-box; + word-wrap: break-word; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; + text-overflow: ellipsis; + overflow: hidden; + } + } + } + } + } +} diff --git a/qna/qna.chat.js b/qna/qna.chat.js new file mode 100644 index 0000000..e69de29 diff --git a/qna/qna.gen.css b/qna/qna.gen.css new file mode 100644 index 0000000..9378bc0 --- /dev/null +++ b/qna/qna.gen.css @@ -0,0 +1,421 @@ +@media only screen and (min-device-width: 393px) and (max-device-width: 430px) and (min-device-height: 852px) and (max-device-height: 932px) and (-webkit-min-device-pixel-ratio: 3) and (orientation: portrait) { + /* 세로 방향 스타일 정의 */ +} +body { + width: 393px; + height: 852px; + background: #fff; + margin: 0%; + position: relative; +} + +header { + display: flex; + padding: 19px 27px 17.6px 27px; + align-items: center; + position: fixed; + gap: 87px; + z-index: 100; + background: #fff; + height: 37px; + top: 0px; +} + +.navbar { + z-index: 100; + position: fixed; + top: 70px; + background: #fff; + width: 100%; + ul { + display: flex; + list-style: none; + padding-left: 0%; + margin: 0%; + li { + padding: 15px 22px 15px 22px; + color: #8a8888; + text-align: center; + font-family: "Noto Sans KR"; + font-size: 18px; + font-style: normal; + font-weight: 500; + line-height: normal; + a { + color: inherit; + text-decoration: none; + } + .nav-QnA { + color: #5422e1; + } + } + } +} + +.qna-navbar { + width: 100%; + height: 55px; + background: #fff; + z-index: 100; + position: fixed; + top: 125.6px; + display: inline-flex; + justify-content: flex-start; + align-items: center; + .nav-genQ, + .nav-oneQ { + padding: 17px 60px; + white-space: nowrap; + width: 83px; + height: 28px; + font-size: 17px; + font-family: "Noto Sans KR", sans-serif; + font-weight: 500; + line-height: 22px; + color: rgba(0, 0, 0, 0.3); + text-decoration: none; + } +} +.nav-genQ { + color: #5422e1; +} + +.search-box { + position: relative; + top: 180px; + width: 331px; + height: 44px; + background: #f5f5f5e5; + border-radius: 40px; + margin: 20px 31px; + display: flex; + justify-content: space-around; +} + +.search-txt { + border: none; + background: none; + outline: none; + float: left; + color: #626060; + font-size: 13px; + font-family: Inter; + font-weight: 400; + line-height: 22px; + word-wrap: break-word; +} + +.search-btn { + border: none; + display: flex; + justify-content: center; + align-items: center; + background: #f5f5f5e5; +} + +.middle { + position: relative; + top: 180px; + display: flex; + align-items: flex-start; + white-space: nowrap; + img { + padding-right: 3px; + } + button { + border: none; + background: #fff; + color: #8a8888; + font-family: "Noto Sans KR"; + font-size: 13px; + font-style: normal; + font-weight: 500; + line-height: 22px; /* 169.231% */ + letter-spacing: -0.408px; + } + .filter { + padding: 0 81px 15px 25px; + } + .nav-question { + text-decoration: none; + border: 1px solid #5422e1; + border-radius: 7px; + display: flex; + align-items: flex-end; + color: #5422e1; + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: 22px; /* 157.143% */ + letter-spacing: -0.408px; + } +} +/* 활성화된 버튼 스타일 */ +.filter button.active { + color: #5422e1; + font-family: "Noto Sans KR"; + font-size: 13px; + font-style: normal; + font-weight: 700; + line-height: 22px; /* 169.231% */ + letter-spacing: -0.408px; +} + +/* qna.gen.index */ +.forum { + position: relative; + top: 180px; +} +#post-list { + display: flex; + flex-direction: column; + align-items: center; + gap: 12px; + padding: 10px 0; + .post { + width: 84%; + border-radius: 5px; + border: 1px solid rgba(84, 34, 225, 0.5); + background: #fff; + box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25); + padding: 10px 16px; + h4 { + color: #5422e1; + font-family: Inter; + font-size: 11px; + font-style: normal; + font-weight: 500; + line-height: 22px; /* 200% */ + letter-spacing: -0.408px; + } + h2 { + color: #000; + font-family: Inter; + font-size: 17px; + font-style: normal; + font-weight: 400; + line-height: 22px; /* 129.412% */ + letter-spacing: -0.408px; + } + h5 { + color: #8a8888; + font-family: Inter; + font-size: 11px; + font-style: normal; + font-weight: 400; + line-height: normal; + } + p { + color: #8a8888; + font-family: Inter; + font-size: 11px; + font-style: normal; + font-weight: 400; + line-height: normal; + text-align: left; + display: -webkit-box; + word-wrap: break-word; + -webkit-line-clamp: 6; + -webkit-box-orient: vertical; + text-overflow: ellipsis; + overflow: hidden; + } + } +} + +/* new-post */ +.question-container { + position: absolute; + top: 181px; + width: 393px; + .title { + display: flex; + justify-content: center; + padding: 20px 108px; + white-space: nowrap; + color: #5422e1; + font-family: Inter; + font-size: 20px; + font-style: normal; + font-weight: 600; + line-height: 22px; /* 110% */ + letter-spacing: -0.408px; + } + .content { + display: flex; + flex-direction: column; + border-radius: 5px; + border: 1px solid rgba(84, 34, 225, 0.5); + background: #fff; + box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25); + margin: 0 18px; + padding: 20px; + color: #000; + font-family: Inter; + font-size: 17px; + font-style: normal; + font-weight: 600; + line-height: 22px; /* 129.412% */ + letter-spacing: -0.408px; + input { + margin: 8px 0 24px 0; + padding-left: 8px; + width: 312px; + height: 39px; + border-radius: 5px; + border: 2px solid #dadada; + background: #fff; + box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.25) inset; + color: #000; + font-family: Inter; + } + input::placeholder, + textarea::placeholder { + color: rgba(138, 136, 136, 0.8); + font-family: Inter; + font-size: 15px; + font-style: normal; + font-weight: 400; + line-height: normal; + } + textarea { + padding-left: 8px; + padding-top: 10px; + margin: 8px 0 24px 0; + width: 312px; + height: 157px; + border-radius: 5px; + border: 2px solid #dadada; + background: #fff; + box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.25) inset; + color: #000; + font-family: Inter; + } + } + #new-post-submit { + width: 312px; + height: 42px; + flex-shrink: 0; + border-radius: 5px; + border: 2px solid #5422e1; + background: #5422e1; + box-shadow: 1px 2px 2px 0px rgba(0, 0, 0, 0.25); + color: #fff; + text-align: center; + font-family: "Noto Sans KR"; + font-size: 16px; + font-style: normal; + font-weight: 700; + line-height: normal; + } +} + +/* genqna4 */ +.blank { + height: 180px; +} +.post-container { + position: static; + width: 84%; + #post-tag { + display: flex; + width: 155px; + height: 13px; + flex-direction: column; + justify-content: center; + flex-shrink: 0; + color: #5422e1; + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 500; + line-height: 22px; /* 157.143% */ + letter-spacing: -0.408px; + } + #post-title { + color: #000; + font-family: Inter; + font-size: 17px; + font-style: normal; + font-weight: 600; + line-height: 22px; /* 129.412% */ + letter-spacing: -0.408px; + } + #post-content { + color: #000; + font-family: Inter; + font-size: 11px; + font-style: normal; + font-weight: 400; + line-height: 15px; /* 136.364% */ + } + .post-middle { + display: flex; + align-items: center; + gap: 6px; + color: #5422e1; + font-family: Inter; + font-size: 18px; + font-style: normal; + font-weight: 500; + line-height: 22px; /* 122.222% */ + letter-spacing: -0.408px; + } +} +.comment-container { + width: 84%; + position: static; + display: flex; + flex-direction: column; + h3 { + color: #000; + font-family: Inter; + font-size: 18px; + font-style: normal; + font-weight: 600; + line-height: 22px; /* 122.222% */ + letter-spacing: -0.408px; + } + #comments { + p { + color: #000; + font-family: Inter; + font-size: 11px; + font-style: normal; + font-weight: 400; + line-height: 15px; /* 136.364% */ + } + } + #comment-submit { + width: 335px; + height: 42px; + border-radius: 5px; + border: 2px solid #5422e1; + background: #5422e1; + box-shadow: 1px 2px 2px 0px rgba(0, 0, 0, 0.25); + color: #fff; + text-align: center; + font-family: "Noto Sans KR"; + font-size: 16px; + font-style: normal; + font-weight: 700; + line-height: normal; + } +} + +/* genqna3 */ +.bottom { + button { + border: 0; + background-color: transparent; + cursor: pointer; + } +} + +/* genanq2 */ +.comment-title { + display: flex; + justify-content: space-between; + align-items: center; +} diff --git a/qna/qna.gen.js b/qna/qna.gen.js new file mode 100644 index 0000000..8c364fa --- /dev/null +++ b/qna/qna.gen.js @@ -0,0 +1,115 @@ +// script.js + +//localStorage.clear(); +document.addEventListener("DOMContentLoaded", function () { + const buttons = document.querySelectorAll(".filter button"); + + buttons.forEach((button) => { + button.addEventListener("click", function () { + // 모든 버튼에서 active 클래스 제거 + buttons.forEach((btn) => { + btn.classList.remove("active"); + btn.querySelector("img").src = "../image/Vector.png"; // 기본 이미지 경로 + }); + + // 클릭된 버튼에 active 클래스 추가 + this.classList.add("active"); + this.querySelector("img").src = "../image/Vector_selected.png"; // 활성화된 이미지 경로 + }); + }); +}); + +let posts = JSON.parse(localStorage.getItem("posts")) || []; +let currentPostId = localStorage.getItem("currentPostId"); + +function savePosts() { + localStorage.setItem("posts", JSON.stringify(posts)); +} + +function addPost() { + const tag = document.getElementById("new-post-tag").value; + const title = document.getElementById("new-post-title").value; + const content = document.getElementById("new-post-content").value; + + if (title && content) { + const newPost = { + id: posts.length + 1, + tag: tag, + title: title, + content: content, + comments: [], + }; + + posts.push(newPost); + savePosts(); + document.getElementById("new-post-tag").value = ""; + document.getElementById("new-post-title").value = ""; + document.getElementById("new-post-content").value = ""; + localStorage.setItem("currentPostId", newPost.id); + location.href = "genqna4.html"; + } +} + +function renderPostList() { + const postList = document.getElementById("post-list"); + if (!postList) return; + + postList.innerHTML = ""; + + posts.forEach((post) => { + const postElement = document.createElement("div"); + postElement.className = "post"; + postElement.innerHTML = ` +

${post.tag}

+

${post.title}

+
댓글 ${post.comments.length}
+

${post.content}

+ `; + postList.appendChild(postElement); + }); +} + +function viewPost(id) { + localStorage.setItem("currentPostId", id); + location.href = "genqna4.html"; +} + +function renderPostDetail() { + if (!currentPostId) return; + + const post = posts.find((p) => p.id === parseInt(currentPostId)); + + if (post) { + document.getElementById("post-tag").innerText = post.tag; + document.getElementById("post-title").innerText = post.title; + document.getElementById("post-content").innerText = post.content; + + const commentsDiv = document.getElementById("comments"); + commentsDiv.innerHTML = ""; + + post.comments.forEach((comment) => { + const commentElement = document.createElement("p"); + commentElement.innerText = comment; + commentsDiv.appendChild(commentElement); + }); + } +} + +function addComment() { + const commentContent = document.getElementById("new-comment-content").value; + + if (commentContent) { + const post = posts.find((p) => p.id === parseInt(currentPostId)); + post.comments.push(commentContent); + savePosts(); + document.getElementById("new-comment-content").value = ""; + renderPostDetail(); + } +} + +// 페이지 로드 시 초기화 +if (document.getElementById("post-list")) { + renderPostList(); +} else if (document.getElementById("post-title")) { + renderPostDetail(); +}