Skip to content

Commit e9fab26

Browse files
style: updated css in guest login, header, loader, reports & update profile img
1 parent 3216a1d commit e9fab26

File tree

14 files changed

+44
-39
lines changed

14 files changed

+44
-39
lines changed

apps/OpenSign/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!-- <link rel="icon" type="image/png"
88
href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAALlJREFUaEPtmN0NwjAMBpNxYDKYiM1Yp90g93CKStH1NbIdfz921Dker2Pc+Js1cDF7MXAxASMGYkAigBI6vh9ZwoXP53uZoAYcvhwdA3mAVbI2aSb+9zFKU4IURB6j/HoPUIEa2G3iGIAhQQDlAUIoE2diabIklISS0NoFPebo77RF6OenEF3QntOm128he0GKrwHyACFoz2MgBqSGkpAEcHs47oHtN5AFakACqMNjQEMoE8SABFCHn4HE2zGHSLeEAAAAAElFTkSuQmCC"
99
sizes="40x40" /> -->
10-
<meta name="viewport" content="width=device-width, initial-scale=1" />
10+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
1111
<meta name="theme-color" content="#000000" />
1212
<meta name="description" content="The fastest way to sign PDFs & request signatures from others" />
1313
<!-- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> -->
7.6 KB
Loading

apps/OpenSign/src/components/Footer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const Footer = () => {
5858
<button
5959
className={`${
6060
showButton ? "block" : "hidden"
61-
} fixed bottom-4 right-4 px-3 p-2 text-xl bg-blue-500 text-white rounded focus:outline-none`}
61+
} fixed bottom-4 right-4 px-3 p-2 text-xl op-bg-secondary text-white rounded focus:outline-none`}
6262
onClick={scrollToTop}
6363
>
6464
<i className="fa-solid fa-angle-up"></i>

apps/OpenSign/src/components/Header.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const Header = ({ showSidebar }) => {
9696
<div className="op-navbar bg-base-100 shadow">
9797
<div className="flex-none">
9898
<button
99-
className="op-btn op-btn-square op-btn-ghost focus:outline-none"
99+
className="op-btn op-btn-square op-btn-ghost focus:outline-none hover:bg-transparent op-btn-sm no-animation"
100100
onClick={showSidebar}
101101
>
102102
<i className="fa-solid fa-bars text-xl text-base-content"></i>
@@ -151,7 +151,11 @@ const Header = ({ showSidebar }) => {
151151
</div>
152152
)}
153153
<div className="op-dropdown op-dropdown-end" id="profile-menu">
154-
<div tabIndex={0} role="button" className="op-btn op-btn-ghost">
154+
<div
155+
tabIndex={0}
156+
role="button"
157+
className="op-btn op-btn-ghost op-btn-xs w-[10px] h-[20px] hover:bg-transparent"
158+
>
155159
<i
156160
tabIndex={0}
157161
role="button"

apps/OpenSign/src/components/dashboard/DashboardButton.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ const DashboardButton = (props) => {
3535
} text-[25px] lg:text-[30px]`}
3636
></i>
3737
</span>
38-
<div className="op-card-title text-lg ml-3 text-base-content">
39-
{props.Label}
40-
</div>
38+
<div className=" text-lg ml-3 text-base-content">{props.Label}</div>
4139
</div>
4240
</div>
4341
);

apps/OpenSign/src/components/pdf/PdfHeader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ function Header({
198198
)}
199199
<DropdownMenu.Root>
200200
<DropdownMenu.Trigger asChild>
201-
<div className="font-[650] text-[18px] px-2 ml-[4px] op-link op-link-info no-underline">
201+
<div className="font-[650] text-[18px] px-2 ml-[4px] text-base-content no-underline">
202202
<i
203203
className="fa fa-ellipsis-v"
204204
aria-hidden="true"

apps/OpenSign/src/components/pdf/TextFontSetting.js

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
import React from "react";
22
import ModalUi from "../../primitives/ModalUi";
33
import { fontColorArr, fontsizeArr } from "../../constant/Utils";
4-
import { themeColor } from "../../constant/const";
54

65
function TextFontSetting(props) {
76
return (
87
<ModalUi
98
headerColor={"#dc3545"}
109
isOpen={props.isTextSetting}
10+
reduceWidth={"max-w-[350px]"}
1111
title={"Text field"}
1212
handleClose={() => {
1313
props.setIsTextSetting(false);
1414
}}
1515
>
16-
<div style={{ height: "100%", padding: 20 }}>
17-
<div className="flex items-center gap-4">
18-
<span>Font size: </span>
16+
<div className="h-full p-[20px]">
17+
<div className="flex items-center">
18+
<span>Font size:</span>
1919
<select
20-
className="border-[1px] border-gray-300 px-[5px]"
20+
className="ml-[7px] op-select op-select-bordered op-select-sm focus:outline-none hover:border-base-content text-xs"
2121
value={
2222
props.fontSize || props.currWidgetsDetails?.options?.fontSize
2323
}
2424
onChange={(e) => props.setFontSize(e.target.value)}
2525
>
2626
{fontsizeArr.map((size, ind) => {
2727
return (
28-
<option style={{ fontSize: "13px" }} value={size} key={ind}>
28+
<option className="text-[13px]" value={size} key={ind}>
2929
{size}
3030
</option>
3131
);
3232
})}
3333
</select>
34-
<div className="flex flex-row gap-1">
34+
<div className="flex flex-row gap-1 items-center ml-4">
3535
<span>color: </span>
3636
<select
3737
value={
3838
props.fontColor || props.currWidgetsDetails?.options?.fontColor
3939
}
4040
onChange={(e) => props.setFontColor(e.target.value)}
41-
className="border-[1px] border-gray-300 px-[2px] ml-[10px] "
41+
className="ml-[7px] op-select op-select-bordered op-select-sm focus:outline-none hover:border-base-content text-xs"
4242
>
4343
{fontColorArr.map((color, ind) => {
4444
return (
@@ -54,17 +54,16 @@ function TextFontSetting(props) {
5454
props.fontColor ||
5555
props.currWidgetsDetails?.options?.fontColor
5656
}}
57-
className="w-5 h-[19px]"
57+
className="w-5 h-[19px] ml-1"
5858
></span>
5959
</div>
6060
</div>
6161

62-
<div className="h-[1px] bg-[#9f9f9f] w-full mt-[15px] mb-[15px]"></div>
62+
<div className="h-[1px] bg-[#9f9f9f] w-full mt-[15px] mb-2"></div>
6363
<button
6464
onClick={() => props.handleSaveFontSize()}
65-
style={{ background: themeColor }}
6665
type="button"
67-
className="finishBtn "
66+
className="op-btn op-btn-primary mt-2"
6867
>
6968
save
7069
</button>

apps/OpenSign/src/components/sidebar/Sidebar.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ const Sidebar = ({ isOpen, closeSidebar }) => {
1212
const [submenuOpen, setSubmenuOpen] = useState(false);
1313
let username = localStorage.getItem("username");
1414
const image = localStorage.getItem("profileImg") || dp;
15-
const tenantname = localStorage.getItem("TenantName");
15+
const tenantname = localStorage.getItem("Extand_Class")
16+
? JSON.parse(localStorage.getItem("Extand_Class"))?.[0]?.Company
17+
: "";
1618

1719
useEffect(() => {
1820
if (localStorage.getItem("accesstoken")) {

apps/OpenSign/src/constant/Utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,14 +376,14 @@ export const addWidgetOptions = (type) => {
376376
};
377377
export const getWidgetType = (item, isHeader) => {
378378
return (
379-
<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">
379+
<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">
380380
<div className="w-full h-full flex md:justify-between items-center">
381381
<div className="flex justify-start items-center text-[13px] ml-1">
382382
{!isMobile && <i className="fa-sharp fa-solid fa-grip-vertical"></i>}
383383
<span
384384
className={`${
385-
isHeader && "md:text-[8px] lg:text-[15px]"
386-
} md:inline-block text-center text-[15px] ml-[5px] font-semibold`}
385+
isHeader && "md:text-[8px] lg:text-[15px]"
386+
} md:inline-block text-center text-[15px] ml-[5px] font-semibold pr-1 md:pr-0`}
387387
>
388388
{item.type}
389389
</span>

apps/OpenSign/src/pages/GuestLogin.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,33 +191,33 @@ function GuestLogin() {
191191
<div className="m-1 md:m-2 p-[30px] text-base-content bg-base-100 op-card shadow-md">
192192
<div className="md:w-[250px] md:h-[66px] inline-block overflow-hidden mt-2 mb-11">
193193
{appLogo && (
194-
<img src={appLogo} className="object-contain h-full" alt="logo" />
194+
<img src={appLogo} className="object-contain" alt="logo" />
195195
)}
196196
</div>
197197
{contactId ? (
198198
<>
199199
{!EnterOTP ? (
200200
<div className="w-full md:w-[50%] text-base-content">
201201
<h1 className="text-2xl md:text-[30px]">Welcome Back!</h1>
202-
<legend className="text-[12px] text-[#878787] mt-2">
202+
<legend className="text-[12px] text-[#878787] mt-2 mb-1">
203203
Verification code is sent to your email
204204
</legend>
205205
<div className="p-[20px] outline outline-1 outline-slate-300/50 my-2 op-card shadow-md">
206206
<input
207207
type="email"
208208
name="mobile"
209209
value={email}
210-
className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs"
210+
className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full disabled:text-[#5c5c5c] text-xs"
211211
disabled
212212
/>
213213
</div>
214-
<div className="mt-2">
214+
<div className="mt-3">
215215
<button
216216
className="op-btn op-btn-primary"
217217
onClick={(e) => handleSendOTPBtn(e)}
218218
disabled={loading}
219219
>
220-
{loading ? "Loading..." : "Send OTP"}
220+
{loading ? "Loading..." : "Get verification code"}
221221
</button>
222222
</div>
223223
</div>
@@ -228,7 +228,7 @@ function GuestLogin() {
228228
>
229229
<h1 className="text-2xl md:text-[30px]">Welcome Back!</h1>
230230
<legend className="text-[12px] text-[#878787] mt-2">
231-
You will get a OTP via Email
231+
You will get a verification code via Email
232232
</legend>
233233
<div className="p-[20px] pt-[15px] outline outline-1 outline-slate-300/50 op-card my-2 shadow-md">
234234
<p className="text-sm">Enter Verification Code</p>
@@ -240,7 +240,7 @@ function GuestLogin() {
240240
onChange={(e) => setOTP(e.target.value)}
241241
/>
242242
</div>
243-
<div className="mt-2">
243+
<div className="mt-2.5">
244244
<button
245245
className="op-btn op-btn-primary"
246246
type="submit"
@@ -298,7 +298,7 @@ function GuestLogin() {
298298
disabled
299299
/>
300300
</div>
301-
<div className="mb-2">
301+
<div className="mt-2.5">
302302
<label
303303
htmlFor="phone"
304304
className="block text-xs text-gray-700 font-semibold"

0 commit comments

Comments
 (0)