Skip to content

Commit

Permalink
Fixed padding and height of sections for tablet and mobile screens.
Browse files Browse the repository at this point in the history
  • Loading branch information
vegetableman committed Jan 28, 2025
1 parent f65b0fa commit db7c07c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions components/threeVs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -500,10 +500,6 @@ const generateShapePath = (data: typeof datasets[0]) => {
)).join(' ') + ' Z';
};

const clamp = (size: number, minSize: number, maxSize: number) => {
return Math.min(Math.max(size, minSize), maxSize);
};

const RadarChart: FC<{ id?: number, overlay?: boolean, viewBox?: string, hoveredCard?: 'VARIETY' | 'VELOCITY' | 'VOLUME' | null, width?: string, height?: string }> = ({ id, overlay, hoveredCard, width, height }) => {
const [hoveredAxis, setHoveredAxis] = useState<string | null>(null);
// Add new state to track hovered legend item
Expand Down Expand Up @@ -978,7 +974,7 @@ export default function ThreeVs(props: any) {
{sections.map((section, index) => (
<div
key={index}
className={`${section.isIntro ? 'pb-6 xl:h-screen xl:pb-0' : 'h-[800px] min-h-screen xl:h-screen'} ${section.title === 'Data Lakes' ? 'pb-6 xl:pb-0' : ''} snap-start pt-6 md:pt-24 2xl:px-24 relative min-h-[667px]`}
className={`${section.isIntro ? 'pb-6 xl:h-screen xl:pb-0' : 'h-[800px] min-h-[1000px] xl:h-screen'} ${section.title === 'Data Lakes' ? 'pb-6 xl:pb-0' : ''} snap-start pt-6 md:pt-8 xl:pt-24 2xl:px-24 relative min-h-[667px]`}
style={{ backgroundColor: section.color }}
>
{section.isIntro ? (
Expand Down

0 comments on commit db7c07c

Please sign in to comment.