Skip to content

Commit

Permalink
Merge pull request #127 from yasirakhlaque/about-page
Browse files Browse the repository at this point in the history
Improved About UI
  • Loading branch information
Ojas-Arora authored Jan 15, 2025
2 parents 93cb44f + 3e0d189 commit 3274297
Show file tree
Hide file tree
Showing 2 changed files with 249 additions and 292 deletions.
91 changes: 70 additions & 21 deletions about.css
Original file line number Diff line number Diff line change
Expand Up @@ -310,36 +310,85 @@ html .dark {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
margin-top: 30px;
}
gap: 30px;
margin-top: 40px;
}

.feature-card {
.feature-card {
background: var(--card-bg);
border: 2px solid #ffd465;
border-radius: 8px;
padding: 20px;
width: 250px;
border: 2px solid var(--border-color);
border-radius: 16px;
padding: 25px;
width: 280px;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease;
}
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
position: relative;
overflow: hidden;
}

.feature-card:hover {
transform: translateY(-10px);
cursor: pointer;
}
.feature-card:hover {
transform: translateY(-10px) scale(1.05);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1));
}

.feature-card i {
font-size: 40px;
.feature-card i {
font-size: 50px;
color: var(--icons-color);
margin-bottom: 10px;
}
margin-bottom: 15px;
transition: color 0.3s ease, transform 0.3s ease;
}

.feature-card h3 {
.feature-card:hover i {
transform: scale(1.2);
color: var(--highlight-color);
}

.feature-card h3 {
color: var(--heading-color);
font-size: 1.5rem;
margin-bottom: 10px;
}
font-weight: bold;
}

.feature-card p {
color: var(--card-text);
font-size: 1rem;
line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
:root {
--card-bg: #1a1a1a;
--border-color: #333;
--icons-color: #ffd700;
--highlight-color: #ff4500;
--heading-color: #ffeb3b;
--card-text: #d4d4d4;
}
.feature-card:hover{
--card-text: #000000;
}
}

@media (prefers-color-scheme: light) {
:root {
--card-bg: #858074;
--border-color: #ffd465;
--icons-color: #d6a52b;
--highlight-color: #ff8c00;
--heading-color: #8b4513;
--card-text: #333;
}
}

@media (max-width: 768px) {
.feature-card {
width: 90%;
}
}

.image-button1 {
position: fixed;
left: 0px; /* Aligns the button to the left side */
Expand Down
Loading

0 comments on commit 3274297

Please sign in to comment.