Skip to content

Commit

Permalink
[fix] aboutページのレイアウトを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
sub-t committed Jul 17, 2022
1 parent bbbbfb8 commit 3d69b6b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions src/components/features/app/Contents/Contents.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
import { Portal } from '@radix-ui/react-portal';
import { Hamburger } from '@/components/features/app/Hamburger';
import { useBreakPoint } from '@/hooks/useBreakPoint';
import { cn } from '@/lib/cn';
import { Hamburger } from '../Hamburger';

type Props = {
main: React.ReactElement;
aside?: React.ReactNode;
hamburgerMenu?: React.ReactNode;
className?: string;
};

export const Contents: React.VFC<Props> = ({ main, aside, hamburgerMenu }) => {
export const Contents: React.VFC<Props> = ({
main,
aside,
hamburgerMenu,
className,
}) => {
const lg = useBreakPoint('lg');

return (
<div className="grid grid-cols-1 lg:grid-cols-3 gap-10">
<div className={cn(className, 'grid grid-cols-1 lg:grid-cols-3 gap-10')}>
<div className="lg:col-span-2">
<main>{main}</main>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/about/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Contents } from '@/components/features/app/Contents';
import { Profile } from '@/components/features/app/Profile';

export const About = () => <Contents main={<Profile />} />;
export const About = () => <Contents className="lg:block" main={<Profile />} />;

0 comments on commit 3d69b6b

Please sign in to comment.