diff --git a/index.html b/index.html index f9c96db7c..79f71c08d 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,12 @@ LAB | React Tweets +
diff --git a/src/App.jsx b/src/App.jsx index 5f86116c4..4a252aec4 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -38,9 +38,12 @@ const tweetsArray = [ ]; function App() { + // const [{user, timestamp, message}] = tweetsArray return (
- + + +
); } diff --git a/src/components/Actions.jsx b/src/components/Actions.jsx new file mode 100644 index 000000000..5d1b66ff5 --- /dev/null +++ b/src/components/Actions.jsx @@ -0,0 +1,14 @@ +function Actions() { + +return( +
+ {/* Font Awesome icons */} + + + + +
+) +} + +export default Actions; \ No newline at end of file diff --git a/src/components/Message.jsx b/src/components/Message.jsx new file mode 100644 index 000000000..1d7ea8fa3 --- /dev/null +++ b/src/components/Message.jsx @@ -0,0 +1,9 @@ +function Message (props) { + return( +

{props.message} + +

+ ) +} + +export default Message; \ No newline at end of file diff --git a/src/components/ProfileImage.jsx b/src/components/ProfileImage.jsx new file mode 100644 index 000000000..bc313495d --- /dev/null +++ b/src/components/ProfileImage.jsx @@ -0,0 +1,8 @@ + +function ProfileImage(props) { + return( +profile +) +} + +export default ProfileImage \ No newline at end of file diff --git a/src/components/Timestamp.jsx b/src/components/Timestamp.jsx new file mode 100644 index 000000000..09b6f3509 --- /dev/null +++ b/src/components/Timestamp.jsx @@ -0,0 +1,7 @@ + +function Timestamp(props) { + + return({props.time}) +} + +export default Timestamp; \ No newline at end of file diff --git a/src/components/Tweet.jsx b/src/components/Tweet.jsx index 1700d3d15..1aa230b6d 100644 --- a/src/components/Tweet.jsx +++ b/src/components/Tweet.jsx @@ -1,34 +1,23 @@ -function Tweet() { +import ProfileImage from "./ProfileImage"; +import User from "./User"; +import Timestamp from "./Timestamp" +import Message from "./Message" +import Actions from "./Actions" + +function Tweet(props) { return (
- profile - + + +
- - Ironhack - @ironhack - - - Nov 30, 2020 + +
-

- On December 7th, we will be hosting a #webinar that will introduce you - to #SQL! Are you ready? 🚀 -

- -
- {/* Font Awesome icons */} - - - - -
+ +
diff --git a/src/components/User.jsx b/src/components/User.jsx new file mode 100644 index 000000000..825062530 --- /dev/null +++ b/src/components/User.jsx @@ -0,0 +1,11 @@ +function user (props){ + +return( + + {props.name} + {props.handle} + +) +} + +export default user; \ No newline at end of file