Skip to content

Commit

Permalink
bugfix: #7768
Browse files Browse the repository at this point in the history
  • Loading branch information
kovalsofiia1 committed Nov 12, 2024
1 parent 776d3d8 commit 3817210
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 99 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<div class="dropzone warning-background" appDragAndDrop (files)="filesDropped($event)">
<div class="text-wrapper">
<div class="centered">
<p class="warning-regular">{{ 'drag-and-drop.not-uploaded-warning' | translate }}</p>
<p>{{ 'drag-and-drop.not-uploaded-warning' | translate }}</p>
<p>
{{ 'drag-and-drop.picture-description' | translate }}
<label for="upload">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@
font-size: 18px;
text-align: center;
width: 250px;
font-family: var(---tertiary-font);
font-weight: 700;

.warning-regular {
font-weight: normal !important;
}
font-family: var(--primary-font);

span {
color: var(--primary-green);
Expand All @@ -56,7 +51,7 @@
}

.warning {
font-family: var(--tertiary-font);
font-family: var(--primary-font);
color: var(--freinacht-black);
font-size: 12px;
line-height: 16px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

.main-container {
position: relative;
width: 615px;
padding: 72px 0 30px;
max-width: 90vw;
padding: 72px 80px 30px;
font-family: var(--tertiary-font);
display: flex;
justify-content: center;
align-items: center;

background: var(--primary-white);

.cancel {
Expand All @@ -22,6 +20,11 @@
}
}

::ng-deep .dropzone {
width: 99% !important;
margin: 1px;
}

.wrapper {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -91,80 +94,18 @@
}
}

.dropzone-wrapper {
display: flex;
flex-flow: column wrap;
align-items: center;

.dropzone {
height: 231px;
width: 100%;
display: table;
background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23333' stroke-width='1' stroke-dasharray='10' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
margin-bottom: 8px;
}

.text-wrapper {
width: 90%;
height: 231px;
display: flex;
justify-content: center;
align-items: center;

input[type='file'] {
position: absolute;
overflow: hidden;
z-index: -1;
width: 0.1px;
height: 0.1px;
opacity: 0;
}
}

.centered {
font-size: 16px;
text-align: center;
line-height: 24px;
font-weight: 700;
font-family: var(--tertiary-font);

label > [browse] {
color: var(--primary-green);
text-decoration: underline;
cursor: pointer;
}
}

.download-info {
line-height: 24px;
color: var(--quaternary-grey);
font-size: 12px;
}
}

.dropzone-error {
& .dropzone {
border-color: var(--error-red);
background-color: var(--error-light-red);
background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23EB180DFF' stroke-width='1' stroke-dasharray='10' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
}

& .download-info {
color: var(--error-red);
}
}

@include responsiveRange(sm, md) {
.main-container {
width: 518px;
min-width: 518px;
padding: 72px 60px 30px;
}
}

@include responsivePCFirst(sm) {
.main-container {
width: 90vw;
height: 90vh;
padding: 0 14px;
height: 100%;
padding: 72px 40px 30px;
overflow: auto;

.wrapper {
Expand All @@ -184,21 +125,6 @@
}
}
}

.dropzone {
margin-bottom: 16px;
width: 227px;
}

.download-info {
width: 232px;
text-align: left;
}

.text-wrapper {
width: 90%;
height: 259px;
}
}
}

Expand Down
10 changes: 5 additions & 5 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@
"exists": "Already exists",
"closeTime": "Closing time have to be later than opening time. Please, try again",
"breakTime": "Invalid break time",
"photoUpload": "Upload PNG or JPG only. File size should be less than 10MB"
"photoUpload": "Upload only PNG or JPG. File size must be less than 10MB"
}
},
"users": {
Expand Down Expand Up @@ -808,9 +808,9 @@
"location": "Show my location",
"eco-place": "Show my eco places",
"to-do-list": "Show my To-do list",
"picture-tooltip": "Upload PNG or JPG only. File size should be less than 10MB",
"picture-tooltip": "Upload only PNG or JPG. File size must be less than 10MB",
"change-photo": "Do you want to change your profile picture?",
"would-you-like": "Would you like to save changes?",
"would-you-like": "Do you want to save changes?",
"notification": "Are you sure you want to delete the photo?",
"label-tip": "Link to your social network account",
"input-validation-required": "This field is required",
Expand Down Expand Up @@ -1261,7 +1261,7 @@
"drag-and-drop": {
"picture-description": "Drop your image here or",
"browse": "browse",
"picture-tooltip": "Upload PNG or JPG only. File size should be less than 10MB",
"picture-tooltip": "Upload only PNG or JPG. File size must be less than 10MB",
"submit-changes-button": "Submit",
"cancel-changes-button": "Cancel",
"not-uploaded-warning": "The image isn't uploaded"
Expand Down Expand Up @@ -1378,7 +1378,7 @@
"enter-link": "Enter link",
"textarea-title": "Events Description",
"picture": "Picture",
"picture-title": "Upload PNG or JPG only. File size should be less than 10MB",
"picture-title": "Upload only PNG or JPG. File size must be less than 10MB",
"event-theme": "Initiative type",
"event-type-check": "You should choose at least one type",
"event-type": "Event type",
Expand Down

0 comments on commit 3817210

Please sign in to comment.