Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ✔️Added Diagonal-Hovering Effect to Each Card! #1334

Merged
merged 2 commits into from
Aug 7, 2024
Merged
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
97 changes: 83 additions & 14 deletions contributors.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
body {
font-family: "Poppins";
background-color: #f4f4f4;
/* background-color: #c10f0f; */
color: #333;
display: flex;
justify-content: center;
Expand All @@ -18,9 +18,10 @@ body {
font-size: 3em;
margin-bottom: 20px;
padding: 10px;
color: #055364;
border-radius: 20px;
background-color: rgba(209, 209, 255, 0.8);
color: #9dedff;
text-shadow: 1px 1px 2px rgb(60, 0, 255), 0 0 1em rgba(0, 213, 255, 0.617), 0 0 0.2em rgba(0, 234, 255, 0.623);
/* border-radius: 20px; */
/* background-color: rgba(209, 209, 255, 0.8); */
}

.contributors-grid {
Expand All @@ -33,19 +34,49 @@ body {
}

.contributor-card {
background-color: #e5e5f8;
border: 2px solid #101010;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
width: 200px;
text-align: center;
transition: transform 0.3s, box-shadow 0.3s;
position: relative;
overflow: hidden;
max-width: calc(25% - 16px);
display: flex;
flex-direction: column;
align-items: center;
background-color: #fff;
/* border: 1px solid #00ebdf; */
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 16px;
transition: transform 0.5s ease-in-out, box-shadow 0.3s ease;
text-decoration: none;
color: inherit;
/* margin-bottom: 16px; */
}

.contributor-card:hover {
transform: scale(1.05);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.9);
transform: scale(1.02);
box-shadow: 1px 1px 23px rgba(0, 157, 255, 0.915);
border: none;
cursor: pointer;
}

.contributor-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(132deg, #0045ac 50%, #d8eeff 51%);
/* background: linear-gradient(130deg, #3b89ff 50%, #eef6ff 50%); */
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
transform: translate(-100%, -100%);
opacity: 0;
z-index: -1;
}

.contributor-card:hover::before {
transform: translate(0, 0);
opacity: 1;
}

.contributor-card img {
Expand All @@ -54,16 +85,51 @@ body {
height: 100px;
object-fit: cover;
margin-bottom: 10px;
transition: box-shadow 0.3s ease-in-out, border 0.1s ease-in-out;
}

.contributor-card:hover img {
border: 2px solid rgb(255, 234, 0);
box-shadow: -1px 2px 27px rgb(0, 217, 255);
}

/*
.contributor-card h2 {
font-size: 1.2em;
margin: 0 0 10px;
} */
/*
.contributor-card p {
} */

.contributor-card h2 {
font-size: 1.2em;
color: #040404;
position: relative;
z-index: 1;
transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
}

.contributor-card p {
font-size: 1.2em;
color: #040404;
position: relative;
z-index: 1;
transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
margin: 0 0 10px;
}

.contributor-card:hover h2 {
text-shadow: 1px 1px 2px rgb(0, 108, 108), 0 0 0.2em rgb(0, 14, 108), 0 0 0.8em rgb(0, 14, 108);
color: white;
}

.contributor-card:hover p {
text-shadow: 1px 1px 2px rgba(4, 0, 127, 0.715), 0 0 0.2em rgb(5, 18, 168), 0 0 0.3em rgb(134, 136, 250);
color: white;

/* font-weight: 400; */
}

/* dark mode */
/* Toggle button styles */
.toggle-container {
Expand Down Expand Up @@ -189,4 +255,7 @@ body {
}
body.dark-mode .contributor-card p{
color: white;
}
body.dark-mode .contributor-card h2{
color: white;
}
4 changes: 2 additions & 2 deletions contributors.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@
</head>
<body>
<video id="background-video" autoplay muted loop>
<source src="back5.mp4" type="video/mp4" />
<source src="img/bg video terms2.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>

<div class="container">
<div class="toggle-container aos-init aos-animate" data-aos="fade-down">
<input id="themeToggle" class="toggle" type="checkbox">
</div>
<h1 class="title">Contributors</h1>
<h1 class="title">Our Contributors</h1>
<div id="contributors" class="contributors-grid"></div>
<div class="pagination-btns">
<button class="btn" id="prevBtn"> <i class="bi bi-arrow-left-circle"></i> </button>
Expand Down
Loading