Skip to content

Commit

Permalink
added Box for Button-Mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
sky-ash committed Nov 4, 2024
1 parent fb7d03b commit cedba0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/Path.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export default function Path() {
Learning Path
</Typography>

<Box display="flex" justifyContent="center" position="relative" height="100vh">
{parsedLectureContent.lectures.map((lecture, index) => {
const centerAllVertically = [96, 32, -32, -96][index] || 0;
const leftShift = [-48, 32, -16, 64][index] + centerAllVertically;
Expand All @@ -69,7 +70,7 @@ export default function Path() {
sx={{
width: '64px',
height: '64px',
top: `${(downShift) * 10}px`,
top: `${downShift}%`,
left: `${leftShift}px`,
transform: 'perspective(800px) rotateY(15deg) rotateX(40deg) rotateZ(-15deg)',
}}
Expand All @@ -85,6 +86,7 @@ export default function Path() {
</Button>
);
})}
</Box>

<SwipeableDrawer
open={open}
Expand Down

0 comments on commit cedba0b

Please sign in to comment.