Skip to content

Commit

Permalink
style:fixed layout & bg issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TahaHameed23 committed Nov 12, 2023
1 parent 189600e commit 061d63e
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ Features:
7. View other's profile.
8. Logout

Made using React + Vite.
Made using React + TailwindCSS/SCSS.
4 changes: 1 addition & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DevDeck</title>
</head>
<body>
<!-- style="background: url('./src/assets/dddepth-230.jpg') no-repeat;
background-size: cover;" -->
<body class="bg-slate-900 m-0 p-0">
<div id="root" ></div>
<script type="module" src="/src/main.jsx"></script>
</body>
Expand Down
Binary file removed src/assets/dddepth-152.jpg
Binary file not shown.
Binary file removed src/assets/dddepth-230.jpg
Binary file not shown.
Binary file removed src/assets/dddepth-346.jpg
Binary file not shown.
Binary file added src/assets/home-bg.webp
Binary file not shown.
Binary file added src/assets/login-bg.webp
Binary file not shown.
Binary file added src/assets/register-bg.webp
Binary file not shown.
5 changes: 4 additions & 1 deletion src/components/HomeComponent.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import React from 'react';
import NewPost from './common/NewPost'
import background from "../assets/home-bg.webp"
export default function HomeComponent( {currentUser}) {
return (
<div><NewPost currentUser={currentUser}></NewPost></div>
<div style={{background:`url(${background})`,backgroundRepeat: "no-repeat", backgroundSize: "cover"}}>
<NewPost currentUser={currentUser}></NewPost>
</div>
)
}
4 changes: 2 additions & 2 deletions src/components/Logincompo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import GoogleButton from 'react-google-button'
import { LoadingButton } from '@mui/lab'
import '../styles/Login.scss'
import logo from '../assets/logo.png'
import background from '../assets/dddepth-346.jpg'
import background from '../assets/login-bg.webp'
export default function Logincompo() {
let navigate = useNavigate();
const [credentails, setCredentials ]= useState({});
Expand All @@ -30,7 +30,7 @@ export default function Logincompo() {
};
const googleSignIn = () => {
let response = GoogleSignInAPI();
console.log(response);
// console.log(response);
}

return (
Expand Down
6 changes: 3 additions & 3 deletions src/components/RegisterComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { LoadingButton } from '@mui/lab';
import { getUID } from '../helpers/getUniqueID'
import '../styles/Login.scss'
import logo from '../assets/logo.png'
import background from '../assets/dddepth-152.jpg'
import background from '../assets/register-bg.webp'
export default function RegisterComponent() {
let navigate = useNavigate();
const [credentials, setCredentials ]= useState({});
Expand Down Expand Up @@ -43,10 +43,10 @@ export default function RegisterComponent() {
}
//mtahakhan2003 @gmail.com
return (
<div style={{background:`url(${background})`,backgroundRepeat: "no-repeat", backgroundSize: "cover"}} className="login-wrapper bg-no-repeat bg-cover">
<div style={{background:`url(${background})`,backgroundRepeat: "no-repeat", backgroundSize: "cover"}} className="login-wrapper">
<div className="header flex justify-center items-center gap-4">
<img src={logo} className="w-10 h-8" />
<span className='text-white font-bold text-3xl'>DevDeck</span>
<span className='brand mt-1'>DevDeck</span>
</div>
<div className="login-wrapper-inner">
<h1 className="heading">Sign In</h1>
Expand Down
2 changes: 1 addition & 1 deletion src/styles/Login.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ body {
}

.sub-heading {
color: white;
color: rgb(255, 255, 255);
font-weight: 800;

margin: 1em;
Expand Down

0 comments on commit 061d63e

Please sign in to comment.