Skip to content

Commit 6d85118

Browse files
committed
lil' shimmer?
1 parent d382397 commit 6d85118

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

components/slack/header.js

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,36 @@ const Content = () => (
5555
as="a"
5656
href="https://auth.hackclub.com/slack"
5757
sx={{
58-
bg: 'primary',
58+
bg: 'red',
59+
backgroundImage: t => t.util.gx('orange', 'red'),
5960
color: 'white',
6061
fontSize: [2, 3],
6162
px: 4,
62-
py: 2,
63+
py: 3,
6364
borderRadius: 'extra',
6465
fontWeight: 'bold',
6566
textDecoration: 'none',
6667
display: 'inline-block',
68+
position: 'relative',
69+
overflow: 'hidden',
70+
transition: 'transform 0.125s ease-in-out',
6771
':hover': {
68-
transform: 'scale(1.05)',
69-
transition: 'transform 0.125s ease-in-out'
72+
transform: 'scale(1.05)'
73+
},
74+
'::before': {
75+
content: '""',
76+
position: 'absolute',
77+
top: 0,
78+
left: 0,
79+
width: '100%',
80+
height: '100%',
81+
background: 'linear-gradient(120deg, transparent 10%, rgba(255,255,255,0.2) 50%, transparent 90%)',
82+
transform: 'translateX(-100%)',
83+
animation: 'shimmer 2.5s ease-in-out infinite'
84+
},
85+
'@keyframes shimmer': {
86+
'0%': { transform: 'translateX(-100%)' },
87+
'100%': { transform: 'translateX(100%)' }
7088
}
7189
}}
7290
>

0 commit comments

Comments
 (0)