diff --git a/src/pages/travelers/TravelerPage.js b/src/pages/travelers/TravelerPage.js new file mode 100644 index 0000000..d9bb1cd --- /dev/null +++ b/src/pages/travelers/TravelerPage.js @@ -0,0 +1,72 @@ +import React, { useEffect, useState } from "react"; + +import Col from "react-bootstrap/Col"; +import Row from "react-bootstrap/Row"; +import Container from "react-bootstrap/Container"; + +import Asset from "../../components/Asset"; + +import styles from "../../styles/TravelerPage.module.css"; +import appStyles from "../../App.module.css"; +import btnStyles from "../../styles/Button.module.css"; + +import PopularTravelers from "./PopularTravelers"; +import { useCurrentUser } from "../../contexts/CurrentUserContext"; + +function TravelerPage() { + const [hasLoaded, setHasLoaded] = useState(false); + const currentUser = useCurrentUser(); + + useEffect(() => { + setHasLoaded(true); + }, []) + + const mainTraveler = ( + <> + + +

Image

+ + +

Traveler username

+

Traveler stats

+ + +

Follow button

+ + Traveler content +
+ + ); + + const mainTravelerPosts = ( + <> +
+

Traveler owner's posts

+
+ + ); + + return ( + + + + + {hasLoaded ? ( + <> + {mainTraveler} + {mainTravelerPosts} + + ) : ( + + )} + + + + + + + ); +} + +export default TravelerPage; \ No newline at end of file diff --git a/src/styles/TravelerPage.module.css b/src/styles/TravelerPage.module.css new file mode 100644 index 0000000..f275571 --- /dev/null +++ b/src/styles/TravelerPage.module.css @@ -0,0 +1,13 @@ +.TravelerImage { + object-fit: cover; + height: 120px; + width: 120px; + margin: 4px; +} + +@media screen and (max-width: 991px) { + .TravelerImage { + width: 250px; + height: 250px; + } +} \ No newline at end of file