From 16fa52bc0add11ab62316742d06f1063901214e9 Mon Sep 17 00:00:00 2001
From: Nayujin <00nyj@sookmyung.ac.kr>
Date: Fri, 27 Oct 2023 13:55:25 +0900
Subject: [PATCH 01/10] =?UTF-8?q?init:=201=EC=A3=BC=EC=B0=A8=20=EA=B3=BC?=
=?UTF-8?q?=EC=A0=9C=20=EA=B0=80=EC=A0=B8=EC=98=A4=EA=B8=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
assignment/week02/assign1/index.html | 101 ++++++++++++++
assignment/week02/assign1/style.css | 192 +++++++++++++++++++++++++++
2 files changed, 293 insertions(+)
create mode 100644 assignment/week02/assign1/index.html
create mode 100644 assignment/week02/assign1/style.css
diff --git a/assignment/week02/assign1/index.html b/assignment/week02/assign1/index.html
new file mode 100644
index 0000000..9dac13a
--- /dev/null
+++ b/assignment/week02/assign1/index.html
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+ 유진's 사진관
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/assignment/week02/assign1/style.css b/assignment/week02/assign1/style.css
new file mode 100644
index 0000000..5779a09
--- /dev/null
+++ b/assignment/week02/assign1/style.css
@@ -0,0 +1,192 @@
+html{
+ scroll-behavior: smooth;
+}
+
+body {
+ box-sizing: border-box;
+ margin:auto;
+ font-weight: 600;
+ /* scroll-snap-type: y mandatory; */
+}
+
+img{
+ object-fit: cover;
+}
+
+#title{
+ background-color: palevioletred;
+ color:white;
+ padding:1.5rem 3rem;
+ font-size: 1.5rem;
+ scroll-snap-align: start;
+}
+
+#preview{
+ display: flex;
+ flex-wrap: nowrap;
+ overflow-x: scroll;
+ overflow-y: hidden;
+ background-color: lavenderblush;
+ gap: 0.5rem;
+ padding: 2rem 4rem;
+}
+
+#preview::-webkit-scrollbar{
+ width: 5px;
+ height: 7px;
+}
+
+#preview::-webkit-scrollbar-thumb {
+ /* 스크롤바 막대 */
+ background: pink;
+ border-radius: 20px;
+}
+
+#preview img{
+ width: 250px;
+ height: 350px;
+}
+
+.navbar{
+ text-align: center;
+ background-color: lavenderblush;
+ margin: 0.3rem 0;
+ border: 3px solid pink;
+ border-left: 0;
+ border-right: 0;
+ padding: 1rem;
+}
+
+.navbar ul{
+ display: flex;
+ justify-content: center;
+ padding: 1rem 0;
+ list-style: none;
+}
+
+.navbar ul a{
+ color:black;
+ margin: 0 1.5rem;
+ text-decoration: none;
+}
+
+.navbar ul a:hover{
+ text-decoration: underline;
+ color:palevioletred;
+}
+
+section > header{
+ background-color: pink;
+ padding: 0.5rem 2rem;
+ margin: 0 0 1rem;
+ position: sticky;
+ top: 0;
+ z-index: 1;
+}
+
+#sec1{
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ align-items: center;
+ padding:2rem 4rem;
+ gap:0.5rem;
+}
+
+#sec1 img{
+ width: 250px;
+ height: 250px;
+ flex-basis: 250px;
+ flex-grow: 1;
+ flex-shrink: 1;
+}
+
+#sec2{
+ display: flex;
+ padding: 3rem 10rem;
+ gap: 2%;
+ position: relative;
+}
+
+#sec2 > img, #sec2 > div{
+ width: 50%;
+ aspect-ratio: 1/1;
+
+}
+
+#sec2 > div{
+ display: flex;
+ gap: 4%;
+ position: relative;
+ flex-wrap: wrap;
+}
+
+#sec2 > div > img{
+ width: 48%;
+ aspect-ratio: 1/1;
+}
+
+#sec3{
+ display: grid;
+ padding: 3rem 10rem;
+ position: relative;
+ gap: 0.3rem;
+ grid-template-columns: repeat(8,1fr);
+ grid-template-rows: repeat(4,1fr);
+ grid-template-areas:
+ "first first first first second second second second"
+ "third third third third second second second second"
+ "fourth fourth fourth fourth fourth fourth fifth fifth"
+ "fourth fourth fourth fourth fourth fourth fifth fifth";
+ /* template area 이거 말고 그냥 grid 안에 grid 주는 구조로 할걸 .. 싶은 마음이 들지만 ..
+ 과제 4번도 다 한 후에 .. 시간이 된다면 .. 수정을 ..
+ */
+}
+
+#sec3 > img{
+ width: 100%;
+}
+
+#sec3 > img:nth-child(1){
+ grid-area: first;
+ aspect-ratio: 4/1;
+}
+
+#sec3 > img:nth-child(2){
+ grid-area: second;
+ aspect-ratio: 2/1;
+}
+
+#sec3 > img:nth-child(3){
+ grid-area: third;
+ aspect-ratio: 4/1;
+}
+
+#sec3 > img:nth-child(4){
+ grid-area: fourth;
+ aspect-ratio: 3/1;
+}
+
+#sec3 > img:nth-child(5){
+ grid-area: fifth;
+ aspect-ratio: 1/1;
+}
+
+
+
+footer{
+ background-color: lightgray;
+ padding: 2rem 10rem;
+ text-align: center;
+}
+
+#top{
+ position: fixed;
+ bottom:1.5rem;
+ right: 1.5rem;
+ z-index: 10;
+}
+
+#top img{
+ width: 2.5rem;
+}
\ No newline at end of file
From c9dbfc55b56ef8501d8a25d9590e8f40bd389229 Mon Sep 17 00:00:00 2001
From: Nayujin <00nyj@sookmyung.ac.kr>
Date: Fri, 27 Oct 2023 14:14:34 +0900
Subject: [PATCH 02/10] =?UTF-8?q?feat:=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20hov?=
=?UTF-8?q?er=EC=8B=9C=20=EB=B6=80=EB=93=9C=EB=9F=BD=EA=B2=8C=20=EC=9D=B4?=
=?UTF-8?q?=EB=8F=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
assignment/week02/assign1/style.css | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/assignment/week02/assign1/style.css b/assignment/week02/assign1/style.css
index 5779a09..f405e47 100644
--- a/assignment/week02/assign1/style.css
+++ b/assignment/week02/assign1/style.css
@@ -126,6 +126,11 @@ section > header{
aspect-ratio: 1/1;
}
+#sec1 > img:hover , #sec2 > img:hover {
+ transform: translateY(-0.3rem);
+ transition: all 0.2s linear;
+}
+
#sec3{
display: grid;
padding: 3rem 10rem;
From 78181a94a2b9f762085e7d149bcf348a3bf54b75 Mon Sep 17 00:00:00 2001
From: Nayujin <00nyj@sookmyung.ac.kr>
Date: Fri, 27 Oct 2023 14:18:09 +0900
Subject: [PATCH 03/10] =?UTF-8?q?feat:=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20hov?=
=?UTF-8?q?er=EC=8B=9C=20=EC=96=B4=EB=91=A1=EA=B2=8C=20=EC=B2=98=EB=A6=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
assignment/week02/assign1/style.css | 1 +
1 file changed, 1 insertion(+)
diff --git a/assignment/week02/assign1/style.css b/assignment/week02/assign1/style.css
index f405e47..c111bd5 100644
--- a/assignment/week02/assign1/style.css
+++ b/assignment/week02/assign1/style.css
@@ -129,6 +129,7 @@ section > header{
#sec1 > img:hover , #sec2 > img:hover {
transform: translateY(-0.3rem);
transition: all 0.2s linear;
+ filter:brightness(0.5);
}
#sec3{
From 2946fd5435d0a6c4beab33fa342ead5606f982be Mon Sep 17 00:00:00 2001
From: Nayujin <00nyj@sookmyung.ac.kr>
Date: Fri, 27 Oct 2023 18:40:03 +0900
Subject: [PATCH 04/10] =?UTF-8?q?feat:=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20hov?=
=?UTF-8?q?er=EC=8B=9C=20=EC=84=A4=EB=AA=85=20visible?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
assignment/week02/assign1/index.html | 109 +++++++++++++++++++++++----
assignment/week02/assign1/index.js | 31 ++++++++
assignment/week02/assign1/style.css | 40 +++++++++-
3 files changed, 162 insertions(+), 18 deletions(-)
create mode 100644 assignment/week02/assign1/index.js
diff --git a/assignment/week02/assign1/index.html b/assignment/week02/assign1/index.html
index 9dac13a..91c962b 100644
--- a/assignment/week02/assign1/index.html
+++ b/assignment/week02/assign1/index.html
@@ -9,8 +9,18 @@
-
-
+
+
@@ -32,17 +42,87 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+