mirror of
https://github.com/R0m1k3/Menu.git
synced 2026-10-11 17:28:28 +02:00
feat: implement MenuButton component and home page layout with global glassmorphism styles
This commit is contained in:
1 parent
5ff4784596
commit
ca99378348
6 files changed
+198
-302
No files matched your search
@@ -4,60 +4,53 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
padding: 2rem 1.5rem;
|
||||
padding: 2rem 1.25rem 1.75rem;
|
||||
text-decoration: none;
|
||||
color: var(--fg);
|
||||
min-height: 180px;
|
||||
width: 160px;
|
||||
aspect-ratio: 1 / 1;
|
||||
cursor: pointer;
|
||||
background: var(--card-bg);
|
||||
backdrop-filter: blur(24px) saturate(1.4);
|
||||
-webkit-backdrop-filter: blur(24px) saturate(1.4);
|
||||
border: 1px solid var(--card-border);
|
||||
box-shadow: var(--card-shadow);
|
||||
border-radius: 22px;
|
||||
transition: all 240ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Glow accent on hover */
|
||||
.menuButton::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: inherit;
|
||||
background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
|
||||
opacity: 0;
|
||||
transition: opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
pointer-events: none;
|
||||
.menuButton:hover {
|
||||
background: var(--card-hover-bg);
|
||||
box-shadow: var(--card-hover-shadow);
|
||||
transform: translateY(-5px) scale(1.02);
|
||||
}
|
||||
|
||||
.menuButton:hover::after {
|
||||
opacity: 1;
|
||||
.menuButton:active {
|
||||
transform: scale(0.97);
|
||||
transition-duration: 80ms;
|
||||
}
|
||||
|
||||
/* Favicon wrapper */
|
||||
/* Favicon */
|
||||
.faviconWrapper {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-radius: 16px;
|
||||
background: var(--glass-bg);
|
||||
border: 1px solid var(--glass-border);
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
flex-shrink: 0;
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.menuButton:hover .faviconWrapper {
|
||||
transform: scale(1.08);
|
||||
box-shadow: 0 8px 24px var(--accent-glow);
|
||||
}
|
||||
|
||||
.favicon {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.faviconFallback {
|
||||
color: var(--accent);
|
||||
color: rgba(255,255,255,0.7);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -65,29 +58,13 @@
|
||||
|
||||
/* Label */
|
||||
.label {
|
||||
font-size: 0.95rem;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.02em;
|
||||
text-align: center;
|
||||
line-height: 1.3;
|
||||
max-width: 160px;
|
||||
letter-spacing: -0.01em;
|
||||
color: var(--fg);
|
||||
max-width: 130px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
/* Arrow indicator */
|
||||
.arrowIcon {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 14px;
|
||||
color: var(--fg-secondary);
|
||||
opacity: 0;
|
||||
transform: translate(-4px, 4px);
|
||||
transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.menuButton:hover .arrowIcon {
|
||||
opacity: 1;
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
Reference in new issue
Block a user