Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OV-75: add sidebar and header to home page #83

Merged
merged 14 commits into from
Sep 5, 2024
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
1 change: 0 additions & 1 deletion frontend/src/bundles/common/components/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const Header: React.FC<Properties> = ({ left, center, right }) => {
left="0"
width="full"
backgroundColor="background.900"
boxShadow="md"
zIndex="100"
padding="4"
alignItems="center"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { VideoSection } from '../components.js';

const MainContent: React.FC = () => {
return (
<Box bg="background.50" borderRadius="lg" margin="0 25px">
<Box bg="background.50" borderRadius="lg">
<VideoSection />
<VideoSection />
</Box>
Expand Down
13 changes: 9 additions & 4 deletions frontend/src/bundles/home/pages/home.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import { Box, Header } from '~/bundles/common/components/components.js';
import {
Box,
Header,
Sidebar,
} from '~/bundles/common/components/components.js';

import { MainContent } from '../components/components.js';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you encounter this issue with the background? I think it should be entirely blue, not white at the end. I know Oleksandra created the homepage, but it would be better to fix it now since you're also working on the homepage.

image

Copy link
Contributor

@WilsonBravo WilsonBravo Aug 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You just need to add the overflow: auto; property to the main wrapper.


const Home: React.FC = () => {
return (
<Box bg="background.900" height="100vh">
<Box bg="background.900" minHeight="100vh" overflow="auto">
<Header />
{/* Sidebar */}
<MainContent />
<Sidebar>
<MainContent />
</Sidebar>
</Box>
);
};
Expand Down
Loading