diff --git a/src/components/Main/Card.js b/src/components/Main/Card.js new file mode 100644 index 0000000..7c43da4 --- /dev/null +++ b/src/components/Main/Card.js @@ -0,0 +1,46 @@ + + +const Card = ({city}) => { + return ( +
+
+ Туристическая карта г.{city} + Приехали в город?

Узнай, где выгоднее остановиться, куда

сходить и что посмотреть

+ +
+
+ ); +} + +export default Card; \ No newline at end of file diff --git a/src/components/Main/Header.js b/src/components/Main/Header.js new file mode 100644 index 0000000..5231740 --- /dev/null +++ b/src/components/Main/Header.js @@ -0,0 +1,40 @@ +const Header = () => { + return ( +
+
+ # + Путешествия

Просто!

+
+ # +
+ ); +} + +export default Header; \ No newline at end of file diff --git a/src/components/Main/Main.js b/src/components/Main/Main.js index e66c047..90ae11b 100644 --- a/src/components/Main/Main.js +++ b/src/components/Main/Main.js @@ -1,5 +1,7 @@ import React, { useEffect, useState } from "react"; import axios from "axios"; +import Header from "./Header"; +import Card from "./Card"; const Main = ({ userData }) => { @@ -49,24 +51,30 @@ const Main = ({ userData }) => { console.log(userData.unique); return ( +
+
+
-

Фильмы в г.{userData.selectedCity}

+

Кино по пушкинской карте

    {films.map((film, index) => (
  • {
-

Guides in {userData.selectedCity}

+

Тур. гиды г.{userData.selectedCity}

    {gits.map((guide, index) => (
  • {guide.name}
  • ))}
-

Museums in {userData.selectedCity}

+

Музеи г.{userData.selectedCity}

    {museum.map((museumItem, index) => (
  • {museumItem.name}
  • ))}
+
); }