Skip to content

Commit 606b4d9

Browse files
2 parents 6c9214a + 7a83ffd commit 606b4d9

File tree

4 files changed

+11
-53
lines changed

4 files changed

+11
-53
lines changed

angular/src/app/shared/components/catalog-medicaments/catalog-medicaments.component.css

Lines changed: 4 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
.component {
22
max-width: 80vw;
33
min-height: 50vh;
4-
/* background: rgb(229, 232, 248); */
54
margin: 0 auto;
6-
/* border: 1px solid black; */
75
box-shadow: 1px 1px 10px rgb(187, 184, 184);
86
padding: 1em;
97
}
@@ -44,25 +42,18 @@
4442
border-radius: 0.5em;
4543
overflow: hidden;
4644
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3), inset 5px 5px 10px rgba(0, 0, 0, 0.1) ;/* Adjust the values as needed */
47-
48-
/* border: 1px solid red; */
4945
}
5046

5147

5248
.group p {
5349
margin: 0;
54-
/* background: #37E4FF; */
5550
padding: 5px;
5651
flex: 1;
5752
overflow: hidden;
5853
border-top-right-radius: 0.5em;
5954
border-top-left-radius: 0.5em;
6055
text-align: center;
6156
letter-spacing: 1px;
62-
/* font-family: ' MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; */
63-
/* text-transform: uppercase; */
64-
/* font-size: 1.2em; */
65-
6657
}
6758

6859
.img {
@@ -83,7 +74,6 @@
8374

8475
.details {
8576
flex: 0;
86-
/* border:1px solid red; */
8777
border-bottom-left-radius: 0.5em;
8878
border-bottom-right-radius: 0.5em;
8979
}
@@ -144,14 +134,13 @@ button {
144134
}
145135

146136
.medName {
147-
position: relative; /* Create a stacking context for z-index */
148-
z-index: 1; /* Place the text above the bandage */
149-
/* Additional styling for the text if needed */
137+
position: relative;
138+
z-index: 1;
150139
transform: rotate(-20deg);
151140
text-align: center;
152-
color: rgba(0, 117, 220, 0.601);
153-
/* margin: 0 auto; */
141+
color: white;
154142
font-size: 1.2em;
143+
font-weight: bold;
155144

156145
}
157146
.group {
@@ -162,41 +151,7 @@ button {
162151
background-color: #90a9ba;
163152
color: white;
164153
letter-spacing: 1.2em;
165-
/* font-size: 1.2em; */
166154
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3), inset 5px 5px 10px rgba(0, 0, 0, 0.1) ;/* Adjust the values as needed */
167155

168156
}
169-
/*
170-
171-
.pharmacy {
172-
background-color: #FFBB6B;
173-
text-align: center;
174-
align-self: flex-end;
175-
border-radius: 26%;
176-
position: relative;
177-
width: 75%;
178-
transform: rotate(45deg);
179-
position: relative;
180-
top: 17px;
181-
right: -28px;
182-
display: flex;
183-
flex-direction: column;
184-
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3), inset 5px 5px 10px rgba(0, 0, 0, 0.1);
185-
}
186-
187-
.pharmacy p {
188-
font-weight: bold;
189-
letter-spacing: 1px;
190-
color: white;
191-
text-align: center;
192-
border: 1px solid red;
193-
}
194-
195-
.inside-bandage {
196-
box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.3), inset 5px 5px 10px rgba(0, 0, 0, 0.1);
197-
background-color: #FF8A00;
198-
margin-top: 10px;
199-
margin-left: auto;
200-
201-
} */
202157

angular/src/app/shared/components/details/details.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="right-box">
1111
<p class="name">{{currentMedicine.name}}</p>
1212
<div class="pharmacyAndPriceC">
13-
<p class="pharmacyName">{{currentMedicine.pharmacyName}}</p>
13+
<p class="pharmacyName">{{currentMedicine.medicineCompany}}</p>
1414
<div class="price">
1515
<p>{{currentMedicine.price}} лв</p>
1616
</div>

angular/src/app/shared/components/details/details.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ export class DetailsComponent implements OnInit {
4040
medicineDetails(productId: string) {
4141
this.DetailsService.getMedicine(productId).subscribe(
4242
(res) => {
43+
console.log(res);
44+
4345
this.currentMedicine = res;
46+
this.currentMedicine.price = res.price.toFixed(2)
4447
// console.log('this.currentMedicine', this.currentMedicine);
4548
this.imagebytes = res.medicineImageBytes;
4649
this.imageSrc = this.binaryToPng(this.imagebytes);

angular/src/app/shared/components/register/register.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="input-groups">
1111
<div class="form-group" *ngIf="currentRole=='pharmacy'||
1212
currentRole=='pharmacist'">
13-
<input type="text" name="Email" id="Email" placeholder="Email" #inputEmail="ngModel" required ngModel>
13+
<input type="text" name="Email" id="Email" placeholder="Имейл" #inputEmail="ngModel" required ngModel>
1414
</div>
1515
<div *ngIf="form.controls['Email']?.touched && form.controls['Email'].invalid">
1616
<div *ngIf="form.controls['Email'].errors?.['required']" class="error">Полето е задължително</div>
@@ -29,7 +29,7 @@
2929
<div class="form-group" *ngIf="currentRole=='doctor'||
3030
currentRole=='patient'||
3131
currentRole=='pharmacist'">
32-
<input type="text" name="MiddleName" id="middleName" placeholder="Иванов" #inputmiddleName="ngModel" required
32+
<input type="text" name="MiddleName" id="middleName" placeholder="Презиме" #inputmiddleName="ngModel" required
3333
ngModel>
3434
<div *ngIf="form.controls['MiddleName']?.touched && form.controls['MiddleName'].invalid">
3535
<div *ngIf="form.controls['MiddleName'].errors?.['required']" class="error">Полето е задължително!</div>
@@ -69,7 +69,7 @@
6969

7070
<div class="form-group" *ngIf="currentRole=='doctor'||
7171
currentRole=='pharmacist'">
72-
<input type="text" name="UinNumber" id="uinNumber" placeholder="1234567890" #inputuinNumber="ngModel"
72+
<input type="text" name="UinNumber" id="uinNumber" placeholder="УИН" #inputuinNumber="ngModel"
7373
required minlength="10" pattern="[0-9]+" ngModel>
7474
</div>
7575
<div *ngIf="form.controls['UinNumber']?.touched && form.controls['UinNumber'].invalid">

0 commit comments

Comments
 (0)