diff --git a/public/css/app.css b/public/css/app.css index 6ac3976..75514da 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -112,4 +112,88 @@ a { padding-bottom: 40px; } +.main-portfolio { + padding: 40px 0px; +} + +.portfolio { + cursor: pointer; + position: relative; +} +.portfolio:hover .portfolio-img img { + transform: scale(1.2); +} +.portfolio:hover .portfolio-inner { + opacity: 1; + transition: all 0.7s ease-in-out; +} + +.portfolio-inner { + opacity: 0; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + padding: 14%; +} +.portfolio-inner .portfolio-box { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + background: rgba(0, 0, 0, 0.8); + height: 100%; + width: 100%; + padding: 0px 20px; +} +.portfolio-inner .portfolio-box .portfolio-title { + width: 100%; + color: white; + font-size: 16px; + line-height: 130%; + letter-spacing: -0.5px; +} +.portfolio-inner .portfolio-box .portfolio-hr { + width: 18px; + height: 1px; + background: #999; + margin: 10px auto; +} +.portfolio-inner .portfolio-box .portfolio-desc { + font-size: 12px; + color: #999; + letter-spacing: -0.5px; + line-height: 130%; +} + +.portfolio-img { + width: 100%; + padding-bottom: 100%; + position: relative; + display: block; + overflow: hidden; +} +.portfolio-img img { + width: 100%; + height: 100%; + -o-object-fit: cover; + object-fit: cover; + position: absolute; + top: 0; + left: 0; + transition: transform 0.5s; +} + +.more-button { + font-size: 14px; + color: #212121; + border: 1px solid #c0c0c0; + border-radius: 100px; + padding: 11px 20px; + cursor: pointer; + display: inline-block; + margin-top: 20px; +} + /************ BreakPoints ************/ diff --git a/public/images/testimg.png b/public/images/testimg.png new file mode 100644 index 0000000..eca40b9 Binary files /dev/null and b/public/images/testimg.png differ diff --git a/resources/sass/app.scss b/resources/sass/app.scss index 695747b..caf66eb 100644 --- a/resources/sass/app.scss +++ b/resources/sass/app.scss @@ -71,6 +71,94 @@ $font-sizes: 52; .main-inquiry{ padding-bottom:40px; } +.main-portfolio{ + padding:40px 0px; +} +.portfolio{ + cursor: pointer; + position:relative; + + &:hover{ + .portfolio-img{ + img{ + transform:scale(1.2) + } + } + .portfolio-inner{ + opacity: 1; + transition: all .7s ease-in-out; + } + } +} + +.portfolio-inner{ + opacity: 0; + position:absolute; + top:0; + left:0; + width:100%; + height:100%; + padding:14%; + + .portfolio-box{ + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + background:rgba(0, 0, 0, 0.8); + height:100%; + width:100%; + padding:0px 20px; + .portfolio-title{ + width: 100%; + color:white; + font-size:16px; + line-height:130%; + letter-spacing: -0.5px; + } + .portfolio-hr{ + width:18px; + height:1px; + background:#999; + margin:10px auto; + } + .portfolio-desc{ + font-size:12px; + color:#999; + letter-spacing: -0.5px; + line-height: 130%; + } + } +} + +.portfolio-img{ + width: 100%; + padding-bottom: 100%; + position: relative; + display: block; + overflow: hidden; + + img{ + width: 100%; + height: 100%; + object-fit: cover; + position: absolute; + top: 0; + left: 0; + transition: transform .5s; + } +} + +.more-button{ + font-size:14px; + color:#212121; + border:1px solid #c0c0c0; + border-radius:100px; + padding : 11px 20px; + cursor:pointer; + display: inline-block; + margin-top:20px; +} /************ BreakPoints ************/ // Small devices (landscape phones, 576px and up) @media (max-width: 576px) { diff --git a/resources/views/pages/portfolio.blade.php b/resources/views/pages/portfolio.blade.php index 56481c9..c691b84 100644 --- a/resources/views/pages/portfolio.blade.php +++ b/resources/views/pages/portfolio.blade.php @@ -1,32 +1,95 @@
-
+
-
-
- item +
+
+ +
+
+
+
+ 태양광 카포트 +
+
+
+ 태양광 발전량은 일조 시간이 중요해요! +
+
-
-
- item +
+
+ +
+
+
+
+ 태양광 카포트 +
+
+
+ 태양광 발전량은 일조 시간이 중요해요! +
+
-
-
- item +
+
+ +
+
+
+
+ 태양광 카포트 +
+
+
+ 태양광 발전량은 일조 시간이 중요해요! +
+
-
-
- item +
+
+ +
+
+
+
+ 태양광 카포트 +
+
+
+ 태양광 발전량은 일조 시간이 중요해요! +
+
+
+
+ +
+
+ +
+
+
+
+ 태양광 카포트 +
+
+
+ 태양광 발전량은 일조 시간이 중요해요! +
+
+ +
더보기 8 / 24