From 7bcb937e6b63160087d2652cf2065b7eb9cf205f Mon Sep 17 00:00:00 2001 From: Alexander Tsiklidis Date: Sun, 20 Aug 2023 16:56:08 -0400 Subject: [PATCH 1/3] makes some changes, not quite there yet --- package-lock.json | 29 +++++++++++++++++++++++ package.json | 1 + src/App.jsx | 23 +++++++++++++++---- src/Components/DisplayPosts.jsx | 21 +++++++++++++++++ src/Components/Footer.jsx | 5 ++++ src/Components/Header.jsx | 10 ++++++++ src/Components/Nav.jsx | 12 ++++++++++ src/Components/PostsByLocation.jsx | 30 ++++++++++++++++++++++++ src/data/posts.json | 37 ++++++++++++++++++++---------- 9 files changed, 152 insertions(+), 16 deletions(-) create mode 100644 src/Components/DisplayPosts.jsx create mode 100644 src/Components/Footer.jsx create mode 100644 src/Components/Header.jsx create mode 100644 src/Components/Nav.jsx create mode 100644 src/Components/PostsByLocation.jsx diff --git a/package-lock.json b/package-lock.json index 710ea9c..c4420e6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "lab-bootstrap-css", "version": "0.1.0", "dependencies": { + "bootstrap": "^5.3.1", "react": "^18.2.0", "react-dom": "^18.2.0" }, @@ -918,6 +919,16 @@ "node": ">= 8" } }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "peer": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, "node_modules/@types/prop-types": { "version": "15.7.5", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", @@ -1151,6 +1162,24 @@ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true }, + "node_modules/bootstrap": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.1.tgz", + "integrity": "sha512-jzwza3Yagduci2x0rr9MeFSORjcHpt0lRZukZPZQJT1Dth5qzV7XcgGqYzi39KGAVYR8QEDVoO0ubFKOxzMG+g==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/twbs" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + } + ], + "peerDependencies": { + "@popperjs/core": "^2.11.8" + } + }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", diff --git a/package.json b/package.json index 078197d..ddacf63 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "preview": "vite preview" }, "dependencies": { + "bootstrap": "^5.3.1", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/src/App.jsx b/src/App.jsx index 564cf02..fe69789 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,11 +1,26 @@ import postData from "./data/posts.json"; +import React from "react"; +import DisplayPosts from "./Components/DisplayPosts"; +// import DisplayPosts from "./Components/DisplayPosts"; +import Nav from "./Components/Nav"; +// // import Footer from "./Components/Footer"; +import Header from "./Components/Header"; +import PostsByLocation from "./Components/PostsByLocation" function App() { - console.log(postData); + // console.log(postData); return ( -
- -
+ <> +