style: updated css in guest login, header, loader, reports & update profile img

This commit is contained in:
prafull-opensignlabs
2024-06-19 18:36:48 +05:30
parent 3216a1d4ae
commit e9fab26ef3
14 changed files with 44 additions and 39 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
<!-- <link rel="icon" type="image/png" <!-- <link rel="icon" type="image/png"
href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAALlJREFUaEPtmN0NwjAMBpNxYDKYiM1Yp90g93CKStH1NbIdfz921Dker2Pc+Js1cDF7MXAxASMGYkAigBI6vh9ZwoXP53uZoAYcvhwdA3mAVbI2aSb+9zFKU4IURB6j/HoPUIEa2G3iGIAhQQDlAUIoE2diabIklISS0NoFPebo77RF6OenEF3QntOm128he0GKrwHyACFoz2MgBqSGkpAEcHs47oHtN5AFakACqMNjQEMoE8SABFCHn4HE2zGHSLeEAAAAAElFTkSuQmCC" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAALlJREFUaEPtmN0NwjAMBpNxYDKYiM1Yp90g93CKStH1NbIdfz921Dker2Pc+Js1cDF7MXAxASMGYkAigBI6vh9ZwoXP53uZoAYcvhwdA3mAVbI2aSb+9zFKU4IURB6j/HoPUIEa2G3iGIAhQQDlAUIoE2diabIklISS0NoFPebo77RF6OenEF3QntOm128he0GKrwHyACFoz2MgBqSGkpAEcHs47oHtN5AFakACqMNjQEMoE8SABFCHn4HE2zGHSLeEAAAAAElFTkSuQmCC"
sizes="40x40" /> --> sizes="40x40" /> -->
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="theme-color" content="#000000" /> <meta name="theme-color" content="#000000" />
<meta name="description" content="The fastest way to sign PDFs & request signatures from others" /> <meta name="description" content="The fastest way to sign PDFs & request signatures from others" />
<!-- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> --> <!-- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> -->
Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 13 KiB

+1 -1
View File
@@ -58,7 +58,7 @@ const Footer = () => {
<button <button
className={`${ className={`${
showButton ? "block" : "hidden" showButton ? "block" : "hidden"
} fixed bottom-4 right-4 px-3 p-2 text-xl bg-blue-500 text-white rounded focus:outline-none`} } fixed bottom-4 right-4 px-3 p-2 text-xl op-bg-secondary text-white rounded focus:outline-none`}
onClick={scrollToTop} onClick={scrollToTop}
> >
<i className="fa-solid fa-angle-up"></i> <i className="fa-solid fa-angle-up"></i>
+6 -2
View File
@@ -96,7 +96,7 @@ const Header = ({ showSidebar }) => {
<div className="op-navbar bg-base-100 shadow"> <div className="op-navbar bg-base-100 shadow">
<div className="flex-none"> <div className="flex-none">
<button <button
className="op-btn op-btn-square op-btn-ghost focus:outline-none" className="op-btn op-btn-square op-btn-ghost focus:outline-none hover:bg-transparent op-btn-sm no-animation"
onClick={showSidebar} onClick={showSidebar}
> >
<i className="fa-solid fa-bars text-xl text-base-content"></i> <i className="fa-solid fa-bars text-xl text-base-content"></i>
@@ -151,7 +151,11 @@ const Header = ({ showSidebar }) => {
</div> </div>
)} )}
<div className="op-dropdown op-dropdown-end" id="profile-menu"> <div className="op-dropdown op-dropdown-end" id="profile-menu">
<div tabIndex={0} role="button" className="op-btn op-btn-ghost"> <div
tabIndex={0}
role="button"
className="op-btn op-btn-ghost op-btn-xs w-[10px] h-[20px] hover:bg-transparent"
>
<i <i
tabIndex={0} tabIndex={0}
role="button" role="button"
@@ -35,9 +35,7 @@ const DashboardButton = (props) => {
} text-[25px] lg:text-[30px]`} } text-[25px] lg:text-[30px]`}
></i> ></i>
</span> </span>
<div className="op-card-title text-lg ml-3 text-base-content"> <div className=" text-lg ml-3 text-base-content">{props.Label}</div>
{props.Label}
</div>
</div> </div>
</div> </div>
); );
@@ -198,7 +198,7 @@ function Header({
)} )}
<DropdownMenu.Root> <DropdownMenu.Root>
<DropdownMenu.Trigger asChild> <DropdownMenu.Trigger asChild>
<div className="font-[650] text-[18px] px-2 ml-[4px] op-link op-link-info no-underline"> <div className="font-[650] text-[18px] px-2 ml-[4px] text-base-content no-underline">
<i <i
className="fa fa-ellipsis-v" className="fa fa-ellipsis-v"
aria-hidden="true" aria-hidden="true"
@@ -1,23 +1,23 @@
import React from "react"; import React from "react";
import ModalUi from "../../primitives/ModalUi"; import ModalUi from "../../primitives/ModalUi";
import { fontColorArr, fontsizeArr } from "../../constant/Utils"; import { fontColorArr, fontsizeArr } from "../../constant/Utils";
import { themeColor } from "../../constant/const";
function TextFontSetting(props) { function TextFontSetting(props) {
return ( return (
<ModalUi <ModalUi
headerColor={"#dc3545"} headerColor={"#dc3545"}
isOpen={props.isTextSetting} isOpen={props.isTextSetting}
reduceWidth={"max-w-[350px]"}
title={"Text field"} title={"Text field"}
handleClose={() => { handleClose={() => {
props.setIsTextSetting(false); props.setIsTextSetting(false);
}} }}
> >
<div style={{ height: "100%", padding: 20 }}> <div className="h-full p-[20px]">
<div className="flex items-center gap-4"> <div className="flex items-center">
<span>Font size: </span> <span>Font size:</span>
<select <select
className="border-[1px] border-gray-300 px-[5px]" className="ml-[7px] op-select op-select-bordered op-select-sm focus:outline-none hover:border-base-content text-xs"
value={ value={
props.fontSize || props.currWidgetsDetails?.options?.fontSize props.fontSize || props.currWidgetsDetails?.options?.fontSize
} }
@@ -25,20 +25,20 @@ function TextFontSetting(props) {
> >
{fontsizeArr.map((size, ind) => { {fontsizeArr.map((size, ind) => {
return ( return (
<option style={{ fontSize: "13px" }} value={size} key={ind}> <option className="text-[13px]" value={size} key={ind}>
{size} {size}
</option> </option>
); );
})} })}
</select> </select>
<div className="flex flex-row gap-1"> <div className="flex flex-row gap-1 items-center ml-4">
<span>color: </span> <span>color: </span>
<select <select
value={ value={
props.fontColor || props.currWidgetsDetails?.options?.fontColor props.fontColor || props.currWidgetsDetails?.options?.fontColor
} }
onChange={(e) => props.setFontColor(e.target.value)} onChange={(e) => props.setFontColor(e.target.value)}
className="border-[1px] border-gray-300 px-[2px] ml-[10px] " className="ml-[7px] op-select op-select-bordered op-select-sm focus:outline-none hover:border-base-content text-xs"
> >
{fontColorArr.map((color, ind) => { {fontColorArr.map((color, ind) => {
return ( return (
@@ -54,17 +54,16 @@ function TextFontSetting(props) {
props.fontColor || props.fontColor ||
props.currWidgetsDetails?.options?.fontColor props.currWidgetsDetails?.options?.fontColor
}} }}
className="w-5 h-[19px]" className="w-5 h-[19px] ml-1"
></span> ></span>
</div> </div>
</div> </div>
<div className="h-[1px] bg-[#9f9f9f] w-full mt-[15px] mb-[15px]"></div> <div className="h-[1px] bg-[#9f9f9f] w-full mt-[15px] mb-2"></div>
<button <button
onClick={() => props.handleSaveFontSize()} onClick={() => props.handleSaveFontSize()}
style={{ background: themeColor }}
type="button" type="button"
className="finishBtn " className="op-btn op-btn-primary mt-2"
> >
save save
</button> </button>
@@ -12,7 +12,9 @@ const Sidebar = ({ isOpen, closeSidebar }) => {
const [submenuOpen, setSubmenuOpen] = useState(false); const [submenuOpen, setSubmenuOpen] = useState(false);
let username = localStorage.getItem("username"); let username = localStorage.getItem("username");
const image = localStorage.getItem("profileImg") || dp; const image = localStorage.getItem("profileImg") || dp;
const tenantname = localStorage.getItem("TenantName"); const tenantname = localStorage.getItem("Extand_Class")
? JSON.parse(localStorage.getItem("Extand_Class"))?.[0]?.Company
: "";
useEffect(() => { useEffect(() => {
if (localStorage.getItem("accesstoken")) { if (localStorage.getItem("accesstoken")) {
+3 -3
View File
@@ -376,14 +376,14 @@ export const addWidgetOptions = (type) => {
}; };
export const getWidgetType = (item, isHeader) => { export const getWidgetType = (item, isHeader) => {
return ( return (
<div className="op-btn w-fit md:w-[100%] op-btn-primary op-btn-outline op-btn-sm focus:outline-none outline outline-[1.5px] ml-[6px] md:ml-0 p-0 overflow-hidden"> <div className="op-btn w-fit md:w-[100%] op-btn-primary op-btn-outline op-btn-sm focus:outline-none outline outline-[1.5px] ml-[6px] md:ml-0 p-0 overflow-hidden">
<div className="w-full h-full flex md:justify-between items-center"> <div className="w-full h-full flex md:justify-between items-center">
<div className="flex justify-start items-center text-[13px] ml-1"> <div className="flex justify-start items-center text-[13px] ml-1">
{!isMobile && <i className="fa-sharp fa-solid fa-grip-vertical"></i>} {!isMobile && <i className="fa-sharp fa-solid fa-grip-vertical"></i>}
<span <span
className={`${ className={`${
isHeader && "md:text-[8px] lg:text-[15px]" isHeader && "md:text-[8px] lg:text-[15px]"
} md:inline-block text-center text-[15px] ml-[5px] font-semibold`} } md:inline-block text-center text-[15px] ml-[5px] font-semibold pr-1 md:pr-0`}
> >
{item.type} {item.type}
</span> </span>
+8 -8
View File
@@ -191,7 +191,7 @@ function GuestLogin() {
<div className="m-1 md:m-2 p-[30px] text-base-content bg-base-100 op-card shadow-md"> <div className="m-1 md:m-2 p-[30px] text-base-content bg-base-100 op-card shadow-md">
<div className="md:w-[250px] md:h-[66px] inline-block overflow-hidden mt-2 mb-11"> <div className="md:w-[250px] md:h-[66px] inline-block overflow-hidden mt-2 mb-11">
{appLogo && ( {appLogo && (
<img src={appLogo} className="object-contain h-full" alt="logo" /> <img src={appLogo} className="object-contain" alt="logo" />
)} )}
</div> </div>
{contactId ? ( {contactId ? (
@@ -199,7 +199,7 @@ function GuestLogin() {
{!EnterOTP ? ( {!EnterOTP ? (
<div className="w-full md:w-[50%] text-base-content"> <div className="w-full md:w-[50%] text-base-content">
<h1 className="text-2xl md:text-[30px]">Welcome Back!</h1> <h1 className="text-2xl md:text-[30px]">Welcome Back!</h1>
<legend className="text-[12px] text-[#878787] mt-2"> <legend className="text-[12px] text-[#878787] mt-2 mb-1">
Verification code is sent to your email Verification code is sent to your email
</legend> </legend>
<div className="p-[20px] outline outline-1 outline-slate-300/50 my-2 op-card shadow-md"> <div className="p-[20px] outline outline-1 outline-slate-300/50 my-2 op-card shadow-md">
@@ -207,17 +207,17 @@ function GuestLogin() {
type="email" type="email"
name="mobile" name="mobile"
value={email} value={email}
className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs" className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full disabled:text-[#5c5c5c] text-xs"
disabled disabled
/> />
</div> </div>
<div className="mt-2"> <div className="mt-3">
<button <button
className="op-btn op-btn-primary" className="op-btn op-btn-primary"
onClick={(e) => handleSendOTPBtn(e)} onClick={(e) => handleSendOTPBtn(e)}
disabled={loading} disabled={loading}
> >
{loading ? "Loading..." : "Send OTP"} {loading ? "Loading..." : "Get verification code"}
</button> </button>
</div> </div>
</div> </div>
@@ -228,7 +228,7 @@ function GuestLogin() {
> >
<h1 className="text-2xl md:text-[30px]">Welcome Back!</h1> <h1 className="text-2xl md:text-[30px]">Welcome Back!</h1>
<legend className="text-[12px] text-[#878787] mt-2"> <legend className="text-[12px] text-[#878787] mt-2">
You will get a OTP via Email You will get a verification code via Email
</legend> </legend>
<div className="p-[20px] pt-[15px] outline outline-1 outline-slate-300/50 op-card my-2 shadow-md"> <div className="p-[20px] pt-[15px] outline outline-1 outline-slate-300/50 op-card my-2 shadow-md">
<p className="text-sm">Enter Verification Code</p> <p className="text-sm">Enter Verification Code</p>
@@ -240,7 +240,7 @@ function GuestLogin() {
onChange={(e) => setOTP(e.target.value)} onChange={(e) => setOTP(e.target.value)}
/> />
</div> </div>
<div className="mt-2"> <div className="mt-2.5">
<button <button
className="op-btn op-btn-primary" className="op-btn op-btn-primary"
type="submit" type="submit"
@@ -298,7 +298,7 @@ function GuestLogin() {
disabled disabled
/> />
</div> </div>
<div className="mb-2"> <div className="mt-2.5">
<label <label
htmlFor="phone" htmlFor="phone"
className="block text-xs text-gray-700 font-semibold" className="block text-xs text-gray-700 font-semibold"
+2
View File
@@ -1103,6 +1103,7 @@ function Login() {
type="email" type="email"
className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs" className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs"
name="email" name="email"
autoComplete="username"
value={state.email} value={state.email}
onChange={handleChange} onChange={handleChange}
required required
@@ -1122,6 +1123,7 @@ function Login() {
className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs" className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs"
name="password" name="password"
value={state.password} value={state.password}
autoComplete="current-password"
onChange={handleChange} onChange={handleChange}
required required
/> />
@@ -1583,11 +1583,11 @@ const ReportTable = (props) => {
</tbody> </tbody>
</table> </table>
</div> </div>
<div className="op-join flex flex-wrap items-center p-2 "> <div className="op-join flex flex-wrap items-center p-2">
{props.List.length > props.docPerPage && ( {props.List.length > props.docPerPage && (
<button <button
onClick={() => paginateBack()} onClick={() => paginateBack()}
className="op-join-item op-btn " className="op-join-item op-btn op-btn-sm"
> >
Prev Prev
</button> </button>
@@ -1599,7 +1599,7 @@ const ReportTable = (props) => {
disabled={x === "..."} disabled={x === "..."}
className={`${ className={`${
x === currentPage ? "op-btn-active" : "" x === currentPage ? "op-btn-active" : ""
} op-join-item op-btn`} } op-join-item op-btn op-btn-sm`}
> >
{x} {x}
</button> </button>
@@ -1607,7 +1607,7 @@ const ReportTable = (props) => {
{props.List.length > props.docPerPage && ( {props.List.length > props.docPerPage && (
<button <button
onClick={() => paginateFront()} onClick={() => paginateFront()}
className="op-join-item op-btn" className="op-join-item op-btn op-btn-sm"
> >
Next Next
</button> </button>
@@ -1616,7 +1616,7 @@ const ReportTable = (props) => {
{props.List?.length <= 0 && ( {props.List?.length <= 0 && (
<div <div
className={`${ className={`${
isDashboard ? "h-[330px]" : "" isDashboard ? "h-[317px]" : ""
} flex flex-col items-center justify-center w-ful bg-base-100 text-base-content rounded-xl py-4`} } flex flex-col items-center justify-center w-ful bg-base-100 text-base-content rounded-xl py-4`}
> >
<div className="w-[60px] h-[60px] overflow-hidden"> <div className="w-[60px] h-[60px] overflow-hidden">
+1 -1
View File
@@ -2,7 +2,7 @@ import React from "react";
const Loader = () => { const Loader = () => {
return ( return (
<div className="op-loading op-loading-infinity w-[4rem] text-accent"></div> <div className="op-loading op-loading-infinity w-[4rem] text-neutral"></div>
); );
}; };
+1 -1
View File
@@ -49,7 +49,7 @@ module.exports = {
accent: "#E10032", accent: "#E10032",
"accent-content": "#ffd8d5", "accent-content": "#ffd8d5",
neutral: "#99c2ff", neutral: "#99c2ff",
"neutral-content": "#f1f1f1", "neutral-content": "#31353b",
"base-100": "#ffffff", "base-100": "#ffffff",
"base-200": "#dedede", "base-200": "#dedede",
"base-300": "#bebebe", "base-300": "#bebebe",