Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload images during profile editing #200

Open
AnastasiiaLutsykiv opened this issue Sep 13, 2023 · 0 comments
Open

Upload images during profile editing #200

AnastasiiaLutsykiv opened this issue Sep 13, 2023 · 0 comments

Comments

@AnastasiiaLutsykiv
Copy link
Collaborator

AnastasiiaLutsykiv commented Sep 13, 2023

As a registered user,
I want to upload banner and logo images for my company/startup's profile,
so that it is more recognizable using logo,
and the profile representation is more attractive.

Acceptance Criteria

  1. Upload the image

Given I am editing the profile
When I review "Загальна інформація" tab
Then there are "Зображення для банера" and "Логотип"
And there is a button to upload the image next to each of them.

When I press on the Upload button
Then the File Explorer/Finder window is opened
And the user can select only files with the following criteria:

  • png, jpg, jpeg formats
  • size for banner: less than 5 Mb
  • size for logo: less than 1 MB

Design - when images are not uploaded

  1. Display how the image is shown in other places

When the user selects the file and it is valid
Then the system should save it without cropping
And the image should be displayed in the small size with the ratio taken from other places:

  • for banner: 2 small pictures: one with "New members" card ratio, another with "View profile" page ratio
  • for logo: 1 small picture with round shape
  • the appropriate text is shown

Image20240209143737

  1. Delete the file

When the file is already uploaded
Then the user should be able to delete the uploaded image.

When the file is deleted,
Then the new file can be uploaded
And the appropriate text is shown

Image20240209143758

linked epic: #6

Technical note
apply CSS property object-fit: cover;

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

No branches or pull requests

2 participants