Skip to content

Commit

Permalink
recommend page
Browse files Browse the repository at this point in the history
  • Loading branch information
DianaKryzhanivska committed Mar 22, 2024
1 parent cf5ba10 commit 8a1c4b1
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Route, Routes } from "react-router-dom";
import Layout from "./Layout";
import RegisterPage from "pages/RegisterPage";
import LoginPage from "pages/LoginPage";
import Recommend from "pages/Recommend";
import Training from "pages/Training";
import HomePage from "pages/HomePage";
import DictionaryPage from "pages/DictionaryPage";
import RecommendPage from "pages/RecommendPage";

export const App = () => {
return (
Expand All @@ -16,7 +16,7 @@ export const App = () => {
<Route path="/" element={<Layout />}>
<Route index element={<HomePage />} />
<Route path="dictionary" element={<DictionaryPage />} />
<Route path="recommend" element={<Recommend />} />
<Route path="recommend" element={<RecommendPage />} />
<Route path="training" element={<Training />} />
</Route>
</Routes>
Expand Down
15 changes: 15 additions & 0 deletions src/components/Recommend/Recommend.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import Dashboard from "components/Dashboard/Dashboard";
import React from "react";
import { Container } from "./Recommend.styled";

const Recommend = () => {
return (
<>
<Container>
<Dashboard />
</Container>
</>
);
};

export default Recommend;
12 changes: 12 additions & 0 deletions src/components/Recommend/Recommend.styled.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import styled from "styled-components";
import { CommonContainer } from "styles/GlobalStyles";

export const Container = styled(CommonContainer)`
padding-top: 32px;
padding-bottom: 48px;
background: ${({ theme }) => theme.colors.background};
@media only screen and (min-width: 768px) {
padding-top: 80px;
}
`;
7 changes: 0 additions & 7 deletions src/pages/Recommend.jsx

This file was deleted.

12 changes: 12 additions & 0 deletions src/pages/RecommendPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Recommend from "components/Recommend/Recommend";
import React from "react";

const RecommendPage = () => {
return (
<>
<Recommend />
</>
);
};

export default RecommendPage;

0 comments on commit 8a1c4b1

Please sign in to comment.