Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 62 additions & 42 deletions public/css/project.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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;
Expand Down
47 changes: 24 additions & 23 deletions views/project.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -53,31 +53,32 @@
<!-- cards -->
<div class="projectsGrid">
<% for (var i=0; i < project.length; i++) { %>
<div data-aos="zoom-in">
<div class="projectCard1" onclick="window.open('<%= project[i].projectUrl %>','mywindow');" style="cursor: pointer;">
<div class="projectCard2" >
<div class="text-center px-3 pb-6 pt-2">
<h3 class="text-white text-xl bold font-sans" style="background: -webkit-linear-gradient(163deg,#00ff75 50%, #0c5ee2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">
<strong><%= project[i].projectName %></strong>&nbsp; &nbsp;<i class="fa fa-github" style="font-size:30px;color:white"
onclick="window.href.location='<%= project[i].repoUrl %>'"></i>
</h3>
<p class="mt-2 font-sans font-light text-white">
<%= project[i].description %>&nbsp;
</p>
</div>
<div class="pb-3 text-white techstack" style="position: absolute; bottom: 2rem;">
<% for(var j=0; j < project[i].language.length; j++) { %>
<div class="text-center tech" style="background: #00ff75; color: black;">
<span style="width: max-content; padding: 15%;">
<%= project[i].language[j] %>
</span>
</div>
<% }%>
</div>
</div>

<div data-aos="zoom-in" style="display: flex; flex-direction: column; justify-content: center; align-items: center;">


<div class="card" onclick="window.open('<%= project[i].projectUrl %>','mywindow');" style="cursor: pointer;">
<p class="heading" style="overflow: hidden;">
<%= project[i].projectName %>
</p>
<p style="overflow: hidden;">
<%= project[i].description %>&nbsp;
</p>
<div class="" style="display: flex; flex-wrap: wrap; justify-content: center;overflow: hidden;">
<p>
<% for(var j=0; j < project[i].language.length; j++) { %>
<div class="text-center tech" style="margin: 2%;">
<span>
<%= project[i].language[j] %>
</span>
</div>
<% }%>
</p>
</div>
</div>
</div>

</div>

<%}%>
</div>

Expand Down