From b27fca9b7d2bbcbb70d3c63101151a17a2aa5153 Mon Sep 17 00:00:00 2001 From: Darshan Bajgain Date: Wed, 11 Oct 2023 20:14:26 +0545 Subject: [PATCH] style changed --- src/components/BlogContent.jsx | 6 ++++-- src/components/Blogs.jsx | 5 +---- src/components/Footer.jsx | 2 +- src/components/Navbar.jsx | 8 ++++---- tailwind.config.js | 15 +-------------- 5 files changed, 11 insertions(+), 25 deletions(-) diff --git a/src/components/BlogContent.jsx b/src/components/BlogContent.jsx index 00c7a29..90f8506 100644 --- a/src/components/BlogContent.jsx +++ b/src/components/BlogContent.jsx @@ -27,7 +27,9 @@ const BlogContent = ({ blogsData }) => {
- + {blog.attributes.blogContent} @@ -40,7 +42,7 @@ const BlogContent = ({ blogsData }) => { src={`http://localhost:1337${blog.attributes.authorProfileImg.data.attributes.url}`} alt={blog.attributes.author} /> -

Written by:

+

Written by:

{blog.attributes.author}
{blog.attributes.date}
diff --git a/src/components/Blogs.jsx b/src/components/Blogs.jsx index ee59ee4..6c2978b 100644 --- a/src/components/Blogs.jsx +++ b/src/components/Blogs.jsx @@ -3,9 +3,6 @@ import { Link } from 'react-router-dom'; const Blogs = ({blogsData}) => { - console.log("blogpage"); - console.log(blogsData); - {/* const blogitems = [ { @@ -62,7 +59,7 @@ const Blogs = ({blogsData}) => {
-
+
{ blogsData.data.map((blog) => diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index c5587d3..cf12775 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -5,7 +5,7 @@ import { HiOutlineMail, HiGlobe } from 'react-icons/hi'; const Footer = () => { return (
-
+
{/* Footer Column 1 */}
diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx index cb9c6aa..d973c28 100644 --- a/src/components/Navbar.jsx +++ b/src/components/Navbar.jsx @@ -10,14 +10,14 @@ const Navbar = () => { return (
-
+
{/*logo */} -

Darshan.Blog

+

{''}

-
    +
    • Home
    • Post
    • About
    • @@ -29,7 +29,7 @@ const Navbar = () => {
-
    +
    • Home
    • Post
    • About
    • diff --git a/tailwind.config.js b/tailwind.config.js index faaa787..b4237f5 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -14,20 +14,7 @@ export default { }, fontFamily: { poppins: ["Poppins", "sans-serif"], - }, - typography: { - // Customize the prose class styles - prose: { - color: '#ffff', // Set the text color to white - }, - // You can also customize specific elements within prose - 'h1': { - color: '#FFA500', // Set the color for h1 headings - }, - 'p': { - color: '#CCCCCC', // Set the color for paragraphs - }, - }, + } }, screens: { xs: "480px",