+
+
+
+
+
+ likelion_snu
+
+
+
+
+ diff --git a/README.md b/README.md index 14a9bf0..60834b0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # html-css-js-seminar -멋쟁이사자처럼 12기 2주차 html-css-js 세미나 레포지토리 입니다. \ No newline at end of file +멋쟁이사자처럼 12기 3주차 html-css-js 세미나 레포지토리 입니다. \ No newline at end of file diff --git a/instagram.css b/instagram.css new file mode 100644 index 0000000..55123b9 --- /dev/null +++ b/instagram.css @@ -0,0 +1,271 @@ +.main-container { + display: flex; + flex-direction: column; + width: 700px; + margin: auto; +} + +.header { + display: flex; + justify-content: space-between; + width: 100%; + height: 30px; + border-bottom: 2px solid #d3d3d3; + padding-bottom: 10px; +} + +.header .logo { + height: 100%; +} + +.header .search { + padding: 3px; + border: 2px solid #d3d3d3; + border-radius: 2px; +} + +.header .icon-list { + height: 100%; +} + +.story-container { + display: flex; + flex-direction: row; + justify-content: space-between; + margin-top: 10px; + padding-right: 20%; + padding-left: 20%; + height: 20%; +} + +.story-container .story-element { + display: flex; + flex-direction: column; + align-items: center; +} + +.story-container .story { + width: 40px; + height: 40px; + border: 2px solid orange; + border-radius: 50%; + background-color: gray; +} + +.story-container .story-owner { + margin-top: 2px; + font-size: 8px; +} + +.article-container { + display: flex; + flex-direction: column; + width: 60%; + margin: 10px auto; + border: 2px solid #d3d3d3; +} + +/* profile-container 부분 시작 */ +.profile-container { + padding: 10px; + display: flex; + justify-content: space-between; +} + +.profile { + width: 20%; + display: flex; +} + +.profile-name { + margin-left: 5px; + font-weight: bold; +} + +.profile-image { + width: 20px; + border-radius: 10px; +} + +.menu { + width: 20px; + height: 20px; + background-image: radial-gradient(circle, black 2px, transparent 2.1px); + background-size: 100% 33.33%; +} +/* profile-container 부분 끝 */ + +/* 이미지 부분 시작*/ +.article { + width: 100%; +} +/* 이미지 부분 끝*/ + +/* button-container 부분 시작 */ +.button-container { + border-bottom: 2px solid #d3d3d3; + padding-top: 5px; +} +.feed-buttons:hover { + opacity: 0.7; + cursor: pointer; +} +.feed-buttons { + width: 40px; + margin-left: 3px; +} +/* button-container 부분 끝 */ + +/* comment container 부분 시작*/ +.comment-container { + padding: 5px 0px; + display: flex; + width: 100%; +} +.smile { + width: 30px; +} +.smile:hover { + cursor: pointer; + opacity: 0.7; +} + +.comment { + height: 25px; + border: none; + width: 80%; +} + +.comment-button { + border: none; + background-color: rgb(0, 0, 0, 0); + color: blue; + opacity: 50%; +} +.comment-button:hover { + opacity: 20%; + cursor: pointer; +} +/* comment container 부분 끝*/ + +/* 피드 부분 끝*/ + +.footer-message { + display: flex; + justify-content: center; + color: gray; + font-size: 15px; +} + +.story-modal { + display: none; /* 모달창 숨겨 놓기 */ + position: fixed; + z-index: 1; /* 모달창을 제일 앞에 두기 */ + padding-top: 100px; + left: 0; + top: 0; + width: 100%; + height: 100%; + overflow: auto; /* 스크롤 허용 auto */ + cursor: pointer; /* 마우스 손가락모양 */ + background-color: rgba(0, 0, 0, 0.8); /* 0.8은 투명도*/ +} + +#story-image { + border-radius: 20px; + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); /* 모달 가운데에 놓기 */ +} + +#profile-modal { + display: none; + width: 325px; + height: 250px; +} + +#like-count-text { + padding-left: 6px; + padding-bottom: 6px; +} + +#red-heart { + display: none; +} + +.comment-wrapper:hover > .comment-delete-icon { + display: inline; +} + +.comment-delete-icon { + width: 12px; + height: 12px; + cursor: pointer; + display: none; +} + +.alert-container { + width: 20%; + height: 10%; + display: none; + justify-content: space-around; + align-items: center; + position: fixed; + right: -100%; + top: 20%; + background-color: grey; + opacity: 0.9; + border-radius: 10px; + transition: right 0.5s ease-out; +} +.alert-container .alert-profile-image { + display: flex; + margin-right: 10px; + width: 30px; + height: 30px; + border-radius: 15px; +} +.alert-container .alert-message { + display: flex; + color: white; + opacity: 1; +} + +.alert-origin-image-container { + display: flex; +} + +.alert-origin-image-container .alert-origin-image { + display: flex; + width: 30px; + height: 30px; +} +.emoji-container { + display: none; + position: absolute; + flex-direction: column; + width: 250px; + top: 63.6%; + left: 37.7%; + height: 70px; + background-color: grey; + border-radius: 10px; +} +.emoji-text { + display: flex; + font-size: 14px; + margin-top: 6px; + margin-left: 12px; + margin-bottom: 10px; + align-items: center; + color: white; +} +.emoji-list { + display: flex; + flex-direction: row; + margin-left: 10px; + align-items: center; + gap: 3px; + font-size: 20px; +} diff --git a/instagram.html b/instagram.html new file mode 100644 index 0000000..ec9e6a8 --- /dev/null +++ b/instagram.html @@ -0,0 +1,118 @@ + + +
+ + + +
+
+
+
+
+
+ likelion_snu
+
+
+
+
+
+
+