Skip to content

Commit

Permalink
Merge pull request #1577 from biswajit-sarkar-007/biswajit-sarkar-007…
Browse files Browse the repository at this point in the history
…/aboutpage-navbar-enhanced/issue#1571

About page Navbar enhanced
  • Loading branch information
PriyaGhosal authored Oct 26, 2024
2 parents 9bc9af1 + e86ff61 commit 7d4eb8c
Show file tree
Hide file tree
Showing 3 changed files with 247 additions and 119 deletions.
76 changes: 68 additions & 8 deletions about.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,81 @@ nav {
}

.btn-primary {
margin-right: -10rem;
display: inline-block;
padding: 0.625rem 1.25rem;
background-color: #4C51BF;
color: white;
text-decoration: none;
background: linear-gradient(90deg, #007BFF, #00BFFF);
color: #fff;
padding: 10px 20px;
border: 2px solid transparent;
border-radius: 5px;
transition: background-color 0.3s ease, transform 0.2s ease;
font-size: 16px;
font-weight: bold;
text-decoration: none;
text-align: center;
transition: background 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
position: relative;
}

.btn-primary:hover {
background-color: #667EEA;
transform: translateY(-2px);
background: linear-gradient(90deg, #00BFFF, #007BFF);
transform: scale(1.05) translateY(-2px);
box-shadow: 0 6px 12px rgba(0, 86, 179, 0.3);
border-color: #fff;
}

.btn-primary:active {
transform: scale(1) translateY(0);
box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.btn-primary::after {
content: "";
position: absolute;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.2);
top: 0;
left: 0;
opacity: 0;
transition: opacity 0.5s ease;
}

.btn-primary:hover::after {
opacity: 1;
}

.btn-primary::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 5px;
border: 2px solid transparent;
z-index: -1;
transition: border-color 0.3s ease;
}

.btn-primary:hover::before {
border-color: #fff;
animation: borderExpand 0.4s forwards;
}

@keyframes borderExpand {
0% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}



.main-content {
flex-grow: 1;
display: flex;
Expand Down
Loading

0 comments on commit 7d4eb8c

Please sign in to comment.