|
@ -1,6 +1,6 @@ |
|
|
import { css } from "@emotion/css"; |
|
|
import { css } from "@emotion/css"; |
|
|
import React from "react"; |
|
|
import React from "react"; |
|
|
import { setupDynamicGradient } from "../../util"; |
|
|
import { setupCursorTracking } from "../../util"; |
|
|
import { Experience } from "./types"; |
|
|
import { Experience } from "./types"; |
|
|
|
|
|
|
|
|
const Circle: React.FC = () => ( |
|
|
const Circle: React.FC = () => ( |
|
@ -46,6 +46,9 @@ const btn = css` |
|
|
text-align: left; |
|
|
text-align: left; |
|
|
display: inherit; |
|
|
display: inherit; |
|
|
|
|
|
|
|
|
|
|
|
/* offset padding */ |
|
|
|
|
|
transform: translateX(calc(var(--item-padding) * -1)); |
|
|
|
|
|
|
|
|
& > * { |
|
|
& > * { |
|
|
z-index: 10; |
|
|
z-index: 10; |
|
|
} |
|
|
} |
|
@ -87,7 +90,7 @@ export const Content = ({ |
|
|
location, |
|
|
location, |
|
|
}: Experience) => { |
|
|
}: Experience) => { |
|
|
return ( |
|
|
return ( |
|
|
<button className={btn} onClick={onClick} ref={setupDynamicGradient}> |
|
|
<button className={btn} onClick={onClick} ref={setupCursorTracking}> |
|
|
<div className="dynamic-gradient" /> |
|
|
<div className="dynamic-gradient" /> |
|
|
<Circle /> |
|
|
<Circle /> |
|
|
<h4> |
|
|
<h4> |
|
|