Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/LeftPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { FiMenu, FiX, FiChevronLeft } from "react-icons/fi";

const LeftPanel = ({ clickedCategory, handleInteraction }: LeftPanelProps) => {
const [clicked, setClicked] = useState(LeftPanelOptions.ABOUT);
const [isOpen, setIsOpen] = useState(false);
const [isOpen, setIsOpen] = useState(true);
const [dragProgress, setDragProgress] = useState(0);
const constraintsRef = useRef(null);

Expand Down Expand Up @@ -88,7 +88,7 @@ const LeftPanel = ({ clickedCategory, handleInteraction }: LeftPanelProps) => {
</motion.div>

<motion.div
className="hidden xl:flex flex-col justify-between py-6 xl:max-w-sm xl:py-10 xl:h-full"
className="hidden xl:flex flex-col justify-between py-6 xl:max-w-sm xl:py-8 xl:h-full"
initial={{ x: -50, opacity: 0 }}
animate={{ x: 0, opacity: 1 }}
transition={{ duration: 0.6, ease: "easeOut" }}
Expand Down
3 changes: 1 addition & 2 deletions components/MainPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ export default function MainPage() {
};

return (
<div className="container relative z-20 flex flex-col w-full h-full px-6 gap:6 xl:gap-10 xl:flex-row">
<div className="container relative z-20 flex flex-col w-full h-full px-6 gap:6 xl:gap-10 xl:flex-row max-w-80 max-h-full">
<LeftPanel
clickedCategory={clickedCategory}
handleInteraction={handleInteraction}
/>
<RightPanel section={rightPanelCategory} />
{/* Footer for Mobile */}
<div
className="flex pb-6 xl:hidden"
onClick={handleInteraction}
Expand Down
9 changes: 2 additions & 7 deletions components/RightPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ const RightPanel = ({ section }: { section: string }) => {
{section === LeftPanelOptions.EXPERIENCE && (
<>
<div className="relative">
{/* Mobile Screens */}
<div className="block xl:hidden">
<div
ref={scope}
Expand Down Expand Up @@ -104,8 +103,7 @@ const RightPanel = ({ section }: { section: string }) => {
</div>
</div>

{/* Desktop Screens */}
<div className="hidden xl:block w-full overflow-y-auto py-10 relative">
<div className="hidden xl:block w-full overflow-y-auto max-h-[calc(100vh-20px)] pt-10 relative">
<div className="absolute inset-0 left-1/2 transform -translate-x-1/2 w-1 bg-gray-300 dark:bg-neutral-800 z-0" style={{ height: "110vh" }}></div>
<div className="space-y-20 px-8">
<div className="ml-4 mt-2 flex items-center border-neutral-100 dark:border-neutral-800 cursor-pointer" style={{ marginBottom: "-4rem" }}>
Expand All @@ -122,18 +120,16 @@ const RightPanel = ({ section }: { section: string }) => {
className={`relative flex ${index % 2 === 0 ? "justify-start" : "justify-end"
}`}
>
{/* Circle Indicator */}
<div
className={`absolute left-1/2 transform -translate-x-1/2 w-6 h-2 rounded-full bg-transparent border-4 border-blue-500 z-10 ${index % 2 === 0 ? "top-1/2" : "bottom-1/2"
}`}
style={{
boxShadow: `0 0 10px rgba(59, 130, 246, 0.6)`,
}}
></div>
{/* Content Block */}
<div
className={`relative w-1/2 ${index % 2 === 0 ? "pl-8 text-left" : "pr-8 text-right"
}`}// side margins
}`}
style={{
marginLeft: index % 2 === 0 ? "-2rem" : "2rem",
marginRight: index % 2 === 0 ? "2rem" : "-2rem",
Expand All @@ -150,7 +146,6 @@ const RightPanel = ({ section }: { section: string }) => {
</div>
</motion.div>
</div>
{/* For info */}
{/* <div
className={`relative w-1/2 ${
index % 2 === 0 ? "pl-8 text-left" : "pr-8 text-right"
Expand Down