Skip to content

Commit

Permalink
fix: fix images not rendered on production
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayobami6 committed Oct 28, 2023
1 parent 213c854 commit 74b16ea
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 25 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Navbar/TalentNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function TalentNav(): JSX.Element {
return (
<div className='talent-nav'>
<div className='nav-con'>
<img className={'rounded-full'} src={'/assets/logo.png'} alt='' />
<img className={'rounded-full'} src={'assets/logo.png'} alt='' />
<nav className='nav-items-con' onClick={() => setOpenProfile(true)}>
{user.data ? (
''
Expand Down
45 changes: 21 additions & 24 deletions client/src/pages/Auth/Auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,31 @@ import SignUp from './Signup';
import Navbar from '../../components/Navbar/Navbar2';

const Auth: React.FC = () => {
const [isSignup, setIsSignup] = useState(false);
const [isSignup, setIsSignup] = useState(false);

const handleIsMemberClick = () => {
setIsSignup(!isSignup);
};
const handleIsMemberClick = () => {
setIsSignup(!isSignup);
};

return (
<>
<div>
{/* <div className="bg-[url('src/assets/auth3.jpg')] bg-img w-full bg-cover">
return (
<>
<div>
{/* <div className="bg-[url('src/assets/auth3.jpg')] bg-img w-full bg-cover">
</div> */}
<img
src='src/assets/auth3.jpg'
className='bg-img bg-cover w-fit'
/>
<div className='text-left mx-3 py-4'>
<Navbar isAuth={true} />
</div>
{isSignup ? (
<SignUp handleIsMemberClick={handleIsMemberClick} />
) : (
<SignIn handleIsMemberClick={handleIsMemberClick} />
)}
</div>
<div>Footer</div>
</>
);
<img src='assets/auth3.jpg' className='bg-img bg-cover w-fit' />
<div className='text-left mx-3 py-4'>
<Navbar isAuth={true} />
</div>
{isSignup ? (
<SignUp handleIsMemberClick={handleIsMemberClick} />
) : (
<SignIn handleIsMemberClick={handleIsMemberClick} />
)}
</div>
<div>Footer</div>
</>
);
};

export default Auth;

0 comments on commit 74b16ea

Please sign in to comment.