diff --git a/README.md b/README.md index 4e6e59e..9c3add2 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Edit multiple JavaScript files in this lab as you get the hang of creating and u 1. Ask your instructor if you will deploy this application to Netlify. If so, wait for the lesson on deployment to deploy and add the link to your netlify site below: -[MY LIVE SITE URL]() +[MY LIVE SITE URL](https://aishas-intro-to-react-lab-10-2.netlify.app/#) 1. If you won't deploy this site, submit the URL to this GitHub repository. diff --git a/src/profile.png b/public/profile.png similarity index 100% rename from src/profile.png rename to public/profile.png diff --git a/src/App.jsx b/src/App.jsx index abbf1af..8ee7248 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,8 +1,27 @@ import React from "react"; import "./index.css"; +import NavBar from "./Components/NavBar"; +import UserProfile from "./Components/UserProfile"; +import Posts from "./Components/Posts"; +import Contacts from "./Components/Contacts"; function App() { - return

Hello, world!

; + return ( + <> +
+ +
+
+
+ + +
+
+ +
+
+ + ); } export default App; diff --git a/src/Components/ContactUserCard.jsx b/src/Components/ContactUserCard.jsx index e69de29..a38ef5e 100644 --- a/src/Components/ContactUserCard.jsx +++ b/src/Components/ContactUserCard.jsx @@ -0,0 +1,16 @@ +const ContactUserCard = () => { + return ( +
+
+ profile +
+
+

Jordan Walke

+

React Creator

+

Lorem ipsum!

+
+
+ ); +}; + +export default ContactUserCard; diff --git a/src/Components/Contacts.jsx b/src/Components/Contacts.jsx index e69de29..1c692c3 100644 --- a/src/Components/Contacts.jsx +++ b/src/Components/Contacts.jsx @@ -0,0 +1,15 @@ +import ContactUserCard from "./ContactUserCard"; + +const Contacts = () => { + return ( +
+

Contacts

+ + + + +
+ ); +}; + +export default Contacts; diff --git a/src/Components/NavBar.jsx b/src/Components/NavBar.jsx index e69de29..99b570a 100644 --- a/src/Components/NavBar.jsx +++ b/src/Components/NavBar.jsx @@ -0,0 +1,11 @@ +const NavBar = () => { + return ( + + ); +}; + +export default NavBar; diff --git a/src/Components/Post.jsx b/src/Components/Post.jsx index e69de29..dedc538 100644 --- a/src/Components/Post.jsx +++ b/src/Components/Post.jsx @@ -0,0 +1,10 @@ +const Post = () => { + return ( +
+

Title

+

Lorem ipsum dolor sit amet consectetur, adipisicing elit.

+
+ ); +}; + +export default Post; diff --git a/src/Components/Posts.jsx b/src/Components/Posts.jsx index e69de29..92a85cb 100644 --- a/src/Components/Posts.jsx +++ b/src/Components/Posts.jsx @@ -0,0 +1,14 @@ +import Post from "./Post"; + +const Posts = () => { + return ( +
+

Posts

+ + + +
+ ); +}; + +export default Posts; diff --git a/src/Components/UserProfile.jsx b/src/Components/UserProfile.jsx index e69de29..d7ab889 100644 --- a/src/Components/UserProfile.jsx +++ b/src/Components/UserProfile.jsx @@ -0,0 +1,16 @@ +const UserProfile = () => { + return ( +
+
+ profile +
+ +
+ ); +}; + +export default UserProfile; diff --git a/src/index.css b/src/index.css index 6e9459e..9e640d6 100644 --- a/src/index.css +++ b/src/index.css @@ -1,6 +1,11 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + body { font-family: sans-serif; - margin: 0; } html, @@ -9,3 +14,112 @@ body, height: 100%; width: 100%; } + +nav { + display: flex; + justify-content: flex-end; + align-items: center; + gap: 0.6em; + padding-right: 25px; + background-color: mistyrose; + width: 100%; + height: 150px; +} + +a { + text-decoration: none; + color: rgb(105, 5, 5); + background-color: gold; + border-radius: 10px; + padding: 7px; + font-weight: bolder; +} + +main { + display: grid; + grid-template-columns: 2fr 1fr; + gap: 10px; + padding: 15px; +} + +.user-profile { + display: flex; + flex-direction: row; + justify-content: flex-start; + align-content: space-between; + height: 145px; + border: 2px solid burlywood; + width: 60vw; + margin: 5px; + gap: 10px; +} + +#profile-img { + width: 20%; +} + +#profile-img img { + width: 100%; +} + +#profile-description { + display: flex; + flex-direction: column; + color: rgb(65, 2, 2); +} + +.posts { + display: flex; + flex-direction: column; + justify-content: flex-start; + align-content: space-between; + border: 2px solid burlywood; + width: 60vw; + margin: 5px; + gap: 10px; +} + +.posts h3 { + text-align: center; +} + +.post { + border: 2px solid burlywood; + margin: 0.7em; + padding: 0.7em; +} + +.post h4, +.post p { + text-align: center; +} + +.contacts { + border: 2px solid burlywood; +} + +.contacts h3 { + text-align: center; +} + +.contact-user-card { + display: flex; + flex-direction: row; + justify-content: flex-start; + gap: 15px; + border: 2px solid burlywood; + margin: 2em; +} + +.card-description { + display: flex; + flex-direction: column; + justify-content: flex-start; + align-content: space-evenly; + gap: 10px; + margin-left: 1em; +} + +.contact-user-card h4 { + font-size: 15px; +}