Skip to content

Changed:#14

Open
tkuzmina11 wants to merge 4 commits intozaverden:mainfrom
tkuzmina11:tatnia
Open

Changed:#14
tkuzmina11 wants to merge 4 commits intozaverden:mainfrom
tkuzmina11:tatnia

Conversation

@tkuzmina11
Copy link
Copy Markdown

*View list event;
*Form event;
bugFix #1

Copy link
Copy Markdown
Owner

@zaverden zaverden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your submission.

There are 2 main reasons of my comments

  1. Outdated design document. Unfortunately I did not ask designer to update the document according the latest view
  2. changes in another modules. I don't want to have extra changes that are not related to the fixing issue. you can save these changes for another PR.

and before making changes by my comments please rebase onto tag 1.4.0 - there are som changes you don't have in your branch.

Comment thread client/src/kit/button.tsx Outdated
border: none;
border-radius: 4px;
font-weight: var(--fw-b);
font-weight: var(--fw-th);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this does not match design. buttons has 700 by default

Comment thread client/src/kit/button.tsx
Comment on lines +35 to +39
transition: 0.3s;

&:hover {
opacity: 0.5;
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's nice to have this extra interactivity on hover. but I don't like to achieve it by opacity.

I'd rather go with box-shadow or/and separate color for hover. revert for now

Comment on lines 7 to 25
const Logo = styled.img`
display: block;
margin: 0 auto;
max-width: 60%;
max-width: 210px;
width: 100%;
height: auto;
`;

const Slogan = styled.p`
display: block;
margin: 0 auto;
margin: 15px auto 40px;
width: fit-content;
font-size: var(--fs-s);
line-height: 2em;

font-weight: var(--fw-th);
line-height: 1.2;

& > span {
color: var(--fg-a);
font-weight: var(--fw-b);
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see why there are any changes in this file. please revert them

Comment thread client/src/components/auth-page.tsx Outdated
Comment on lines +19 to +29

& > h1 {
margin: 0 auto 25px;
font-size: 24px;
font-weight: bold;
}

& > p {
margin-top: 10px;
font-weight: var(--fw-th);
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these changes does not relate to the issue nor they match design. please revert

Comment thread client/src/components/auth-page.tsx Outdated
Comment on lines +7 to +9
width: 22px;
height: 22px;
margin-right: 5px;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these changes does not relate to the issue nor they match design. please revert

return (
<div
className="ql-editor"
style={{ padding: "0", fontWeight: "500", fontSize: "18px", color: "#202020" }}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use styled for styles override. and let's remove side paddings only. the rest look fine already

Comment thread client/src/pages/events/event-view.tsx Outdated
Comment on lines +12 to +20
font-size: var(--fs-xs);
color: var(--fg-m);
`;

const Field = styled.p`
font-size: var(--fs-xl);
color: var(--fg-p);
margin-top: 0;
margin-bottom: 16px;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for these changes

Comment thread client/src/pages/events/event-form.tsx Outdated
disabled={isSaving}
style={{ height: "44px", marginTop: "18px", background: "#515151" }}>
Create event
</Button>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expect to see these changes for #2. please save these changes for another PR

Comment thread client/src/pages/events/join-event.tsx Outdated
{join.isError ? <p>{join.error?.message}</p> : null}
{join.isSuccess ? (
<p>You have successfully joined</p>
<JoinedSuccessfully>You have successfully joined</JoinedSuccessfully>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sure the changes in this file don't belong to this PR. please revert them

Comment thread client/src/pages/events/join-event.tsx Outdated
font-weight: normal;
color: #00A52E;
background: #E4FFE3;
`;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this panel is out of app styles.

proper success message is in confirm-email-page

*View list event;
*Form event;
bugFix zaverden#1
@tkuzmina11 tkuzmina11 requested a review from zaverden August 9, 2021 06:03
font-size: var(--fs-s);
line-height: 2em;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove these 2 spaces

Comment thread client/src/kit/colors.ts
--bg-p: #00AA98;
--bg-s: #515151;
--bg-m: #FFFFFF;
--bg-l: #00B5A1;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these new colors are not used. remove them

</button>
</form>
<form onSubmit={onFormSubmit}>
<h2>Create New Event</h2>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this header

<Button type="submit"
disabled={isSaving}
style={{ height: "44px", marginTop: "18px", background: "var(--bg-s)" }}>
Create event
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user see this button when creating and editing. It's confusing to see "Create event" when I'm editing. Rename it to "Save event"

</div>
<Button type="submit"
disabled={isSaving}
style={{ height: "44px", marginTop: "18px", background: "var(--bg-s)" }}>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not set color in style. there is secondary prop to set this color.

and remove height - it is ok how it looks by default from ui-kit

Comment thread client/src/kit/input.ts

export const Input = styled.input`
width: 100%;
height: 40px;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the idea of fixing a height. remove this, it looks good enough

Comment thread client/src/kit/input.ts
box-sizing: border-box;
padding: 1em;
font-size: var(--fs-m);
background: transparent;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why we should set this

Comment thread client/src/kit/link.tsx

export const Anchor = styled("a")`
color: var(--fg-a);
font-weight: var(--fw-b);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should not be bold by default. it is bold only in events list - set it there

Comment thread client/src/kit/link.tsx
export const Anchor = styled("a")`
color: var(--fg-a);
font-weight: var(--fw-b);
font-size: var(--fs-m);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

font size should inherit from context

Comment thread client/src/kit/link.tsx
font-size: var(--fs-m);
text-decoration: none;
display: inline-block;
padding: 0 0 11px;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

display and padding don't make sense here for me. give a reason for these changes or revert them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants