Skip to content

Commit

Permalink
Merge pull request #67 from Rituraj67/master
Browse files Browse the repository at this point in the history
Home Page CSS
  • Loading branch information
imdeveshshukla authored Sep 9, 2024
2 parents 8bae1f2 + 12f1805 commit 561d785
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/Hottopic.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ const Hottopic = ({ topic, dp, bg }) => {
<>

<div className=''>
<div className='border-black border-2 relative shadow-lg shadow-slate-300 rounded-2xl h-64 m-4 '>
<div className='border-black border-2 relative shadow-lg shadow-slate-300 rounded-2xl h-44 xxs:h-56 sm:h-64 m-4 '>
<img className=' w-full h-full object-cover rounded-2xl' src={bg} alt="" />
<div className=' absolute left-14 bottom-0 border-4 translate-y-1/2 h-40 w-40 rounded-full overflow-hidden '>
<div className=' absolute left-6 sm:left-14 bottom-0 border-4 translate-y-1/2 h-28 w-28 xxs:h-36 xxs:w-36 sm:h-40 sm:w-40 rounded-full overflow-hidden '>
<img className=' h-full w-full object-cover' src={dp} alt="" />
</div>
</div>
<div className='flex items-center relative justify-end pr-8 w-full text-center text-lg xxs:text-2xl xs:text-3xl font-bold'>
<div className='flex items-center mt-10 relative justify-end pr-8 w-full text-center text-lg xxs:text-2xl xs:text-3xl font-bold'>
<img className=" w-7 xxs:w-8 xs:w-9 rounded-l-lg " src={Q} alt="" /><span className=" overflow-clip line-clamp-1 break-all max-w-[70%] bg-white text-[#6c712ed0] font-ubuntu rounded-r-lg px-1">{topic}</span>
</div>
<div className='h-[1.5px] bg-gray-800 mt-10'></div>
<div className='h-[1.5px] bg-gray-800 mt-6 xs:mt-10'></div>
</div>


Expand Down
3 changes: 1 addition & 2 deletions frontend/src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ import { setOnNewPost } from '../redux/onNewPost';
import Polls from '../components/Polls';
import { clearOffset, setPollOffset, setPostOffset } from '../redux/offset';
import { addRoomCreatorId, addRoomTitle, setOnNewRoomPost } from '../redux/RoomCreatePosts';
import SmoothLoader from '../assets/SmoothLoader';
import { VscFoldDown } from "react-icons/vsc";

import SmoothLoaderHome, { AnimatedFoldDownArrow } from '../assets/SmoothLoaderHome';


Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function Settings() {
const nav = useNavigate();
const validatePassword = (password) => {

const specialSymbolRegex = /[!@#$%^&*(),.?":{}|<>]/;
const specialSymbolRegex = /[!@#$%^&*(),._?":{}|<>]/;
const letterRegex = /[a-zA-Z]/;
const numberRegex = /[0-9]/;
const minLength = 8;
Expand Down

0 comments on commit 561d785

Please sign in to comment.