Added loader animation: https://github.com/twentyhq/twenty/assets/102751374/c569762a-f512-4995-ac4d-47570bacdcaa Added counter animation: https://github.com/twentyhq/twenty/assets/102751374/7d96c625-b56a-4ef6-8042-8e71455caf67 Co-authored-by: Ady Beraud <a.beraud96@gmail.com> Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
33 lines
593 B
TypeScript
33 lines
593 B
TypeScript
'use client';
|
|
|
|
import styled from '@emotion/styled';
|
|
|
|
import MotionContainer from '@/app/_components/ui/layout/LoaderAnimation';
|
|
|
|
const Container = styled.div`
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
width: 100%;
|
|
max-width: 898px;
|
|
padding: 40px;
|
|
gap: 40px;
|
|
@media (max-width: 809px) {
|
|
width: 100%;
|
|
padding: 40px 24px 40px 24px;
|
|
gap: 24px;
|
|
}
|
|
`;
|
|
|
|
export const ContentContainer = ({
|
|
children,
|
|
}: {
|
|
children?: React.ReactNode;
|
|
}) => {
|
|
return (
|
|
<MotionContainer>
|
|
<Container>{children}</Container>
|
|
</MotionContainer>
|
|
);
|
|
};
|