Add 'Why?' button and improve button layout

This commit is contained in:
2025-03-05 12:42:17 -05:00
parent d30333306a
commit 223c838932
3 changed files with 124 additions and 10 deletions

View File

@@ -226,6 +226,13 @@ footer {
z-index: 10;
}
.buttons {
display: flex;
justify-content: center;
gap: 12px;
margin-top: 24px;
}
.share-button {
display: inline-flex;
align-items: center;
@@ -239,7 +246,6 @@ footer {
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
margin-top: 24px;
}
.share-button:hover {
@@ -259,6 +265,39 @@ footer {
transform: translateY(-2px);
}
.why-button {
display: inline-flex;
align-items: center;
gap: 8px;
background-color: var(--secondary);
color: var(--secondary-foreground);
border: none;
border-radius: var(--radius);
padding: 10px 16px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
text-decoration: none;
}
.why-button:hover {
opacity: 0.9;
transform: translateY(-2px);
}
.why-button:active {
transform: translateY(0);
}
.why-button svg {
transition: transform 0.2s ease;
}
.why-button:hover svg {
transform: rotate(12deg);
}
@media (max-width: 600px) {
.container {
padding: 30px;
@@ -272,8 +311,13 @@ footer {
font-size: 2.5rem;
}
.share-button {
padding: 8px 14px;
.share-button, .why-button {
padding: 8px 12px;
font-size: 13px;
}
.buttons {
flex-direction: column;
gap: 8px;
}
}