계속되는 자잘한 질문에 죄송합니다 T.T 이번 주 토요일에 시험을 앞두고 있어서 좀 더 확실하게 알고 넘어가고자 계속해서 질문하게 되는 것 같습니다..! 팝업창 위치 관련해서 궁금한 점이 있습니다. .modal { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgb(0, 0, 0, 0.2); z-index: 11; display: none; } .modal-con { position: absolute; top: 50%; left: 50%; background-color: #fff; width: 500px; transform: translate(-50%, -100%); padding: 20px; border-radius: 20px; } 위치 관련 질문이어서 .modal과 .modal-con 부분만 가져오게 되었습니다. 위와 같이 작성할 경우에 해당 사진처럼 브라우저 중앙에 위치하기는 하는데 안 예쁘기도 하고 시험지(?)에 나와있는 모달 제작 그림에선 팝업창이 슬라이드까지 가리고 있어서 더 올려주고 싶은데 .modal-con { position: absolute; top: 50%; left: 50%; background-color: #fff; width: 500px; transform: translate(-50%, -100%); padding: 20px; border-radius: 20px; } .modal-con h2 { text-align: center; background-color: #000; color: #fff; padding: 10px; border-radius: 10px; } 이런 식으로 .modal-con의 translate 뒷부분에 -50%, -100% 를 주어서 임의로 더 올려도 괜찮은지가 궁금합니다..! 시험을 앞뒀다보니 저는 제 눈의 만족을 위해 저렇게 연습해왔는데 실제 시험에서 저렇게 작업해도 될지, 무조건 브라우저 중앙에 위치시키는 것이 좋을 지 확실하게 알고 가는 것이 좋을 것 같아서 질문드리게 되었습니다. 항상 감사합니다!!
완전탐색 강의 마지막 문제 1090번 문제 풀이 방법에 의문이 생겨서 질문 올려봅니다. 강의에서는 우리의 집 중에서 한 곳에 모이면 된다고 풀이를 하셨는데, 예시에 나온 4 15 14 15 16 14 15 16 15 4명이 모이기 위한 최적의 장소는 (15,15)입니다. 백준에서도 이것이 정답 좌표이고. 그래서 혹시 제가 1번 2번 3번 아이디어를 이해하는데에서 잘못 이해한 부분이 있을까 싶어 질문을 올립니다. (15 14) (15 16) (14 15) (16 15) 중에 하나에 모인다는 말이 아닌것인가요?
표 스타일을 다루는 강의에서, nth-child를 이용해 표의 행을 띄엄띄엄 채색할 때(background-color), 본 강의에서 제공된 코드와 똑같이 작성한 것 같은데 저는 표의 행 전체가 칠해집니다. nth-child 안의 숫자를 바꾸면 행이 전부 칠해졌다가 아예 안칠해졌다가 하는데, 무엇이 잘못되었는지 잘 모르겠습니다. 인터넷을 찾아보면 nth-child가 부모가 어떻든지간에 괄호안에 적힌 숫자번째 줄에 모두 적용하기 때문이라는 내용이 나오는데, 그렇다면 강의에서는 잘 작동된 이유가 뭔지 알고싶습니다. 그리고 제가 빠뜨린 개념이 있는지 혹시 눈치채신 분이 계시다면 알려주시면 감사하겠습니다.
시험장에서 네트워크가 끊기는 것으로 알고 있는데 강의에서 영상으로 설명해주신 것은 비주얼 스튜디오 코드가 아니어서 확실한 정보를 얻기 위해 질문하게 되었습니다! 초반 강의에서 말씀하신 필수로 설치해야 하는 익스텐션은 네트워크가 끊겨 있어도 설치가 가능한 건가요?? 또 인터넷이 연결되지 않아도 브라우저 창으로 live server가 가능한 것인지 궁금합니다..!
스타일콤포넌트 작성 부분에 백틱 다음 문자열 작성에 소플님의 VS 화면의 css 스타일 코드 부분이 하늘색(?)과 노랑색, 갈색으로 보여서 가독성이 좋아 보입니다. 그런데 저는 백틱 다음의 문자열이 모두 갈색으로 보이는데 VS환경설정 기능에 뭔가 있는 건가요? 다른 부분은 색깔 구분에 잘되어져 보이는데, 유독 스타일콤포넌트의 백틱 부부분만 색상 구분이 안됩니다.
보통 200X40 혹은 190X45 픽셀 크기로 작업하라고 로고 세부사항에 지시가 되어있는데 header 폴더에 제공된 로고를 삽입한다. 로고의 크기 변경 시, 가로세로 비율(종횡비, aspect ratio)을 유지하여야 한다. 이 부분에서 가로 세로 비율을 유지하라는 것이 정확히 어떤 의미인지 이해가 잘 가지 않습니다. 이러한 지시사항이 있을 땐 로고 작업 크기를 어떻게 하는 것이 좋을까요??
선생님 안녕하세요 ! 강의를 듣는 중 궁금한 점이 있어 질의 드립니다. section04 - 각각의 객체에 개별 애니메이션 적용하기 영상에서 let bar를 for문 밖에 선언하고 for문 안에서 document.createElement를 할당한 이유가 있을까요? for문 안에 같이 선언하면서 할당하는 코드와 어떤 부분이 다른지 잘 모르겠어서 질의 드립니다. const bars = []; let bar; for(let i = 0; i < 30; i++){ bar = document.createElement('div'); bar.classList.add('bar'); barContainer.appendChild(bar); bars.push(bar); }
강사님 안녕하세요. 덕분에 강의도 잘 듣고, 개인 번역사이트도 만들어서 너무 기쁩니다. 다름이 아니라, 어느 정도 긴 문장을 넣었을 때도 번역이 되려면 어떻게 코드를 짜야 하나요? 예를 들어, 영어로 1400단어 정도로 넣고, 한글로 번역을 실행하면, 한국어로 번역해서 대답해주다가 어느 중간에 끊겨서 출력이 됩니다. max_tokens 값을 500에서 5000으로 크게 바꾸어 보아도, 대답해 주는 문장 길이는 변하지 않았습니다. ㅠㅠ
미니블로그를 실행시키면 아래와 같은 에러가 브라우저 콘솔에 찍힙니다. 소스는 몇 번을 확인해서 잘 못 된 부분이 없다고 생각합니다. MainPage.jsx 부터 불러오질 못하네요. 뭐가 잘 못 됐는지 찾아주시면 고맙겠습니다. 아래는 App.js 에 PostWritePage, PostViewPage 를 빼고 실행했을 경우 브라우저 페이지 자체에 나오는 에러입니다. function App(props) { return ( <BrowserRouter> <MainTitleText>제플리카의 미니 블로그</MainTitleText> <Routes> <Route index element={<MainPage />} /> </Routes> </BrowserRouter> ); } Uncaught runtime errors: × ERROR Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of MainPage . Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of MainPage . at createFiberFromTypeAndProps ( http://localhost:3000/static/js/bundle.js:36883:21 ) at createFiberFromElement ( http://localhost:3000/static/js/bundle.js:36904:19 ) at createChild ( http://localhost:3000/static/js/bundle.js:25473:32 ) at reconcileChildrenArray ( http://localhost:3000/static/js/bundle.js:25713:29 ) at reconcileChildFibers ( http://localhost:3000/static/js/bundle.js:26055:20 ) at reconcileChildren ( http://localhost:3000/static/js/bundle.js:28987:32 ) at updateHostComponent ( http://localhost:3000/static/js/bundle.js:29631:7 ) at beginWork ( http://localhost:3000/static/js/bundle.js:31076:18 ) at HTMLUnknownElement.callCallback ( http://localhost:3000/static/js/bundle.js:16062:18 ) at Object.invokeGuardedCallbackDev ( http://localhost:3000/static/js/bundle.js:16106:20 ) ERROR Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of MainPage . Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of MainPage . at createFiberFromTypeAndProps ( http://localhost:3000/static/js/bundle.js:36883:21 ) at createFiberFromElement ( http://localhost:3000/static/js/bundle.js:36904:19 ) at createChild ( http://localhost:3000/static/js/bundle.js:25473:32 ) at reconcileChildrenArray ( http://localhost:3000/static/js/bundle.js:25713:29 ) at reconcileChildFibers ( http://localhost:3000/static/js/bundle.js:26055:20 ) at reconcileChildren ( http://localhost:3000/static/js/bundle.js:28987:32 ) at updateHostComponent ( http://localhost:3000/static/js/bundle.js:29631:7 ) at beginWork ( http://localhost:3000/static/js/bundle.js:31076:18 ) at HTMLUnknownElement.callCallback ( http://localhost:3000/static/js/bundle.js:16062:18 ) at Object.invokeGuardedCallbackDev ( http://localhost:3000/static/js/bundle.js:16106:20 ) ERROR Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of MainPage . Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of MainPage . at createFiberFromTypeAndProps ( http://localhost:3000/static/js/bundle.js:36883:21 ) at createFiberFromElement ( http://localhost:3000/static/js/bundle.js:36904:19 ) at createChild ( http://localhost:3000/static/js/bundle.js:25473:32 ) at reconcileChildrenArray ( http://localhost:3000/static/js/bundle.js:25713:29 ) at reconcileChildFibers ( http://localhost:3000/static/js/bundle.js:26055:20 ) at reconcileChildren ( http://localhost:3000/static/js/bundle.js:28987:32 ) at updateHostComponent ( http://localhost:3000/static/js/bundle.js:29631:7 ) at beginWork ( http://localhost:3000/static/js/bundle.js:31076:18 ) at beginWork$1 ( http://localhost:3000/static/js/bundle.js:36015:18 ) at performUnitOfWork ( http://localhost:3000/static/js/bundle.js:35284:16 )
B유형이 나왔구 선생님 강의 듣고 매일 연습한 결과 아주 완벽하게 끝내고 왔습니다! 팁을 하나 드리자면 제가 맨처음에 시험을 시작할때 라이브서버나 한글버전의 비주얼 스튜디오가 설치되어 있지 않아서(영문버전) 일단 그냥 했는데 시험 도중에 웹 페이지에서 아무것도 CSS에 적은게 반영이 안되는겁니다... 감독관님을 손들며 부를 때 알게 되었죠 저장 누르면서 해야 적용될 것 같은데? 이생각을요 ㅠㅠ..(+추가드립니다! 시험장에서 영문버전 Auto Save 누르고 하였으나.. 적용이 안되어 비주얼 소프트웨어 문제인지 그거까지 둘다 Ctrl+S / 브라우저 F5를 번갈아가며 눌렀습니다 ;ㅅ;) Html, Css, jQuery를 저장하면서 홈페이지까지 F5로 새로고침을 계속 누르면서 해야되는게 많이 번거로웠습니다! 저의 작업순서는 와이어프레임 작성 (8분) --> 포토샵 열고 파일 정리(이미지 등등 크기에 맞게 자르고 텍스트까지 전부다 마침) (20분) --> 헤더로고, 푸터 모든 영역 완성 (5분) --> 바로 슬라이드 완성 (5분) --> news, gallery 완성 (10분) --> Navi 완성 (10분+10분 서브백 어떻게하는지 중간에 까먹음...!!그래도 완성) --> 그리고 나머지는 검토시간(10분정도) 이 순서로 했던 것 같습니다. 많은분들이 작업 순서를 고민하신다면 이렇게 해보시는걸 추천드립니다! (참고로....저는...시험 다 끝나고 제출할때까지도...용량 초과했는지 확인을 못했지만... 연습을 엄청나게 많이 해봤을때 아무리커봐야 2MB~3MB정도 일거라고 판단하여.. 95점정도의 고득점 예상합니다!) 다들 화이팅입니다! ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ 아차! 추가로 영문버전은 단축키(줄 삭제 / 줄 복제 / 줄 이동) 이런거는 단축키에 들어가셔서 "line" 이것만 쳐도 바로 상단에 전부다 몰려있으니 꼭 시험 시작하기전에 단축키부터 설정하고 하시면됩니다. 한글버전도 마찬가지구 이게 시험 시간 단축의 큰 도움이 될겁니다.