Add files via upload
This commit is contained in:
21
src/layouts/ContentLayout/ContentLayout.module.css
Normal file
21
src/layouts/ContentLayout/ContentLayout.module.css
Normal file
@@ -0,0 +1,21 @@
|
||||
.contentWrapper {
|
||||
max-width: var(--full-hd-width-screen);
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
padding: 0rem 4rem;
|
||||
}
|
||||
|
||||
@media (max-width: 850px) {
|
||||
.contentWrapper {
|
||||
max-width: var(--full-hd-width-screen);
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
padding: 0rem 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.contentWrapper {
|
||||
padding: 5px;
|
||||
}
|
||||
}
|
||||
15
src/layouts/ContentLayout/ContentLayout.tsx
Normal file
15
src/layouts/ContentLayout/ContentLayout.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { FC, ReactNode } from 'react';
|
||||
|
||||
import style from './ContentLayout.module.css';
|
||||
|
||||
type ContentLayoutProps = {
|
||||
children: ReactNode;
|
||||
};
|
||||
|
||||
const ContentLayout: FC<ContentLayoutProps> = ({ children }) => (
|
||||
<main className={style.contentWrapper}>
|
||||
{children}
|
||||
</main>
|
||||
);
|
||||
|
||||
export default ContentLayout;
|
||||
1
src/layouts/ContentLayout/index.ts
Normal file
1
src/layouts/ContentLayout/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from './ContentLayout';
|
||||
13
src/layouts/RootLayout/RootLayout.tsx
Normal file
13
src/layouts/RootLayout/RootLayout.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { FC, ReactNode } from 'react';
|
||||
|
||||
type MainLayout = {
|
||||
children: ReactNode;
|
||||
};
|
||||
|
||||
const RootLayout: FC<MainLayout> = ({ children }) => (
|
||||
<>
|
||||
{children}
|
||||
</>
|
||||
);
|
||||
|
||||
export default RootLayout;
|
||||
1
src/layouts/RootLayout/index.ts
Normal file
1
src/layouts/RootLayout/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from './RootLayout';
|
||||
Reference in New Issue
Block a user