updated logo section

This commit is contained in:
print-signs 2023-12-06 12:58:25 +05:30
parent 3eb24add8b
commit ae714ac485
2 changed files with 18 additions and 7 deletions

View File

@ -73,9 +73,9 @@ const AppSidebar = () => {
> >
{/* <CIcon className="sidebar-brand-full" icon={logoNegative} height={35} /> */} {/* <CIcon className="sidebar-brand-full" icon={logoNegative} height={35} /> */}
{HeaderlogoUrl ? ( {AdminlogoUrl ? (
<Link to="/dashboard"> <Link to="/dashboard">
<img src={HeaderlogoUrl} alt="" width="100%" /> <img src={AdminlogoUrl} alt="" width="100%" />
</Link> </Link>
) : { AppName } ? ( ) : { AppName } ? (
<h2>The Solar Sign </h2> <h2>The Solar Sign </h2>

View File

@ -71,7 +71,7 @@ function Logo() {
swal("Success!", res.data.message, res.data.status); swal("Success!", res.data.message, res.data.status);
}) })
.catch((error) => { .catch((error) => {
console.log(error); setLoading(false);
}); });
} }
@ -96,8 +96,9 @@ function Logo() {
<label <label
htmlFor="basicpill-phoneno-input" htmlFor="basicpill-phoneno-input"
className="label-100 mt-3" className="label-100 mt-3"
style={{ fontWeight: "bold" }}
> >
{/* Logo htmlFor Website Header(148 x 48 px) */} Header Logo for user Website <br />
</label> </label>
<div> <div>
<input <input
@ -129,7 +130,7 @@ function Logo() {
? HeaderlogoUrl.image ? HeaderlogoUrl.image
: Headerlogo : Headerlogo
} }
alt="header logo" alt=""
/> />
) : ( ) : (
"" ""
@ -138,9 +139,12 @@ function Logo() {
<label <label
htmlFor="basicpill-phoneno-input" htmlFor="basicpill-phoneno-input"
className="label-100 mt-3" className="label-100 mt-3"
style={{ fontWeight: "bold" }}
> >
{/* Logo htmlFor Website Footer(148 x 48 px) */} {/* Logo htmlFor Website Footer(148 x 48 px) */}
Footer logo for user Website <br />
</label> </label>
<br />
<input <input
type="file" type="file"
name="Logo htmlFor Website Footer(148 x 48 px)" name="Logo htmlFor Website Footer(148 x 48 px)"
@ -166,7 +170,7 @@ function Logo() {
? FooterlogoUrl.image ? FooterlogoUrl.image
: Footerlogo : Footerlogo
} }
alt="Footer logo" alt=""
/> />
) : ( ) : (
"" ""
@ -174,8 +178,10 @@ function Logo() {
<label <label
htmlFor="basicpill-phoneno-input" htmlFor="basicpill-phoneno-input"
className="label-100 mt-2 row ms-1" className="label-100 mt-2 row ms-1"
style={{ fontWeight: "bold" }}
> >
{/* Logo htmlFor Admin Header(148 x 48 px) */} {/* Logo htmlFor Admin Header(148 x 48 px) */}
Logo for admin website <br />
</label> </label>
<input <input
type="file" type="file"
@ -202,7 +208,7 @@ function Logo() {
? AdminlogoUrl.image ? AdminlogoUrl.image
: Adminlogo : Adminlogo
} }
alt="Admin logo" alt=""
/> />
) : ( ) : (
"" ""
@ -216,6 +222,11 @@ function Logo() {
<div className="form-group text-left"> <div className="form-group text-left">
<button <button
type="button" type="button"
disabled={
Adminlogo === "" ||
Footerlogo === "" ||
Headerlogo === ""
}
onClick={handelSubmit} onClick={handelSubmit}
className="btn btn-success btn-login waves-effect waves-light mr-3 pt-2 pb-2 pr-4 pl-4" className="btn btn-success btn-login waves-effect waves-light mr-3 pt-2 pb-2 pr-4 pl-4"
> >