diff --git a/public/css/project.css b/public/css/project.css index a931d15..307f0ce 100644 --- a/public/css/project.css +++ b/public/css/project.css @@ -19,9 +19,9 @@ } .tech { - background-color: rgb(25, 26, 27); + background-color: rgba(44, 46, 48, 0.674); border-radius: 20px; - padding: 5% 6%; + padding: 3% 4%; color: rgb(255, 255, 255); } @@ -46,50 +46,70 @@ /* font-weight: bold; */ } -.projectCard1 { - width: 300px; - height: 400px; - background-image: linear-gradient(163deg, #00ff75 0%, #3700ff 100%); - border-radius: 30px; - transition: all .3s; -} - -.projectCard2 { - z-index: 2; - width: 300px; - height: 400px; - background-color: #1a1a1a; - /* border: 1px solid; - border-color: rgba(255, 255, 255, 0.456); */ - border-radius: 20px; - transition: all .2s; - padding: 2rem 1rem 2rem 1rem; +.card { position: relative; -} - -.projectCard2:hover { - transform: scale(0.98); - border-radius: 30px; -} - -.projectCard1:hover { - box-shadow: 0px 0px 30px 1px rgba(0, 255, 117, 0.30); -} - -.projectCard1::before { + width: 254px; + height: 354px; + background-color: #000; + display: flex; + flex-direction: column; + justify-content: space-between; + padding: 12px; + gap: 12px; + border-radius: 8px; + cursor: pointer; + color: white; + } + + .card::before { + content: ''; position: absolute; + inset: 0; + left: -5px; + margin: auto; + width: 264px; + height: 364px; + border-radius: 10px; + background: linear-gradient(-45deg, #4bb852 0%, #40c9ff 100% ); + z-index: -10; + pointer-events: none; + transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); + } + + .card::after { content: ""; - top: 10px; - left: 0px; - right: 0; z-index: -1; - height: 100%; - width: 100%; - transform: scale(0.9); - filter: blur(25px); - background: linear-gradient(163deg, #00ff75 0%, #3700ff 100%); - transition: opacity .5s; -} + position: absolute; + inset: 0; + background: linear-gradient(-45deg, #4bb852 0%, #00dbde 100% ); + transform: translate3d(0, 0, 0) scale(0.95); + filter: blur(20px); + } + + .heading { + font-size: 20px; + text-transform: capitalize; + font-weight: 700; + } + + .card p:not(.heading) { + font-size: 14px; + } + + .card p:last-child { + color: #4bb852; + font-weight: 600; + } + + .card:hover::after { + filter: blur(30px); + } + + .card:hover::before { + transform: rotate(-90deg) scaleX(1.38) scaleY(0.73); + } + + .footText { color: black; diff --git a/views/project.ejs b/views/project.ejs index e978dbf..cbfc223 100644 --- a/views/project.ejs +++ b/views/project.ejs @@ -53,31 +53,32 @@
- <%= project[i].description %> -
-