Failed to extract signature
3 changed files with
22 additions and
21 deletions
-
src/components/Container.tsx
-
src/components/Exp/Story.tsx
-
src/pages/main/Exp.tsx
|
@ -174,7 +174,7 @@ const Container: React.FC<{ |
|
|
width: 100vw; |
|
|
width: 100vw; |
|
|
left: 0; |
|
|
left: 0; |
|
|
bottom: 0; |
|
|
bottom: 0; |
|
|
height: 10rem; |
|
|
height: 8rem; |
|
|
background: rgb(0, 0, 0); |
|
|
background: rgb(0, 0, 0); |
|
|
background: linear-gradient( |
|
|
background: linear-gradient( |
|
|
180deg, |
|
|
180deg, |
|
|
|
@ -86,6 +86,9 @@ const story = css` |
|
|
left: 0; |
|
|
left: 0; |
|
|
|
|
|
|
|
|
&::before { |
|
|
&::before { |
|
|
|
|
|
/* TODO: keep until we implement drag */ |
|
|
|
|
|
display: none; |
|
|
|
|
|
|
|
|
content: ""; |
|
|
content: ""; |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
width: 2rem; |
|
|
width: 2rem; |
|
@ -99,25 +102,27 @@ const story = css` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
& .story-content { |
|
|
& .story-content { |
|
|
|
|
|
--padding: 12vw; |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
flex-direction: column; |
|
|
gap: 3rem; |
|
|
gap: 2rem; |
|
|
/* height: 100%; */ |
|
|
/* height: 100%; */ |
|
|
max-width: 40rem; |
|
|
max-width: 40rem; |
|
|
|
|
|
|
|
|
margin-block: 4rem; |
|
|
margin-block: calc(var(--padding) + 1rem); |
|
|
overflow-x: hidden; |
|
|
overflow-x: hidden; |
|
|
overflow-y: auto; |
|
|
overflow-y: auto; |
|
|
overscroll-behavior: contain; |
|
|
overscroll-behavior: contain; |
|
|
|
|
|
|
|
|
& > img { |
|
|
& > img { |
|
|
margin-inline: 4rem; |
|
|
margin-inline: var(--padding); |
|
|
|
|
|
/* align-self: center; */ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
& > div { |
|
|
& > div { |
|
|
column-count: unset; |
|
|
column-count: unset; |
|
|
padding-inline: 4rem; |
|
|
padding-inline: var(--padding); |
|
|
padding-block-end: 3rem; |
|
|
padding-block-end: 4rem; |
|
|
height: 100%; |
|
|
height: 100%; |
|
|
overflow-y: auto; |
|
|
overflow-y: auto; |
|
|
|
|
|
|
|
@ -162,18 +167,24 @@ export const Story = ({ description, logo, active }: Experience) => { |
|
|
border: none; |
|
|
border: none; |
|
|
background: var(--card-active); |
|
|
background: var(--card-active); |
|
|
color: var(--text-subdued); |
|
|
color: var(--text-subdued); |
|
|
width: 3rem; |
|
|
width: 1.8rem; |
|
|
height: 3rem; |
|
|
height: 1.8rem; |
|
|
|
|
|
padding: 0.2rem; |
|
|
border-radius: 3rem; |
|
|
border-radius: 3rem; |
|
|
|
|
|
|
|
|
|
|
|
& svg { |
|
|
|
|
|
width: 0.8rem; |
|
|
|
|
|
height: 0.8rem; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/* set in mobile mode */ |
|
|
/* set in mobile mode */ |
|
|
/* display: flex; */ |
|
|
/* display: flex; */ |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
|
|
|
|
|
|
position: absolute; |
|
|
position: absolute; |
|
|
top: 4rem; |
|
|
top: calc(1rem + var(--padding)); |
|
|
right: 4rem; |
|
|
right: var(--padding); |
|
|
cursor: pointer; |
|
|
cursor: pointer; |
|
|
|
|
|
|
|
|
transform: rotate(90deg); |
|
|
transform: rotate(90deg); |
|
|
|
@ -84,21 +84,11 @@ const Exp: React.FC = () => { |
|
|
key={i} |
|
|
key={i} |
|
|
active={slug === unit.slug} |
|
|
active={slug === unit.slug} |
|
|
{...unit} |
|
|
{...unit} |
|
|
onClick={e => { |
|
|
onClick={() => { |
|
|
if (slug === unit.slug) return navigate("/experience"); |
|
|
if (slug === unit.slug) return navigate("/experience"); |
|
|
if (slug) |
|
|
if (slug) |
|
|
navigate(`/experience/${unit.slug}`, { replace: true }); |
|
|
navigate(`/experience/${unit.slug}`, { replace: true }); |
|
|
else navigate(`/experience/${unit.slug}`); |
|
|
else navigate(`/experience/${unit.slug}`); |
|
|
|
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
|
// console.log("dping");
|
|
|
|
|
|
// (
|
|
|
|
|
|
// (e.target as HTMLElement).nextSibling as HTMLElement
|
|
|
|
|
|
// )?.scrollIntoView?.({
|
|
|
|
|
|
// behavior: "smooth",
|
|
|
|
|
|
// block: "center",
|
|
|
|
|
|
// });
|
|
|
|
|
|
// }, 300);
|
|
|
|
|
|
}} |
|
|
}} |
|
|
/> |
|
|
/> |
|
|
))} |
|
|
))} |
|
|