|
@ -23,9 +23,11 @@ const Flicker: React.FC<{ |
|
|
children: React.ReactNode; |
|
|
children: React.ReactNode; |
|
|
index: number; |
|
|
index: number; |
|
|
description: string; |
|
|
description: string; |
|
|
}> = ({ children, index, description }) => { |
|
|
style?: React.CSSProperties; |
|
|
|
|
|
}> = ({ children, index, description, style }) => { |
|
|
return ( |
|
|
return ( |
|
|
<span |
|
|
<span |
|
|
|
|
|
style={style} |
|
|
className={css` |
|
|
className={css` |
|
|
position: relative; |
|
|
position: relative; |
|
|
|
|
|
|
|
@ -89,6 +91,7 @@ const Flicker: React.FC<{ |
|
|
transition: opacity 0.2s; |
|
|
transition: opacity 0.2s; |
|
|
user-select: none; |
|
|
user-select: none; |
|
|
text-align: left; |
|
|
text-align: left; |
|
|
|
|
|
pointer-events: none; |
|
|
|
|
|
|
|
|
@media screen and (max-width: 65rem) { |
|
|
@media screen and (max-width: 65rem) { |
|
|
position: fixed; |
|
|
position: fixed; |
|
@ -106,9 +109,11 @@ const Flicker: React.FC<{ |
|
|
|
|
|
|
|
|
const FlickerList: React.FC<{ |
|
|
const FlickerList: React.FC<{ |
|
|
list: { text: string; description: string }[]; |
|
|
list: { text: string; description: string }[]; |
|
|
}> = ({ list }) => { |
|
|
style?: React.CSSProperties; |
|
|
|
|
|
}> = ({ list, style }) => { |
|
|
return ( |
|
|
return ( |
|
|
<ul |
|
|
<ul |
|
|
|
|
|
style={style} |
|
|
className={css` |
|
|
className={css` |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-wrap: wrap; |
|
|
flex-wrap: wrap; |
|
|