Skip to content

Commit

Permalink
created base structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita committed Sep 12, 2024
1 parent 71cd46f commit 082fb29
Show file tree
Hide file tree
Showing 35 changed files with 127 additions and 2 deletions.
19 changes: 19 additions & 0 deletions src/Root.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { StrictMode } from 'react';
import App from './App';
import { Provider } from 'react-redux';
import { store } from './app/store';
import { HashRouter, Routes, Route } from 'react-router-dom';

export const Root = () => {
return (
<Provider store={store}>
<StrictMode>
<HashRouter>
<Routes>
<Route path="/" element={<App />}></Route>
</Routes>
</HashRouter>
</StrictMode>
</Provider>
);
};
Empty file.
9 changes: 9 additions & 0 deletions src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';
import './Footer.scss'

// eslint-disable-next-line @typescript-eslint/no-empty-object-type
type Props = {};

export const Footer: React.FC<Props> = () => {
return <></>;
};
Empty file.
9 changes: 9 additions & 0 deletions src/components/Footer/NavFooter/NavFooter.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';
import './NavFooter.scss'

// eslint-disable-next-line @typescript-eslint/no-empty-object-type
type Props = {};

export const NavFooter: React.FC<Props> = () => {
return <></>;
};
1 change: 1 addition & 0 deletions src/components/Footer/NavFooter/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './NavFooter';
1 change: 1 addition & 0 deletions src/components/Footer/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './Footer';
Empty file.
9 changes: 9 additions & 0 deletions src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';
import './Header.scss'

// eslint-disable-next-line @typescript-eslint/no-empty-object-type
type Props = {};

export const Header: React.FC<Props> = () => {
return <></>;
};
Empty file.
8 changes: 8 additions & 0 deletions src/components/Header/NavHeader/NavHeader.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react';
import './NavHeader.scss';
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
type Props = {};

export const NavHeader: React.FC<Props> = () => {
return <></>;
};
1 change: 1 addition & 0 deletions src/components/Header/NavHeader/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './NavHeader';
1 change: 1 addition & 0 deletions src/components/Header/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './Header';
Empty file added src/components/Main/Main.scss
Empty file.
8 changes: 8 additions & 0 deletions src/components/Main/Main.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react';
import './Main.scss'
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
type Props = {};

export const Main: React.FC<Props> = () => {
return <></>;
};
1 change: 1 addition & 0 deletions src/components/Main/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './Main';
Empty file.
8 changes: 8 additions & 0 deletions src/components/OnlyMobile/Aside/Aside.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react';
import './Aside.scss'
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
type Props = {};

export const Aside: React.FC<Props> = () => {
return <></>;
};
Empty file.
9 changes: 9 additions & 0 deletions src/components/OnlyMobile/Aside/AsideFooter/AsideFooter.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';
import './AsideFooter.scss'

// eslint-disable-next-line @typescript-eslint/no-empty-object-type
type Props = {};

export const AsideFooter: React.FC<Props> = () => {
return <></>;
};
1 change: 1 addition & 0 deletions src/components/OnlyMobile/Aside/AsideFooter/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './AsideFooter';
Empty file.
9 changes: 9 additions & 0 deletions src/components/OnlyMobile/Aside/AsideHeader/AsideHeader.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';
import './AsideHeader.scss'

// eslint-disable-next-line @typescript-eslint/no-empty-object-type
type Props = {};

export const AsideHeader: React.FC<Props> = () => {
return <></>;
};
1 change: 1 addition & 0 deletions src/components/OnlyMobile/Aside/AsideHeader/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './AsideHeader';
Empty file.
9 changes: 9 additions & 0 deletions src/components/OnlyMobile/Aside/AsideNav/AsideNav.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';
import './AsideNav.scss'

// eslint-disable-next-line @typescript-eslint/no-empty-object-type
type Props = {};

export const AsideNav: React.FC<Props> = () => {
return <></>;
};
1 change: 1 addition & 0 deletions src/components/OnlyMobile/Aside/AsideNav/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './AsideNav';
1 change: 1 addition & 0 deletions src/components/OnlyMobile/Aside/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './Aside';
4 changes: 2 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import App from './App.tsx';
import App from './App';
import './index.css';
import { Provider } from 'react-redux';
import { store } from './app/store.ts';
import { store } from './app/store';

createRoot(document.getElementById('root')!).render(
<Provider store={store}>
Expand Down
Empty file.
9 changes: 9 additions & 0 deletions src/pages/MainPage/MainPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';
import './MainPage.scss';

// eslint-disable-next-line @typescript-eslint/no-empty-object-type
type Props = {};

export const MainPage: React.FC<Props> = () => {
return <></>;
};
1 change: 1 addition & 0 deletions src/pages/MainPage/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './MainPage';
Empty file.
8 changes: 8 additions & 0 deletions src/pages/NotFoundPage/NotFoundPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react';
import './NotFoundPage.scss'
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
type Props = {};

export const NotFoundPage: React.FC<Props> = () => {
return <></>;
};
1 change: 1 addition & 0 deletions src/pages/NotFoundPage/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './NotFoundPage';

0 comments on commit 082fb29

Please sign in to comment.