-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from fs-jun24-team-3/feature/add-router
Feature/add router
- Loading branch information
Showing
9 changed files
with
62 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
import { MainPage } from './pages/MainPage'; | ||
import { Header } from './components/Header'; | ||
import { Footer } from './components/Footer'; | ||
import { Outlet } from 'react-router-dom'; | ||
|
||
export const App = () => { | ||
return <MainPage />; | ||
return ( | ||
<> | ||
<Header /> | ||
<Outlet /> | ||
|
||
<Footer /> | ||
</> | ||
); | ||
}; | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ | |
} | ||
|
||
@include onDesktop { | ||
bottom: -26px; | ||
bottom: -28px; | ||
} | ||
|
||
background-color: #000; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react'; | ||
// eslint-disable-next-line @typescript-eslint/no-empty-object-type | ||
type Props = {}; | ||
|
||
export const AccessoriesPage: React.FC<Props> = () => { | ||
return <>Accessories page</>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
import React from 'react'; | ||
import './MainPage.scss'; | ||
import { Main } from '../../components/Main'; | ||
import { Header } from '../../components/Header'; | ||
import { Footer } from '../../components/Footer'; | ||
// import { Header } from '../../components/Header'; | ||
// import { Footer } from '../../components/Footer'; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-empty-object-type | ||
type Props = {}; | ||
|
||
export const MainPage: React.FC<Props> = () => { | ||
return ( | ||
<> | ||
<Header /> | ||
<div className="main-page"> | ||
<Main /> | ||
</div> | ||
|
||
<Footer /> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react'; | ||
// eslint-disable-next-line @typescript-eslint/no-empty-object-type | ||
type Props = {}; | ||
|
||
export const PhonesPage: React.FC<Props> = () => { | ||
return <>Phones page</>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react'; | ||
// eslint-disable-next-line @typescript-eslint/no-empty-object-type | ||
type Props = {}; | ||
|
||
export const TabletsPage: React.FC<Props> = () => { | ||
return <>Tablets page</>; | ||
}; |