diff --git a/frontend/src/components/Login.jsx b/frontend/src/components/Login.jsx index 8ed8c57..6dd71b1 100644 --- a/frontend/src/components/Login.jsx +++ b/frontend/src/components/Login.jsx @@ -1,5 +1,5 @@ import { Button, Box, Tooltip } from '@mui/material'; -import { do_login, do_logout } from '../api'; +import { do_login } from '../api'; const LoginButton = ({ isLoggedIn }) => { // UI rendering @@ -12,15 +12,18 @@ const LoginButton = ({ isLoggedIn }) => { gap: 2, }} > - - + + + + ); diff --git a/frontend/src/components/Navbar.jsx b/frontend/src/components/Navbar.jsx index 1a670e5..4629160 100644 --- a/frontend/src/components/Navbar.jsx +++ b/frontend/src/components/Navbar.jsx @@ -34,12 +34,11 @@ const Navbar = ({ isLoggedIn }) => { to="/" size="large" sx={{ - flexGrow: 1, textDecoration: 'none', color: 'inherit', }} > - ReviewIIITH + 📝 ReviewIIITH {isLoggedIn ? ( diff --git a/frontend/src/components/Review.jsx b/frontend/src/components/Review.jsx index 8526765..3b10394 100644 --- a/frontend/src/components/Review.jsx +++ b/frontend/src/components/Review.jsx @@ -94,8 +94,8 @@ const Review = ({ review, endpoint, onUpdate }) => { {formattedDate} - - {review.content} + + {review.content.replace(/\n{3,}/g, '\n\n')} { if (cache.current[endpoint]) { setReviewsList(cache.current[endpoint]); } else { + setReviewsList(null); // show loading fetchReviews(); } }; diff --git a/frontend/src/pages/Home.jsx b/frontend/src/pages/Home.jsx index 1404f09..0e835a4 100644 --- a/frontend/src/pages/Home.jsx +++ b/frontend/src/pages/Home.jsx @@ -6,33 +6,33 @@ const Home = ({ isLoggedIn }) => { return ( - Welcome to ReviewIIITH + 🎓 Welcome to ReviewIIITH 👋 - A reviews portal by students, for students + A reviews portal by students, for students 🧑‍🎓 Ever wished you had the inside scoop on a course before signing up for - it? Confused on what research advisor to pick? That's where this + it? Confused on what research advisor to pick? 🤔 That's where this anonymous review portal comes in. Think of it as your go-to place for real, no-fluff opinions from fellow students about classes and instructors. Here's the deal: you can rate professors and courses on things like how clear their lectures are, how tough the workload is, or - whether the grading feels fair. + whether the grading feels fair. 📝 - The best part? It's totally anonymous, so you can keep it real without - worrying about any awkward run-ins. And it's super simple to use - just + The best part? 🌟 It's totally anonymous, so you can keep it real without + worrying about any awkward run-ins. And it's super simple to use - just search by course or professor and see what others are saying. So, if you've got thoughts, share them! And if you're curious about that one - class everyone's whispering about, this is your spot to find out. + class everyone's whispering about, this is your spot to find out. 🚀 - Privacy Policy + 🔐 Privacy Policy To ensure that this platform is only accessible to students of @@ -53,13 +53,8 @@ const Home = ({ isLoggedIn }) => { - - Terms of Use + + 📜 Terms of Use By using this platform, you agree to share honest and constructive @@ -80,7 +75,16 @@ const Home = ({ isLoggedIn }) => { - + + + + Ready to get started? ✨ + + + Join the conversation now! 🤝 + + + ); };