Skip to content

Commit 067c239

Browse files
author
Ajit Kumar
committed
fix(UI and screenshots)
1 parent 54108d4 commit 067c239

File tree

5 files changed

+23
-14
lines changed

5 files changed

+23
-14
lines changed

client/main.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ table {
258258
margin: 10px auto;
259259
width: 100%;
260260
max-width: 600px;
261-
box-shadow: 0 0 4px 0.5px rgba(0, 0, 0, 0.5);
262261
border-radius: 4px;
263262
overflow: hidden;
264263
border-collapse: collapse;
@@ -274,9 +273,12 @@ table {
274273
}
275274

276275
tbody:only-child {
276+
tr:nth-child(even):not(:last-child) {
277+
border-bottom: solid 1px rgba(255, 255, 255, 0.5);
278+
}
279+
277280
tr:nth-child(even) {
278281
background-color: transparent;
279-
border-bottom: solid 1px rgba(255, 255, 255, 0.5);
280282
border-top: solid 1px rgba(255, 255, 255, 0.5);
281283
}
282284
}
@@ -314,7 +316,7 @@ form {
314316
select,
315317
input,
316318
button {
317-
height: 40px;
319+
height: 30px;
318320
border: none;
319321
border-radius: 4px;
320322
}
@@ -328,6 +330,7 @@ button {
328330
background-color: var(--button-color);
329331
color: var(--button-text-color);
330332
height: 40px;
333+
border-radius: 20px;
331334
margin: auto;
332335
max-width: 200px;
333336
margin-top: 10px;

client/pages/addPaymentMethod/index.js

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ export default async function AddPaymentMethod({ mode }) {
1919
<span className='error'>{errorText}</span>
2020
<span className='success'>{successText}</span>
2121
<div className='buttons-container'>
22-
<button type='submit'>Save</button>
22+
<button type='submit' style={{ width: '120px' }}>
23+
Save
24+
</button>
2325
</div>
2426
</div>,
2527
);
@@ -33,20 +35,22 @@ export default async function AddPaymentMethod({ mode }) {
3335
<Input type='text' name='bank_swift_code' placeholder='e.g. ICICINBBNRI' label='Bank Swift Code' />
3436

3537
<fieldset>
36-
<legend>Account type</legend>
38+
<legend style={{ marginBottom: '10px' }}>Account type</legend>
3739
<Input type='radio' name='bank_account_type' value='savings' label='Savings' checked={true} />
3840
<Input type='radio' name='bank_account_type' value='current' label='Current' />
3941
</fieldset>
4042

4143
<span className='error'>{errorText}</span>
4244
<span className='success'>{successText}</span>
4345

44-
<div style={{ marginTop: '20px' }}>
46+
<small style={{ marginTop: '20px', display: 'block' }}>
4547
<sup>*</sup> are required.
46-
</div>
48+
</small>
4749
<div className='buttons-container'>
48-
<button type='submit'>{buttonText}</button>
49-
<button type='reset' className='danger'>
50+
<button type='submit' style={{ width: '120px' }}>
51+
{buttonText}
52+
</button>
53+
<button type='reset' className='danger' style={{ width: '120px' }}>
5054
Reset
5155
</button>
5256
</div>
@@ -61,15 +65,17 @@ export default async function AddPaymentMethod({ mode }) {
6165
<span className='error'>{errorText}</span>
6266
<span className='success'>{successText}</span>
6367
<div className='buttons-container'>
64-
<button type='submit'>{buttonText}</button>
68+
<button type='submit' style={{ width: '120px' }}>
69+
{buttonText}
70+
</button>
6571
</div>
6672
</div>,
6773
);
6874
}
6975

7076
return (
7177
<section id='add-payment-method'>
72-
<h1>{title}</h1>
78+
<h1 style={{ textAlign: 'center' }}>{title}</h1>
7379
<AjaxForm
7480
ref={form}
7581
action='/api/user/payment-method'

client/pages/earnings/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default async function Earnings({ user, threshold }) {
3737

3838
return (
3939
<section id='earnings'>
40-
<h2>Earnings</h2>
40+
<h2 style={{ textAlign: 'center' }}>Earnings</h2>
4141
<div className='table-wrapper'>
4242
<table className='info'>
4343
<tbody>

client/pages/loginUser/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function LoginUser({ redirect }) {
2626

2727
<span className='success'>{successText}</span>
2828
<span className='error'>{errorText}</span>
29-
<button ref={button} type='submit'>
29+
<button ref={button} type='submit' style={{ width: '120px' }}>
3030
Login
3131
</button>
3232
<div style={{ margin: 'auto' }}>

client/pages/publishPlugin/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default async function PublishPlugin({ mode = 'publish', id }) {
4444

4545
return (
4646
<section id='publish-plugin'>
47-
<h1>{capitalize(mode)} plugin</h1>
47+
<h1 style={{ textAlign: 'center' }}>{capitalize(mode)} plugin</h1>
4848
<AjaxForm
4949
action='/api/plugin'
5050
method={method}

0 commit comments

Comments
 (0)