dali2g / threads-app

Explore the world of fullstack web development with this exciting Social Media Web App project. 🚀 Leveraging the power of modern technologies, including Next.js, React, Tailwind CSS, TypeScript, Clerk, and Mongoose, this web application offers a comprehensive and engaging social media experience.🌐
https://threads-by-dali2g.vercel.app
0 stars 0 forks source link

Suggested Communities and Users Empty for Unauthenticated Users, Post Structure Cleanup, and Tailwind Configuration #3

Open FindMalek opened 8 months ago

FindMalek commented 8 months ago

Problem:

When users access the website without logging in, the "Suggested Communities" and "Suggested Users" sections appear empty. Additionally, the structure of posts on the platform is inconsistent, with some having a date and time and others not. There's also a redundancy issue with both 'tailwind.config.ts' and 'tailwind.config.js' existing, potentially impacting performance.

Proposed Solutions:

Hide Empty Suggested Communities and Users Sections for Unauthenticated Users:

The "Suggested Communities" and "Suggested Users" sections should be hidden when a user is not logged in. This provides a cleaner and more user-friendly experience for unauthenticated users. Standardize Post Structure:

Ensure a consistent structure for posts, including a date and time format for all posts. This will improve the overall visual coherence of the platform. Remove One of the Tailwind Configuration Files:

To enhance performance and avoid the duplication of tailwind classes, please consider removing either 'tailwind.config.ts' or 'tailwind.config.js'. Having both can lead to performance issues. Steps to Reproduce:

Visit the website without logging in. Observe the "Suggested Communities" and "Suggested Users" sections are empty. View various posts to see the inconsistent structure. Check the presence of both 'tailwind.config.ts' and 'tailwind.config.js'.

Expected Behavior:

When unauthenticated, the "Suggested Communities" and "Suggested Users" sections should be hidden. All posts should follow a consistent structure with a date and time. Only one of 'tailwind.config.ts' or 'tailwind.config.js' should be present. Additional Information:

Version of NextJS: 13 Technologies used: NextJS, React, TailwindCSS Authentication: Clerk

Screenshots/Examples:

image

dali2g commented 8 months ago

Hi Malek ,I actually didn't implement Suggested Communities and Suggested Users functionnality yet that's why they are empty and about the date and time format , they're appearing only when a user post a thread on a community