diff --git a/.prettierrc b/.prettierrc index 5c2eca6..3d30913 100644 --- a/.prettierrc +++ b/.prettierrc @@ -3,5 +3,6 @@ "tabWidth": 2, "semi": true, "jsxSingleQuote": false, - "printWidth": 80 + "printWidth": 80, + "plugins": ["prettier-plugin-tailwindcss"] } diff --git a/package.json b/package.json index 2faa157..7de020d 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,8 @@ "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.3.4", "postcss": "^8.4.31", + "prettier": "^3.3.0", + "prettier-plugin-tailwindcss": "^0.6.1", "tailwindcss": "^3.3.3", "typescript": "^5.0.2", "vite": "^4.3.2" diff --git a/src/components/atoms/button/Button.tsx b/src/components/atoms/button/Button.tsx index 1155407..20e7cb5 100644 --- a/src/components/atoms/button/Button.tsx +++ b/src/components/atoms/button/Button.tsx @@ -34,13 +34,13 @@ const Button: React.FC = (props) => { - - - - diff --git a/src/components/atoms/post/CreatePostBox.tsx b/src/components/atoms/post/CreatePostBox.tsx index a899768..6c98873 100644 --- a/src/components/atoms/post/CreatePostBox.tsx +++ b/src/components/atoms/post/CreatePostBox.tsx @@ -2,21 +2,21 @@ import React from 'react'; const CreatePostBox: React.FC = () => { return ( -
-
-
+
+
+
dp
-
-
-
-
-
{post.caption ? (
-

+

{post.caption}

) : null} {post.image ? ( -
+
postImage
) : null} -
-
+
+
- - -
@@ -66,8 +66,8 @@ const Post: React.FC = (props) => {
-
-
-
- - -
@@ -60,11 +60,11 @@ const RightSidebar: React.FC = () => { .map((_, idx) => (
  • user diff --git a/src/pages/login/index.tsx b/src/pages/login/index.tsx index d8e3f56..1c098a8 100644 --- a/src/pages/login/index.tsx +++ b/src/pages/login/index.tsx @@ -12,8 +12,8 @@ const LoginPage: React.FC = () => { }); return ( -
    -
    +
    +
    { > Login -
    -

    +

    +

    Forgot password?

    diff --git a/src/pages/newsfeed/NewsFeed.tsx b/src/pages/newsfeed/NewsFeed.tsx index 85e7cea..4da595f 100644 --- a/src/pages/newsfeed/NewsFeed.tsx +++ b/src/pages/newsfeed/NewsFeed.tsx @@ -6,25 +6,25 @@ import { storiesData } from '../../data'; const NewsFeed: React.FC = () => { return ( -
    +
    {/* Story Section */} -
    +
    -
    -
    -

    Create Story

    +
    +

    Create Story

    {storiesData.length diff --git a/src/pages/newsfeed/index.tsx b/src/pages/newsfeed/index.tsx index cb435db..a3eaabb 100644 --- a/src/pages/newsfeed/index.tsx +++ b/src/pages/newsfeed/index.tsx @@ -3,7 +3,7 @@ import NewsFeed from './NewsFeed'; const NewsFeedPage: React.FC = () => { return ( -
    +
    ); diff --git a/src/pages/notfound/index.tsx b/src/pages/notfound/index.tsx index 32ed2de..6439925 100644 --- a/src/pages/notfound/index.tsx +++ b/src/pages/notfound/index.tsx @@ -3,12 +3,12 @@ import { Link } from 'react-router-dom'; const PageNotFound: React.FC = () => { return ( -
    +

    404 | Page Not Found

    -

    +

    Go Home
    diff --git a/src/pages/profile/index.tsx b/src/pages/profile/index.tsx index 1b9e693..a4e445b 100644 --- a/src/pages/profile/index.tsx +++ b/src/pages/profile/index.tsx @@ -6,11 +6,11 @@ import { TPostView } from '../../types/post'; const ProfilePage: React.FC = () => { const [postsView, setPostsView] = useState('listView'); return ( -
    -
    -
    +
    +
    +
    { }} >
    -
    -
    -
    -
    +
    +
    +
    dp
    -
    +

    Saiful Islam Shihab

    - + 528 friends -
    +
    friend friend friend friend friend friend friend friend
    - - -
    @@ -102,27 +102,27 @@ const ProfilePage: React.FC = () => {
    -
    - - - - - -
    -
    @@ -130,11 +130,11 @@ const ProfilePage: React.FC = () => {
    {/* After bio content */} -
    +
    -
    -
    -

    Intro

    +
    +
    +

    Intro

    Silence among noise

    @@ -142,19 +142,19 @@ const ProfilePage: React.FC = () => { href="https://saiful-islam.vercel.app" target="__blank" rel="noreferrer" - className="text-primary hover:underline text-sm" + className="text-sm text-primary hover:underline" > https://saiful-islam.vercel.app
    -
    -
    +
    - +

    Full Stack Web Developer at{' '} @@ -163,7 +163,7 @@ const ProfilePage: React.FC = () => {

    - +

    Studied B.Sc in SWE at{' '} @@ -174,7 +174,7 @@ const ProfilePage: React.FC = () => {

    - +

    Lives in Dhaka @@ -182,7 +182,7 @@ const ProfilePage: React.FC = () => {

    - +

    From{' '} @@ -193,7 +193,7 @@ const ProfilePage: React.FC = () => {

    - +

    Single @@ -201,7 +201,7 @@ const ProfilePage: React.FC = () => {

    - + {
    -
    featured featured featured
    -
    -
    +
    -
    +
    photo { />
    -
    +
    -

    Friends

    +

    Friends

    528 friends

    - + See all friends
    @@ -433,23 +433,23 @@ const ProfilePage: React.FC = () => { {/* Create post */} {/* post filter box */} -
    -
    +
    +
    -

    Posts

    +

    Posts

    - -
    -
    +